main.scss 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234
  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. position: relative;
  568. list-style: none;
  569. margin:0;
  570. padding:0 0 $column_goutiere / 2 0;
  571. box-sizing: border-box;
  572. // padding-top: 140%;
  573. width: $column_width / 2;
  574. height: $card_height / 2;
  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. @media only screen and (max-width: $bp * 6){
  681. max-height: 630px;
  682. }
  683. @media only screen and (min-width: ($bp * 6) + 1px){
  684. max-height: 310px;
  685. }
  686. ul{
  687. width:100%;
  688. margin:0; padding:0;
  689. display: grid;
  690. grid-template-columns: repeat(auto-fill, minmax(80px, $column_width*2));
  691. // grid-template-rows: 1fr;
  692. grid-gap: 1em;
  693. justify-content:start;
  694. li{
  695. position: relative;
  696. list-style: none;
  697. margin:0; padding:0;
  698. padding-top: 67.8%;
  699. overflow: hidden;
  700. .card{
  701. position:absolute;
  702. top:0; bottom:0;
  703. left:0; right:0;
  704. width: auto;
  705. height: auto;
  706. .field--name-title{
  707. font-size: 0.756em;
  708. line-height: 0.9;
  709. }
  710. }
  711. }
  712. }
  713. }
  714. }
  715. &.home-pricing{
  716. @extend %part-centered-layout;
  717. }
  718. }
  719. }
  720. }
  721. // ___ _
  722. // / __|__ _ _ _ __| |___
  723. // | (__/ _` | '_/ _` (_-<
  724. // \___\__,_|_| \__,_/__/
  725. .infinite-loading-container{
  726. .infinite-status-prompt{
  727. i[class^="loading-"]{
  728. width:15px; height:15px;
  729. }
  730. }
  731. }
  732. .cards-list{
  733. position: relative;
  734. .search-info{
  735. font-size: 0.756em;
  736. font-weight: 500;
  737. margin: 0;
  738. padding: 0 0 0.5em 0;
  739. }
  740. &>ul{
  741. // outline: 1px green solid;
  742. margin:0; padding:0;
  743. width: calc(100% + #{$column_goutiere});
  744. &>li{
  745. list-style: none;
  746. margin:0 $column_goutiere $column_goutiere 0; padding:0;
  747. display: inline-block;
  748. vertical-align: top;
  749. }
  750. }
  751. }
  752. article.card{
  753. position: relative;
  754. box-shadow: 0 0 5px rgba(0,0,0,0.2);
  755. width:$column_width; height:$card_height;
  756. &.article{
  757. width:$column_width*2 + $column_goutiere; height:$card_height;
  758. }
  759. &.minicard{
  760. height:100px;
  761. }
  762. // &.card-small{
  763. // width:100px; height:140px;
  764. // }
  765. // focused
  766. // box-shadow: 0 0 7px rgba(0,0,0,0.9);
  767. // &.article{
  768. // width: $column_width * 2 + $column_goutiere;
  769. //
  770. // }
  771. header{
  772. position: absolute;
  773. bottom:0;
  774. z-index:10;
  775. color: #000;
  776. background-color: rgba(255,255,255,0.8);
  777. padding: 0.3em 0.3em;
  778. box-sizing:border-box;
  779. width:100%;
  780. h1, h4{ margin:0; padding:0; }
  781. h1{
  782. font-size: 1.3em;
  783. font-weight: 700;
  784. line-height: 0.85;
  785. margin-bottom: 0.2em;
  786. }
  787. h4{
  788. font-size: 0.882em;
  789. font-weight: 300;
  790. line-height: 1;
  791. // margin-bottom: 0.1em;
  792. }
  793. span.ref{
  794. font-size: 0.693em;
  795. font-weight: 300;
  796. line-height: 1;
  797. }
  798. }
  799. &.card-thematique header{
  800. background-color: $color-base-transparent;
  801. }
  802. nav.tools{
  803. position: absolute;
  804. top: 0;
  805. right: 0;
  806. z-index: 21;
  807. $toolbar_width: 15px;
  808. width: $toolbar_width;
  809. background-color: #fff;
  810. box-sizing: content-box;
  811. padding: 0.3em 0.1em;
  812. >*{
  813. overflow: visible;
  814. position: relative;
  815. span.btn{
  816. overflow: hidden;
  817. font-size: 0.882em;
  818. }
  819. .tool-content{
  820. position: absolute;
  821. top: 0px;
  822. right: 100%;
  823. // width: 5em;
  824. width: $column_width - $toolbar_width - 10px;
  825. box-sizing: border-box;
  826. padding: 0.3em;
  827. background-color: #fff;
  828. box-shadow: -2px 3px 4px rgba(0, 0, 0, 0.2);
  829. opacity: 0;
  830. max-height: 0; max-width:0;
  831. overflow: hidden;
  832. transition: all 0.2s ease-in-out;
  833. }
  834. &:hover{
  835. .tool-content{
  836. transition: all 0.3s ease-in-out;
  837. opacity: 1;
  838. max-height: 195px;
  839. max-width:200px;
  840. }
  841. }
  842. }
  843. .tool.flags{
  844. .tool-content{
  845. ul{
  846. display: flex;
  847. flex-flow: row wrap;
  848. li{
  849. padding:0 0.5em 0 0;
  850. }
  851. }
  852. }
  853. span.flag{
  854. cursor: pointer;
  855. font-size: 0.756em;
  856. color: #bbb;
  857. transition: color 0.3s ease-in-out;
  858. &:hover, &.isActive{
  859. color:#1a1a1a;
  860. }
  861. }
  862. }
  863. opacity: 0;
  864. transition: opacity 0.2s ease-in-out;
  865. }
  866. &:hover{
  867. nav.tools{
  868. opacity:1;
  869. }
  870. }
  871. section.images{
  872. position: relative;
  873. &, *{width: 100%; height:100%;}
  874. figure{
  875. cursor: pointer;
  876. margin:0;
  877. position: absolute;
  878. top:0; left:0;
  879. // width: 100%; height:100%;
  880. &:first-of-type{
  881. z-index:5
  882. }
  883. transition: opacity 0.2s ease-in-out;
  884. &.show{opacity: 1; z-index:6;}
  885. &.hide{opacity: 0;}
  886. img{
  887. // width: 100%; height:100%;
  888. &.blank{
  889. position: absolute;
  890. top:0; left:0;
  891. z-index: 20;
  892. }
  893. }
  894. }
  895. }
  896. // overwritnig card for card-medium (aka search-card)
  897. &.search-card{
  898. >header{
  899. cursor: pointer;
  900. }
  901. }
  902. // overwriting card for modal-card
  903. &.modal-card{
  904. display: flex;
  905. flex-flow: row-reverse nowrap;
  906. width: $modalcard_width;
  907. height: $modalcard_height;
  908. >.col{
  909. flex-basis: 50%;
  910. }
  911. section.col-right{
  912. >*:not(nav.tools){
  913. position: relative;
  914. padding: 0.5em;
  915. box-sizing: border-box;
  916. width: 100%;
  917. }
  918. header{
  919. bottom: auto;
  920. }
  921. section.samples{
  922. ul{
  923. display: flex;
  924. flex-flow: row wrap;
  925. font-size: 0.882em;
  926. font-weight: 300;
  927. // line-height: 1.35;
  928. li{
  929. padding-right: 0.5em;
  930. span.showroom{ font-weight: 500; }
  931. }
  932. }
  933. }
  934. section.body{
  935. p{
  936. font-size: 0.882em;
  937. font-weight: 300;
  938. line-height: 1.35;
  939. }
  940. }
  941. nav.tools{
  942. opacity: 1;
  943. section.close{
  944. span.btn.mdi-close{
  945. cursor:pointer;
  946. }
  947. }
  948. }
  949. }
  950. }
  951. }
  952. // _____ _ _ _
  953. // |_ _| |_ ___ _ __ __ _| |_(_)__ _ _ _ ___
  954. // | | | ' \/ -_) ' \/ _` | _| / _` | || / -_)
  955. // |_| |_||_\___|_|_|_\__,_|\__|_\__, |\_,_\___|
  956. // |_|
  957. #main-content > article.thematique{
  958. div.cols{
  959. display: flex;
  960. flex-direction: row;
  961. flex-wrap: nowrap;
  962. // @media only screen and (max-width: $small-bp) {
  963. @include col-mediaquery-max(3){
  964. flex-wrap: wrap;
  965. }
  966. // }
  967. div.col-left{
  968. padding: 0 $column_goutiere $column_goutiere 0;
  969. flex: 0 0 $column_width * 2 + $column_goutiere;
  970. }
  971. div.col-right{}
  972. }
  973. div.col-left section.body{
  974. background-color: $color-base;
  975. padding: 0.5em 1em 1em;
  976. }
  977. aside.linked-materials{
  978. ul{
  979. width:calc(100% + #{$column_goutiere});
  980. li{
  981. display: inline-block;
  982. vertical-align: top;
  983. width:$column_width;
  984. margin:0 $column_goutiere $column_goutiere 0;
  985. }
  986. }
  987. h3.field__label{
  988. font-size: 1em;
  989. font-weight: 500;
  990. margin: 2em 0 1em 0;
  991. }
  992. h1.title{
  993. font-size: 1em;
  994. font-weight: 400;
  995. }
  996. h3.ref{
  997. font-size: 0.756em;
  998. font-weight: 600;
  999. }
  1000. h2.description{
  1001. font-size: 0.756em;
  1002. font-weight: 400;
  1003. }
  1004. }
  1005. }
  1006. // ___ _ _ _
  1007. // | _ ) |__ _| |__| |__ _
  1008. // | _ \ / _` | '_ \ / _` |
  1009. // |___/_\__,_|_.__/_\__,_|
  1010. #blabla{
  1011. }
  1012. #main-content > article.article{
  1013. div.cols{
  1014. display: grid;
  1015. grid-template-rows: 1fr;
  1016. grid-template-columns: repeat(6, 1fr);
  1017. grid-gap: 1em;
  1018. div.col-left{
  1019. grid-column: 1;
  1020. }
  1021. div.col-right{
  1022. grid-column: 2/6;
  1023. }
  1024. }
  1025. section.accroche{
  1026. figure{
  1027. width:$column_width*2 + $column_goutiere;
  1028. margin:0 $column_goutiere 0 0;
  1029. img{
  1030. width:100%;
  1031. }
  1032. }
  1033. }
  1034. section.taxonomy{
  1035. margin:1em 0;
  1036. ul{
  1037. margin: 0;
  1038. }
  1039. li{
  1040. display:inline-block;
  1041. padding:0 0.5em 0 0;
  1042. }
  1043. }
  1044. div.gallery-wrapper{
  1045. .image{
  1046. display: inline-block;
  1047. width:$column_width;
  1048. margin:0 $column_goutiere $column_goutiere*0.6 0;
  1049. height:$card_height / 2;
  1050. background-size: cover;
  1051. }
  1052. }
  1053. // section.videos{
  1054. // ul{
  1055. // margin:0; padding:0;
  1056. // li{
  1057. // margin:0; padding:0;
  1058. // display: inline-block;
  1059. // width:100%; overflow: hidden;
  1060. // }
  1061. // }
  1062. // }
  1063. // section.visuels{
  1064. // width:calc(100% + #{$column_goutiere});
  1065. // figure{
  1066. // position: relative;
  1067. // display: inline-block;
  1068. // vertical-align: top;
  1069. // width:$column_width*2 + $column_goutiere;
  1070. // margin:0 $column_goutiere $column_goutiere*0.6 0;
  1071. // img{
  1072. // width:100%;
  1073. // }
  1074. // caption{
  1075. // position: absolute; bottom: 0; left:0;
  1076. // box-sizing: border-box; width: 100%; padding:0.5em;
  1077. // background-color: $transparent-bg-blk; color: #fff;
  1078. // }
  1079. // }
  1080. // }
  1081. aside.linked-materials{
  1082. ul{
  1083. width:calc(100% + #{$column_goutiere});
  1084. li{
  1085. display: inline-block;
  1086. vertical-align: top;
  1087. width:$column_width;
  1088. margin:0 $column_goutiere $column_goutiere 0;
  1089. }
  1090. }
  1091. h3.field__label{
  1092. font-size: 1em;
  1093. font-weight: 500;
  1094. margin: 2em 0 1em 0;
  1095. }
  1096. h1.title{
  1097. font-size: 1em;
  1098. font-weight: 400;
  1099. }
  1100. h3.ref{
  1101. font-size: 0.756em;
  1102. font-weight: 600;
  1103. }
  1104. h2.description{
  1105. font-size: 0.756em;
  1106. font-weight: 400;
  1107. }
  1108. }
  1109. nav.prevnext{
  1110. &.bottom{
  1111. margin:2em 0;
  1112. }
  1113. ul{
  1114. padding:0;
  1115. margin:0;
  1116. display: grid;
  1117. grid-template-columns: 1fr 1fr;
  1118. }
  1119. li{
  1120. padding:0;
  1121. margin:0;
  1122. list-style: none;
  1123. a{
  1124. font-size: 0.756em;
  1125. font-weight: 700;
  1126. }
  1127. &:nth-child(1){
  1128. grid-column: 1;
  1129. a:before{
  1130. content:'< ';
  1131. }
  1132. }
  1133. &:nth-child(2){
  1134. grid-column: 2;
  1135. text-align: right;
  1136. a:after{
  1137. content:' >';
  1138. }
  1139. }
  1140. }
  1141. }
  1142. }
  1143. // ___ _
  1144. // / __| |_ _____ __ ___ _ ___ ___ _ __ ___
  1145. // \__ \ ' \/ _ \ V V / '_/ _ \/ _ \ ' \(_-<
  1146. // |___/_||_\___/\_/\_/|_| \___/\___/_|_|_/__/
  1147. #showrooms{
  1148. width: calc(100% + #{$column_goutiere});
  1149. article.showroom{
  1150. width: $column_width * 2 + $column_goutiere;
  1151. display: inline-block;
  1152. vertical-align: top;
  1153. margin: 0 $column_goutiere $column_goutiere 0;
  1154. h1{
  1155. margin:0;
  1156. font-weight: 4;
  1157. }
  1158. p{ margin:0; }
  1159. figure{
  1160. margin:0;
  1161. img{
  1162. max-width: 100%;
  1163. }
  1164. }
  1165. }
  1166. }