app.scss 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. @import './base/reset';
  2. @import './base/variables';
  3. @import './base/colors';
  4. @import './base/grid-flex';
  5. @import './base/layout';
  6. @import './base/fonts';
  7. @import './base/transitions';
  8. body{
  9. color: #1a1a1a;
  10. }
  11. #root{
  12. }
  13. header[role="banner"]{
  14. div.wrapper{
  15. display: grid;
  16. grid-template-columns: 1fr 1fr;
  17. }
  18. h1.site-title{
  19. grid-column: 1;
  20. margin:0;
  21. font-size: 1em;
  22. }
  23. nav#header-menu{
  24. grid-column: 2;
  25. text-align: right;
  26. >ul>li{
  27. display: inline-block;
  28. margin-right: 1em;
  29. position: relative;
  30. >ul{
  31. position: absolute;
  32. top:1em; right:0;
  33. overflow: hidden;
  34. >li{
  35. transition: height 0.3s ease-in-out;
  36. height:0.2px;
  37. }
  38. }
  39. &:hover{
  40. >ul>li{
  41. height:1em;
  42. }
  43. }
  44. }
  45. li>span,li>a{
  46. font-size: 0.9em;
  47. }
  48. }
  49. }
  50. section[role="main-content"]{
  51. #home{
  52. header{
  53. text-align: center;
  54. h1{
  55. color: $bleuroi;
  56. font-size: 8em;
  57. font-weight: 300;
  58. margin:15vh 0 0;
  59. }
  60. h2{
  61. color: $or;
  62. font-size: 2em;
  63. font-weight: 300;
  64. margin:1em 0 0;
  65. text-transform: uppercase;
  66. letter-spacing: 0.2em;
  67. sup{
  68. // line-height: 5em;
  69. vertical-align:text-top;
  70. font-size: 0.7em
  71. }
  72. }
  73. }
  74. $filet_space:8em;
  75. $decallage: 0.5em;
  76. section{
  77. padding-top: $filet_space;
  78. }
  79. div.teasers{
  80. display: flex;
  81. flex-direction: row;
  82. flex-wrap: nowrap;
  83. position: relative;
  84. padding-right: 0;
  85. article{
  86. box-sizing: border-box;
  87. flex-basis: percentage(2 / ( $default_sum - 6) );
  88. padding-right: $default_gap;
  89. }
  90. // filets decoratif
  91. &:before, &:after{
  92. z-index: 0;
  93. content: "";
  94. position: absolute;
  95. opacity: 0.4;
  96. }
  97. &:before{
  98. border:1px solid $or;
  99. width:calc(100% + #{$filet_space*2 + $decallage*2});
  100. left:- $filet_space - $default_gap/2 -$decallage;
  101. height:calc(100% + #{$filet_space});
  102. top:- $filet_space / 2;
  103. }
  104. &:after{
  105. border:1px solid $rouge;
  106. width:calc(100% + #{$filet_space*2});
  107. left:- $filet_space - $default_gap/2;
  108. height:calc(100% + #{$filet_space + $decallage*2});
  109. top:- $filet_space / 2 - $decallage;
  110. }
  111. }
  112. }
  113. #corpus, .index{
  114. >header>h1{
  115. font-family: "noto_sans";
  116. color: $rouge;
  117. font-weight: 400;
  118. }
  119. article.item{
  120. margin: 2em 0 0;
  121. header h1{
  122. font-size: 1.323em;
  123. color: $bleuroi;
  124. font-weight: 400;
  125. margin:0;
  126. }
  127. }
  128. }
  129. #corpus{
  130. }
  131. .index{
  132. }
  133. }
  134. footer[role="tools"]{
  135. $list-item-h: 5.3em;
  136. #history{
  137. z-index: 8;
  138. background-color: $or;
  139. padding:1.2em $side-padding;
  140. max-height: $list-item-h;
  141. @include accordeon-transition($list-item-h);
  142. >header{
  143. }
  144. .history-list{
  145. overflow-x: hidden;
  146. .wrapper{
  147. height:100%;
  148. // hidding the scrollbar
  149. overflow-y: auto;
  150. width:calc(100% + 1em);
  151. padding-right: 1em;
  152. >ul{
  153. padding:0;
  154. display: flex;
  155. flex-direction: row;
  156. flex-wrap: wrap;
  157. }
  158. }
  159. li.item{
  160. box-sizing: border-box;
  161. // we are only on 10 colls as 2 are occupied by sides
  162. flex-basis: percentage(2/($default_sum - 2));
  163. height: $list-item-h;
  164. overflow: hidden;
  165. padding-bottom: 1em;
  166. padding-right: $default_gap;
  167. article{
  168. max-height: 100%;
  169. overflow: hidden;
  170. }
  171. }
  172. article.history.item{
  173. header{
  174. h1{
  175. font-size: 0.882em;
  176. font-weight: normal;
  177. margin:0 0 0.5em 0;
  178. }
  179. }
  180. .extract{
  181. p{
  182. font-size: 0.882em;
  183. margin:0;
  184. }
  185. code{
  186. background-color: lighten(desaturate($rouge,20%), 20%);
  187. }
  188. }
  189. }
  190. }
  191. }
  192. #results{
  193. z-index: 9;
  194. background-color: $gris;
  195. padding:1.2em $side-padding;
  196. max-height: $list-item-h * 3;
  197. @include accordeon-transition($list-item-h * 3);
  198. >header{
  199. .search-keys{
  200. font-size: 0.756em;
  201. font-weight: 500;
  202. }
  203. .results-count{
  204. font-size: 0.756em;
  205. }
  206. }
  207. .results-list{
  208. overflow-x: hidden;
  209. .wrapper{
  210. height:100%;
  211. // hidding the scrollbar
  212. overflow-y: auto;
  213. width:calc(100% + 1em);
  214. padding-right: 1em;
  215. >ul{
  216. padding:0;
  217. display: flex;
  218. flex-direction: row;
  219. flex-wrap: wrap;
  220. }
  221. }
  222. li.result{
  223. box-sizing: border-box;
  224. // we are only on 10 colls as 2 are occupied by sides
  225. flex-basis: percentage(2/($default_sum - 2));
  226. height: $list-item-h;
  227. overflow: hidden;
  228. padding-bottom: 1em;
  229. padding-right: $default_gap;
  230. article{
  231. max-height: 100%;
  232. overflow: hidden;
  233. }
  234. }
  235. article.result.item{
  236. header{
  237. h1{
  238. font-size: 0.882em;
  239. font-weight: normal;
  240. margin:0 0 0.5em 0;
  241. }
  242. }
  243. .extract{
  244. p{
  245. font-size: 0.882em;
  246. margin:0;
  247. }
  248. code{
  249. background-color: lighten(desaturate($rouge,20%), 20%);
  250. }
  251. }
  252. }
  253. }
  254. }
  255. #footer-bottom{
  256. z-index: 10;
  257. padding:0 $side-padding;
  258. background-color: $bleuroi;
  259. &>*{
  260. // disable grid gap
  261. padding-right: 0;
  262. }
  263. #footer-tabs{
  264. ul{
  265. padding:0; margin:0;
  266. display: flex;
  267. flex-direction: column;
  268. li{
  269. flex: 1 1 auto;
  270. .wrapper{
  271. box-sizing: border-box;
  272. line-height: 0.6em;
  273. height:2em;
  274. width: calc(100% + $side-padding);
  275. margin-left:-$side-padding;
  276. padding:0.3em 0.5em 0.3em $side-padding;
  277. }
  278. &.history .wrapper{
  279. background-color: $or;
  280. }
  281. &.results .wrapper{
  282. background-color: $gris;
  283. }
  284. span{
  285. font-size: 0.693em;
  286. font-weight: 400;
  287. text-transform: uppercase;
  288. cursor: pointer;
  289. @include fade-transition;
  290. }
  291. }
  292. }
  293. }
  294. #search{
  295. color: #fff;
  296. background-color: $bleuroi;
  297. form{
  298. padding: 0.7em;
  299. label[for="keys"]{
  300. display: none;
  301. }
  302. input[type="text"]{
  303. padding:0.3em;
  304. font-size: 0.756em;
  305. line-height: 1;
  306. height:1em;
  307. border:none;
  308. border-radius: 2px;
  309. }
  310. // input[type="submit"]{
  311. // #submit-search{
  312. // border:none;
  313. //
  314. // }
  315. // }
  316. span.mdi{
  317. display: inline-block;
  318. font-size: 1.2em;
  319. line-height:1.1;
  320. vertical-align:middle;
  321. width:1.2em; height:1.2em;
  322. border-radius: 0.6em;
  323. background-color: #fff;
  324. color: $bleuroi;
  325. text-align: center;
  326. font-weight: 700;
  327. cursor: pointer;
  328. }
  329. }
  330. }
  331. }
  332. h2{
  333. margin:0;
  334. font-size: 0.756em;
  335. font-weight: 400;
  336. text-transform: uppercase;
  337. padding:0;
  338. }
  339. }
  340. // ___
  341. // |_ _|__ ___ _ _ ___
  342. // | |/ _/ _ \ ' \(_-<
  343. // |___\__\___/_||_/__/
  344. span.mdi-close{
  345. cursor: pointer;
  346. }
  347. @keyframes spin {
  348. from {
  349. transform:rotate(0deg);
  350. }
  351. to {
  352. transform:rotate(360deg);
  353. }
  354. }
  355. span.mdi-loading{
  356. animation-name: spin;
  357. animation-duration: 2000ms;
  358. animation-iteration-count: infinite;
  359. animation-timing-function: linear;
  360. }