1
0

style.less 5.6 KB

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