style.less 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. @bg-color: #fefefe;
  2. @fg-color: #323232;
  3. @darker-bg-color: #dcdcdc;
  4. @darker-fg-color: #000;
  5. *,
  6. *:after,
  7. *:before {
  8. box-sizing: inherit;
  9. }
  10. html {
  11. box-sizing: border-box;
  12. font-size: 62.5%;
  13. }
  14. body {
  15. display:flex;
  16. color: @fg-color;
  17. background-color: @bg-color;
  18. font-family: 'Fira Mono', monospace;
  19. font-size: 1.6em;
  20. font-weight: 400;
  21. letter-spacing: 0.0625em;
  22. line-height: 1.8em;
  23. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  24. font-size: 1.4em;
  25. line-height: 1.6em;
  26. }
  27. }
  28. a {
  29. font-weight: 700;
  30. color: @darker-fg-color;
  31. text-decoration: none;
  32. &:focus,
  33. &:hover {
  34. text-decoration: underline;
  35. }
  36. }
  37. p {
  38. margin: 1.6rem 0 1.6rem 0;
  39. }
  40. h1,
  41. h2,
  42. h3,
  43. h4,
  44. h5,
  45. h6 {
  46. color: @darker-fg-color;
  47. text-transform: uppercase;
  48. letter-spacing: 0.0625em;
  49. margin: 3.2rem 0 1.6rem 0;
  50. }
  51. h1 {
  52. font-size: 3.2rem;
  53. line-height: 3.2rem;
  54. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  55. font-size: 2.8rem;
  56. line-height: 2.8rem;
  57. }
  58. }
  59. h2 {
  60. font-size: 2.8rem;
  61. line-height: 2.8rem;
  62. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  63. font-size: 2.4rem;
  64. line-height: 2.4rem;
  65. }
  66. }
  67. h3 {
  68. font-size: 2.4rem;
  69. line-height: 2.4rem;
  70. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  71. font-size: 2.0rem;
  72. line-height: 2.0rem;
  73. }
  74. }
  75. h4 {
  76. font-size: 2.2rem;
  77. line-height: 2.2rem;
  78. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  79. font-size: 1.8rem;
  80. line-height: 1.8rem;
  81. }
  82. }
  83. h5 {
  84. font-size: 2.0rem;
  85. line-height: 2.0rem;
  86. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  87. font-size: 1.6rem;
  88. line-height: 1.6rem;
  89. }
  90. }
  91. h6 {
  92. font-size: 1.4rem;
  93. line-height: 1.4rem;
  94. }
  95. pre {
  96. margin: 1.6rem 0 1.0rem 0;
  97. padding: 1.6rem;
  98. overflow-x: auto;
  99. }
  100. code {
  101. background-color: @darker-fg-color;
  102. color: @bg-color;
  103. padding: 0.4rem 0.8rem 0.4rem 0.8rem;
  104. }
  105. blockquote {
  106. border-left: 2px solid @darker-bg-color;
  107. padding-left: 1.6rem;
  108. font-style: italic;
  109. }
  110. .wrapper {
  111. display: flex;
  112. flex-direction: column;
  113. min-height: 100vh;
  114. width: 100%;
  115. }
  116. .container {
  117. margin: 0 auto;
  118. max-width: 120.0rem;
  119. width: 100%;
  120. padding-left: 2.0rem;
  121. padding-right: 2.0rem;
  122. }
  123. .navigation {
  124. height: 6.0rem;
  125. width: 100%;
  126. a {
  127. display: inline;
  128. font-size: 1.6rem;
  129. text-transform: uppercase;
  130. line-height: 6.0rem;
  131. letter-spacing: 0.1rem;
  132. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  133. font-size: 1.4rem;
  134. }
  135. }
  136. ul {
  137. list-style: none;
  138. margin-bottom: 0;
  139. margin-top: 0;
  140. li {
  141. float: left;
  142. margin: 0;
  143. position: relative;
  144. a {
  145. margin-left: 1.0rem;
  146. margin-right: 1.0rem;
  147. }
  148. }
  149. }
  150. }
  151. .content {
  152. flex: 1;
  153. margin-top: 1.6rem;
  154. margin-bottom: 3.2rem;
  155. article {
  156. header {
  157. margin-top: 3.2rem;
  158. margin-bottom: 3.2rem;
  159. h1, h2 {
  160. margin: 0;
  161. }
  162. h2 {
  163. margin-top: 1.0rem;
  164. font-size: 1.8rem;
  165. color: @fg-color;
  166. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  167. font-size: 1.6rem;
  168. }
  169. }
  170. }
  171. }
  172. }
  173. .list {
  174. ul {
  175. margin: 3.2rem 0 3.2rem 0;
  176. list-style: none;
  177. padding: 0;
  178. li {
  179. font-size: 1.6rem;
  180. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  181. font-size: 1.4rem;
  182. margin: 1.6rem 0 1.6rem 0;
  183. }
  184. span {
  185. display: inline-block;
  186. text-align: right;
  187. width: 20.0rem;
  188. margin-right: 3.0rem;
  189. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  190. display: block;
  191. text-align: left;
  192. }
  193. }
  194. a {
  195. text-transform: uppercase;
  196. }
  197. }
  198. }
  199. }
  200. .pagination {
  201. margin-top: 6.0rem;
  202. text-align: center;
  203. li {
  204. display: inline;
  205. text-align: center;
  206. span {
  207. margin: 0;
  208. text-align: center;
  209. width: 3.2rem;
  210. }
  211. a {
  212. span {
  213. margin: 0;
  214. text-align: center;
  215. width: 3.2rem;
  216. }
  217. }
  218. }
  219. }
  220. .centered {
  221. display: flex;
  222. height: 100%;
  223. align-items: center;
  224. justify-content: center;
  225. .about {
  226. text-align: center;
  227. h1 {
  228. margin-top: 2.0rem;
  229. margin-bottom: 0.5rem;
  230. }
  231. h2 {
  232. margin-top: 1.0rem;
  233. margin-bottom: 0.5rem;
  234. font-size: 2.4rem;
  235. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  236. font-size: 2.0rem;
  237. }
  238. }
  239. ul {
  240. list-style: none;
  241. margin: 3.0rem 0 1.0rem 0;
  242. padding: 0;
  243. li {
  244. display: inline;
  245. position: relative;
  246. a {
  247. text-transform: uppercase;
  248. margin-left: 1.0rem;
  249. margin-right: 1.0rem;
  250. font-size: 1.6rem;
  251. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  252. font-size: 1.4rem;
  253. }
  254. }
  255. }
  256. }
  257. }
  258. .error {
  259. text-align: center;
  260. h1 {
  261. margin-top: 2.0rem;
  262. margin-bottom: 0.5rem;
  263. font-size: 4.6rem;
  264. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  265. font-size: 3.2rem;
  266. }
  267. }
  268. h2 {
  269. margin-top: 2.0rem;
  270. margin-bottom: 3.2rem;
  271. font-size: 3.2rem;
  272. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  273. font-size: 2.8rem;
  274. }
  275. }
  276. }
  277. }
  278. .footer {
  279. height: 6.0rem;
  280. width: 100%;
  281. text-align: center;
  282. line-height: 6.0rem;
  283. }
  284. .float-right {
  285. float: right;
  286. }
  287. .float-left {
  288. float: left;
  289. }