main.scss 25 KB

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