app.scss 24 KB

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