app.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  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 0.2em;
  152. @include title1blue;
  153. }
  154. h3{
  155. margin:0.2em 0;
  156. @include fontsans;
  157. font-size: 0.756em;
  158. font-weight: 500;
  159. }
  160. margin-bottom: 0.3em;
  161. }
  162. section.editions{
  163. div.editions{
  164. ol{
  165. padding:0;
  166. li{
  167. margin:0.7em 1em;
  168. }
  169. }
  170. }
  171. }
  172. h4{
  173. margin:0.1em 0;
  174. font-weight: 300;
  175. @include fontsans;
  176. font-size: 0.756em;
  177. &.texts-quantity{
  178. color: $rouge;
  179. // &:after{
  180. // content: ">>";
  181. // margin:0 0 0 0.5em;
  182. // }
  183. }
  184. }
  185. ul {
  186. li{
  187. margin:0 0 0 1em;
  188. h3{
  189. margin: 0.5em 0;
  190. font-weight: 400;
  191. font-size: 1em;
  192. }
  193. }
  194. }
  195. }
  196. }
  197. }
  198. #corpus{
  199. }
  200. .index{
  201. }
  202. #edition-toc{
  203. max-height: 100%;
  204. >header,
  205. >section,
  206. >nav{
  207. max-height: 100%;
  208. padding-top:1em;
  209. padding-bottom:1em;
  210. }
  211. >section,
  212. >nav{
  213. overflow-x: hidden;
  214. overflow-y: auto;
  215. }
  216. header{
  217. h1{
  218. @include title2black;
  219. }
  220. }
  221. >section{
  222. div#text{
  223. // >h1{
  224. // @include title1blue;
  225. // }
  226. div.tei{
  227. // >h1{display: none;}
  228. >h1{@include title1blue;}
  229. span.placeName,
  230. span.objectName,
  231. span.persName{
  232. font-weight: 600;
  233. }
  234. }
  235. }
  236. }
  237. >nav{
  238. >section{
  239. padding:0 0 0 1.5em;
  240. >ul{
  241. ul{
  242. li{
  243. ul{
  244. overflow: hidden;
  245. max-height: 1000px;
  246. transition: max-height 0.5s ease-in-out;
  247. // transform: scaleY(1);
  248. // transform-origin: top;
  249. // transition: transform 0.3s ease-in-out;
  250. &:not(.opened){
  251. // height:0;
  252. max-height:0;
  253. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  254. // transform: scaleY(0);
  255. }
  256. // &.opened{
  257. // border: 1px solid red;
  258. // }
  259. // padding-left: 1em;
  260. border-left: 0.5px solid $grisclair;
  261. // min-height: 1em;
  262. margin-bottom: 0em;
  263. li{
  264. // min-height: 1em;
  265. // border-left: 1px solid red;
  266. padding:0 0 0.2em 1em;
  267. }
  268. }
  269. }
  270. }
  271. .toc-title{
  272. color: $gris;
  273. font-weight: 400;
  274. margin:0;
  275. &.active,
  276. &:hover{
  277. color:$grisfonce;
  278. }
  279. }
  280. h2.toc-title{font-size: 0.882em;}
  281. h3.toc-title{font-size: 0.882em;}
  282. h4.toc-title{font-size: 0.882em;}
  283. h5.toc-title{font-size: 0.882em;}
  284. h6.toc-title{font-size: 0.882em;}
  285. }
  286. }
  287. }
  288. }
  289. #text{
  290. .content{
  291. color: $bleuroi;
  292. h1{
  293. font-size: 1.512em;
  294. }
  295. p{
  296. font-size: 1.134em;
  297. line-height: 1.5;
  298. span.persName,
  299. span.placeName,
  300. span.objectName{
  301. font-weight: 600;
  302. }
  303. }
  304. }
  305. }
  306. }
  307. footer[role="tools"]{
  308. $list-item-h: 5.3em;
  309. #history{
  310. z-index: 8;
  311. background-color: $or;
  312. padding:1.2em $side-padding;
  313. max-height: $list-item-h;
  314. @include accordeon-transition($list-item-h);
  315. >header{
  316. }
  317. .history-list{
  318. overflow-x: hidden;
  319. .wrapper{
  320. height:100%;
  321. // hidding the scrollbar
  322. overflow-y: auto;
  323. width:calc(100% + 1em);
  324. padding-right: 1em;
  325. >ul{
  326. padding:0;
  327. display: flex;
  328. flex-direction: row;
  329. flex-wrap: wrap;
  330. }
  331. }
  332. li.item{
  333. box-sizing: border-box;
  334. // we are only on 10 colls as 2 are occupied by sides
  335. flex-basis: percentage(2/($default_sum - 2));
  336. height: $list-item-h;
  337. overflow: hidden;
  338. padding-bottom: 1em;
  339. padding-right: $default_gap;
  340. article{
  341. max-height: 100%;
  342. overflow: hidden;
  343. }
  344. }
  345. article.history.item{
  346. header{
  347. h1{
  348. font-size: 0.882em;
  349. font-weight: normal;
  350. margin:0 0 0.5em 0;
  351. }
  352. }
  353. .extract{
  354. p{
  355. font-size: 0.882em;
  356. margin:0;
  357. }
  358. code{
  359. background-color: lighten(desaturate($rouge,20%), 20%);
  360. }
  361. }
  362. }
  363. }
  364. }
  365. #results{
  366. z-index: 9;
  367. background-color: $gris;
  368. padding:1.2em $side-padding;
  369. max-height: $list-item-h * 3;
  370. @include accordeon-transition($list-item-h * 3);
  371. >header{
  372. .search-keys{
  373. font-size: 0.756em;
  374. font-weight: 500;
  375. }
  376. .results-count{
  377. font-size: 0.756em;
  378. }
  379. }
  380. .results-list{
  381. overflow-x: hidden;
  382. .wrapper{
  383. height:100%;
  384. // hidding the scrollbar
  385. overflow-y: auto;
  386. width:calc(100% + 1em);
  387. padding-right: 1em;
  388. >ul{
  389. padding:0;
  390. display: flex;
  391. flex-direction: row;
  392. flex-wrap: wrap;
  393. }
  394. }
  395. li.result{
  396. box-sizing: border-box;
  397. // we are only on 10 colls as 2 are occupied by sides
  398. flex-basis: percentage(2/($default_sum - 2));
  399. height: $list-item-h;
  400. overflow: hidden;
  401. padding-bottom: 1em;
  402. padding-right: $default_gap;
  403. article{
  404. max-height: 100%;
  405. overflow: hidden;
  406. }
  407. }
  408. article.result.item{
  409. header{
  410. h1{
  411. font-size: 0.882em;
  412. font-weight: normal;
  413. margin:0 0 0.5em 0;
  414. }
  415. }
  416. .extract{
  417. p{
  418. font-size: 0.882em;
  419. margin:0;
  420. }
  421. code{
  422. background-color: lighten(desaturate($rouge,20%), 20%);
  423. }
  424. }
  425. }
  426. }
  427. }
  428. #footer-bottom{
  429. z-index: 10;
  430. padding:0 $side-padding;
  431. background-color: $bleuroi;
  432. &>*{
  433. // disable grid gap
  434. padding-right: 0;
  435. }
  436. #footer-tabs{
  437. ul{
  438. padding:0; margin:0;
  439. display: flex;
  440. flex-direction: column;
  441. li{
  442. flex: 1 1 auto;
  443. .wrapper{
  444. box-sizing: border-box;
  445. line-height: 0.6em;
  446. height:2em;
  447. width: calc(100% + $side-padding);
  448. margin-left:-$side-padding;
  449. padding:0.3em 0.5em 0.3em $side-padding;
  450. }
  451. &.history .wrapper{
  452. background-color: $or;
  453. }
  454. &.results .wrapper{
  455. background-color: $gris;
  456. }
  457. span{
  458. font-size: 0.693em;
  459. font-weight: 400;
  460. text-transform: uppercase;
  461. cursor: pointer;
  462. @include fade-transition;
  463. }
  464. }
  465. }
  466. }
  467. #search{
  468. color: #fff;
  469. background-color: $bleuroi;
  470. form{
  471. padding: 0.7em;
  472. label[for="keys"]{
  473. display: none;
  474. }
  475. input[type="text"]{
  476. padding:0.3em;
  477. font-size: 0.756em;
  478. line-height: 1;
  479. height:1em;
  480. border:none;
  481. border-radius: 2px;
  482. }
  483. // input[type="submit"]{
  484. // #submit-search{
  485. // border:none;
  486. //
  487. // }
  488. // }
  489. span.mdi{
  490. display: inline-block;
  491. font-size: 1.2em;
  492. line-height:1.1;
  493. vertical-align:middle;
  494. width:1.2em; height:1.2em;
  495. border-radius: 0.6em;
  496. background-color: #fff;
  497. color: $bleuroi;
  498. text-align: center;
  499. font-weight: 700;
  500. cursor: pointer;
  501. }
  502. }
  503. }
  504. }
  505. h2{
  506. margin:0;
  507. font-size: 0.756em;
  508. font-weight: 400;
  509. text-transform: uppercase;
  510. padding:0;
  511. }
  512. }
  513. // ___
  514. // |_ _|__ ___ _ _ ___
  515. // | |/ _/ _ \ ' \(_-<
  516. // |___\__\___/_||_/__/
  517. span.mdi-close{
  518. cursor: pointer;
  519. }
  520. @keyframes spin {
  521. from {
  522. transform:rotate(0deg);
  523. }
  524. to {
  525. transform:rotate(360deg);
  526. }
  527. }
  528. span.mdi-loading{
  529. animation-name: spin;
  530. animation-duration: 2000ms;
  531. animation-iteration-count: infinite;
  532. animation-timing-function: linear;
  533. }