seekbars.css 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* ----------------------------------
  2. * Seekbars
  3. * ---------------------------------- */
  4. div[role="slider"] {
  5. position: relative;
  6. height: 3.5rem;
  7. }
  8. div[role="slider"] > div {
  9. display: block;
  10. overflow: hidden;
  11. padding: 0;
  12. position: relative;
  13. height: 100%;
  14. }
  15. div[role="slider"] progress {
  16. width: 100%;
  17. background: #000;
  18. border: none;
  19. height: 0.1rem;
  20. display: block;
  21. border-radius: 0;
  22. margin-top: 1.9rem;
  23. }
  24. div[role="slider"] progress::-moz-progress-bar {
  25. background: #01c5ed;
  26. height: 0.6rem;
  27. margin-top: -0.3rem;
  28. border-radius: 0;
  29. }
  30. div[role="slider"] > label {
  31. font-size: 1.5rem;
  32. line-height: 3.8rem;
  33. font-family: sans-serif;
  34. color: #00aacb;
  35. float: right;
  36. padding: 0 0 0 1rem;
  37. height: 3.5rem;
  38. width: auto;
  39. }
  40. div[role="slider"] label:first-of-type {
  41. float: left;
  42. padding: 0 1rem 0 0;
  43. }
  44. div[role="slider"] > label.icon {
  45. width: 3rem;
  46. height: 3rem;
  47. margin-top: 0.5rem;
  48. font-size: 0;
  49. background: no-repeat right top / 3rem auto;
  50. }
  51. div[role="slider"] > label.icon:first-of-type {
  52. background-position: top left;
  53. }
  54. div[role="slider"] button {
  55. width: 3.2rem;
  56. height: 3.2rem;
  57. background: url(seekbars/images/ui/handler.png) no-repeat center center / 3rem auto;
  58. font: 0/0 a;
  59. position: absolute;
  60. top: 50%;
  61. left: 0;
  62. margin: -1.5rem 0 0 -1.6rem;
  63. border-radius: 3.2rem;
  64. border: solid 0.1rem transparent;
  65. transition: border 0.15s ease;
  66. padding: 0;
  67. }
  68. div[role="slider"] button:active {
  69. border: solid 0.5rem #01c5ed;
  70. }