style.less 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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. th, td {
  111. padding: 1.6rem;
  112. }
  113. table {
  114. border-collapse: collapse;
  115. }
  116. table td, table th {
  117. border: 2px solid @darker-fg-color;
  118. }
  119. table tr:first-child th {
  120. border-top: 0;
  121. }
  122. table tr:last-child td {
  123. border-bottom: 0;
  124. }
  125. table tr td:first-child,
  126. table tr th:first-child {
  127. border-left: 0;
  128. }
  129. table tr td:last-child,
  130. table tr th:last-child {
  131. border-right: 0;
  132. }
  133. img {
  134. max-width: 100%;
  135. }
  136. .wrapper {
  137. display: flex;
  138. flex-direction: column;
  139. min-height: 100vh;
  140. width: 100%;
  141. }
  142. .container {
  143. margin: 0 auto;
  144. max-width: 120.0rem;
  145. width: 100%;
  146. padding-left: 2.0rem;
  147. padding-right: 2.0rem;
  148. }
  149. .navigation {
  150. height: 6.0rem;
  151. width: 100%;
  152. a {
  153. display: inline;
  154. font-size: 1.6rem;
  155. text-transform: uppercase;
  156. line-height: 6.0rem;
  157. letter-spacing: 0.1rem;
  158. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  159. font-size: 1.4rem;
  160. }
  161. }
  162. ul {
  163. list-style: none;
  164. margin-bottom: 0;
  165. margin-top: 0;
  166. li {
  167. float: left;
  168. margin: 0;
  169. position: relative;
  170. a {
  171. margin-left: 1.0rem;
  172. margin-right: 1.0rem;
  173. }
  174. }
  175. }
  176. }
  177. .content {
  178. flex: 1;
  179. margin-top: 1.6rem;
  180. margin-bottom: 3.2rem;
  181. article {
  182. header {
  183. margin-top: 3.2rem;
  184. margin-bottom: 3.2rem;
  185. h1, h2 {
  186. margin: 0;
  187. }
  188. h2 {
  189. margin-top: 1.0rem;
  190. font-size: 1.8rem;
  191. color: @fg-color;
  192. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  193. font-size: 1.6rem;
  194. }
  195. }
  196. }
  197. }
  198. }
  199. .list {
  200. ul {
  201. margin: 3.2rem 0 3.2rem 0;
  202. list-style: none;
  203. padding: 0;
  204. li {
  205. font-size: 1.6rem;
  206. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  207. font-size: 1.4rem;
  208. margin: 1.6rem 0 1.6rem 0;
  209. }
  210. span {
  211. display: inline-block;
  212. text-align: right;
  213. width: 20.0rem;
  214. margin-right: 3.0rem;
  215. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  216. display: block;
  217. text-align: left;
  218. }
  219. }
  220. a {
  221. text-transform: uppercase;
  222. }
  223. }
  224. }
  225. }
  226. .pagination {
  227. margin-top: 6.0rem;
  228. text-align: center;
  229. li {
  230. display: inline;
  231. text-align: center;
  232. span {
  233. margin: 0;
  234. text-align: center;
  235. width: 3.2rem;
  236. }
  237. a {
  238. span {
  239. margin: 0;
  240. text-align: center;
  241. width: 3.2rem;
  242. }
  243. }
  244. }
  245. }
  246. .centered {
  247. display: flex;
  248. height: 100%;
  249. align-items: center;
  250. justify-content: center;
  251. .about {
  252. text-align: center;
  253. h1 {
  254. margin-top: 2.0rem;
  255. margin-bottom: 0.5rem;
  256. }
  257. h2 {
  258. margin-top: 1.0rem;
  259. margin-bottom: 0.5rem;
  260. font-size: 2.4rem;
  261. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  262. font-size: 2.0rem;
  263. }
  264. }
  265. ul {
  266. list-style: none;
  267. margin: 3.0rem 0 1.0rem 0;
  268. padding: 0;
  269. li {
  270. display: inline;
  271. position: relative;
  272. a {
  273. text-transform: uppercase;
  274. margin-left: 1.0rem;
  275. margin-right: 1.0rem;
  276. font-size: 1.6rem;
  277. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  278. font-size: 1.4rem;
  279. }
  280. }
  281. }
  282. }
  283. }
  284. .error {
  285. text-align: center;
  286. h1 {
  287. margin-top: 2.0rem;
  288. margin-bottom: 0.5rem;
  289. font-size: 4.6rem;
  290. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  291. font-size: 3.2rem;
  292. }
  293. }
  294. h2 {
  295. margin-top: 2.0rem;
  296. margin-bottom: 3.2rem;
  297. font-size: 3.2rem;
  298. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  299. font-size: 2.8rem;
  300. }
  301. }
  302. }
  303. }
  304. .footer {
  305. height: 6.0rem;
  306. width: 100%;
  307. text-align: center;
  308. line-height: 6.0rem;
  309. }
  310. .float-right {
  311. float: right;
  312. }
  313. .float-left {
  314. float: left;
  315. }