style.less 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  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 : 768px) {
  167. font-size: 1.6rem;
  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. @media only screen and (min-device-width : 320px) and (max-device-width : 768px) {
  183. float: none !important;
  184. }
  185. }
  186. @media only screen and (min-device-width : 320px) and (max-device-width : 768px) {
  187. visibility: hidden;
  188. opacity: 0;
  189. max-height: 0;
  190. z-index: 5;
  191. top: 5rem;
  192. right: 0;
  193. width: 100%;
  194. position: absolute;
  195. background-color: rgba(254,254,254 ,0.98);
  196. padding: 0;
  197. border-bottom: solid 2px #E2DFE1;
  198. transition: opacity 0.25s, max-height 0.15s linear;
  199. }
  200. }
  201. }
  202. #menu-control {
  203. display: none;
  204. }
  205. .btn-mobile {
  206. display: none;
  207. }
  208. @media only screen and (min-device-width : 320px) and (max-device-width : 768px) {
  209. .btn-mobile {
  210. display: block;
  211. font-size: 2.0rem;
  212. color: black;
  213. cursor: pointer;
  214. margin-top: 1.5rem;
  215. }
  216. #menu-control:checked + label .btn-mobile {
  217. color: #E2DFE1;
  218. }
  219. #menu-control:checked + label ul {
  220. visibility: visible;
  221. opacity: 1;
  222. max-height: 100rem;
  223. }
  224. .navigation-item {
  225. position: relative;
  226. }
  227. .mobile-menu-lang-separator-centered {
  228. padding-left: 7rem;
  229. padding-right: 7rem;
  230. }
  231. .mobile-menu-lang-separator-full {
  232. padding-left: 1.5rem;
  233. padding-right: 1.5rem;
  234. }
  235. .multilingual-separator {
  236. display: none;
  237. }
  238. .align-left {
  239. text-align: left;
  240. padding-left: 1rem;
  241. }
  242. .align-right {
  243. text-align: right;
  244. padding-right: 1rem;
  245. }
  246. .align-center {
  247. text-align: center;
  248. }
  249. }
  250. .content {
  251. flex: 1;
  252. margin-top: 1.6rem;
  253. margin-bottom: 3.2rem;
  254. article {
  255. header {
  256. margin-top: 3.2rem;
  257. margin-bottom: 3.2rem;
  258. h1, h2 {
  259. margin: 0;
  260. }
  261. h2 {
  262. margin-top: 1.0rem;
  263. font-size: 1.8rem;
  264. color: @fg-color;
  265. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  266. font-size: 1.6rem;
  267. }
  268. }
  269. }
  270. }
  271. }
  272. .avatar img{
  273. width: 20rem;
  274. height: auto;
  275. border-radius: 50%;
  276. @media only screen and (max-device-width : 768px) {
  277. width: 10rem;
  278. }
  279. }
  280. .list {
  281. ul {
  282. margin: 3.2rem 0 3.2rem 0;
  283. list-style: none;
  284. padding: 0;
  285. li {
  286. font-size: 1.6rem;
  287. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  288. font-size: 1.4rem;
  289. margin: 1.6rem 0 1.6rem 0;
  290. }
  291. span {
  292. display: inline-block;
  293. text-align: right;
  294. width: 20.0rem;
  295. margin-right: 3.0rem;
  296. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  297. display: block;
  298. text-align: left;
  299. }
  300. }
  301. a {
  302. text-transform: uppercase;
  303. }
  304. }
  305. }
  306. }
  307. .pagination {
  308. margin-top: 6.0rem;
  309. text-align: center;
  310. li {
  311. display: inline;
  312. text-align: center;
  313. span {
  314. margin: 0;
  315. text-align: center;
  316. width: 3.2rem;
  317. }
  318. a {
  319. span {
  320. margin: 0;
  321. text-align: center;
  322. width: 3.2rem;
  323. }
  324. }
  325. }
  326. }
  327. .centered {
  328. display: flex;
  329. height: 100%;
  330. align-items: center;
  331. justify-content: center;
  332. .about {
  333. text-align: center;
  334. h1 {
  335. margin-top: 2.0rem;
  336. margin-bottom: 0.5rem;
  337. }
  338. h2 {
  339. margin-top: 1.0rem;
  340. margin-bottom: 0.5rem;
  341. font-size: 2.4rem;
  342. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  343. font-size: 2.0rem;
  344. }
  345. }
  346. ul {
  347. list-style: none;
  348. margin: 3.0rem 0 1.0rem 0;
  349. padding: 0;
  350. li {
  351. display: inline-block;
  352. position: relative;
  353. a {
  354. text-transform: uppercase;
  355. margin-left: 1.0rem;
  356. margin-right: 1.0rem;
  357. font-size: 1.6rem;
  358. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  359. font-size: 1.4rem;
  360. }
  361. }
  362. }
  363. }
  364. }
  365. .error {
  366. text-align: center;
  367. h1 {
  368. margin-top: 2.0rem;
  369. margin-bottom: 0.5rem;
  370. font-size: 4.6rem;
  371. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  372. font-size: 3.2rem;
  373. }
  374. }
  375. h2 {
  376. margin-top: 2.0rem;
  377. margin-bottom: 3.2rem;
  378. font-size: 3.2rem;
  379. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  380. font-size: 2.8rem;
  381. }
  382. }
  383. }
  384. }
  385. .footer {
  386. width: 100%;
  387. text-align: center;
  388. line-height: 2.0rem;
  389. margin-bottom:1.0rem;
  390. }
  391. .float-right {
  392. float: right;
  393. }
  394. .float-left {
  395. float: left;
  396. }