1
0

style.less 6.2 KB

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