app.scss 24 KB

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