app.scss 12 KB

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