app.scss 12 KB

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