style.less 5.6 KB

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