app.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. #index {
  2. height: 100%;
  3. }
  4. [data-position="right"] {
  5. position: absolute;
  6. top: 0;
  7. left: 0;
  8. right: 0;
  9. bottom: 0;
  10. transform: translateX(100%);
  11. -webkit-transform: translateX(100%);
  12. z-index: 15;
  13. z-index: 100; /* -> drawer */
  14. }
  15. section[role="region"][data-position="right"] {
  16. position: absolute;
  17. }
  18. [data-position="right"].current {
  19. animation: rightToCurrent 0.4s forwards;
  20. -webkit-animation: rightToCurrent 0.4s forwards;
  21. }
  22. [data-position="right"].right {
  23. animation: currentToRight 0.4s forwards;
  24. -webkit-animation: currentToRight 0.4s forwards;
  25. }
  26. [data-position="current"].left {
  27. animation: currentToLeft 0.4s forwards;
  28. -webkit-animation: currentToLeft 0.4s forwards;
  29. }
  30. [data-position="current"].current {
  31. animation: leftToCurrent 0.4s forwards;
  32. -webkit-animation: leftToCurrent 0.4s forwards;
  33. }
  34. [data-position="back"] {
  35. position: absolute;
  36. top: 0;
  37. left: 0;
  38. right: 0;
  39. bottom: 0;
  40. z-index: -1;
  41. opacity: 0;
  42. /* z-index: 100; -> drawer */
  43. }
  44. [data-position="back"].fade-in {
  45. z-index: 120;
  46. animation: fadeIn 0.2s forwards;
  47. -webkit-animation: fadeIn 0.2s forwards;
  48. }
  49. [data-position="back"].fade-out {
  50. animation: fadeOut 0.2s forwards;
  51. -webkit-animation: fadeOut 0.2s forwards;
  52. }
  53. [data-position="edit-mode"] {
  54. position: absolute;
  55. top: -5rem;
  56. left: 0;
  57. right: 0;
  58. bottom: -7rem;
  59. z-index: -1;
  60. opacity: 0;
  61. transition: all 0.3s ease;
  62. }
  63. [data-position="edit-mode"].edit {
  64. position: absolute;
  65. top: 0;
  66. left: 0;
  67. right: 0;
  68. bottom: 0;
  69. z-index: 120;
  70. opacity: 1;
  71. }
  72. /* Active state */
  73. .active {
  74. background-color: #b2f2ff;
  75. color: #fff;
  76. }
  77. /* Headers */
  78. #headers .content {
  79. margin-top: -1.5rem;
  80. }
  81. #headers section[role="region"] {
  82. margin-bottom: 1.5rem;
  83. }
  84. #headers section[role="region"]:not(#drawer) {
  85. display: inline;
  86. }
  87. #headers article header:first-child {
  88. margin-top: 1.5rem;
  89. }
  90. #headers section[role="region"] header h2 {
  91. margin: 0 0 1.5rem 0;
  92. }
  93. /* Lists */
  94. /* to avoid double background effect on press */
  95. [data-type=list] li>a:active {
  96. background-color: transparent;
  97. }
  98. /* Drawer */
  99. section[role="region"]:not(#drawer) {
  100. transition: none;
  101. left: 0;
  102. z-index: 0;
  103. padding-left: 0;
  104. }
  105. section[data-type="sidebar"] + section[role="region"] > header:first-child > button,
  106. section[data-type="sidebar"] + section[role="region"] > header:first-child > a {
  107. background-position: 3.5rem center;
  108. }
  109. /* Switches */
  110. #switches div:last-child label:last-child {
  111. margin-left: 2rem;
  112. }
  113. #switches div:last-child {
  114. margin-left: 2rem;
  115. }
  116. /* Scrolling */
  117. nav[data-type="scrollbar"] {
  118. padding-top: 1rem;
  119. }
  120. nav[data-type="scrollbar"] p {
  121. opacity: 1;
  122. }
  123. /* Seek bars */
  124. div[role="slider"] > label.icon {
  125. background: no-repeat right top;
  126. background-size: 3rem auto;
  127. }
  128. /* Tabs */
  129. #tabs .content {
  130. padding: 0;
  131. }
  132. #tabs .content .content {
  133. padding: 1.5rem 3rem;
  134. }
  135. #panel1 a {
  136. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAABaCAYAAACv+ebYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlk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Mf1+DCwFW7i9AbwF+wL6HwArlWvFivggqDERPqH8yr2gF5zR9C8HC0LGpOU+Ct6ECc/WXD8NPoMO5Xo3mKqZccLXbgwTlcK3wWrNYG08wD3f9YOMP8aDPv67CdSbJldHwP8ou99ZJFczqLPJ6psBAofAa4MxvoMqkFJEPU7aeJDwACeDGg8MZ/oDtGtEW3h/l2Tbx62a2ZVH3M9StDosueRypXjZZdTxfRu0FG5WRO+An0qfG8WJxO+d8BLMAfO5PRF8BA8tRKdpknUymKLQrz6dapU9SOf3XAvhXt7H/ngCHit0x5ROfbyn74IxYCwv/2LwwVC8nnOnltvLaIYmz+MusNmXpXSy3QKTDIXTnB9NUQqBS/y0kkHn831QZilexYlrVYHQeb3f154JHoFtmu9RUi3UiLfzPrcufQ4rx+A4cBY853u4iO/pM942a4wrEIM+NPP3/OtL+VoZX1fjMmgAp/JV7NGAS3i7hI1H1cyxsErEpsrs4sPlokHfBk7QeL7K234uj1aBnpC+68DxfNfV18E8sCvLM/s82FOIgv4b389ZnM1XwSfwFCwHm8CXXLLa5HncyRTx1gutQjzngThhJ+yEnbATdsJO+P8R9tjLjBwXKlORTFRPXKH3sJxMVOlz0TuVM1GzLjV5EhXKdVoynYl6jV9fwmKG+FNNVJpxpxhuogpOshUi00TNllyCfQ8jP9OZqP74N01UeXJRVIpME/WVGLITbU1UEt3ua5OlONxEFWu3ysaImqj+GVNM4F84ndtfxZCr98JCvJETLeuMVWHBp5g0UeWS25ioHh9ANb7JjJiJmhLORLUsfQpmouqSSxfrRaaJGhS0552Jmpfy1pmokU1U06y2eTNxJqoTdsJOuLDxS4ABAHTFDfqZk4Q5AAAAAElFTkSuQmCC);
  140. }
  141. #panel3 a {
  142. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAABQCAYAAAAOYsW+AAAA30lEQVRo3u2YMQrCQBBFv95ICXqTtDmJKfQk01olED2DiugF1MImjXqBWNisEIZVFIKFvFftzmdnt3kwrAQAAB/S84Usy0aS1q68N7NhyKeSJi6fmVke8p2kgcvHZrZpF/qRx1witesX+e2TnrGLz5IaVzu9WD85ttYHlzWh5/uLzewuqXQHF639SlLd2teh9mTpHl6GnoDHePxbjwt3sPrC48o9vMBjPMZjPAYAAACAjuZqzbfRuVppMgx5dK5WmuQhj87VShPmakeadP7PFXoCHuMxHgMe4zEeA8C/8ABPaein4jLEkQAAAABJRU5ErkJggg==);
  143. }
  144. /* Filters */
  145. [role="tablist"][data-type="filter"] {
  146. margin-bottom: 2rem;
  147. }
  148. /* Device rotation */
  149. .landscape section[role="region"]#drawer > header:first-child {
  150. /* Whatever needs to be changed on landscape */
  151. }