floating-scrollbars-responsive-design.css 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  2. @namespace html url("http://www.w3.org/1999/xhtml");
  3. /* Restrict all styles to `*|*:not(html|select) > scrollbar` so that scrollbars
  4. inside a <select> are excluded (including them hides the select arrow on
  5. Windows). We want to include both the root scrollbars for the document as
  6. well as any overflow: scroll elements within the page, while excluding
  7. <select>. */
  8. *|*:not(html|select) > scrollbar {
  9. -moz-appearance: none !important;
  10. position: relative;
  11. background-color: transparent;
  12. background-image: none;
  13. z-index: 2147483647;
  14. padding: 2px;
  15. border: none;
  16. }
  17. /* Scrollbar code will reset the margin to the correct side depending on
  18. where layout actually puts the scrollbar */
  19. *|*:not(html|select) > scrollbar[orient="vertical"] {
  20. margin-left: -10px;
  21. min-width: 10px;
  22. max-width: 10px;
  23. }
  24. *|*:not(html|select) > scrollbar[orient="horizontal"] {
  25. margin-top: -10px;
  26. min-height: 10px;
  27. max-height: 10px;
  28. }
  29. *|*:not(html|select) > scrollbar slider {
  30. -moz-appearance: none !important;
  31. }
  32. *|*:not(html|select) > scrollbar thumb {
  33. -moz-appearance: none !important;
  34. background-color: rgba(0,0,0,0.2);
  35. border-width: 0px !important;
  36. border-radius: 3px !important;
  37. }
  38. *|*:not(html|select) > scrollbar scrollbarbutton,
  39. *|*:not(html|select) > scrollbar gripper {
  40. display: none;
  41. }