main.scss 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243
  1. @import './base/reset';
  2. @import './base/variables';
  3. @import './base/colors';
  4. @import './base/grid';
  5. @import './base/layout';
  6. @import './base/animations';
  7. @import './base/fonts';
  8. html{
  9. // background-color: red;
  10. }
  11. aside.messages{
  12. border:none;
  13. }
  14. // _ _ _
  15. // | || |___ __ _ __| |___ _ _
  16. // | __ / -_) _` / _` / -_) '_|
  17. // |_||_\___\__,_\__,_\___|_|
  18. header[role="banner"]{
  19. padding:0.2em 0 0 0;
  20. %header-fs{
  21. font-size: 0.9em;
  22. // line-height: 1;
  23. font-weight: 400;
  24. }
  25. #block-sitebranding{
  26. h1{
  27. margin:0;
  28. line-height: 1;
  29. }
  30. }
  31. #block-userlogin{
  32. position: relative;
  33. // width:8em;
  34. padding:0 1em;
  35. overflow: visible;
  36. h2{
  37. @extend %header-fs;
  38. line-height: 1.38;
  39. margin: 0;
  40. }
  41. &>section{
  42. background-color: #fff;
  43. overflow: hidden;
  44. width:11em;
  45. height:1px;
  46. padding:0.01em 1em;
  47. // margin:0 0 0 -1em;
  48. box-sizing:content-box;
  49. transition: all 0.4s ease-in-out;
  50. // outline: 1px solid blue;
  51. transition-delay: 2s;
  52. position: absolute;
  53. right:0;
  54. top:1.7em;
  55. box-sizing: content-box;
  56. }
  57. &:hover{
  58. &>section{
  59. transition-delay: 0s;
  60. height:12em;
  61. padding:1em 1em;
  62. box-shadow: 0 0 10px #ccc;
  63. }
  64. }
  65. .form-item{
  66. margin:0;
  67. position: relative;
  68. width:100%;
  69. &.form-item-name{
  70. margin:2px 0 0.5em 0;
  71. input{
  72. width:90%;
  73. padding:0;
  74. box-sizing: content-box;
  75. }
  76. }
  77. &.form-item-pass{
  78. margin:0 0 0.5em 0;
  79. input{
  80. width:90%;
  81. padding:0;
  82. box-sizing: content-box;
  83. }
  84. }
  85. &.form-item-persistent-login{
  86. font-size: 0.756em;
  87. label{
  88. vertical-align: top;
  89. }
  90. }
  91. }
  92. #edit-actions{
  93. margin:0;
  94. }
  95. .item-list{
  96. ul{
  97. margin:0;
  98. li{
  99. list-style: none;
  100. margin:0;
  101. a{
  102. font-size: 0.756em;
  103. }
  104. }
  105. }
  106. }
  107. }
  108. // non-vue userblock
  109. #block-userblock{
  110. h2{display:none;}
  111. a{
  112. margin-right: 1em;
  113. }
  114. }
  115. // vue userblock
  116. #user-tools{
  117. padding-top: 0.06em;
  118. h4{
  119. @extend %header-fs;
  120. cursor: pointer;
  121. }
  122. .mdi-logout::before {
  123. margin: -0.125em 0 0 0;
  124. vertical-align: top;
  125. }
  126. }
  127. // vue flaglist
  128. #user-flags{
  129. border-left: 1px solid #000;
  130. padding-left: 0.5em;
  131. margin-left: 0.5em;
  132. display: inline-block;
  133. vertical-align: top;
  134. position: relative;
  135. h2{
  136. @extend %header-fs;
  137. cursor: pointer;
  138. &:before{padding-right: 0.2em;}
  139. }
  140. ul{
  141. background-color: #fff;
  142. overflow: hidden;
  143. width:11em;
  144. max-height:1px;
  145. padding:0.01em 1em;
  146. // margin:0 0 0 -1em;
  147. box-sizing:content-box;
  148. transition: all 0.4s ease-in-out;
  149. // outline: 1px solid blue;
  150. transition-delay: 2s;
  151. position: absolute;
  152. right:0;
  153. top:1.7em;
  154. box-sizing: content-box;
  155. z-index: 30;
  156. }
  157. &:hover{
  158. ul{
  159. transition-delay: 0s;
  160. max-height:50em;
  161. padding:1em 1em;
  162. box-shadow: 0 0 10px #ccc;
  163. }
  164. }
  165. li{
  166. width:100%;
  167. // cursor: pointer;
  168. display: flex;
  169. flex-direction: row;
  170. align-items: baseline;
  171. flex-wrap: nowrap;
  172. h5{
  173. @extend %header-fs;
  174. cursor: pointer;
  175. }
  176. span.mdi{
  177. font-size: 0.9em;
  178. }
  179. div.actions{
  180. opacity:0;
  181. transition: opacity 0.3s ease-in-out;
  182. padding-left:0.5em;
  183. span.mdi{
  184. cursor: pointer;
  185. color: #4e4d4d;
  186. }
  187. span.delete-btn{
  188. &.loading:before{
  189. animation: rotating 2s linear infinite;
  190. }
  191. }
  192. }
  193. &:hover{
  194. div.actions{
  195. opacity:1;
  196. }
  197. }
  198. &.create-flag{
  199. margin-top: 0.2em;
  200. input{
  201. align-self: flex-end;
  202. border: 1px solid #bbb;
  203. border-radius:5px;
  204. width: calc(100% - 2em);
  205. font-size:0.8em;
  206. }
  207. span.add-btn{
  208. align-self: flex-end;
  209. color: #bbb;
  210. font-size: 1em;
  211. padding: 0 0 0 .5em;
  212. transition: all 0.2s ease-in-out;
  213. &.active{
  214. cursor: pointer;
  215. color:#1a1a1a;
  216. }
  217. &.loading:before{
  218. animation: rotating 2s linear infinite;
  219. }
  220. }
  221. }
  222. }
  223. }
  224. // menu
  225. #block-header{
  226. margin-right: 1em;
  227. padding-left: 1em;
  228. border-left: 1px solid #000;
  229. ul.menu{
  230. margin:0;
  231. li{
  232. padding:0;
  233. display: inline-block;
  234. &:not(:first-of-type){
  235. margin-left: 0.5em;
  236. }
  237. a{
  238. @extend %header-fs;
  239. }
  240. }
  241. }
  242. }
  243. #block-languageswitcher{
  244. text-align: right;
  245. h2{
  246. margin: 0.1em 0 0 0;
  247. font-size: 0.756em;
  248. font-weight: 400;
  249. padding:0.1em 0.4em 0.2em;
  250. border-radius: 3px;
  251. background-color: #444;
  252. color: #fff;
  253. display: inline-block;
  254. vertical-align: top;
  255. }
  256. &>ul.links{
  257. // background-color: #fff;
  258. overflow: hidden;
  259. width:3.5em;
  260. // display: inline-block;
  261. height:1px;
  262. padding:0.01em 0;
  263. margin:0;
  264. box-sizing:content-box;
  265. transition: all 0.4s ease-in-out;
  266. // outline: 1px solid blue;
  267. // transition-delay: 2s;
  268. }
  269. &:hover{
  270. &>ul.links{
  271. transition-delay: 0s;
  272. height:2em;
  273. padding:0.3em 0;
  274. // box-shadow: 0 0 10px #ccc;
  275. }
  276. }
  277. li{
  278. list-style: none;
  279. padding:0;
  280. display: inline-block;
  281. &.is-active{
  282. display:none;
  283. }
  284. a{
  285. margin: 0;
  286. font-size: 0.756em;
  287. font-weight: 400;
  288. padding:0.2em 0.4em;
  289. border-radius: 3px;
  290. background-color: #444;
  291. color: #fff;
  292. }
  293. }
  294. }
  295. // header bottom
  296. #header-bottom{
  297. // disable the default wrapper behaviour
  298. &:after{content: none;}
  299. // apply flex for normal layout
  300. display: flex;
  301. flex-direction: row;
  302. justify-content: space-between;
  303. #block-pagetitle{}
  304. #block-materiosapisearchblock{
  305. align-self: flex-end;
  306. }
  307. @include col-mediaquery-max(3){
  308. flex-direction: column-reverse;
  309. // justify-content: flex-start;
  310. #block-pagetitle{
  311. width: max-content;
  312. }
  313. #block-materiosapisearchblock{}
  314. }
  315. }
  316. #block-pagetitle{
  317. // float: left;
  318. padding:1em 0;
  319. h2{
  320. margin:0;
  321. font-size: 1.512em;
  322. text-transform: capitalize;
  323. font-weight: 300;
  324. body:not(.path-home) & {
  325. padding:0.5em 1em;
  326. }
  327. body.path-blabla & {
  328. color: #fff;
  329. background-color: $color-blabla;
  330. }
  331. body.path-showrooms & {
  332. color: #fff;
  333. background-color: $color-showrooms;
  334. }
  335. body.path-base &,
  336. body.path-thematique & {
  337. color: #fff;
  338. background-color: $color-base;
  339. }
  340. }
  341. }
  342. #block-materiosapisearchblock{
  343. // float:right;
  344. // display:inline-block;
  345. // box-shadow: 0 0 5px rgba(0,0,0,0.2);
  346. padding:0;
  347. #materio-sapi-search-form{
  348. .form-item, input.button{
  349. display: inline-block;
  350. }
  351. #edit-search{
  352. border:1px #BBB solid;
  353. border-radius: 14px;
  354. padding:0.3em;
  355. color:#666;
  356. }
  357. #edit-submit{
  358. border:0;
  359. text-indent: 50px;
  360. overflow: hidden;
  361. width:20px; height:20px;
  362. margin:0;
  363. // border-radius: 7px;
  364. background-image: url('../img/search.png');
  365. background-position: center;
  366. background-repeat: no-repeat;
  367. background-size: contain;
  368. }
  369. }
  370. }
  371. }
  372. // main
  373. aside.messages{
  374. padding: 0;
  375. }
  376. // content top
  377. // #content-top{
  378. // &:after{
  379. // content:"";
  380. // clear:both;
  381. // display: block;
  382. // }
  383. // }
  384. // ___ _ _ _ __ _
  385. // / __|___ _ _| |_ ___ _ _| |_ ___| | ___ / _| |_
  386. // | (__/ _ \ ' \ _/ -_) ' \ _|___| |__/ -_) _| _|
  387. // \___\___/_||_\__\___|_||_\__| |____\___|_| \__|
  388. #content-left{
  389. z-index: 5;
  390. box-sizing: content-box;
  391. max-width:1px;
  392. overflow-x: hidden;
  393. transition: all 0.3s ease-in-out;
  394. &.opened{
  395. max-width: 500px;
  396. padding: 0.3em;
  397. }
  398. >*{
  399. box-sizing: border-box;
  400. background-color: #fff;
  401. box-shadow: -2px 0px 4px rgba(0, 0, 0, 0.2);
  402. padding: 0.5em;
  403. }
  404. .flag-collection{
  405. >header{
  406. display: flex;
  407. flex-direction: row;
  408. justify-content: space-between;
  409. padding-bottom: $column_goutiere;
  410. h3{
  411. // flex-basis: calc(100% - 1em);
  412. }
  413. .mdi-close{
  414. // display: block;
  415. // flex-basis: 1em;
  416. cursor:pointer;
  417. align-self: flex-end;
  418. }
  419. }
  420. >ul{
  421. >li{
  422. margin:0 0 $column_goutiere 0;
  423. padding:0;
  424. article.card.minicard{
  425. width:$minicard_width;
  426. height:$minicard_height;
  427. margin:auto;
  428. >header{
  429. padding: 0.3em 0.3em 0.1em;
  430. h1{
  431. margin:0;
  432. }
  433. }
  434. >nav.tools{
  435. top: auto;
  436. bottom: 0;
  437. padding:0 0.2em;
  438. background:transparent;
  439. .mdi.unflag{
  440. cursor: pointer;
  441. }
  442. }
  443. }
  444. }
  445. }
  446. }
  447. }
  448. // __ _
  449. // / _|_ _ ___ _ _| |_
  450. // | _| '_/ _ \ ' \ _|
  451. // |_| |_| \___/_||_\__|
  452. article.node--type-frontpage{
  453. %front-col-field__label{
  454. font-size: 3.5em;
  455. line-height: 1;
  456. }
  457. %front-col-descritpion{
  458. font-size: 0.9em;
  459. line-height: 1.3;
  460. }
  461. %part-centered-layout{
  462. padding:1.5em 0;
  463. background-color: #fff;
  464. >div:nth-child(1){
  465. width:80%;
  466. margin: 0 auto;
  467. text-align: center;
  468. .field__label{
  469. @extend %front-col-field__label;
  470. }
  471. .field__item{
  472. @extend %front-col-descritpion;
  473. }
  474. }
  475. }
  476. // %part-columned-layout{
  477. // display:grid;
  478. // grid-template-columns: 300px 1fr;
  479. // grid-column-gap: 2em;
  480. // padding:2em 1em;
  481. // >div:nth-child(1){
  482. // color: #fff;
  483. // grid-column: 1;
  484. // .field__label{
  485. // @extend %front-col-field__label;
  486. // }
  487. // .field__item{
  488. // @extend %front-col-descritpion;
  489. // }
  490. // }
  491. // >div:nth-child(2){
  492. // grid-column: 2;
  493. // }
  494. // }
  495. %part-columned-layout{
  496. display:flex;
  497. flex-direction: row;
  498. flex-wrap: nowrap;
  499. >div:nth-child(1){
  500. flex: 0 0 $column_width * 2 + $column_goutiere;
  501. box-sizing: border-box;
  502. padding: 1em;
  503. color: #fff;
  504. .field__label{
  505. @extend %front-col-field__label;
  506. }
  507. .field__item{
  508. @extend %front-col-descritpion;
  509. }
  510. }
  511. >div:nth-child(2){
  512. flex: 1 1 auto;
  513. box-sizing: border-box;
  514. padding: 1em 0.5em;
  515. }
  516. }
  517. >h2{
  518. display: none;
  519. }
  520. .node__content{
  521. @mixin btn{
  522. display: inline-block;
  523. font-size: 0.9em;
  524. font-weight: bold;
  525. padding: 0.7em 1em;
  526. margin-bottom: 0.3em;
  527. background-color: #fff;
  528. color: #000;
  529. border-radius: 5px;
  530. }
  531. &>section{
  532. &.home-intro{
  533. @extend %part-centered-layout;
  534. }
  535. &.home-database{
  536. background-color: $color-base;
  537. @extend %part-columned-layout;
  538. .field--name-field-a-database{
  539. }
  540. .field--name-field-database-links{
  541. .field__item{
  542. display: inline-block;
  543. a{
  544. @include btn;
  545. background-color: #fff;
  546. color: $color-base;
  547. }
  548. }
  549. }
  550. .cards-list-home{
  551. position: relative;
  552. // max-height: (130px*1.4)*3;
  553. max-height: 580px;
  554. overflow-y: hidden;
  555. ul{
  556. width:100%;
  557. margin:0; padding:0;
  558. // display: grid;
  559. // grid-template-columns: repeat(auto-fill, minmax(50px, 130px));
  560. // grid-template-rows: 1fr;
  561. // grid-gap: 1em;
  562. // justify-content:start;
  563. display: flex;
  564. flex-flow: row wrap;
  565. justify-content: space-between;
  566. li{
  567. padding:0 0 $column_goutiere / 2 0;
  568. box-sizing: border-box;
  569. // padding-top: 140%;
  570. width: $column_width / 2;
  571. height: $card_height / 2;
  572. position: relative;
  573. list-style: none;
  574. margin:0;
  575. .card{
  576. // position:absolute;
  577. // top:0; bottom:0;
  578. // left:0; right:0;
  579. width: 100%;
  580. height: 100%;
  581. .field--name-field-short-description{
  582. font-size: 0.656em;
  583. line-height: 1.2;
  584. }
  585. }
  586. }
  587. }
  588. }
  589. }
  590. &.home-showrooms{
  591. background-color: $color-showrooms;
  592. @extend %part-columned-layout;
  593. .field--name-field-showrooms{}
  594. .field--name-field-showroom-links{
  595. .field__item{
  596. display: inline-block;
  597. a{
  598. @include btn;
  599. background-color: #fff;
  600. color: $color-showrooms;
  601. }
  602. }
  603. }
  604. .field--name-computed-showrooms-reference{
  605. position:relative;
  606. // height:550px;
  607. display: grid;
  608. grid-template-rows: 1fr;
  609. $bp: ($column_width + $column_goutiere )*7;
  610. @media only screen and (max-width: $bp){
  611. grid-template-columns: 1fr;
  612. >.field__item{
  613. grid-column: 1;
  614. }
  615. }
  616. @media only screen and (min-width: $bp + 1px){
  617. grid-template-columns: 1fr 1fr;
  618. grid-gap: 1em;
  619. >.field__item:nth-child(odd){
  620. grid-column: 1;
  621. }
  622. >.field__item:nth-child(even){
  623. grid-column: 2;
  624. }
  625. }
  626. >.field__item{
  627. grid-row: 1;
  628. // position: absolute;
  629. // top:0; left:0;
  630. // width:100%; height:100%;
  631. // overflow: hidden;
  632. .taxonomy-term{
  633. position: relative;
  634. width:100%; height:100%;
  635. div.visuel{
  636. width:100%;
  637. padding-bottom: 10em;
  638. img{
  639. max-width: 100%;
  640. height: auto;
  641. }
  642. }
  643. section.text{
  644. position: absolute;
  645. bottom:0; left:0;
  646. width:100%;
  647. box-sizing:border-box;
  648. padding:1em 0;
  649. background-color:$color-showrooms;
  650. color: #fff;
  651. >*{
  652. // display: inline-block;
  653. font-size: 0.9em;
  654. }
  655. h2,p{
  656. margin:0;
  657. }
  658. }
  659. }
  660. }
  661. }
  662. }
  663. &.home-blabla{
  664. background-color: $color-blabla;
  665. @extend %part-columned-layout;
  666. .field--name-field-blabla-links{
  667. .field__item{
  668. display: inline-block;
  669. a{
  670. @include btn;
  671. background-color: #fff;
  672. color: $color-blabla;
  673. }
  674. }
  675. }
  676. .cards-list-home{
  677. position: relative;
  678. $bp: ($column_width*2 + $column_goutiere );
  679. overflow-y: hidden;
  680. max-height: 315px;
  681. // @media only screen and (max-width: $bp * 6){
  682. // max-height: 630px;
  683. // }
  684. // @media only screen and (min-width: ($bp * 6) + 1px){
  685. // max-height: 310px;
  686. // }
  687. ul{
  688. width:100%;
  689. margin:0; padding:0;
  690. // display: grid;
  691. // grid-template-columns: repeat(auto-fill, minmax(80px, $column_width*2));
  692. // // grid-template-rows: 1fr;
  693. // grid-gap: 1em;
  694. // justify-content:start;
  695. display: flex;
  696. flex-flow: row wrap;
  697. justify-content: space-between;
  698. li{
  699. padding:0 0 $column_goutiere 0;
  700. box-sizing: border-box;
  701. // padding-top: 140%;
  702. width: $column_width;
  703. // height: $card_height / 2;
  704. position: relative;
  705. list-style: none;
  706. margin:0;
  707. // padding-top: 67.8%;
  708. overflow: hidden;
  709. .card{
  710. // position:absolute;
  711. // top:0; bottom:0;
  712. // left:0; right:0;
  713. width: 100%;
  714. height: auto;
  715. .field--name-title{
  716. font-size: 0.756em;
  717. line-height: 0.9;
  718. }
  719. }
  720. }
  721. }
  722. }
  723. }
  724. &.home-pricing{
  725. @extend %part-centered-layout;
  726. }
  727. }
  728. }
  729. }
  730. // ___ _
  731. // / __|__ _ _ _ __| |___
  732. // | (__/ _` | '_/ _` (_-<
  733. // \___\__,_|_| \__,_/__/
  734. .infinite-loading-container{
  735. .infinite-status-prompt{
  736. i[class^="loading-"]{
  737. width:15px; height:15px;
  738. }
  739. }
  740. }
  741. .cards-list{
  742. position: relative;
  743. .search-info{
  744. font-size: 0.756em;
  745. font-weight: 500;
  746. margin: 0;
  747. padding: 0 0 0.5em 0;
  748. }
  749. &>ul{
  750. // outline: 1px green solid;
  751. margin:0; padding:0;
  752. width: calc(100% + #{$column_goutiere});
  753. &>li{
  754. list-style: none;
  755. margin:0 $column_goutiere $column_goutiere 0; padding:0;
  756. display: inline-block;
  757. vertical-align: top;
  758. }
  759. }
  760. }
  761. article.card{
  762. position: relative;
  763. box-shadow: 0 0 5px rgba(0,0,0,0.2);
  764. width:$column_width; height:$card_height;
  765. &.article{
  766. width:$column_width*2 + $column_goutiere; height:$card_height;
  767. }
  768. &.minicard{
  769. height:100px;
  770. }
  771. // &.card-small{
  772. // width:100px; height:140px;
  773. // }
  774. // focused
  775. // box-shadow: 0 0 7px rgba(0,0,0,0.9);
  776. // &.article{
  777. // width: $column_width * 2 + $column_goutiere;
  778. //
  779. // }
  780. header{
  781. position: absolute;
  782. bottom:0;
  783. z-index:10;
  784. color: #000;
  785. background-color: rgba(255,255,255,0.8);
  786. padding: 0.3em 0.3em;
  787. box-sizing:border-box;
  788. width:100%;
  789. h1, h4{ margin:0; padding:0; }
  790. h1{
  791. font-size: 1.3em;
  792. font-weight: 700;
  793. line-height: 0.85;
  794. margin-bottom: 0.2em;
  795. }
  796. h4{
  797. font-size: 0.882em;
  798. font-weight: 300;
  799. line-height: 1;
  800. // margin-bottom: 0.1em;
  801. }
  802. span.ref{
  803. font-size: 0.693em;
  804. font-weight: 300;
  805. line-height: 1;
  806. }
  807. }
  808. &.card-thematique header{
  809. background-color: $color-base-transparent;
  810. }
  811. nav.tools{
  812. position: absolute;
  813. top: 0;
  814. right: 0;
  815. z-index: 21;
  816. $toolbar_width: 15px;
  817. width: $toolbar_width;
  818. background-color: #fff;
  819. box-sizing: content-box;
  820. padding: 0.3em 0.1em;
  821. >*{
  822. overflow: visible;
  823. position: relative;
  824. span.btn{
  825. overflow: hidden;
  826. font-size: 0.882em;
  827. }
  828. .tool-content{
  829. position: absolute;
  830. top: 0px;
  831. right: 100%;
  832. // width: 5em;
  833. width: $column_width - $toolbar_width - 10px;
  834. box-sizing: border-box;
  835. padding: 0.3em;
  836. background-color: #fff;
  837. box-shadow: -2px 3px 4px rgba(0, 0, 0, 0.2);
  838. opacity: 0;
  839. max-height: 0; max-width:0;
  840. overflow: hidden;
  841. transition: all 0.2s ease-in-out;
  842. }
  843. &:hover{
  844. .tool-content{
  845. transition: all 0.3s ease-in-out;
  846. opacity: 1;
  847. max-height: 195px;
  848. max-width:200px;
  849. }
  850. }
  851. }
  852. .tool.flags{
  853. .tool-content{
  854. ul{
  855. display: flex;
  856. flex-flow: row wrap;
  857. li{
  858. padding:0 0.5em 0 0;
  859. }
  860. }
  861. }
  862. span.flag{
  863. cursor: pointer;
  864. font-size: 0.756em;
  865. color: #bbb;
  866. transition: color 0.3s ease-in-out;
  867. &:hover, &.isActive{
  868. color:#1a1a1a;
  869. }
  870. }
  871. }
  872. opacity: 0;
  873. transition: opacity 0.2s ease-in-out;
  874. }
  875. &:hover{
  876. nav.tools{
  877. opacity:1;
  878. }
  879. }
  880. section.images{
  881. position: relative;
  882. &, *{width: 100%; height:100%;}
  883. figure{
  884. cursor: pointer;
  885. margin:0;
  886. position: absolute;
  887. top:0; left:0;
  888. // width: 100%; height:100%;
  889. &:first-of-type{
  890. z-index:5
  891. }
  892. transition: opacity 0.2s ease-in-out;
  893. &.show{opacity: 1; z-index:6;}
  894. &.hide{opacity: 0;}
  895. img{
  896. // width: 100%; height:100%;
  897. &.blank{
  898. position: absolute;
  899. top:0; left:0;
  900. z-index: 20;
  901. }
  902. }
  903. }
  904. }
  905. // overwritnig card for card-medium (aka search-card)
  906. &.search-card{
  907. >header{
  908. cursor: pointer;
  909. }
  910. }
  911. // overwriting card for modal-card
  912. &.modal-card{
  913. display: flex;
  914. flex-flow: row-reverse nowrap;
  915. width: $modalcard_width;
  916. height: $modalcard_height;
  917. >.col{
  918. flex-basis: 50%;
  919. }
  920. section.col-right{
  921. >*:not(nav.tools){
  922. position: relative;
  923. padding: 0.5em;
  924. box-sizing: border-box;
  925. width: 100%;
  926. }
  927. header{
  928. bottom: auto;
  929. }
  930. section.samples{
  931. ul{
  932. display: flex;
  933. flex-flow: row wrap;
  934. font-size: 0.882em;
  935. font-weight: 300;
  936. // line-height: 1.35;
  937. li{
  938. padding-right: 0.5em;
  939. span.showroom{ font-weight: 500; }
  940. }
  941. }
  942. }
  943. section.body{
  944. p{
  945. font-size: 0.882em;
  946. font-weight: 300;
  947. line-height: 1.35;
  948. }
  949. }
  950. nav.tools{
  951. opacity: 1;
  952. section.close{
  953. span.btn.mdi-close{
  954. cursor:pointer;
  955. }
  956. }
  957. }
  958. }
  959. }
  960. }
  961. // _____ _ _ _
  962. // |_ _| |_ ___ _ __ __ _| |_(_)__ _ _ _ ___
  963. // | | | ' \/ -_) ' \/ _` | _| / _` | || / -_)
  964. // |_| |_||_\___|_|_|_\__,_|\__|_\__, |\_,_\___|
  965. // |_|
  966. #main-content > article.thematique{
  967. div.cols{
  968. display: flex;
  969. flex-direction: row;
  970. flex-wrap: nowrap;
  971. // @media only screen and (max-width: $small-bp) {
  972. @include col-mediaquery-max(3){
  973. flex-wrap: wrap;
  974. }
  975. // }
  976. div.col-left{
  977. padding: 0 $column_goutiere $column_goutiere 0;
  978. flex: 0 0 $column_width * 2 + $column_goutiere;
  979. }
  980. div.col-right{}
  981. }
  982. div.col-left section.body{
  983. background-color: $color-base;
  984. padding: 0.5em 1em 1em;
  985. }
  986. aside.linked-materials{
  987. ul{
  988. width:calc(100% + #{$column_goutiere});
  989. li{
  990. display: inline-block;
  991. vertical-align: top;
  992. width:$column_width;
  993. margin:0 $column_goutiere $column_goutiere 0;
  994. }
  995. }
  996. h3.field__label{
  997. font-size: 1em;
  998. font-weight: 500;
  999. margin: 2em 0 1em 0;
  1000. }
  1001. h1.title{
  1002. font-size: 1em;
  1003. font-weight: 400;
  1004. }
  1005. h3.ref{
  1006. font-size: 0.756em;
  1007. font-weight: 600;
  1008. }
  1009. h2.description{
  1010. font-size: 0.756em;
  1011. font-weight: 400;
  1012. }
  1013. }
  1014. }
  1015. // ___ _ _ _
  1016. // | _ ) |__ _| |__| |__ _
  1017. // | _ \ / _` | '_ \ / _` |
  1018. // |___/_\__,_|_.__/_\__,_|
  1019. #blabla{
  1020. }
  1021. #main-content > article.article{
  1022. div.cols{
  1023. display: grid;
  1024. grid-template-rows: 1fr;
  1025. grid-template-columns: repeat(6, 1fr);
  1026. grid-gap: 1em;
  1027. div.col-left{
  1028. grid-column: 1;
  1029. }
  1030. div.col-right{
  1031. grid-column: 2/6;
  1032. }
  1033. }
  1034. section.accroche{
  1035. figure{
  1036. width:$column_width*2 + $column_goutiere;
  1037. margin:0 $column_goutiere 0 0;
  1038. img{
  1039. width:100%;
  1040. }
  1041. }
  1042. }
  1043. section.taxonomy{
  1044. margin:1em 0;
  1045. ul{
  1046. margin: 0;
  1047. }
  1048. li{
  1049. display:inline-block;
  1050. padding:0 0.5em 0 0;
  1051. }
  1052. }
  1053. div.gallery-wrapper{
  1054. .image{
  1055. display: inline-block;
  1056. width:$column_width;
  1057. margin:0 $column_goutiere $column_goutiere*0.6 0;
  1058. height:$card_height / 2;
  1059. background-size: cover;
  1060. }
  1061. }
  1062. // section.videos{
  1063. // ul{
  1064. // margin:0; padding:0;
  1065. // li{
  1066. // margin:0; padding:0;
  1067. // display: inline-block;
  1068. // width:100%; overflow: hidden;
  1069. // }
  1070. // }
  1071. // }
  1072. // section.visuels{
  1073. // width:calc(100% + #{$column_goutiere});
  1074. // figure{
  1075. // position: relative;
  1076. // display: inline-block;
  1077. // vertical-align: top;
  1078. // width:$column_width*2 + $column_goutiere;
  1079. // margin:0 $column_goutiere $column_goutiere*0.6 0;
  1080. // img{
  1081. // width:100%;
  1082. // }
  1083. // caption{
  1084. // position: absolute; bottom: 0; left:0;
  1085. // box-sizing: border-box; width: 100%; padding:0.5em;
  1086. // background-color: $transparent-bg-blk; color: #fff;
  1087. // }
  1088. // }
  1089. // }
  1090. aside.linked-materials{
  1091. ul{
  1092. width:calc(100% + #{$column_goutiere});
  1093. li{
  1094. display: inline-block;
  1095. vertical-align: top;
  1096. width:$column_width;
  1097. margin:0 $column_goutiere $column_goutiere 0;
  1098. }
  1099. }
  1100. h3.field__label{
  1101. font-size: 1em;
  1102. font-weight: 500;
  1103. margin: 2em 0 1em 0;
  1104. }
  1105. h1.title{
  1106. font-size: 1em;
  1107. font-weight: 400;
  1108. }
  1109. h3.ref{
  1110. font-size: 0.756em;
  1111. font-weight: 600;
  1112. }
  1113. h2.description{
  1114. font-size: 0.756em;
  1115. font-weight: 400;
  1116. }
  1117. }
  1118. nav.prevnext{
  1119. &.bottom{
  1120. margin:2em 0;
  1121. }
  1122. ul{
  1123. padding:0;
  1124. margin:0;
  1125. display: grid;
  1126. grid-template-columns: 1fr 1fr;
  1127. }
  1128. li{
  1129. padding:0;
  1130. margin:0;
  1131. list-style: none;
  1132. a{
  1133. font-size: 0.756em;
  1134. font-weight: 700;
  1135. }
  1136. &:nth-child(1){
  1137. grid-column: 1;
  1138. a:before{
  1139. content:'< ';
  1140. }
  1141. }
  1142. &:nth-child(2){
  1143. grid-column: 2;
  1144. text-align: right;
  1145. a:after{
  1146. content:' >';
  1147. }
  1148. }
  1149. }
  1150. }
  1151. }
  1152. // ___ _
  1153. // / __| |_ _____ __ ___ _ ___ ___ _ __ ___
  1154. // \__ \ ' \/ _ \ V V / '_/ _ \/ _ \ ' \(_-<
  1155. // |___/_||_\___/\_/\_/|_| \___/\___/_|_|_/__/
  1156. #showrooms{
  1157. width: calc(100% + #{$column_goutiere});
  1158. article.showroom{
  1159. width: $column_width * 2 + $column_goutiere;
  1160. display: inline-block;
  1161. vertical-align: top;
  1162. margin: 0 $column_goutiere $column_goutiere 0;
  1163. h1{
  1164. margin:0;
  1165. font-weight: 4;
  1166. }
  1167. p{ margin:0; }
  1168. figure{
  1169. margin:0;
  1170. img{
  1171. max-width: 100%;
  1172. }
  1173. }
  1174. }
  1175. }