app.scss 25 KB

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