app.scss 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055
  1. @import './base/reset';
  2. @import './base/variables';
  3. @import './base/colors';
  4. @import './base/grid-flex';
  5. @import './base/layout';
  6. @import './base/fonts';
  7. @import './base/transitions';
  8. /* 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 title1blue;}
  368. span.placeName,
  369. span.objectName,
  370. span.persName{
  371. font-weight: 600;
  372. }
  373. }
  374. }
  375. }
  376. >nav{
  377. padding-bottom: 0;
  378. $pager_h:2em;
  379. span.nav-title{ display:none; }
  380. section#toc{
  381. box-sizing: content-box;
  382. padding:0 0 1em 1.5em;
  383. height:calc(100% - #{$pager_h});
  384. overflow-x: hidden;
  385. overflow-y: auto;
  386. >ul{
  387. ul{
  388. li{
  389. ul{
  390. overflow: hidden;
  391. max-height: 1000px;
  392. transition: max-height 0.5s ease-in-out;
  393. // transform: scaleY(1);
  394. // transform-origin: top;
  395. // transition: transform 0.3s ease-in-out;
  396. &:not(.opened){
  397. // height:0;
  398. max-height:0;
  399. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  400. // transform: scaleY(0);
  401. }
  402. // &.opened{
  403. // border: 1px solid red;
  404. // }
  405. // padding-left: 1em;
  406. border-left: 0.5px solid $grisclair;
  407. // min-height: 1em;
  408. margin-bottom: 0em;
  409. li{
  410. // min-height: 1em;
  411. // border-left: 1px solid red;
  412. padding:0 0 0.2em 1em;
  413. }
  414. }
  415. }
  416. }
  417. .toc-title{
  418. color: $gris;
  419. font-weight: 400;
  420. margin:0;
  421. &.active,
  422. &:hover{
  423. color:$grisfonce;
  424. font-weight: 600;
  425. }
  426. &.loaded{
  427. color:$grisfonce;
  428. }
  429. }
  430. h2.toc-title{font-size: 0.882em;}
  431. h3.toc-title{font-size: 0.882em;}
  432. h4.toc-title{font-size: 0.882em;}
  433. h5.toc-title{font-size: 0.882em;}
  434. h6.toc-title{font-size: 0.882em;}
  435. span.toc-title{font-size: 0.882em;}
  436. }
  437. }
  438. div#page-nav{
  439. height:$pager_h;
  440. overflow: hidden;
  441. box-sizing: content-box;
  442. padding:0 1.5em;
  443. select{
  444. option{
  445. padding:0;
  446. }
  447. }
  448. }
  449. }
  450. // responsive
  451. @media only screen and (max-width: $small-bp) {
  452. position: relative;
  453. >nav{
  454. $top: 45px;
  455. z-index: 2;
  456. position: absolute;
  457. top:$top;
  458. right:0;
  459. background-color: #fff;
  460. width:40%;
  461. box-sizing: border-box;
  462. padding-top: 1em;
  463. padding-bottom: 1em;
  464. height:calc(100% - #{$top});
  465. transform: translateX(100%);
  466. transition: transform 0.3s ease-in-out;
  467. span.nav-title{
  468. display: block;
  469. position: absolute;
  470. top:4.5em; left:-1.8em;
  471. transform: rotateZ(-90deg);
  472. transform-origin: center;
  473. @include fontsans;
  474. font-size: 0.600em;
  475. cursor: pointer;
  476. color: $bleuroi;
  477. svg{
  478. vertical-align: bottom;
  479. transform-origin: center;
  480. transform: scale(0.8) rotate(180deg);
  481. transition: transform 0.3s ease-in-out;
  482. path{
  483. fill: $bleuroi;
  484. }
  485. }
  486. }
  487. &.opened{
  488. box-shadow: -3px -3px 5px $grisclair;
  489. transform: translateX(0);
  490. span.nav-title{
  491. svg{
  492. transform: scale(0.7) rotate(0);
  493. }
  494. }
  495. }
  496. }
  497. }
  498. }
  499. #text{
  500. .tei{
  501. width: 93%;
  502. h1{
  503. font-size: 1.512em;
  504. }
  505. p{
  506. margin-top: 0;
  507. font-size: 1.134em;
  508. line-height: 1.5;
  509. span.persName,
  510. span.placeName,
  511. span.objectName{
  512. font-weight: 600;
  513. }
  514. a{
  515. font-weight: 600;
  516. &.active-link{
  517. color: $rouge;
  518. // text-decoration: underline;
  519. }
  520. sup.mdi{
  521. font-size: 0.630em;
  522. vertical-align: super;
  523. // line-height: 0.1;
  524. padding: 0 0.2em;
  525. }
  526. }
  527. }
  528. }
  529. // <span role=\"pageBreak\" data-num=\"15\"></span>
  530. // span[role="pageBreak"]{
  531. // display: inline-block;
  532. // border-left: 1px solid $bleuroi;
  533. // height:1.4em;
  534. // // word-spacing: 0;
  535. // margin: 0 0.3em;
  536. // line-height: 3;
  537. // position: relative;
  538. // vertical-align: bottom;
  539. // &:after, &:before{
  540. // content: '';
  541. // display: block;
  542. // width:0.5em;
  543. // position: absolute;
  544. // }
  545. // &:after{
  546. // top:0;
  547. // left:0;
  548. // border-top: 1px solid $bleuroi;
  549. // }
  550. // &:before{
  551. // bottom:0;
  552. // right:0;
  553. // border-bottom: 1px solid $bleuroi;
  554. // }
  555. // }
  556. span[role="pageNum"]{
  557. // display:inline;
  558. position: relative;
  559. float:right;
  560. // position: sticky;
  561. $w:0.5em;
  562. width:$w; height:0;
  563. margin-left:calc(100% - (#{$w} * 0.5));
  564. // &:before
  565. &:after{
  566. // display: block;
  567. position: absolute;
  568. font-size: 0.630em;
  569. width:$w; height:$w*2;
  570. line-height: $w*1.7;
  571. padding-left: 1em;
  572. border-right: 1px solid $bleuroilight;
  573. color: $bleuroi;
  574. text-indent: $w + 0.5em;
  575. }
  576. // &:before{
  577. // content:attr(data-num-prev);
  578. // border-bottom: 1px solid $bleuroilight;
  579. // bottom: 0.1em;
  580. // }
  581. &:after{
  582. content:attr(data-num);
  583. border-top: 1px solid $bleuroilight;
  584. // bottom:1.3em;
  585. }
  586. }
  587. }
  588. #biblio{
  589. .router-link-active{
  590. font-weight: 600;
  591. }
  592. ul.item-list{
  593. margin:0;
  594. padding:0;
  595. li{
  596. padding:0;
  597. margin:0 0 1.5em 0;
  598. h2{
  599. margin:0;
  600. @include title2black;
  601. }
  602. p{
  603. margin:0;
  604. }
  605. }
  606. }
  607. }
  608. }
  609. footer[role="tools"]{
  610. $list-item-h: 7em;
  611. @mixin resultItem{
  612. box-sizing: border-box;
  613. // we are only on 10 colls as 2 are occupied by sides
  614. flex-basis: percentage(2/($default_sum - 2));
  615. max-height: $list-item-h;
  616. overflow: hidden;
  617. padding-bottom: 1em;
  618. padding-right: $default_gap;
  619. article{
  620. max-height: 100%;
  621. overflow: hidden;
  622. }
  623. article.item{
  624. h1{
  625. @include title3black;
  626. font-weight: 600;
  627. max-width: 95%;
  628. }
  629. h2{
  630. @include title3black;
  631. text-transform: none;
  632. }
  633. span{
  634. font-size: 0.882em;
  635. }
  636. // .preview{
  637. // font-size: 0.882em;
  638. // margin:0;
  639. // code{
  640. // @include fontserif;
  641. // background-color: lighten(desaturate($rouge,20%), 20%);
  642. // padding:0 0.2em;
  643. // }
  644. // }
  645. }
  646. }
  647. #history{
  648. z-index: 8;
  649. background-color: $or;
  650. padding:1.2em $side-padding;
  651. max-height: $list-item-h;
  652. @include accordeon-transition($list-item-h);
  653. >header{
  654. }
  655. .history-list{
  656. overflow-x: hidden;
  657. .wrapper{
  658. height:100%;
  659. // hidding the scrollbar
  660. overflow-y: auto;
  661. // width:calc(100% + 1em);
  662. padding-right: 1em;
  663. >ul{
  664. padding:0;
  665. display: flex;
  666. flex-direction: row;
  667. flex-wrap: wrap;
  668. }
  669. }
  670. li.item{
  671. @include resultItem;
  672. }
  673. }
  674. }
  675. #results{
  676. z-index: 9;
  677. background-color: $gris;
  678. padding:1.2em $side-padding;
  679. @media only screen and (max-width: $small-bp) {
  680. padding:1.2em $side-padding/2;
  681. }
  682. max-height: $list-item-h * 3;
  683. @include accordeon-transition($list-item-h * 3);
  684. >header{
  685. .search-keys{
  686. font-size: 0.756em;
  687. font-weight: 500;
  688. }
  689. .results-count{
  690. font-size: 0.756em;
  691. }
  692. }
  693. .results-list{
  694. overflow-x: hidden;
  695. .wrapper{
  696. position:relative;
  697. height:100%;
  698. // hidding the scrollbar
  699. overflow-y: auto;
  700. // width:calc(100% + 1em);
  701. padding-right: 1em;
  702. >ul{
  703. padding:0;
  704. display: flex;
  705. flex-direction: row;
  706. flex-wrap: wrap;
  707. }
  708. }
  709. li.result{
  710. @include resultItem;
  711. }
  712. .infinite-loading-container{
  713. // TODO: how to center the loading
  714. }
  715. }
  716. >header, section.results-list{
  717. transition: opacity 0.2s ease-in-out;
  718. }
  719. &.loading {
  720. >header, section.results-list{
  721. transition: opacity 0.5s ease-in-out;
  722. opacity:0.5;
  723. pointer-events: none;
  724. }
  725. }
  726. // responsive
  727. @media only screen and (max-width: $small-bp) {
  728. position: relative;
  729. >header{
  730. padding:0 0 1em 0;
  731. >*{
  732. display: inline-block;
  733. margin-right: 1em;
  734. }
  735. #sorting{
  736. width:10em;
  737. }
  738. }
  739. >section.results-list{
  740. max-height: 15em;
  741. li.result{
  742. flex-basis: 33%;
  743. }
  744. }
  745. >nav{
  746. position: absolute;
  747. top:1.2em; right:1.2em;
  748. }
  749. }
  750. }
  751. #footer-bottom{
  752. z-index: 10;
  753. padding:0 $side-padding;
  754. @media only screen and (max-width: $small-bp) {
  755. padding:0 $side-padding/2;
  756. }
  757. background-color: $bleuroi;
  758. &>*{
  759. // disable grid gap
  760. padding-right: 0;
  761. }
  762. #footer-tabs{
  763. ul{
  764. padding:0; margin:0;
  765. display: flex;
  766. flex-direction: column;
  767. li{
  768. flex: 1 1 auto;
  769. .wrapper{
  770. box-sizing: border-box;
  771. line-height: 0.6em;
  772. height:2em;
  773. width: calc(100% + $side-padding);
  774. margin-left:-$side-padding;
  775. padding:0.3em 0.5em 0.3em $side-padding;
  776. }
  777. &.history .wrapper{
  778. background-color: $or;
  779. }
  780. &.results .wrapper{
  781. background-color: $gris;
  782. }
  783. span{
  784. font-size: 0.693em;
  785. font-weight: 400;
  786. text-transform: uppercase;
  787. cursor: pointer;
  788. @include fade-transition;
  789. }
  790. }
  791. }
  792. }
  793. #search{
  794. color: #fff;
  795. background-color: $bleuroi;
  796. form{
  797. padding: 0;
  798. // display: flex;
  799. // flex-direction: row;
  800. // flex-wrap: wrap;
  801. fieldset{
  802. padding:0.7em 1em;
  803. border: none;
  804. box-sizing:border-box;
  805. // width correction as row is not the same width as others in the page
  806. // flex-basis: percentage(2/($default_sum - 1));
  807. // flex-basis: 17.667%;
  808. // flex-basis: percentage(2 / 11);
  809. &:not(:first-of-type){
  810. border-left: 1px solid $grisclair;
  811. }
  812. }
  813. fieldset.search{
  814. display: inline-flex;
  815. >div{
  816. width:80%;
  817. vertical-align: middle;
  818. }
  819. label[for="keys"]{
  820. display: none;
  821. }
  822. input[type="text"]{
  823. padding:0em 0.3em;
  824. margin:0 0 0.3em 0;
  825. box-sizing: border-box;
  826. font-size: 0.756em;
  827. line-height: 1;
  828. width:100%;
  829. height:1.4em;
  830. border:none;
  831. border-radius: 2px;
  832. }
  833. span.mdi{
  834. display: inline-block;
  835. margin:0 0 0 0.5em;
  836. font-size: 1.2em;
  837. line-height:1.1;
  838. vertical-align:middle;
  839. width:1.2em; height:1.2em;
  840. border-radius: 0.6em;
  841. background-color: #fff;
  842. color: $bleuroi;
  843. text-align: center;
  844. font-weight: 700;
  845. cursor: pointer;
  846. }
  847. }
  848. }
  849. fieldset.filters{
  850. .vs__actions{
  851. background-color: $grisclair;
  852. align-items:baseline;
  853. padding-top:0.2em;
  854. }
  855. }
  856. form{
  857. transition: opacity 0.2s ease-in-out;
  858. }
  859. &.loading{
  860. form{
  861. opacity:0.5;
  862. transition: opacity 0.5s ease-in-out;
  863. pointer-events: none;
  864. }
  865. }
  866. // responsive
  867. @media only screen and (max-width: $small-bp) {
  868. form{
  869. fieldset{
  870. &.search{
  871. >div{
  872. display: inline-flex;
  873. flex-wrap: nowrap;
  874. width:84%;
  875. >*{
  876. flex-basis: 45%;
  877. margin: 0 0.5em 0 0;
  878. // box-sizing: content-box;
  879. // width:auto!important;
  880. &#keys[type="text"]{
  881. margin-right:1.5em;
  882. }
  883. }
  884. }
  885. span.mdi{
  886. width:1em; height:1em;
  887. margin-top: -0.1em;
  888. margin-left: 0;
  889. }
  890. }
  891. &.filters{
  892. border-left: none;
  893. flex-basis: 32%;
  894. padding: 0.2em 0 1em 1em;
  895. }
  896. }
  897. }
  898. }
  899. }
  900. }
  901. h2{
  902. margin:0;
  903. font-size: 0.756em;
  904. font-weight: 400;
  905. text-transform: uppercase;
  906. padding:0;
  907. }
  908. }
  909. // vue-select
  910. .v-select{
  911. padding:0;
  912. div[role="combobox"]{
  913. background-color: #fff;
  914. padding:0;
  915. border-radius: 2px;
  916. border: none;
  917. }
  918. input[type="search"]{
  919. margin:0;
  920. padding:0;
  921. }
  922. .vs__search{
  923. &, &:focus{
  924. font-size: 0.756em;
  925. line-height: 1;
  926. height:1.2em;
  927. border:none;
  928. box-sizing: border-box;
  929. }
  930. }
  931. .vs__actions{
  932. padding:1px 3px;
  933. svg[role="presentation"]{
  934. transform: scale(0.8);
  935. path{
  936. fill: $bleuroi;
  937. }
  938. }
  939. }
  940. .vs__selected{
  941. margin:0;
  942. padding:0.2em 0;
  943. line-height:1;
  944. font-size: 0.756em;
  945. background-color: #fff;
  946. border:none;
  947. align-items: middle;
  948. box-sizing: content-box;
  949. display: inline-block;
  950. width: calc(100% - 12px);
  951. // &>*:not(button){
  952. // display: inline-block;
  953. // width:70%;
  954. // }
  955. button{
  956. svg{
  957. transform: scale(0.8);
  958. path{
  959. fill: $bleuroi;
  960. }
  961. }
  962. &.vs__deselect{
  963. line-height: 0;
  964. }
  965. }
  966. }
  967. // border-radius: 2px;
  968. // border: none;
  969. }
  970. ul[role="listbox"]{
  971. @include fontsans;
  972. padding:0;
  973. margin:0;
  974. border:none;
  975. position: relative;
  976. li{
  977. box-sizing: content-box;
  978. padding:0.3em;
  979. margin:0;
  980. font-size: 0.756em;
  981. line-height: 1;
  982. white-space: normal;
  983. position: relative;
  984. *{
  985. max-width: 100%;
  986. }
  987. }
  988. }
  989. // ___
  990. // |_ _|__ ___ _ _ ___
  991. // | |/ _/ _ \ ' \(_-<
  992. // |___\__\___/_||_/__/
  993. span.mdi-close{
  994. cursor: pointer;
  995. }
  996. @keyframes spin {
  997. from {
  998. transform:rotate(0deg);
  999. }
  1000. to {
  1001. transform:rotate(360deg);
  1002. }
  1003. }
  1004. span.mdi-loading{
  1005. animation-name: spin;
  1006. animation-duration: 2000ms;
  1007. animation-iteration-count: infinite;
  1008. animation-timing-function: linear;
  1009. }