app.scss 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168
  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. figure{
  517. // outline: 1px solid red;
  518. background-color: $grisclair;
  519. margin:1em 0;
  520. img{
  521. width: 100%;
  522. }
  523. figcaption{
  524. @include fontcaption
  525. padding: 0.5em;
  526. }
  527. }
  528. }
  529. }
  530. }
  531. >nav{
  532. $pager_h:2em;
  533. display: flex;
  534. flex-direction: column;
  535. span.nav-title{ display:none; }
  536. section#toc{
  537. box-sizing: content-box;
  538. padding:0 0 1em 1.5em;
  539. height:calc(100% - #{$pager_h});
  540. overflow-x: hidden;
  541. overflow-y: auto;
  542. >ul{
  543. ul{
  544. li{
  545. ul{
  546. overflow: hidden;
  547. max-height: 1000px;
  548. transition: max-height 0.5s ease-in-out;
  549. // transform: scaleY(1);
  550. // transform-origin: top;
  551. // transition: transform 0.3s ease-in-out;
  552. &:not(.opened){
  553. // height:0;
  554. max-height:0;
  555. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  556. // transform: scaleY(0);
  557. }
  558. // &.opened{
  559. // border: 1px solid red;
  560. // }
  561. // padding-left: 1em;
  562. border-left: 0.5px solid $grisclair;
  563. // min-height: 1em;
  564. margin-bottom: 0em;
  565. li{
  566. // min-height: 1em;
  567. // border-left: 1px solid red;
  568. padding:0 0 0.2em 1em;
  569. }
  570. }
  571. }
  572. }
  573. .toc-title{
  574. @include title4black;
  575. &.active,
  576. &:hover{
  577. color:$grisfonce;
  578. font-weight: 600;
  579. }
  580. &.loaded{
  581. color:$grisfonce;
  582. }
  583. }
  584. // h2.toc-title{font-size: 0.882em;}
  585. // h3.toc-title{font-size: 0.882em;}
  586. // h4.toc-title{font-size: 0.882em;}
  587. // h5.toc-title{font-size: 0.882em;}
  588. // h6.toc-title{font-size: 0.882em;}
  589. // span.toc-title{font-size: 0.882em;}
  590. }
  591. }
  592. div#page-nav{
  593. height:$pager_h;
  594. overflow: hidden;
  595. box-sizing: content-box;
  596. padding:1em 0 0 1.5em;
  597. select{
  598. option{
  599. padding:0;
  600. }
  601. }
  602. }
  603. }
  604. // responsive
  605. @media only screen and (max-width: $small-bp) {
  606. position: relative;
  607. >nav{
  608. $top: 45px;
  609. z-index: 2;
  610. position: absolute;
  611. top:$top;
  612. right:0;
  613. background-color: #fff;
  614. width:percentage(10/$default_sum);
  615. box-sizing: border-box;
  616. padding-top: 1em;
  617. padding-bottom: 1em;
  618. height:calc(100% - #{$top});
  619. transform: translateX(100%);
  620. transition: transform 0.3s ease-in-out;
  621. span.nav-title{
  622. display: block;
  623. position: absolute;
  624. top:4.5em; left:-1.8em;
  625. transform: rotateZ(-90deg);
  626. transform-origin: center;
  627. @include fontsans;
  628. font-size: 0.600em;
  629. cursor: pointer;
  630. color: $bleuroi;
  631. svg{
  632. vertical-align: bottom;
  633. transform-origin: center;
  634. transform: scale(0.8) rotate(180deg);
  635. transition: transform 0.3s ease-in-out;
  636. path{
  637. fill: $bleuroi;
  638. }
  639. }
  640. }
  641. &.opened{
  642. box-shadow: -3px -3px 5px $grisclair;
  643. transform: translateX(0);
  644. span.nav-title{
  645. svg{
  646. transform: scale(0.7) rotate(0);
  647. }
  648. }
  649. }
  650. }
  651. }
  652. }
  653. #text{
  654. .tei{}}
  655. #biblio{
  656. .router-link-active{
  657. font-weight: 600;
  658. }
  659. ul.item-list{
  660. margin:0;
  661. padding:0;
  662. li{
  663. padding:0;
  664. margin:0 0 1.5em 0;
  665. h2{
  666. margin:0;
  667. @include title2black;
  668. }
  669. p{
  670. margin:0;
  671. }
  672. }
  673. }
  674. }
  675. }
  676. footer[role="tools"]{
  677. $list-item-h: 7em;
  678. @mixin resultItem{
  679. box-sizing: border-box;
  680. // we are only on 10 colls as 2 are occupied by sides
  681. flex-basis: percentage(2/($default_sum - 2));
  682. max-height: $list-item-h;
  683. overflow: hidden;
  684. padding-bottom: 1em;
  685. padding-right: $default_gap;
  686. article{
  687. max-height: 100%;
  688. overflow: hidden;
  689. }
  690. article.item{
  691. h1{
  692. @include title3black;
  693. font-weight: 600;
  694. max-width: 95%;
  695. }
  696. h2{
  697. @include title3black;
  698. text-transform: none;
  699. }
  700. span{
  701. font-size: 0.882em;
  702. }
  703. // .preview{
  704. // font-size: 0.882em;
  705. // margin:0;
  706. // code{
  707. // @include fontserif;
  708. // background-color: lighten(desaturate($rouge,20%), 20%);
  709. // padding:0 0.2em;
  710. // }
  711. // }
  712. }
  713. }
  714. #history{
  715. z-index: 8;
  716. background-color: $or;
  717. padding:1.2em $side-padding;
  718. max-height: $list-item-h;
  719. @include accordeon-transition($list-item-h);
  720. >header{
  721. }
  722. .history-list{
  723. overflow-x: hidden;
  724. .wrapper{
  725. height:100%;
  726. // hidding the scrollbar
  727. overflow-y: auto;
  728. // width:calc(100% + 1em);
  729. padding-right: 1em;
  730. >ul{
  731. padding:0;
  732. display: flex;
  733. flex-direction: row;
  734. flex-wrap: wrap;
  735. }
  736. }
  737. li.item{
  738. @include resultItem;
  739. }
  740. }
  741. }
  742. #results{
  743. z-index: 9;
  744. background-color: $gris;
  745. padding:1.2em $side-padding;
  746. @media only screen and (max-width: $small-bp) {
  747. padding:1.2em $side-padding/2;
  748. }
  749. max-height: $list-item-h * 3;
  750. @include accordeon-transition($list-item-h * 3);
  751. >header{
  752. .search-keys{
  753. font-size: 0.756em;
  754. font-weight: 500;
  755. }
  756. .results-count{
  757. font-size: 0.756em;
  758. }
  759. }
  760. .results-list{
  761. overflow-x: hidden;
  762. .wrapper{
  763. position:relative;
  764. height:100%;
  765. // hidding the scrollbar
  766. overflow-y: auto;
  767. // width:calc(100% + 1em);
  768. padding-right: 1em;
  769. >ul{
  770. padding:0;
  771. display: flex;
  772. flex-direction: row;
  773. flex-wrap: wrap;
  774. }
  775. }
  776. li.result{
  777. @include resultItem;
  778. }
  779. .infinite-loading-container{
  780. // TODO: how to center the loading
  781. }
  782. }
  783. >header, section.results-list{
  784. transition: opacity 0.2s ease-in-out;
  785. }
  786. &.loading {
  787. >header, section.results-list{
  788. transition: opacity 0.5s ease-in-out;
  789. opacity:0.5;
  790. pointer-events: none;
  791. }
  792. }
  793. // responsive
  794. @media only screen and (max-width: $small-bp) {
  795. position: relative;
  796. >header{
  797. padding:0 0 1em 0;
  798. >*{
  799. display: inline-block;
  800. margin-right: 1em;
  801. }
  802. #sorting{
  803. width:10em;
  804. }
  805. }
  806. >section.results-list{
  807. max-height: 15em;
  808. li.result{
  809. flex-basis: 33%;
  810. }
  811. }
  812. >nav{
  813. position: absolute;
  814. top:1.2em; right:1.2em;
  815. }
  816. }
  817. }
  818. #footer-bottom{
  819. z-index: 10;
  820. padding:0 $side-padding;
  821. @media only screen and (max-width: $small-bp) {
  822. padding:0 $side-padding/2;
  823. }
  824. background-color: $bleuroi;
  825. &>*{
  826. // disable grid gap
  827. padding-right: 0;
  828. }
  829. #footer-tabs{
  830. ul{
  831. padding:0; margin:0;
  832. display: flex;
  833. flex-direction: column;
  834. li{
  835. flex: 1 1 auto;
  836. .wrapper{
  837. box-sizing: border-box;
  838. line-height: 0.6em;
  839. height:2em;
  840. width: calc(100% + $side-padding);
  841. margin-left:-$side-padding;
  842. padding:0.3em 0.5em 0.3em $side-padding;
  843. }
  844. &.history .wrapper{
  845. background-color: $or;
  846. }
  847. &.results .wrapper{
  848. background-color: $gris;
  849. }
  850. span{
  851. font-size: 0.693em;
  852. font-weight: 400;
  853. text-transform: uppercase;
  854. cursor: pointer;
  855. @include fade-transition;
  856. }
  857. }
  858. }
  859. }
  860. #search{
  861. color: #fff;
  862. background-color: $bleuroi;
  863. form{
  864. padding: 0;
  865. // display: flex;
  866. // flex-direction: row;
  867. // flex-wrap: wrap;
  868. fieldset{
  869. padding:0.7em 1em;
  870. border: none;
  871. box-sizing:border-box;
  872. // width correction as row is not the same width as others in the page
  873. // flex-basis: percentage(2/($default_sum - 1));
  874. // flex-basis: 17.667%;
  875. // flex-basis: percentage(2 / 11);
  876. &:not(:first-of-type){
  877. border-left: 1px solid $grisclair;
  878. }
  879. }
  880. fieldset.search{
  881. display: inline-flex;
  882. >div{
  883. width:80%;
  884. vertical-align: middle;
  885. }
  886. label[for="keys"]{
  887. display: none;
  888. }
  889. input[type="text"]{
  890. padding:0em 0.3em;
  891. margin:0 0 0.3em 0;
  892. box-sizing: border-box;
  893. font-size: 0.756em;
  894. line-height: 1;
  895. width:100%;
  896. height:1.4em;
  897. border:none;
  898. border-radius: 2px;
  899. }
  900. span.mdi{
  901. display: inline-block;
  902. margin:0 0 0 0.5em;
  903. font-size: 1.2em;
  904. line-height:1.1;
  905. vertical-align:middle;
  906. width:1.2em; height:1.2em;
  907. border-radius: 0.6em;
  908. background-color: #fff;
  909. color: $bleuroi;
  910. text-align: center;
  911. font-weight: 700;
  912. cursor: pointer;
  913. }
  914. }
  915. }
  916. fieldset.filters{
  917. .vs__actions{
  918. // background-color: $grisclair;
  919. align-items:baseline;
  920. padding-top:0.2em;
  921. }
  922. }
  923. form{
  924. transition: opacity 0.2s ease-in-out;
  925. }
  926. &.loading{
  927. form{
  928. opacity:0.5;
  929. transition: opacity 0.5s ease-in-out;
  930. pointer-events: none;
  931. }
  932. }
  933. // responsive
  934. @media only screen and (max-width: $small-bp) {
  935. form{
  936. fieldset{
  937. &.search{
  938. >div{
  939. display: inline-flex;
  940. flex-wrap: nowrap;
  941. width:84%;
  942. >*{
  943. flex-basis: 45%;
  944. margin: 0 0.5em 0 0;
  945. // box-sizing: content-box;
  946. // width:auto!important;
  947. &#keys[type="text"]{
  948. margin-right:1.5em;
  949. }
  950. }
  951. }
  952. span.mdi{
  953. width:1em; height:1em;
  954. margin-top: -0.1em;
  955. margin-left: 0;
  956. }
  957. }
  958. &.filters{
  959. border-left: none;
  960. flex-basis: 32%;
  961. padding: 0.2em 0 1em 1em;
  962. }
  963. }
  964. }
  965. }
  966. }
  967. }
  968. h2{
  969. margin:0;
  970. font-size: 0.756em;
  971. font-weight: 400;
  972. text-transform: uppercase;
  973. padding:0;
  974. }
  975. }
  976. // vue-select
  977. .v-select{
  978. padding:0;
  979. div[role="combobox"]{
  980. background-color: #fff;
  981. padding:0;
  982. border-radius: 2px;
  983. border: none;
  984. }
  985. input[type="search"]{
  986. margin:0;
  987. padding:0;
  988. -webkit-appearance:textfield;
  989. -webkit-box-sizing:content-box;
  990. }
  991. input::-webkit-search-decoration,
  992. input::-webkit-search-cancel-button {
  993. display: none;
  994. }
  995. .vs__search{
  996. &, &:focus{
  997. font-size: 0.756em;
  998. line-height: 1;
  999. height:1.2em;
  1000. border:none;
  1001. box-sizing: border-box;
  1002. }
  1003. }
  1004. .vs__dropdown-toggle{
  1005. input::placeholder{background-color: #fff;}
  1006. }
  1007. .vs__selected-options{
  1008. background-color: #fff;
  1009. }
  1010. .vs__actions{
  1011. padding:1px 3px;
  1012. button.vs__clear{
  1013. line-height: 0.5;
  1014. // height:0;
  1015. }
  1016. svg[role="presentation"]{
  1017. transform: scale(0.8);
  1018. path{
  1019. fill: $bleuroi;
  1020. }
  1021. }
  1022. }
  1023. .vs__selected{
  1024. margin:0;
  1025. padding:0.2em 0;
  1026. line-height:1;
  1027. font-size: 0.756em;
  1028. background-color: #fff;
  1029. border:none;
  1030. align-items: middle;
  1031. box-sizing: content-box;
  1032. display: inline-block;
  1033. width: calc(100% - 12px);
  1034. // &>*:not(button){
  1035. // display: inline-block;
  1036. // width:70%;
  1037. // }
  1038. button{
  1039. svg{
  1040. transform: scale(0.8);
  1041. path{
  1042. fill: $bleuroi;
  1043. }
  1044. }
  1045. &.vs__deselect{
  1046. line-height: 0;
  1047. }
  1048. }
  1049. }
  1050. // border-radius: 2px;
  1051. // border: none;
  1052. }
  1053. ul[role="listbox"]{
  1054. @include fontsans;
  1055. padding:0;
  1056. margin:0;
  1057. border:none;
  1058. position: relative;
  1059. li{
  1060. box-sizing: content-box;
  1061. padding:0.3em;
  1062. margin:0;
  1063. font-size: 0.756em;
  1064. line-height: 1;
  1065. white-space: normal;
  1066. position: relative;
  1067. *{
  1068. max-width: 100%;
  1069. }
  1070. }
  1071. }
  1072. // ___
  1073. // |_ _|__ ___ _ _ ___
  1074. // | |/ _/ _ \ ' \(_-<
  1075. // |___\__\___/_||_/__/
  1076. span.mdi-close{
  1077. cursor: pointer;
  1078. }
  1079. @keyframes spin {
  1080. from {
  1081. transform:rotate(0deg);
  1082. }
  1083. to {
  1084. transform:rotate(360deg);
  1085. }
  1086. }
  1087. span.mdi-loading{
  1088. animation-name: spin;
  1089. animation-duration: 2000ms;
  1090. animation-iteration-count: infinite;
  1091. animation-timing-function: linear;
  1092. }
  1093. // _ _ _
  1094. // | | ___ __ _ __| (_)_ _ __ _
  1095. // | |__/ _ \/ _` / _` | | ' \/ _` |
  1096. // |____\___/\__,_\__,_|_|_||_\__, |
  1097. // |___/
  1098. span.loading{
  1099. @include fontsans;
  1100. font-size: 0.756em;
  1101. color: $grisfonce;
  1102. animation: pulseloading 4s infinite;
  1103. }
  1104. @keyframes pulseloading{
  1105. 0% {
  1106. opacity: 1;
  1107. }
  1108. 50%{
  1109. opacity: 0;
  1110. }
  1111. 100% {
  1112. opacity: 1;
  1113. }
  1114. }