app.scss 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314
  1. @import './base/reset';
  2. @import './base/variables';
  3. @import './base/colors';
  4. @import './base/grid-flex';
  5. @import './base/transitions';
  6. @import './base/layout';
  7. @import './base/fonts';
  8. /* The emerging W3C standard
  9. that is currently Firefox-only */
  10. * {
  11. scrollbar-width: thin;
  12. scrollbar-color: $grisclair rgba(255,255,255,0);
  13. }
  14. /* Works on Chrome/Edge/Safari */
  15. *::-webkit-scrollbar {
  16. width: 12px;
  17. }
  18. *::-webkit-scrollbar-track {
  19. background: rgba(255,255,255,0);
  20. }
  21. *::-webkit-scrollbar-thumb {
  22. background-color: $grisclair;
  23. border-radius: 20px;
  24. border: none;
  25. }
  26. body{
  27. color: #1a1a1a;
  28. // background-image: url('/static/img/grille-ligne-de-base.png');
  29. // background-repeat: repeat;
  30. }
  31. #root{
  32. }
  33. .red{
  34. background-color: red;
  35. color:white;
  36. }
  37. header[role="banner"]{
  38. div.wrapper{
  39. display: grid;
  40. grid-template-columns: 1fr 1fr;
  41. }
  42. h1.site-title{
  43. grid-column: 1;
  44. margin:0;
  45. font-size: 1em;
  46. }
  47. nav#header-menu{
  48. grid-column: 2;
  49. text-align: right;
  50. >ul>li{
  51. display: inline-block;
  52. margin-right: 1em;
  53. position: relative;
  54. >ul{
  55. position: absolute;
  56. top:1em; right:-1em;
  57. overflow: hidden;
  58. padding-bottom: 0.5em;
  59. background-color: white;
  60. >li{
  61. padding:0 1em;
  62. // margin-right: -1em;
  63. transition: height 0.3s ease-in-out;
  64. height:0;
  65. overflow: hidden;
  66. }
  67. }
  68. //
  69. // &:focus-within
  70. // &:hover,
  71. &.opened{
  72. >ul>li{
  73. height:1em;
  74. }
  75. }
  76. &.has-submenu{
  77. cursor: pointer;
  78. }
  79. }
  80. li>span,li>a{
  81. font-size: 0.9em;
  82. color: $bleuroi;
  83. text-transform: uppercase;
  84. }
  85. }
  86. }
  87. section[role="main-content"]{
  88. #home{
  89. header{
  90. text-align: center;
  91. h1{
  92. color: $bleuroi;
  93. font-size: 8em;
  94. font-weight: 300;
  95. margin:15vh 0 0;
  96. }
  97. h2{
  98. color: $or;
  99. font-size: 2em;
  100. font-weight: 300;
  101. margin:1em 0 0;
  102. text-transform: uppercase;
  103. letter-spacing: 0.2em;
  104. sup{
  105. // line-height: 5em;
  106. vertical-align:text-top;
  107. font-size: 0.7em
  108. }
  109. }
  110. }
  111. // $filet_space:8em;
  112. // $decallage: 0.5em;
  113. section{
  114. padding-top: 8em;
  115. }
  116. @mixin teasersfilet($filet_space, $decallage){
  117. &:before, &:after{
  118. z-index: 0;
  119. content: "";
  120. position: absolute;
  121. opacity: 0.4;
  122. }
  123. &:before{
  124. border:1px solid $or;
  125. width:calc(100% + #{$filet_space*2 + $decallage*2});
  126. left:- $filet_space - $default_gap/2 -$decallage;
  127. height:calc(100% + #{$filet_space});
  128. top:- $filet_space / 2;
  129. }
  130. &:after{
  131. border:1px solid $rouge;
  132. width:calc(100% + #{$filet_space*2});
  133. left:- $filet_space - $default_gap/2;
  134. height:calc(100% + #{$filet_space + $decallage*2});
  135. top:- $filet_space / 2 - $decallage;
  136. }
  137. }
  138. div.teasers{
  139. display: flex;
  140. flex-direction: row;
  141. flex-wrap: nowrap;
  142. position: relative;
  143. padding-right: 0;
  144. article{
  145. box-sizing: border-box;
  146. flex-basis: percentage(2 / ( $default_sum - 6) );
  147. padding-right: $default_gap;
  148. @include fontsans;
  149. h1{
  150. color: $bleuroi;
  151. }
  152. p{
  153. font-size: 0.882em;
  154. line-height: 1.2;
  155. }
  156. span{
  157. color:$rouge;
  158. font-size:0.693em;
  159. }
  160. }
  161. // filets decoratif
  162. @include teasersfilet(8em, 0.5em);
  163. }
  164. // responsive
  165. @media only screen and (max-width: $small-bp) {
  166. header{
  167. h1{
  168. font-size: 5em;
  169. margin:7vh 0 0;
  170. }
  171. h2{
  172. font-size: 1em;
  173. }
  174. }
  175. section{
  176. padding-top: 4em;
  177. }
  178. div.teasers{
  179. flex-direction: column;
  180. // filets decoratif
  181. @include teasersfilet(4em, 0.5em);
  182. }
  183. }
  184. }
  185. #list-corpus, .index{
  186. >header>h1{
  187. font-family: "noto_sans";
  188. color: $rouge;
  189. font-weight: 400;
  190. }
  191. article.item{
  192. margin: 2em 0 0;
  193. header h1{
  194. font-size: 1.512em;
  195. color: $bleuroi;
  196. font-weight: 400;
  197. margin:0;
  198. }
  199. }
  200. ul.item-list{
  201. li{
  202. margin: 0 0 2em 0;
  203. header{
  204. h2{
  205. @include title1blue;
  206. margin:0.4em 0 0.2em;
  207. }
  208. h3{
  209. margin:0.2em 0;
  210. @include fontsans;
  211. font-size: 0.756em;
  212. font-weight: 500;
  213. }
  214. margin-bottom: 0.3em;
  215. }
  216. h4{
  217. margin:0.1em 0;
  218. font-weight: 300;
  219. @include fontsans;
  220. font-size: 0.756em;
  221. &.texts-quantity{
  222. color: $rouge;
  223. margin: 0.3em 0 0;
  224. }
  225. }
  226. section.editions{
  227. div.editions{
  228. ol{
  229. padding:0;
  230. li{
  231. margin:0.7em 1em;
  232. }
  233. }
  234. }
  235. }
  236. section.texts{
  237. ul.texts-list{
  238. padding: 0 0 0 1em;
  239. li{
  240. margin: 0;
  241. }
  242. h3{
  243. @include title2black;
  244. margin: 0.7em 0 0.3em;
  245. }
  246. p{
  247. font-weight: 300;
  248. @include fontsans;
  249. font-size: 0.756em;
  250. margin: 0;
  251. }
  252. }
  253. }
  254. ul {
  255. li{
  256. margin:0 0 0 1em;
  257. h3{
  258. margin: 0.5em 0;
  259. font-weight: 400;
  260. font-size: 1em;
  261. }
  262. }
  263. }
  264. }
  265. }
  266. }
  267. #corpus{
  268. }
  269. .index{
  270. }
  271. .index-item{
  272. header{
  273. h1{
  274. @include title1black;
  275. margin:0 0 0.3em;
  276. }
  277. p{
  278. margin: 0 0 0.5em 0;
  279. }
  280. h3{
  281. @include title2black
  282. margin:0;
  283. }
  284. .authors{
  285. a{
  286. @include title2black;
  287. color: $bleuroi;
  288. }
  289. margin:0 0 0.3em;
  290. }
  291. .mdi{
  292. color: $bleuroilight;
  293. font-size: 0.7em;
  294. }
  295. .attested-forms{
  296. ul{
  297. // >li{
  298. // margin: 0 0 1em 0;
  299. // li{
  300. // margin: 0 0 0.5em 0;
  301. // }
  302. // }
  303. }
  304. a{
  305. @include title4grey;
  306. color: $grisfonce;
  307. font-weight: 400;
  308. }
  309. }
  310. }
  311. .tabs{
  312. border-bottom: 1px solid $bleuroilight;
  313. margin-bottom: $base-line / 2;
  314. .tab{
  315. cursor: pointer;
  316. border-radius: 5px 5px 0 0;
  317. z-index: 10;
  318. display: inline-block;
  319. margin-bottom: -2px;
  320. padding: 0.3em 0.5em;
  321. border: 1px solid $bleuroilight;
  322. &.active{
  323. border-bottom: 2px solid white;
  324. }
  325. }
  326. }
  327. .occurences{
  328. >ul{
  329. >li{
  330. padding:0 0 $base-line / 2 0;
  331. h3{
  332. @include title2black;
  333. padding:0 0 $base-line / 2 0;
  334. color: $bleuroi;
  335. }
  336. >ul{
  337. >li{
  338. // padding:0 0 0.5em 0;
  339. section{
  340. h4{
  341. @include title3black;
  342. display: inline-block;
  343. a{
  344. span.form{
  345. font-style: italic;
  346. }
  347. }
  348. }
  349. // ? c'est quoi ça ?
  350. // span.open-close{
  351. // cursor: pointer;
  352. // display: inline-block;
  353. // svg{
  354. // transform: rotate(-90deg) scale(0.8);
  355. // transition: transform 0.3s ease-in-out;
  356. // path{
  357. // fill:$bleuroi;
  358. // }
  359. // }
  360. // }
  361. // div.text{
  362. // max-height: 0;
  363. // transition: max-height 0.3s ease-in-out;
  364. // overflow: hidden;
  365. // box-sizing: content-box;
  366. // p, h1, h2, h3, h4, h5, h6{
  367. // margin: 0.5em 0 0 0;
  368. // }
  369. // }
  370. // a.lire-plus{
  371. // color: $bleuroi;
  372. // opacity: 0;
  373. // display: inline-block;
  374. // height: 0;
  375. // overflow: hidden;
  376. // transition: height, opacity 0.3s ease-in-out;
  377. // }
  378. // &.opened{
  379. // span.open-close{
  380. // cursor: pointer;
  381. // display: inline-block;
  382. // svg{
  383. // transform: scale(0.8) rotate(0);
  384. // }
  385. // }
  386. // div.text{
  387. // max-height:100px;
  388. // }
  389. // a.lire-plus{
  390. // opacity: 1;
  391. // height:1em;
  392. // }
  393. // }
  394. }
  395. }
  396. }
  397. }
  398. }
  399. }
  400. .attested-forms-occurences{
  401. ul{
  402. >li{
  403. margin: 0 0 1em 0;
  404. h3{
  405. @include title2black;
  406. padding:0 0 $base-line / 2 0;
  407. }
  408. li{
  409. margin: 0 0 0.5em 0;
  410. h4{
  411. @include title3black;
  412. display: inline-block;
  413. a{
  414. span.edition{
  415. font-style: italic;
  416. }
  417. }
  418. }
  419. }
  420. }
  421. }
  422. a{
  423. @include title4grey;
  424. color: $grisfonce;
  425. font-weight: 400;
  426. }
  427. }
  428. nav{
  429. h3{
  430. @include title2black;
  431. margin:0 0 0.5em;
  432. }
  433. h4{
  434. @include title3black;
  435. margin:0 0 0.5em;
  436. color: $bleuroi;
  437. }
  438. }
  439. }
  440. #edition{
  441. >header{
  442. position: relative;
  443. h1{
  444. @include title1black;
  445. }
  446. aside.index-tooltip{
  447. z-index:10;
  448. margin-top: -1.75em;
  449. position:absolute;
  450. text-align: right;
  451. right: 2em;
  452. h1 {
  453. @include title2black;
  454. margin:0 0 0.5em 0;
  455. }
  456. p{
  457. margin:0 0 0.5em 0;
  458. }
  459. time{
  460. font-weight: 600;
  461. }
  462. @media only screen and (max-width: $small-bp) {
  463. background-color: #fff;
  464. padding: 1em;
  465. box-shadow: 0 0 10px $gris;
  466. *{
  467. pointer-events: none;
  468. }
  469. }
  470. }
  471. }
  472. $pagenum_w:1em;
  473. >section{
  474. padding-right: 0;
  475. >.wrapper{
  476. padding-right: $pagenum_w*3;
  477. // outline: orange solid thin;
  478. }
  479. div#text{
  480. // .infinite-loading-container{
  481. // height:0;
  482. // overflow: hidden;
  483. // }
  484. .text-wrapper{
  485. // padding-left: 1em;
  486. position: relative;
  487. }
  488. .textrefcopylink{
  489. display: block;
  490. position: absolute;
  491. z-index: 99;
  492. span.mdi-open-in-new {
  493. position: relative;
  494. z-index: 10;
  495. margin-left: 1px;
  496. }
  497. .popup{
  498. position: absolute;
  499. top:0;
  500. left: 1px;
  501. // width: 15em;
  502. background-color: #fff;
  503. border-radius: 3px;
  504. padding: 1em 1em 1em 1.5em;
  505. box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  506. display: none;
  507. opacity: 0.1;
  508. // outline: 1px solid blue;
  509. transition: opacity 2s ease-in-out;
  510. button.copy-btn{
  511. display: block;
  512. padding: 0.5em 0.2em;
  513. @include fontcaption;
  514. white-space: nowrap;
  515. border: none;
  516. background: none;
  517. cursor: pointer;
  518. }
  519. }
  520. &:hover .popup{
  521. display: block;
  522. opacity: 1;
  523. transition: opacity 2s ease-in-out;
  524. }
  525. }
  526. div.tei{
  527. position: relative;
  528. width: calc(100% - #{$pagenum_w});
  529. // DEBUG
  530. color:chartreuse;
  531. &>*{ color: #1A1A1A;}
  532. // @media only screen and (min-width: $small-bp + 1) {
  533. padding-right: $pagenum_w;
  534. border-left: 1px dotted $grisclair;
  535. padding-left: 1em;
  536. margin-left:1.2em;
  537. overflow: visible;
  538. &.active{
  539. border-left: 1px dotted $bleuroi;
  540. }
  541. // }
  542. >h1{
  543. @include teititle1blue;
  544. }
  545. span.placeName,
  546. span.objectName,
  547. span.persName{
  548. font-weight: 600;
  549. }
  550. h1{ font-size: 1.512em;
  551. line-height: $base-line; }
  552. p{
  553. margin-top: 0;
  554. font-size: 1.134em;
  555. line-height: $base-line;
  556. margin-bottom: $base-line / 2;
  557. span.persName,
  558. span.placeName,
  559. span.objectName{
  560. font-weight: 600;
  561. }
  562. a{
  563. font-weight: 600;
  564. &.active-link{
  565. color: $rouge;
  566. // text-decoration: underline;
  567. line-height: $base-line/2;
  568. }
  569. sup.mdi{
  570. font-size: 0.630em;
  571. vertical-align: super;
  572. // line-height: 0.1;
  573. padding: 0 0.2em;
  574. }
  575. }
  576. }
  577. span[role="pageNum"]{
  578. font-size: 16px;
  579. position: relative;
  580. float:right;
  581. width: $pagenum_w; height:$base-line/4;
  582. border-bottom: 1px solid $bleuroilight;
  583. border-right: 1px solid $bleuroilight;
  584. // outline: solid red thin;
  585. // margin-left:calc(100% - #{$pagenum_w * 2});
  586. // margin-left: 100%;
  587. margin-right: - $pagenum_w * 1.5;
  588. &:before{
  589. // outline: solid green thin;
  590. content:attr(data-num);
  591. font-size: 0.630em;
  592. line-height: $base-line/3;
  593. position: absolute;
  594. right: 0;
  595. top:$base-line/2;
  596. color: $bleuroi;
  597. // top:0;
  598. // width: $pagenum_w*2; height: $pagenum_w;
  599. // border-top: 1px solid $bleuroilight;
  600. // border-right: 1px solid $bleuroilight;
  601. // text-indent: $pagenum_w * 2.5;
  602. }
  603. }
  604. a.text-item-link{
  605. // float: left;
  606. position: absolute;
  607. top:0; left:0;
  608. // display: block;
  609. // width:1em; height:1em;
  610. font-size: 0.630em;
  611. .mdi{
  612. color: $bleuroi;
  613. pointer-events: none;
  614. }
  615. }
  616. // front page
  617. header{
  618. padding-top: $base-line;
  619. h1{
  620. @include teititlefrontblue;
  621. .initial{
  622. display: inline-block;
  623. text-transform: uppercase;
  624. font-size: 1.3em;
  625. line-height: $base-line*2;
  626. margin: $base-line/2 0;
  627. }
  628. }
  629. }
  630. .byline{
  631. text-align: center;
  632. font-style: italic;
  633. padding-bottom: 1em;
  634. }
  635. .docImprint{
  636. text-align: center;
  637. // padding-bottom: 1em;
  638. }
  639. .imprimatur{
  640. text-align: center;
  641. font-style: italic;
  642. padding-bottom: 1em;
  643. }
  644. figure{
  645. // outline: 1px solid red;
  646. background-color: $grisclair;
  647. margin:1em 0;
  648. img{
  649. width: 100%;
  650. }
  651. figcaption{
  652. @include fontcaption
  653. padding: 0.5em;
  654. }
  655. }
  656. ul{
  657. line-height: $base-line;
  658. margin-bottom: $base-line/2;
  659. }
  660. blockquote{
  661. margin: $base-line/2 1em;
  662. line-height: $base-line;
  663. p{
  664. margin: 0;
  665. }
  666. }
  667. }
  668. }
  669. }
  670. >nav{
  671. $pager_h:2em;
  672. display: flex;
  673. flex-direction: column;
  674. span.nav-title{ display:none; }
  675. section#toc{
  676. box-sizing: content-box;
  677. padding:0 0 1em 1.5em;
  678. height:calc(100% - #{$pager_h});
  679. overflow-x: hidden;
  680. overflow-y: auto;
  681. line-height: $base-line / 2;
  682. >ul{
  683. ul{
  684. li{
  685. ul{
  686. overflow: hidden;
  687. max-height: 1000px;
  688. transition: max-height 0.5s ease-in-out;
  689. // transform: scaleY(1);
  690. // transform-origin: top;
  691. // transition: transform 0.3s ease-in-out;
  692. &:not(.opened){
  693. // height:0;
  694. max-height:0;
  695. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  696. // transform: scaleY(0);
  697. }
  698. // &.opened{
  699. // border: 1px solid red;
  700. // }
  701. // padding-left: 1em;
  702. border-left: 0.5px solid $grisclair;
  703. // min-height: 1em;
  704. margin-bottom: 0em;
  705. li{
  706. // min-height: 1em;
  707. // border-left: 1px solid red;
  708. padding:0 0 0 1em;
  709. }
  710. }
  711. }
  712. }
  713. .toc-title{
  714. @include title4grey;
  715. &.active,
  716. &:hover{
  717. color:$grisfonce;
  718. font-weight: 600;
  719. }
  720. &.loaded{
  721. color:$grisfonce;
  722. }
  723. }
  724. // h2.toc-title{font-size: 0.882em;}
  725. // h3.toc-title{font-size: 0.882em;}
  726. // h4.toc-title{font-size: 0.882em;}
  727. // h5.toc-title{font-size: 0.882em;}
  728. // h6.toc-title{font-size: 0.882em;}
  729. // span.toc-title{font-size: 0.882em;}
  730. }
  731. }
  732. div#page-nav{
  733. height:$pager_h;
  734. overflow: hidden;
  735. box-sizing: content-box;
  736. padding:1em 0 0 1.5em;
  737. select{
  738. option{
  739. padding:0;
  740. }
  741. }
  742. }
  743. }
  744. // responsive
  745. @media only screen and (max-width: $small-bp) {
  746. position: relative;
  747. >nav{
  748. $top: 45px;
  749. z-index: 2;
  750. position: absolute;
  751. top:$top;
  752. right:0;
  753. background-color: #fff;
  754. width:percentage(10/$default_sum);
  755. box-sizing: border-box;
  756. padding-top: 1em;
  757. padding-bottom: 1em;
  758. height:calc(100% - #{$top});
  759. transform: translateX(100%);
  760. transition: transform 0.3s ease-in-out;
  761. span.nav-title{
  762. display: block;
  763. position: absolute;
  764. top:4.5em; left:-1.8em;
  765. transform: rotateZ(-90deg);
  766. transform-origin: center;
  767. @include fontsans;
  768. font-size: 0.600em;
  769. cursor: pointer;
  770. color: $bleuroi;
  771. svg{
  772. vertical-align: bottom;
  773. transform-origin: center;
  774. transform: scale(0.8) rotate(180deg);
  775. transition: transform 0.3s ease-in-out;
  776. path{
  777. fill: $bleuroi;
  778. }
  779. }
  780. }
  781. &.opened{
  782. box-shadow: -3px -3px 5px $grisclair;
  783. transform: translateX(0);
  784. span.nav-title{
  785. svg{
  786. transform: scale(0.7) rotate(0);
  787. }
  788. }
  789. }
  790. }
  791. }
  792. }
  793. #biblio{
  794. .router-link-active{
  795. font-weight: 600;
  796. }
  797. ul.item-list{
  798. margin:0;
  799. padding:0;
  800. li{
  801. padding:0;
  802. margin:0 0 1.5em 0;
  803. h2{
  804. margin:0;
  805. @include title2black;
  806. }
  807. p{
  808. margin:0;
  809. }
  810. }
  811. }
  812. }
  813. }
  814. footer[role="tools"]{
  815. $list-item-h: 7em;
  816. @mixin resultItem{
  817. box-sizing: border-box;
  818. // we are only on 10 colls as 2 are occupied by sides
  819. flex-basis: percentage(2/($default_sum - 2));
  820. max-height: $list-item-h;
  821. overflow: hidden;
  822. padding-bottom: 1em;
  823. padding-right: $default_gap;
  824. article{
  825. max-height: 100%;
  826. overflow: hidden;
  827. }
  828. article.item{
  829. h1{
  830. @include title3black;
  831. font-weight: 600;
  832. max-width: 95%;
  833. }
  834. h2{
  835. @include title3black;
  836. text-transform: none;
  837. }
  838. span{
  839. font-size: 0.882em;
  840. }
  841. // .preview{
  842. // font-size: 0.882em;
  843. // margin:0;
  844. // code{
  845. // @include fontserif;
  846. // background-color: lighten(desaturate($rouge,20%), 20%);
  847. // padding:0 0.2em;
  848. // }
  849. // }
  850. }
  851. }
  852. #history{
  853. z-index: 8;
  854. background-color: $or;
  855. padding:1.2em $side-padding;
  856. max-height: $list-item-h;
  857. @include accordeon-transition($list-item-h);
  858. >header{
  859. }
  860. .history-list{
  861. overflow-x: hidden;
  862. .wrapper{
  863. height:100%;
  864. // hidding the scrollbar
  865. overflow-y: auto;
  866. // width:calc(100% + 1em);
  867. padding-right: 1em;
  868. >ul{
  869. padding:0;
  870. display: flex;
  871. flex-direction: row;
  872. flex-wrap: wrap;
  873. }
  874. }
  875. li.item{
  876. @include resultItem;
  877. }
  878. }
  879. }
  880. #results{
  881. z-index: 9;
  882. background-color: $gris;
  883. padding:1.2em $side-padding;
  884. @media only screen and (max-width: $small-bp) {
  885. padding:1.2em $side-padding/2;
  886. }
  887. max-height: $list-item-h * 3;
  888. @include accordeon-transition($list-item-h * 3);
  889. >header{
  890. .search-keys{
  891. font-size: 0.756em;
  892. font-weight: 500;
  893. }
  894. .results-count{
  895. font-size: 0.756em;
  896. }
  897. }
  898. .results-list{
  899. overflow-x: hidden;
  900. .wrapper{
  901. position:relative;
  902. height:100%;
  903. // hidding the scrollbar
  904. overflow-y: auto;
  905. // width:calc(100% + 1em);
  906. padding-right: 1em;
  907. >ul{
  908. padding:0;
  909. display: flex;
  910. flex-direction: row;
  911. flex-wrap: wrap;
  912. }
  913. }
  914. li.result{
  915. @include resultItem;
  916. }
  917. .infinite-loading-container{
  918. // TODO: how to center the loading
  919. }
  920. }
  921. >header, section.results-list{
  922. transition: opacity 0.2s ease-in-out;
  923. }
  924. &.loading {
  925. >header, section.results-list{
  926. transition: opacity 0.5s ease-in-out;
  927. opacity:0.5;
  928. pointer-events: none;
  929. }
  930. }
  931. // responsive
  932. @media only screen and (max-width: $small-bp) {
  933. position: relative;
  934. >header{
  935. padding:0 0 1em 0;
  936. >*{
  937. display: inline-block;
  938. margin-right: 1em;
  939. }
  940. #sorting{
  941. width:10em;
  942. }
  943. }
  944. >section.results-list{
  945. max-height: 15em;
  946. li.result{
  947. flex-basis: 33%;
  948. }
  949. }
  950. >nav{
  951. position: absolute;
  952. top:1.2em; right:1.2em;
  953. }
  954. }
  955. }
  956. #footer-bottom{
  957. z-index: 10;
  958. padding:0 $side-padding;
  959. @media only screen and (max-width: $small-bp) {
  960. padding:0 $side-padding/2;
  961. }
  962. background-color: $bleuroi;
  963. &>*{
  964. // disable grid gap
  965. padding-right: 0;
  966. }
  967. #footer-tabs{
  968. ul{
  969. padding:0; margin:0;
  970. display: flex;
  971. flex-direction: column;
  972. li{
  973. flex: 1 1 auto;
  974. .wrapper{
  975. box-sizing: border-box;
  976. line-height: 0.6em;
  977. height:2em;
  978. width: calc(100% + $side-padding);
  979. margin-left:-$side-padding;
  980. padding:0.3em 0.5em 0.3em $side-padding;
  981. }
  982. &.history .wrapper{
  983. background-color: $or;
  984. }
  985. &.results .wrapper{
  986. background-color: $gris;
  987. }
  988. span{
  989. font-size: 0.693em;
  990. font-weight: 400;
  991. text-transform: uppercase;
  992. cursor: pointer;
  993. @include fade-transition;
  994. }
  995. }
  996. }
  997. }
  998. #search{
  999. color: #fff;
  1000. background-color: $bleuroi;
  1001. form{
  1002. padding: 0;
  1003. // display: flex;
  1004. // flex-direction: row;
  1005. // flex-wrap: wrap;
  1006. fieldset{
  1007. padding:0.7em 1em;
  1008. border: none;
  1009. box-sizing:border-box;
  1010. // width correction as row is not the same width as others in the page
  1011. // flex-basis: percentage(2/($default_sum - 1));
  1012. // flex-basis: 17.667%;
  1013. // flex-basis: percentage(2 / 11);
  1014. &:not(:first-of-type){
  1015. border-left: 1px solid $grisclair;
  1016. }
  1017. }
  1018. fieldset.search{
  1019. display: inline-flex;
  1020. >div{
  1021. width:80%;
  1022. vertical-align: middle;
  1023. }
  1024. label[for="keys"]{
  1025. display: none;
  1026. }
  1027. input[type="text"]{
  1028. padding:0em 0.3em;
  1029. margin:0 0 0.3em 0;
  1030. box-sizing: border-box;
  1031. font-size: 0.756em;
  1032. line-height: 1;
  1033. width:100%;
  1034. height:1.4em;
  1035. border:none;
  1036. border-radius: 2px;
  1037. }
  1038. span.mdi{
  1039. display: inline-block;
  1040. margin:0 0 0 0.5em;
  1041. font-size: 1.2em;
  1042. line-height:1.1;
  1043. vertical-align:middle;
  1044. width:1.2em; height:1.2em;
  1045. border-radius: 0.6em;
  1046. background-color: #fff;
  1047. color: $bleuroi;
  1048. text-align: center;
  1049. font-weight: 700;
  1050. cursor: pointer;
  1051. }
  1052. }
  1053. }
  1054. fieldset.filters{
  1055. .vs__actions{
  1056. // background-color: $grisclair;
  1057. align-items:baseline;
  1058. padding-top:0.2em;
  1059. }
  1060. }
  1061. form{
  1062. transition: opacity 0.2s ease-in-out;
  1063. }
  1064. &.loading{
  1065. form{
  1066. opacity:0.5;
  1067. transition: opacity 0.5s ease-in-out;
  1068. pointer-events: none;
  1069. }
  1070. }
  1071. // responsive
  1072. @media only screen and (max-width: $small-bp) {
  1073. form{
  1074. fieldset{
  1075. &.search{
  1076. >div{
  1077. display: inline-flex;
  1078. flex-wrap: nowrap;
  1079. width:84%;
  1080. >*{
  1081. flex-basis: 45%;
  1082. margin: 0 0.5em 0 0;
  1083. // box-sizing: content-box;
  1084. // width:auto!important;
  1085. &#keys[type="text"]{
  1086. margin-right:1.5em;
  1087. }
  1088. }
  1089. }
  1090. span.mdi{
  1091. width:1em; height:1em;
  1092. margin-top: -0.1em;
  1093. margin-left: 0;
  1094. }
  1095. }
  1096. &.filters{
  1097. border-left: none;
  1098. flex-basis: 32%;
  1099. padding: 0.2em 0 1em 1em;
  1100. }
  1101. }
  1102. }
  1103. }
  1104. }
  1105. }
  1106. h2{
  1107. margin:0;
  1108. font-size: 0.756em;
  1109. font-weight: 400;
  1110. text-transform: uppercase;
  1111. padding:0;
  1112. }
  1113. }
  1114. // vue-select
  1115. .v-select{
  1116. padding:0;
  1117. div[role="combobox"]{
  1118. background-color: #fff;
  1119. padding:0;
  1120. border-radius: 2px;
  1121. border: none;
  1122. }
  1123. input[type="search"]{
  1124. margin:0;
  1125. padding:0;
  1126. -webkit-appearance:textfield;
  1127. -webkit-box-sizing:content-box;
  1128. }
  1129. input::-webkit-search-decoration,
  1130. input::-webkit-search-cancel-button {
  1131. display: none;
  1132. }
  1133. .vs__search{
  1134. &, &:focus{
  1135. font-size: 0.756em;
  1136. line-height: 1;
  1137. height:1.2em;
  1138. border:none;
  1139. box-sizing: border-box;
  1140. }
  1141. }
  1142. .vs__dropdown-toggle{
  1143. input::placeholder{background-color: #fff;}
  1144. }
  1145. .vs__selected-options{
  1146. background-color: #fff;
  1147. }
  1148. .vs__actions{
  1149. padding:1px 3px;
  1150. button.vs__clear{
  1151. line-height: 0.5;
  1152. // height:0;
  1153. }
  1154. svg[role="presentation"]{
  1155. transform: scale(0.8);
  1156. path{
  1157. fill: $bleuroi;
  1158. }
  1159. }
  1160. }
  1161. .vs__selected{
  1162. margin:0;
  1163. padding:0.2em 0;
  1164. line-height:1;
  1165. font-size: 0.756em;
  1166. background-color: #fff;
  1167. border:none;
  1168. align-items: middle;
  1169. box-sizing: content-box;
  1170. display: inline-block;
  1171. width: calc(100% - 12px);
  1172. // &>*:not(button){
  1173. // display: inline-block;
  1174. // width:70%;
  1175. // }
  1176. button{
  1177. svg{
  1178. transform: scale(0.8);
  1179. path{
  1180. fill: $bleuroi;
  1181. }
  1182. }
  1183. &.vs__deselect{
  1184. line-height: 0;
  1185. }
  1186. }
  1187. }
  1188. // border-radius: 2px;
  1189. // border: none;
  1190. }
  1191. ul[role="listbox"]{
  1192. @include fontsans;
  1193. padding:0;
  1194. margin:0;
  1195. border:none;
  1196. position: relative;
  1197. li{
  1198. box-sizing: content-box;
  1199. padding:0.3em;
  1200. margin:0;
  1201. font-size: 0.756em;
  1202. line-height: 1;
  1203. white-space: normal;
  1204. position: relative;
  1205. *{
  1206. max-width: 100%;
  1207. }
  1208. }
  1209. }
  1210. // ___
  1211. // |_ _|__ ___ _ _ ___
  1212. // | |/ _/ _ \ ' \(_-<
  1213. // |___\__\___/_||_/__/
  1214. span.mdi-close{
  1215. cursor: pointer;
  1216. }
  1217. @keyframes spin {
  1218. from {
  1219. transform:rotate(0deg);
  1220. }
  1221. to {
  1222. transform:rotate(360deg);
  1223. }
  1224. }
  1225. span.mdi-loading{
  1226. animation-name: spin;
  1227. animation-duration: 2000ms;
  1228. animation-iteration-count: infinite;
  1229. animation-timing-function: linear;
  1230. }
  1231. // _ _ _
  1232. // | | ___ __ _ __| (_)_ _ __ _
  1233. // | |__/ _ \/ _` / _` | | ' \/ _` |
  1234. // |____\___/\__,_\__,_|_|_||_\__, |
  1235. // |___/
  1236. span.loading{
  1237. @include fontsans;
  1238. font-size: 0.756em;
  1239. color: $grisfonce;
  1240. animation: pulseloading 4s infinite;
  1241. }
  1242. @keyframes pulseloading{
  1243. 0% {
  1244. opacity: 1;
  1245. }
  1246. 50%{
  1247. opacity: 0;
  1248. }
  1249. 100% {
  1250. opacity: 1;
  1251. }
  1252. }