1
0

style.less 6.4 KB

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