generic.styl 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // * generic.styl
  2. @require mixins
  3. // Generic rules for sites
  4. // ** HTML elements
  5. *
  6. border-color()
  7. // HACK: Don't apply A color to GitHub issue labels. This should not
  8. // be done here, but to do otherwise would require removing the A rule
  9. // from this file and adding it to all other sites manually. The
  10. // issue is that GitHub assigns label colors in <SPAN STYLE=...> tags
  11. // depending on the label's background color, so we don't want to
  12. // override label A colors, but there is no way in CSS to negate
  13. // !important for certain selectors.
  14. // But apparently Stylus (or the version I have, at least, who knows)
  15. // doesn't support :not(), and it removes it from the CSS files it
  16. // compiles. So while this hack might work in the future, it appears
  17. // that, for now, the GitHub CSS must be edited manually after
  18. // generation. What an awful idea...
  19. // a:not(.IssueLabel)
  20. a
  21. a()
  22. a:visited
  23. a visited
  24. body
  25. background-color()
  26. color()
  27. html
  28. // Apparently some people set the bgcolor for HTML, not BODY...
  29. background-color()
  30. input
  31. textarea
  32. background-color highlight
  33. color()
  34. blockquote,
  35. pre
  36. background-color highlight
  37. color()