style.less 6.1 KB

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