app.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  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. .red{
  14. background-color: red;
  15. color:white;
  16. }
  17. header[role="banner"]{
  18. div.wrapper{
  19. display: grid;
  20. grid-template-columns: 1fr 1fr;
  21. }
  22. h1.site-title{
  23. grid-column: 1;
  24. margin:0;
  25. font-size: 1em;
  26. }
  27. nav#header-menu{
  28. grid-column: 2;
  29. text-align: right;
  30. >ul>li{
  31. display: inline-block;
  32. margin-right: 1em;
  33. position: relative;
  34. >ul{
  35. position: absolute;
  36. top:1em; right:0;
  37. overflow: hidden;
  38. >li{
  39. transition: height 0.3s ease-in-out;
  40. height:0.2px;
  41. }
  42. }
  43. &:hover{
  44. >ul>li{
  45. height:1em;
  46. }
  47. }
  48. }
  49. li>span,li>a{
  50. font-size: 0.9em;
  51. color: $bleuroi;
  52. text-transform: uppercase;
  53. }
  54. }
  55. }
  56. section[role="main-content"]{
  57. #home{
  58. header{
  59. text-align: center;
  60. h1{
  61. color: $bleuroi;
  62. font-size: 8em;
  63. font-weight: 300;
  64. margin:15vh 0 0;
  65. }
  66. h2{
  67. color: $or;
  68. font-size: 2em;
  69. font-weight: 300;
  70. margin:1em 0 0;
  71. text-transform: uppercase;
  72. letter-spacing: 0.2em;
  73. sup{
  74. // line-height: 5em;
  75. vertical-align:text-top;
  76. font-size: 0.7em
  77. }
  78. }
  79. }
  80. $filet_space:8em;
  81. $decallage: 0.5em;
  82. section{
  83. padding-top: $filet_space;
  84. }
  85. div.teasers{
  86. display: flex;
  87. flex-direction: row;
  88. flex-wrap: nowrap;
  89. position: relative;
  90. padding-right: 0;
  91. article{
  92. box-sizing: border-box;
  93. flex-basis: percentage(2 / ( $default_sum - 6) );
  94. padding-right: $default_gap;
  95. @include fontsans;
  96. h1{
  97. color: $bleuroi;
  98. }
  99. p{
  100. font-size: 0.882em;
  101. line-height: 1.2;
  102. }
  103. span{
  104. color:$rouge;
  105. font-size:0.693em;
  106. }
  107. }
  108. // filets decoratif
  109. &:before, &:after{
  110. z-index: 0;
  111. content: "";
  112. position: absolute;
  113. opacity: 0.4;
  114. }
  115. &:before{
  116. border:1px solid $or;
  117. width:calc(100% + #{$filet_space*2 + $decallage*2});
  118. left:- $filet_space - $default_gap/2 -$decallage;
  119. height:calc(100% + #{$filet_space});
  120. top:- $filet_space / 2;
  121. }
  122. &:after{
  123. border:1px solid $rouge;
  124. width:calc(100% + #{$filet_space*2});
  125. left:- $filet_space - $default_gap/2;
  126. height:calc(100% + #{$filet_space + $decallage*2});
  127. top:- $filet_space / 2 - $decallage;
  128. }
  129. }
  130. }
  131. #list-corpus, .index{
  132. >header>h1{
  133. font-family: "noto_sans";
  134. color: $rouge;
  135. font-weight: 400;
  136. }
  137. article.item{
  138. margin: 2em 0 0;
  139. header h1{
  140. font-size: 1.512em;
  141. color: $bleuroi;
  142. font-weight: 400;
  143. margin:0;
  144. }
  145. }
  146. ul.item-list{
  147. li{
  148. margin: 0 0 2em 0;
  149. header{
  150. h2{
  151. margin:0.4em 0;
  152. font-size: 1.512em;
  153. color: $bleuroi;
  154. font-weight: 400;
  155. }
  156. h3{
  157. margin:0.2em 0;
  158. @include fontsans;
  159. font-size: 0.753em;
  160. font-weight: 500;
  161. }
  162. h4{
  163. margin:0.1em 0;
  164. font-weight: 300;
  165. @include fontsans;
  166. font-size: 0.753em;
  167. &.editions-quantity{
  168. color: $rouge;
  169. &:after{
  170. content: ">>";
  171. margin:0 0 0 0.5em;
  172. }
  173. }
  174. }
  175. section.editions{
  176. div.editions{
  177. ol{
  178. padding:0;
  179. li{
  180. margin:0.7em 1em;
  181. }
  182. }
  183. }
  184. }
  185. }
  186. ul {
  187. li{
  188. margin:0;
  189. h3{
  190. margin: 0.5em 0;
  191. font-weight: 400;
  192. font-size: 1em;
  193. }
  194. }
  195. }
  196. }
  197. }
  198. }
  199. #corpus{
  200. }
  201. .index{
  202. }
  203. #edition-toc{
  204. ul{
  205. li{
  206. ul{
  207. // padding-left: 1em;
  208. border-left: 1px dotted $or;
  209. // min-height: 1em;
  210. margin-bottom: 0.5em;
  211. li{
  212. // min-height: 1em;
  213. // border-left: 1px solid red;
  214. padding:0 0 0.2em 1em;
  215. }
  216. }
  217. }
  218. }
  219. .toc-title{
  220. color: $bleuroi;
  221. font-weight: 400;
  222. margin:0;
  223. }
  224. h2.toc-title{font-size: 1.3em;}
  225. h3.toc-title{font-size: 1.2em;}
  226. h4.toc-title{font-size: 1.1em;}
  227. h5.toc-title{font-size: 1.0em;}
  228. h6.toc-title{font-size: 0.9em;}
  229. span.placeName,
  230. span.objectName,
  231. span.persName{
  232. font-weight: 600;
  233. }
  234. }
  235. #text{
  236. .content{
  237. color: $bleuroi;
  238. h1{
  239. font-size: 1.512em;
  240. }
  241. p{
  242. font-size: 1.134em;
  243. line-height: 1.5;
  244. span.persName,
  245. span.placeName,
  246. span.objectName{
  247. font-weight: 600;
  248. }
  249. }
  250. }
  251. }
  252. }
  253. footer[role="tools"]{
  254. $list-item-h: 5.3em;
  255. #history{
  256. z-index: 8;
  257. background-color: $or;
  258. padding:1.2em $side-padding;
  259. max-height: $list-item-h;
  260. @include accordeon-transition($list-item-h);
  261. >header{
  262. }
  263. .history-list{
  264. overflow-x: hidden;
  265. .wrapper{
  266. height:100%;
  267. // hidding the scrollbar
  268. overflow-y: auto;
  269. width:calc(100% + 1em);
  270. padding-right: 1em;
  271. >ul{
  272. padding:0;
  273. display: flex;
  274. flex-direction: row;
  275. flex-wrap: wrap;
  276. }
  277. }
  278. li.item{
  279. box-sizing: border-box;
  280. // we are only on 10 colls as 2 are occupied by sides
  281. flex-basis: percentage(2/($default_sum - 2));
  282. height: $list-item-h;
  283. overflow: hidden;
  284. padding-bottom: 1em;
  285. padding-right: $default_gap;
  286. article{
  287. max-height: 100%;
  288. overflow: hidden;
  289. }
  290. }
  291. article.history.item{
  292. header{
  293. h1{
  294. font-size: 0.882em;
  295. font-weight: normal;
  296. margin:0 0 0.5em 0;
  297. }
  298. }
  299. .extract{
  300. p{
  301. font-size: 0.882em;
  302. margin:0;
  303. }
  304. code{
  305. background-color: lighten(desaturate($rouge,20%), 20%);
  306. }
  307. }
  308. }
  309. }
  310. }
  311. #results{
  312. z-index: 9;
  313. background-color: $gris;
  314. padding:1.2em $side-padding;
  315. max-height: $list-item-h * 3;
  316. @include accordeon-transition($list-item-h * 3);
  317. >header{
  318. .search-keys{
  319. font-size: 0.756em;
  320. font-weight: 500;
  321. }
  322. .results-count{
  323. font-size: 0.756em;
  324. }
  325. }
  326. .results-list{
  327. overflow-x: hidden;
  328. .wrapper{
  329. height:100%;
  330. // hidding the scrollbar
  331. overflow-y: auto;
  332. width:calc(100% + 1em);
  333. padding-right: 1em;
  334. >ul{
  335. padding:0;
  336. display: flex;
  337. flex-direction: row;
  338. flex-wrap: wrap;
  339. }
  340. }
  341. li.result{
  342. box-sizing: border-box;
  343. // we are only on 10 colls as 2 are occupied by sides
  344. flex-basis: percentage(2/($default_sum - 2));
  345. height: $list-item-h;
  346. overflow: hidden;
  347. padding-bottom: 1em;
  348. padding-right: $default_gap;
  349. article{
  350. max-height: 100%;
  351. overflow: hidden;
  352. }
  353. }
  354. article.result.item{
  355. header{
  356. h1{
  357. font-size: 0.882em;
  358. font-weight: normal;
  359. margin:0 0 0.5em 0;
  360. }
  361. }
  362. .extract{
  363. p{
  364. font-size: 0.882em;
  365. margin:0;
  366. }
  367. code{
  368. background-color: lighten(desaturate($rouge,20%), 20%);
  369. }
  370. }
  371. }
  372. }
  373. }
  374. #footer-bottom{
  375. z-index: 10;
  376. padding:0 $side-padding;
  377. background-color: $bleuroi;
  378. &>*{
  379. // disable grid gap
  380. padding-right: 0;
  381. }
  382. #footer-tabs{
  383. ul{
  384. padding:0; margin:0;
  385. display: flex;
  386. flex-direction: column;
  387. li{
  388. flex: 1 1 auto;
  389. .wrapper{
  390. box-sizing: border-box;
  391. line-height: 0.6em;
  392. height:2em;
  393. width: calc(100% + $side-padding);
  394. margin-left:-$side-padding;
  395. padding:0.3em 0.5em 0.3em $side-padding;
  396. }
  397. &.history .wrapper{
  398. background-color: $or;
  399. }
  400. &.results .wrapper{
  401. background-color: $gris;
  402. }
  403. span{
  404. font-size: 0.693em;
  405. font-weight: 400;
  406. text-transform: uppercase;
  407. cursor: pointer;
  408. @include fade-transition;
  409. }
  410. }
  411. }
  412. }
  413. #search{
  414. color: #fff;
  415. background-color: $bleuroi;
  416. form{
  417. padding: 0.7em;
  418. label[for="keys"]{
  419. display: none;
  420. }
  421. input[type="text"]{
  422. padding:0.3em;
  423. font-size: 0.756em;
  424. line-height: 1;
  425. height:1em;
  426. border:none;
  427. border-radius: 2px;
  428. }
  429. // input[type="submit"]{
  430. // #submit-search{
  431. // border:none;
  432. //
  433. // }
  434. // }
  435. span.mdi{
  436. display: inline-block;
  437. font-size: 1.2em;
  438. line-height:1.1;
  439. vertical-align:middle;
  440. width:1.2em; height:1.2em;
  441. border-radius: 0.6em;
  442. background-color: #fff;
  443. color: $bleuroi;
  444. text-align: center;
  445. font-weight: 700;
  446. cursor: pointer;
  447. }
  448. }
  449. }
  450. }
  451. h2{
  452. margin:0;
  453. font-size: 0.756em;
  454. font-weight: 400;
  455. text-transform: uppercase;
  456. padding:0;
  457. }
  458. }
  459. // ___
  460. // |_ _|__ ___ _ _ ___
  461. // | |/ _/ _ \ ' \(_-<
  462. // |___\__\___/_||_/__/
  463. span.mdi-close{
  464. cursor: pointer;
  465. }
  466. @keyframes spin {
  467. from {
  468. transform:rotate(0deg);
  469. }
  470. to {
  471. transform:rotate(360deg);
  472. }
  473. }
  474. span.mdi-loading{
  475. animation-name: spin;
  476. animation-duration: 2000ms;
  477. animation-iteration-count: infinite;
  478. animation-timing-function: linear;
  479. }