Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

248 lines
4.9 KiB

  1. body {
  2. color: #777;
  3. }
  4. .pure-img-responsive {
  5. max-width: 100%;
  6. height: auto;
  7. }
  8. /*
  9. Add transition to containers so they can push in and out.
  10. */
  11. #layout,
  12. #menu,
  13. .menu-link {
  14. -webkit-transition: all 0.2s ease-out;
  15. -moz-transition: all 0.2s ease-out;
  16. -ms-transition: all 0.2s ease-out;
  17. -o-transition: all 0.2s ease-out;
  18. transition: all 0.2s ease-out;
  19. }
  20. /*
  21. This is the parent `<div>` that contains the menu and the content area.
  22. */
  23. #layout {
  24. position: relative;
  25. padding-left: 0;
  26. }
  27. #layout.active #menu {
  28. left: 150px;
  29. width: 150px;
  30. }
  31. #layout.active .menu-link {
  32. left: 150px;
  33. }
  34. /*
  35. The content `<div>` is where all your content goes.
  36. */
  37. .content {
  38. margin: 0 auto;
  39. padding: 0 2em;
  40. max-width: 800px;
  41. margin-bottom: 50px;
  42. line-height: 1.6em;
  43. }
  44. .header {
  45. margin: 0;
  46. color: #333;
  47. text-align: center;
  48. padding: 2.5em 2em 0;
  49. border-bottom: 1px solid #eee;
  50. }
  51. .header h1 {
  52. margin: 0.2em 0;
  53. font-size: 3em;
  54. font-weight: 300;
  55. }
  56. .header h2 {
  57. font-weight: 300;
  58. color: #ccc;
  59. padding: 0;
  60. margin-top: 0;
  61. }
  62. .content-subhead {
  63. margin: 50px 0 20px 0;
  64. font-weight: 300;
  65. color: #888;
  66. }
  67. /*
  68. The `#menu` `<div>` is the parent `<div>` that contains the `.pure-menu` that
  69. appears on the left side of the page.
  70. */
  71. #menu {
  72. margin-left: -150px; /* "#menu" width */
  73. width: 150px;
  74. position: fixed;
  75. top: 0;
  76. left: 0;
  77. bottom: 0;
  78. z-index: 1000; /* so the menu or its navicon stays above all content */
  79. background: #191818;
  80. overflow-y: auto;
  81. -webkit-overflow-scrolling: touch;
  82. }
  83. /*
  84. All anchors inside the menu should be styled like this.
  85. */
  86. #menu a {
  87. color: #999;
  88. border: none;
  89. padding: 0.6em 0 0.6em 0.6em;
  90. }
  91. /*
  92. Remove all background/borders, since we are applying them to #menu.
  93. */
  94. #menu .pure-menu,
  95. #menu .pure-menu ul {
  96. border: none;
  97. background: transparent;
  98. }
  99. /*
  100. Add that light border to separate items into groups.
  101. */
  102. #menu .pure-menu ul,
  103. #menu .pure-menu .menu-item-divided {
  104. border-top: 1px solid #333;
  105. }
  106. /*
  107. Change color of the anchor links on hover/focus.
  108. */
  109. #menu .pure-menu li a:hover,
  110. #menu .pure-menu li a:focus {
  111. background: #333;
  112. }
  113. /*
  114. This styles the selected menu item `<li>`.
  115. */
  116. #menu .pure-menu-selected,
  117. #menu .pure-menu-heading {
  118. background: #1f8dd6;
  119. }
  120. /*
  121. This styles a link within a selected menu item `<li>`.
  122. */
  123. #menu .pure-menu-selected a {
  124. color: #fff;
  125. }
  126. /*
  127. This styles the menu heading.
  128. */
  129. #menu .pure-menu-heading {
  130. font-size: 110%;
  131. color: #fff;
  132. margin: 0;
  133. }
  134. /* -- Dynamic Button For Responsive Menu -------------------------------------*/
  135. /*
  136. The button to open/close the Menu is custom-made and not part of Pure. Here's
  137. how it works:
  138. */
  139. /*
  140. `.menu-link` represents the responsive menu toggle that shows/hides on
  141. small screens.
  142. */
  143. .menu-link {
  144. position: fixed;
  145. display: block; /* show this only on small screens */
  146. top: 0;
  147. left: 0; /* "#menu width" */
  148. background: #000;
  149. background: rgba(0,0,0,0.7);
  150. font-size: 10px; /* change this value to increase/decrease button size */
  151. z-index: 10;
  152. width: 2em;
  153. height: auto;
  154. padding: 2.1em 1.6em;
  155. }
  156. .menu-link:hover,
  157. .menu-link:focus {
  158. background: #000;
  159. }
  160. .menu-link span {
  161. position: relative;
  162. display: block;
  163. }
  164. .menu-link span,
  165. .menu-link span:before,
  166. .menu-link span:after {
  167. background-color: #fff;
  168. width: 100%;
  169. height: 0.2em;
  170. }
  171. .menu-link span:before,
  172. .menu-link span:after {
  173. position: absolute;
  174. margin-top: -0.6em;
  175. content: " ";
  176. }
  177. .menu-link span:after {
  178. margin-top: 0.6em;
  179. }
  180. /* -- Responsive Styles (Media Queries) ------------------------------------- */
  181. /*
  182. Hides the menu at `48em`, but modify this based on your app's needs.
  183. */
  184. @media (min-width: 48em) {
  185. .header,
  186. .content {
  187. padding-left: 2em;
  188. padding-right: 2em;
  189. }
  190. #layout {
  191. padding-left: 150px; /* left col width "#menu" */
  192. left: 0;
  193. }
  194. #menu {
  195. left: 150px;
  196. }
  197. .menu-link {
  198. position: fixed;
  199. left: 150px;
  200. display: none;
  201. }
  202. #layout.active .menu-link {
  203. left: 150px;
  204. }
  205. }
  206. @media (max-width: 48em) {
  207. /* Only apply this when the window is small. Otherwise, the following
  208. case results in extra padding on the left:
  209. * Make the window small.
  210. * Tap the menu to trigger the active state.
  211. * Make the window large again.
  212. */
  213. #layout.active {
  214. position: relative;
  215. left: 150px;
  216. }
  217. }