style.less 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  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. .avatar img{
  219. width: 20rem;
  220. height: auto;
  221. border-radius: 50%;
  222. @media only screen and (max-device-width : 768px) {
  223. width: 10rem;
  224. }
  225. }
  226. .list {
  227. ul {
  228. margin: 3.2rem 0 3.2rem 0;
  229. list-style: none;
  230. padding: 0;
  231. li {
  232. font-size: 1.6rem;
  233. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  234. font-size: 1.4rem;
  235. margin: 1.6rem 0 1.6rem 0;
  236. }
  237. span {
  238. display: inline-block;
  239. text-align: right;
  240. width: 20.0rem;
  241. margin-right: 3.0rem;
  242. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  243. display: block;
  244. text-align: left;
  245. }
  246. }
  247. a {
  248. text-transform: uppercase;
  249. }
  250. }
  251. }
  252. }
  253. .pagination {
  254. margin-top: 6.0rem;
  255. text-align: center;
  256. li {
  257. display: inline;
  258. text-align: center;
  259. span {
  260. margin: 0;
  261. text-align: center;
  262. width: 3.2rem;
  263. }
  264. a {
  265. span {
  266. margin: 0;
  267. text-align: center;
  268. width: 3.2rem;
  269. }
  270. }
  271. }
  272. }
  273. .centered {
  274. display: flex;
  275. height: 100%;
  276. align-items: center;
  277. justify-content: center;
  278. .about {
  279. text-align: center;
  280. h1 {
  281. margin-top: 2.0rem;
  282. margin-bottom: 0.5rem;
  283. }
  284. h2 {
  285. margin-top: 1.0rem;
  286. margin-bottom: 0.5rem;
  287. font-size: 2.4rem;
  288. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  289. font-size: 2.0rem;
  290. }
  291. }
  292. ul {
  293. list-style: none;
  294. margin: 3.0rem 0 1.0rem 0;
  295. padding: 0;
  296. li {
  297. display: inline-block;
  298. position: relative;
  299. a {
  300. text-transform: uppercase;
  301. margin-left: 1.0rem;
  302. margin-right: 1.0rem;
  303. font-size: 1.6rem;
  304. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  305. font-size: 1.4rem;
  306. }
  307. }
  308. }
  309. }
  310. }
  311. .error {
  312. text-align: center;
  313. h1 {
  314. margin-top: 2.0rem;
  315. margin-bottom: 0.5rem;
  316. font-size: 4.6rem;
  317. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  318. font-size: 3.2rem;
  319. }
  320. }
  321. h2 {
  322. margin-top: 2.0rem;
  323. margin-bottom: 3.2rem;
  324. font-size: 3.2rem;
  325. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  326. font-size: 2.8rem;
  327. }
  328. }
  329. }
  330. }
  331. .footer {
  332. width: 100%;
  333. text-align: center;
  334. line-height: 2.0rem;
  335. margin-bottom:1.0rem;
  336. }
  337. .float-right {
  338. float: right;
  339. }
  340. .float-left {
  341. float: left;
  342. }