app.scss 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  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. #text{
  134. .content{
  135. color: $bleuroi;
  136. h1{
  137. font-size: 1.512em;
  138. }
  139. p{
  140. font-size: 1.134em;
  141. line-height: 1.5;
  142. span.persName,
  143. span.placeName,
  144. span.objectName{
  145. font-weight: 600;
  146. }
  147. }
  148. }
  149. }
  150. }
  151. footer[role="tools"]{
  152. $list-item-h: 5.3em;
  153. #history{
  154. z-index: 8;
  155. background-color: $or;
  156. padding:1.2em $side-padding;
  157. max-height: $list-item-h;
  158. @include accordeon-transition($list-item-h);
  159. >header{
  160. }
  161. .history-list{
  162. overflow-x: hidden;
  163. .wrapper{
  164. height:100%;
  165. // hidding the scrollbar
  166. overflow-y: auto;
  167. width:calc(100% + 1em);
  168. padding-right: 1em;
  169. >ul{
  170. padding:0;
  171. display: flex;
  172. flex-direction: row;
  173. flex-wrap: wrap;
  174. }
  175. }
  176. li.item{
  177. box-sizing: border-box;
  178. // we are only on 10 colls as 2 are occupied by sides
  179. flex-basis: percentage(2/($default_sum - 2));
  180. height: $list-item-h;
  181. overflow: hidden;
  182. padding-bottom: 1em;
  183. padding-right: $default_gap;
  184. article{
  185. max-height: 100%;
  186. overflow: hidden;
  187. }
  188. }
  189. article.history.item{
  190. header{
  191. h1{
  192. font-size: 0.882em;
  193. font-weight: normal;
  194. margin:0 0 0.5em 0;
  195. }
  196. }
  197. .extract{
  198. p{
  199. font-size: 0.882em;
  200. margin:0;
  201. }
  202. code{
  203. background-color: lighten(desaturate($rouge,20%), 20%);
  204. }
  205. }
  206. }
  207. }
  208. }
  209. #results{
  210. z-index: 9;
  211. background-color: $gris;
  212. padding:1.2em $side-padding;
  213. max-height: $list-item-h * 3;
  214. @include accordeon-transition($list-item-h * 3);
  215. >header{
  216. .search-keys{
  217. font-size: 0.756em;
  218. font-weight: 500;
  219. }
  220. .results-count{
  221. font-size: 0.756em;
  222. }
  223. }
  224. .results-list{
  225. overflow-x: hidden;
  226. .wrapper{
  227. height:100%;
  228. // hidding the scrollbar
  229. overflow-y: auto;
  230. width:calc(100% + 1em);
  231. padding-right: 1em;
  232. >ul{
  233. padding:0;
  234. display: flex;
  235. flex-direction: row;
  236. flex-wrap: wrap;
  237. }
  238. }
  239. li.result{
  240. box-sizing: border-box;
  241. // we are only on 10 colls as 2 are occupied by sides
  242. flex-basis: percentage(2/($default_sum - 2));
  243. height: $list-item-h;
  244. overflow: hidden;
  245. padding-bottom: 1em;
  246. padding-right: $default_gap;
  247. article{
  248. max-height: 100%;
  249. overflow: hidden;
  250. }
  251. }
  252. article.result.item{
  253. header{
  254. h1{
  255. font-size: 0.882em;
  256. font-weight: normal;
  257. margin:0 0 0.5em 0;
  258. }
  259. }
  260. .extract{
  261. p{
  262. font-size: 0.882em;
  263. margin:0;
  264. }
  265. code{
  266. background-color: lighten(desaturate($rouge,20%), 20%);
  267. }
  268. }
  269. }
  270. }
  271. }
  272. #footer-bottom{
  273. z-index: 10;
  274. padding:0 $side-padding;
  275. background-color: $bleuroi;
  276. &>*{
  277. // disable grid gap
  278. padding-right: 0;
  279. }
  280. #footer-tabs{
  281. ul{
  282. padding:0; margin:0;
  283. display: flex;
  284. flex-direction: column;
  285. li{
  286. flex: 1 1 auto;
  287. .wrapper{
  288. box-sizing: border-box;
  289. line-height: 0.6em;
  290. height:2em;
  291. width: calc(100% + $side-padding);
  292. margin-left:-$side-padding;
  293. padding:0.3em 0.5em 0.3em $side-padding;
  294. }
  295. &.history .wrapper{
  296. background-color: $or;
  297. }
  298. &.results .wrapper{
  299. background-color: $gris;
  300. }
  301. span{
  302. font-size: 0.693em;
  303. font-weight: 400;
  304. text-transform: uppercase;
  305. cursor: pointer;
  306. @include fade-transition;
  307. }
  308. }
  309. }
  310. }
  311. #search{
  312. color: #fff;
  313. background-color: $bleuroi;
  314. form{
  315. padding: 0.7em;
  316. label[for="keys"]{
  317. display: none;
  318. }
  319. input[type="text"]{
  320. padding:0.3em;
  321. font-size: 0.756em;
  322. line-height: 1;
  323. height:1em;
  324. border:none;
  325. border-radius: 2px;
  326. }
  327. // input[type="submit"]{
  328. // #submit-search{
  329. // border:none;
  330. //
  331. // }
  332. // }
  333. span.mdi{
  334. display: inline-block;
  335. font-size: 1.2em;
  336. line-height:1.1;
  337. vertical-align:middle;
  338. width:1.2em; height:1.2em;
  339. border-radius: 0.6em;
  340. background-color: #fff;
  341. color: $bleuroi;
  342. text-align: center;
  343. font-weight: 700;
  344. cursor: pointer;
  345. }
  346. }
  347. }
  348. }
  349. h2{
  350. margin:0;
  351. font-size: 0.756em;
  352. font-weight: 400;
  353. text-transform: uppercase;
  354. padding:0;
  355. }
  356. }
  357. // ___
  358. // |_ _|__ ___ _ _ ___
  359. // | |/ _/ _ \ ' \(_-<
  360. // |___\__\___/_||_/__/
  361. span.mdi-close{
  362. cursor: pointer;
  363. }
  364. @keyframes spin {
  365. from {
  366. transform:rotate(0deg);
  367. }
  368. to {
  369. transform:rotate(360deg);
  370. }
  371. }
  372. span.mdi-loading{
  373. animation-name: spin;
  374. animation-duration: 2000ms;
  375. animation-iteration-count: infinite;
  376. animation-timing-function: linear;
  377. }