main.scss 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159
  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. .node__content{
  496. &>section{
  497. &.home-intro{
  498. @extend %part-centered-layout;
  499. }
  500. &.home-database{
  501. background-color: $color-base;
  502. @extend %part-columned-layout;
  503. .field--name-field-a-database{}
  504. .cards-list-home{
  505. position: relative;
  506. // max-height: (130px*1.4)*3;
  507. max-height: 580px;
  508. overflow-y: hidden;
  509. ul{
  510. width:100%;
  511. margin:0; padding:0;
  512. display: grid;
  513. grid-template-columns: repeat(auto-fill, minmax(50px, 130px));
  514. grid-template-rows: 1fr;
  515. grid-gap: 1em;
  516. justify-content:start;
  517. li{
  518. position: relative;
  519. list-style: none;
  520. margin:0; padding:0;
  521. padding-top: 140%;
  522. .card{
  523. position:absolute;
  524. top:0; bottom:0;
  525. left:0; right:0;
  526. width: auto;
  527. height: auto;
  528. .field--name-field-short-description{
  529. font-size: 0.756em;
  530. line-height: 0.9;
  531. }
  532. }
  533. }
  534. }
  535. }
  536. }
  537. &.home-showrooms{
  538. background-color: $color-showrooms;
  539. @extend %part-columned-layout;
  540. .field--name-field-showrooms{
  541. }
  542. .field--name-computed-showrooms-reference{
  543. position:relative;
  544. // height:550px;
  545. display: grid;
  546. grid-template-rows: 1fr;
  547. $bp: ($column_width + $column_goutiere )*7;
  548. @media only screen and (max-width: $bp){
  549. grid-template-columns: 1fr;
  550. >.field__item{
  551. grid-column: 1;
  552. }
  553. }
  554. @media only screen and (min-width: $bp + 1px){
  555. grid-template-columns: 1fr 1fr;
  556. grid-gap: 1em;
  557. >.field__item:nth-child(odd){
  558. grid-column: 1;
  559. }
  560. >.field__item:nth-child(even){
  561. grid-column: 2;
  562. }
  563. }
  564. >.field__item{
  565. grid-row: 1;
  566. // position: absolute;
  567. // top:0; left:0;
  568. // width:100%; height:100%;
  569. // overflow: hidden;
  570. .taxonomy-term{
  571. position: relative;
  572. width:100%; height:100%;
  573. div.visuel{
  574. width:100%;
  575. padding-bottom: 10em;
  576. img{
  577. max-width: 100%;
  578. height: auto;
  579. }
  580. }
  581. section.text{
  582. position: absolute;
  583. bottom:0; left:0;
  584. width:100%;
  585. box-sizing:border-box;
  586. padding:1em 0;
  587. background-color:$color-showrooms;
  588. color: #fff;
  589. >*{
  590. // display: inline-block;
  591. font-size: 0.9em;
  592. }
  593. h2,p{
  594. margin:0;
  595. }
  596. }
  597. }
  598. }
  599. }
  600. }
  601. &.home-blabla{
  602. background-color: $color-blabla;
  603. @extend %part-columned-layout;
  604. .cards-list-home{
  605. position: relative;
  606. $bp: ($column_width*2 + $column_goutiere );
  607. overflow-y: hidden;
  608. @media only screen and (max-width: $bp * 6){
  609. max-height: 630px;
  610. }
  611. @media only screen and (min-width: ($bp * 6) + 1px){
  612. max-height: 310px;
  613. }
  614. ul{
  615. width:100%;
  616. margin:0; padding:0;
  617. display: grid;
  618. grid-template-columns: repeat(auto-fill, minmax(80px, $column_width*2));
  619. // grid-template-rows: 1fr;
  620. grid-gap: 1em;
  621. justify-content:start;
  622. li{
  623. position: relative;
  624. list-style: none;
  625. margin:0; padding:0;
  626. padding-top: 67.8%;
  627. overflow: hidden;
  628. .card{
  629. position:absolute;
  630. top:0; bottom:0;
  631. left:0; right:0;
  632. width: auto;
  633. height: auto;
  634. .field--name-title{
  635. font-size: 0.756em;
  636. line-height: 0.9;
  637. }
  638. }
  639. }
  640. }
  641. }
  642. }
  643. &.home-pricing{
  644. @extend %part-centered-layout;
  645. }
  646. }
  647. }
  648. }
  649. // ___ _
  650. // / __|__ _ _ _ __| |___
  651. // | (__/ _` | '_/ _` (_-<
  652. // \___\__,_|_| \__,_/__/
  653. .infinite-loading-container{
  654. .infinite-status-prompt{
  655. i[class^="loading-"]{
  656. width:15px; height:15px;
  657. }
  658. }
  659. }
  660. .cards-list{
  661. position: relative;
  662. .search-info{
  663. font-size: 0.756em;
  664. font-weight: 500;
  665. margin: 0;
  666. padding: 0 0 0.5em 0;
  667. }
  668. &>ul{
  669. // outline: 1px green solid;
  670. margin:0; padding:0;
  671. width: calc(100% + #{$column_goutiere});
  672. &>li{
  673. list-style: none;
  674. margin:0 $column_goutiere $column_goutiere 0; padding:0;
  675. display: inline-block;
  676. vertical-align: top;
  677. }
  678. }
  679. }
  680. article.card{
  681. position: relative;
  682. box-shadow: 0 0 5px rgba(0,0,0,0.2);
  683. width:$column_width; height:$card_height;
  684. &.article{
  685. width:$column_width*2 + $column_goutiere; height:$card_height;
  686. }
  687. &.minicard{
  688. height:100px;
  689. }
  690. // &.card-small{
  691. // width:100px; height:140px;
  692. // }
  693. // focused
  694. // box-shadow: 0 0 7px rgba(0,0,0,0.9);
  695. // &.article{
  696. // width: $column_width * 2 + $column_goutiere;
  697. //
  698. // }
  699. header{
  700. position: absolute;
  701. bottom:0;
  702. z-index:10;
  703. color: #000;
  704. background-color: rgba(255,255,255,0.8);
  705. padding: 0.3em 0.3em;
  706. box-sizing:border-box;
  707. width:100%;
  708. h1, h4{ margin:0; padding:0; }
  709. h1{
  710. font-size: 1.3em;
  711. font-weight: 700;
  712. line-height: 0.85;
  713. margin-bottom: 0.2em;
  714. }
  715. h4{
  716. font-size: 0.882em;
  717. font-weight: 300;
  718. line-height: 1;
  719. // margin-bottom: 0.1em;
  720. }
  721. span.ref{
  722. font-size: 0.693em;
  723. font-weight: 300;
  724. line-height: 1;
  725. }
  726. }
  727. &.card-thematique header{
  728. background-color: $color-base-transparent;
  729. }
  730. nav.tools{
  731. position: absolute;
  732. top: 0;
  733. right: 0;
  734. z-index: 21;
  735. $toolbar_width: 15px;
  736. width: $toolbar_width;
  737. background-color: #fff;
  738. box-sizing: content-box;
  739. padding: 0.3em 0.1em;
  740. >*{
  741. overflow: visible;
  742. position: relative;
  743. span.btn{
  744. overflow: hidden;
  745. font-size: 0.882em;
  746. }
  747. .tool-content{
  748. position: absolute;
  749. top: 0px;
  750. right: 100%;
  751. // width: 5em;
  752. width: $column_width - $toolbar_width - 10px;
  753. box-sizing: border-box;
  754. padding: 0.3em;
  755. background-color: #fff;
  756. box-shadow: -2px 3px 4px rgba(0, 0, 0, 0.2);
  757. opacity: 0;
  758. max-height: 0; max-width:0;
  759. overflow: hidden;
  760. transition: all 0.2s ease-in-out;
  761. }
  762. &:hover{
  763. .tool-content{
  764. transition: all 0.3s ease-in-out;
  765. opacity: 1;
  766. max-height: 195px;
  767. max-width:200px;
  768. }
  769. }
  770. }
  771. .tool.flags{
  772. .tool-content{
  773. ul{
  774. display: flex;
  775. flex-flow: row wrap;
  776. li{
  777. padding:0 0.5em 0 0;
  778. }
  779. }
  780. }
  781. span.flag{
  782. cursor: pointer;
  783. font-size: 0.756em;
  784. color: #bbb;
  785. transition: color 0.3s ease-in-out;
  786. &:hover, &.isActive{
  787. color:#1a1a1a;
  788. }
  789. }
  790. }
  791. opacity: 0;
  792. transition: opacity 0.2s ease-in-out;
  793. }
  794. &:hover{
  795. nav.tools{
  796. opacity:1;
  797. }
  798. }
  799. section.images{
  800. position: relative;
  801. &, *{width: 100%; height:100%;}
  802. figure{
  803. cursor: pointer;
  804. margin:0;
  805. position: absolute;
  806. top:0; left:0;
  807. // width: 100%; height:100%;
  808. &:first-of-type{
  809. z-index:5
  810. }
  811. transition: opacity 0.2s ease-in-out;
  812. &.show{opacity: 1; z-index:6;}
  813. &.hide{opacity: 0;}
  814. img{
  815. // width: 100%; height:100%;
  816. &.blank{
  817. position: absolute;
  818. top:0; left:0;
  819. z-index: 20;
  820. }
  821. }
  822. }
  823. }
  824. // overwritnig card for card-medium (aka search-card)
  825. &.search-card{
  826. >header{
  827. cursor: pointer;
  828. }
  829. }
  830. // overwriting card for modal-card
  831. &.modal-card{
  832. display: flex;
  833. flex-flow: row-reverse nowrap;
  834. width: $modalcard_width;
  835. height: $modalcard_height;
  836. >.col{
  837. flex-basis: 50%;
  838. }
  839. section.col-right{
  840. >*:not(nav.tools){
  841. position: relative;
  842. padding: 0.5em;
  843. box-sizing: border-box;
  844. width: 100%;
  845. }
  846. header{
  847. bottom: auto;
  848. }
  849. section.samples{
  850. ul{
  851. display: flex;
  852. flex-flow: row wrap;
  853. font-size: 0.882em;
  854. font-weight: 300;
  855. // line-height: 1.35;
  856. li{
  857. padding-right: 0.5em;
  858. span.showroom{ font-weight: 500; }
  859. }
  860. }
  861. }
  862. section.body{
  863. p{
  864. font-size: 0.882em;
  865. font-weight: 300;
  866. line-height: 1.35;
  867. }
  868. }
  869. nav.tools{
  870. opacity: 1;
  871. section.close{
  872. span.btn.mdi-close{
  873. cursor:pointer;
  874. }
  875. }
  876. }
  877. }
  878. }
  879. }
  880. // _____ _ _ _
  881. // |_ _| |_ ___ _ __ __ _| |_(_)__ _ _ _ ___
  882. // | | | ' \/ -_) ' \/ _` | _| / _` | || / -_)
  883. // |_| |_||_\___|_|_|_\__,_|\__|_\__, |\_,_\___|
  884. // |_|
  885. #main-content > article.thematique{
  886. div.cols{
  887. display: flex;
  888. flex-direction: row;
  889. flex-wrap: nowrap;
  890. // @media only screen and (max-width: $small-bp) {
  891. @include col-mediaquery-max(3){
  892. flex-wrap: wrap;
  893. }
  894. // }
  895. div.col-left{
  896. padding: 0 $column_goutiere $column_goutiere 0;
  897. flex: 0 0 $column_width * 2 + $column_goutiere;
  898. }
  899. div.col-right{}
  900. }
  901. div.col-left section.body{
  902. background-color: $color-base;
  903. padding: 0.5em 1em 1em;
  904. }
  905. aside.linked-materials{
  906. ul{
  907. width:calc(100% + #{$column_goutiere});
  908. li{
  909. display: inline-block;
  910. vertical-align: top;
  911. width:$column_width;
  912. margin:0 $column_goutiere $column_goutiere 0;
  913. }
  914. }
  915. h3.field__label{
  916. font-size: 1em;
  917. font-weight: 500;
  918. margin: 2em 0 1em 0;
  919. }
  920. h1.title{
  921. font-size: 1em;
  922. font-weight: 400;
  923. }
  924. h3.ref{
  925. font-size: 0.756em;
  926. font-weight: 600;
  927. }
  928. h2.description{
  929. font-size: 0.756em;
  930. font-weight: 400;
  931. }
  932. }
  933. }
  934. // ___ _ _ _
  935. // | _ ) |__ _| |__| |__ _
  936. // | _ \ / _` | '_ \ / _` |
  937. // |___/_\__,_|_.__/_\__,_|
  938. #blabla{
  939. }
  940. #main-content > article.article{
  941. div.cols{
  942. display: grid;
  943. grid-template-rows: 1fr;
  944. grid-template-columns: repeat(6, 1fr);
  945. grid-gap: 1em;
  946. div.col-left{
  947. grid-column: 1;
  948. }
  949. div.col-right{
  950. grid-column: 2/6;
  951. }
  952. }
  953. section.accroche{
  954. figure{
  955. width:$column_width*2 + $column_goutiere;
  956. margin:0 $column_goutiere 0 0;
  957. img{
  958. width:100%;
  959. }
  960. }
  961. }
  962. section.taxonomy{
  963. margin:1em 0;
  964. ul{
  965. margin: 0;
  966. }
  967. li{
  968. display:inline-block;
  969. padding:0 0.5em 0 0;
  970. }
  971. }
  972. div.gallery-wrapper{
  973. .image{
  974. display: inline-block;
  975. width:$column_width;
  976. margin:0 $column_goutiere $column_goutiere*0.6 0;
  977. height:$card_height / 2;
  978. background-size: cover;
  979. }
  980. }
  981. // section.videos{
  982. // ul{
  983. // margin:0; padding:0;
  984. // li{
  985. // margin:0; padding:0;
  986. // display: inline-block;
  987. // width:100%; overflow: hidden;
  988. // }
  989. // }
  990. // }
  991. // section.visuels{
  992. // width:calc(100% + #{$column_goutiere});
  993. // figure{
  994. // position: relative;
  995. // display: inline-block;
  996. // vertical-align: top;
  997. // width:$column_width*2 + $column_goutiere;
  998. // margin:0 $column_goutiere $column_goutiere*0.6 0;
  999. // img{
  1000. // width:100%;
  1001. // }
  1002. // caption{
  1003. // position: absolute; bottom: 0; left:0;
  1004. // box-sizing: border-box; width: 100%; padding:0.5em;
  1005. // background-color: $transparent-bg-blk; color: #fff;
  1006. // }
  1007. // }
  1008. // }
  1009. aside.linked-materials{
  1010. ul{
  1011. width:calc(100% + #{$column_goutiere});
  1012. li{
  1013. display: inline-block;
  1014. vertical-align: top;
  1015. width:$column_width;
  1016. margin:0 $column_goutiere $column_goutiere 0;
  1017. }
  1018. }
  1019. h3.field__label{
  1020. font-size: 1em;
  1021. font-weight: 500;
  1022. margin: 2em 0 1em 0;
  1023. }
  1024. h1.title{
  1025. font-size: 1em;
  1026. font-weight: 400;
  1027. }
  1028. h3.ref{
  1029. font-size: 0.756em;
  1030. font-weight: 600;
  1031. }
  1032. h2.description{
  1033. font-size: 0.756em;
  1034. font-weight: 400;
  1035. }
  1036. }
  1037. nav.prevnext{
  1038. &.bottom{
  1039. margin:2em 0;
  1040. }
  1041. ul{
  1042. padding:0;
  1043. margin:0;
  1044. display: grid;
  1045. grid-template-columns: 1fr 1fr;
  1046. }
  1047. li{
  1048. padding:0;
  1049. margin:0;
  1050. list-style: none;
  1051. a{
  1052. font-size: 0.756em;
  1053. font-weight: 700;
  1054. }
  1055. &:nth-child(1){
  1056. grid-column: 1;
  1057. a:before{
  1058. content:'< ';
  1059. }
  1060. }
  1061. &:nth-child(2){
  1062. grid-column: 2;
  1063. text-align: right;
  1064. a:after{
  1065. content:' >';
  1066. }
  1067. }
  1068. }
  1069. }
  1070. }
  1071. // ___ _
  1072. // / __| |_ _____ __ ___ _ ___ ___ _ __ ___
  1073. // \__ \ ' \/ _ \ V V / '_/ _ \/ _ \ ' \(_-<
  1074. // |___/_||_\___/\_/\_/|_| \___/\___/_|_|_/__/
  1075. #showrooms{
  1076. width: calc(100% + #{$column_goutiere});
  1077. article.showroom{
  1078. width: $column_width * 2 + $column_goutiere;
  1079. display: inline-block;
  1080. vertical-align: top;
  1081. margin: 0 $column_goutiere $column_goutiere 0;
  1082. h1{
  1083. margin:0;
  1084. font-weight: 4;
  1085. }
  1086. p{ margin:0; }
  1087. figure{
  1088. margin:0;
  1089. img{
  1090. max-width: 100%;
  1091. }
  1092. }
  1093. }
  1094. }