Menu

class in template but not in css

2005-02-22
2013-04-15
  • James E Lang

    James E Lang - 2005-02-22

    I am working on a skin for v0.22.2 since I have not yet checked out the v0.23.0 development version of POPFile.

    I think I've stumbled across an inconsistancy in the default skin. Template common-bottom.thtml says class="bottomLink" several times but style.css does not define what to do for .bottomLink anyplace.

    --
    Jim

     
    • Texas Fett

      Texas Fett - 2005-02-22

      .bottomLink lets you do stuff with the links in the footer.  Since its on links you would need to use a.bottomLink.  So if you wanted them to be a different color or decoration than the rest of the links you could easily do that.  There are many styles that the default skin doesn't use.  Its not necessary to style everything, they just give more flexability.  The skin that uses pretty much all the classes is StrawberryRose.  I often use it for testing to see if changes to the HTML have consistant classes.  Its not an example of good color choice, but it is useful for learning.  Even though we are getting rid of some skins I don't want to see that one go so I have been working on making it a bit less odd looking.

      When you get ready to move it over to 0.23 I have been keeping a list of changes that need to be made to update a skin since I am going to be doing it a bunch of times.

      Have you seen the wiki page on skinning?  It doesn't tell you a lot, but does give some clues about what the classes do.

      http://popfile.sourceforge.net/cgi-bin/wiki.pl?Skinning

       
      • James E Lang

        James E Lang - 2005-02-22

        Yes, Joseph. I had the functionality of .bottomLink figured out. But thanks for the explanation of classes that are not covered in the css. It makes sense to me now. And, yes I have seen the wiki page. But thank you again for mentioning it.

        Since this thread is morphing into a continuation of my other thread I'll just continue here.

        I've discovered that the horizontal scroll bar problem is unique to Konqueror at least among the browsers I am able to test. My browsers are Konqueror, Opera, Mozilla, and Firefox. As far as I can determine there is no IE (wash my mouth out with soap!) for Linux.

        I've also discovered that when Konqueror is not displaying images it also does not display the "alt" value in their place. Isn't that an implementation error on their part?

        --
        Jim

         
        • Texas Fett

          Texas Fett - 2005-02-22

          If its working in other browsers it should be possible in Konqueror, it just may take a bit more work or some odd hack.  Each browser has its own quirks in CSS implementation.  Sometimes there is nothing you can do about it but cheat.

          I don't know if not displaying the alt text is an error.  It makes sense to display it, but it may depend on the size of the image.  I don't use Konqeror much so I don't know a lot about them.  But from what I have heard they don't stick to the standards as closely as Mozilla and Opera, though they are far better than Explorer.

           
          • James E Lang

            James E Lang - 2005-02-22

            "If its working in other browsers it should be possible in Konqueror, it just may take a bit more work or some odd hack. Each browser has its own quirks in CSS implementation. Sometimes there is nothing you can do about it but cheat."

            Well, you'll see it in a few days. Then, if it doesn't take you away from your more important tasks (eating, sleeping, and getting v0.23.0 going) you will get a chance to poke and prod at it. ;-D

            --
            Jim

             
          • Michael Bierman

            Michael Bierman - 2005-02-22

            "User agents must render alternate text when they cannot support images, they cannot support a certain image type or when they are configured not to display images."

            http://www.w3.org/TR/REC-html40/struct/objects.html

            Michael

             
            • James E Lang

              James E Lang - 2005-02-22

              Thank you Michael. That is what I thought.

              --
              Jim

               
      • James E Lang

        James E Lang - 2005-02-24

        I am wondering if there is a way to conditionally select between class rowOdd and class rowEven outside the range of a TMPL_LOOP based on the number of buckets that exist.

        I have a situation in which I believe that this would vastly improve the appearance.

        --
        Jim

         
        • Texas Fett

          Texas Fett - 2005-02-24

          Can you explain this more?  It might be possible, but I have no idea what you mean.

           
          • James E Lang

            James E Lang - 2005-02-24

            Yes Joseph. I think Manni has given me the bad news but what I'm looking at is the sum of unique words on the buckets tab. I want to toggle the even/odd color from that used for the undefined bucket to serve as a background color for that total.

            --
            Jim

             
        • Michael Bierman

          Michael Bierman - 2005-02-24

          Jim, I'm not sure I know exactly what you want to do, but here are some examples that may get you closer.

          LI B  {color: purple; } 

          Would make bold within a list purple.

          You can also use child or sibbling selectors like so:

          H1 .[classname] {color: red};
          p > span.foo {color: blue};

          Here's a short tutorial:

          http://tinyurl.com/6sss9

          Does this come close to what you are trying to do?

          Michael

           
        • Manni

          Manni - 2005-02-24

          Not whithout changing the Perl code, IMHO.

          Maybe some Javascript trickery is possible that stores the odd/even information in a global JS variable. The last one used should stick and it could be used later on to assign a style to another element.

          Manni

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.