side-menu.css 5.6 KB

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