main.scss 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372
  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. overflow: hidden;
  606. position:relative;
  607. // height:550px;
  608. display: grid;
  609. grid-template-rows: 1fr;
  610. $bp: ($column_width + $column_goutiere )*7;
  611. @media only screen and (max-width: $bp){
  612. grid-template-columns: 1fr;
  613. >.field__item{
  614. grid-column: 1;
  615. }
  616. }
  617. @media only screen and (min-width: $bp + 1px){
  618. grid-template-columns: 1fr 1fr;
  619. grid-gap: 1em;
  620. >.field__item:nth-child(odd){
  621. grid-column: 1;
  622. }
  623. >.field__item:nth-child(even){
  624. grid-column: 2;
  625. }
  626. }
  627. >.field__item{
  628. grid-row: 1;
  629. // position: absolute;
  630. // top:0; left:0;
  631. // width:100%; height:100%;
  632. // overflow: hidden;
  633. opacity: 0;
  634. // transform: translateX(100%);
  635. transition: all 2s ease-out;
  636. &.active{
  637. opacity: 1;
  638. // transform: translateX(0);
  639. // transition: all 0.3s ease-in-out;
  640. }
  641. .taxonomy-term{
  642. position: relative;
  643. width:100%; height:100%;
  644. div.visuel{
  645. width:100%;
  646. padding-bottom: 5em;
  647. img{
  648. max-width: 100%;
  649. height: auto;
  650. }
  651. }
  652. section.text{
  653. position: absolute;
  654. bottom:0; left:0;
  655. width:100%;
  656. box-sizing:border-box;
  657. padding:1em 0 0;
  658. background-color:$color-showrooms;
  659. color: #fff;
  660. // >*{
  661. // // display: inline-block;
  662. // font-size: 0.9em;
  663. // }
  664. h2,p{
  665. margin:0;
  666. }
  667. h2{
  668. font-size: 2em;
  669. }
  670. .field--name-field-public-address{
  671. br{
  672. display:none;
  673. }
  674. span:not(:nth-last-of-type(1)) {
  675. margin-right: 0.4em;
  676. &:after{
  677. padding-left: 0.5em;
  678. content:"⋅"
  679. }
  680. }
  681. }
  682. .field--name-field-public-phone {
  683. display: inline-block;
  684. margin-right: 0.4em;
  685. &:after{
  686. padding-left: 0.5em;
  687. content:"⋅"
  688. }
  689. }
  690. .field--name-field-public-email {
  691. display: inline-block;
  692. }
  693. }
  694. }
  695. }
  696. }
  697. }
  698. &.home-blabla{
  699. background-color: $color-blabla;
  700. @extend %part-columned-layout;
  701. .field--name-field-blabla-links{
  702. .field__item{
  703. display: inline-block;
  704. a{
  705. @include btn;
  706. background-color: #fff;
  707. color: $color-blabla;
  708. }
  709. }
  710. }
  711. .cards-list-home{
  712. position: relative;
  713. $bp: ($column_width*2 + $column_goutiere );
  714. overflow-y: hidden;
  715. max-height: 315px;
  716. // @media only screen and (max-width: $bp * 6){
  717. // max-height: 630px;
  718. // }
  719. // @media only screen and (min-width: ($bp * 6) + 1px){
  720. // max-height: 310px;
  721. // }
  722. ul{
  723. width:100%;
  724. margin:0; padding:0;
  725. // display: grid;
  726. // grid-template-columns: repeat(auto-fill, minmax(80px, $column_width*2));
  727. // // grid-template-rows: 1fr;
  728. // grid-gap: 1em;
  729. // justify-content:start;
  730. display: flex;
  731. flex-flow: row wrap;
  732. justify-content: space-between;
  733. li{
  734. padding:0 0 $column_goutiere 0;
  735. box-sizing: border-box;
  736. // padding-top: 140%;
  737. width: $column_width;
  738. // height: $card_height / 2;
  739. position: relative;
  740. list-style: none;
  741. margin:0;
  742. // padding-top: 67.8%;
  743. overflow: hidden;
  744. .card{
  745. // position:absolute;
  746. // top:0; bottom:0;
  747. // left:0; right:0;
  748. width: 100%;
  749. height: auto;
  750. .field--name-title{
  751. font-size: 0.756em;
  752. line-height: 0.9;
  753. }
  754. }
  755. }
  756. }
  757. }
  758. }
  759. &.home-pricing{
  760. @extend %part-centered-layout;
  761. .field--name-field-pricing{
  762. padding:2em 0;
  763. }
  764. .field--name-computed-products-reference{
  765. display: flex;
  766. flex-flow: row nowrap;
  767. // TODO: mediaQuery column
  768. >.field__item{
  769. flex:0 0 50%;
  770. text-align: center;
  771. padding: 2em 0;
  772. &:nth-child(1){
  773. background-color: $color-base
  774. }
  775. &:nth-child(2){
  776. background-color: $color-webshowroom;
  777. }
  778. color: #fff;
  779. position: relative;
  780. height:18em;
  781. >div{
  782. position: absolute;
  783. top:50%; left:50%;
  784. transform: translate(-50%, -50%);
  785. }
  786. .field--name-title{
  787. @extend %front-col-field__label;
  788. font-weight: 600;
  789. line-height: 0.7;
  790. padding-bottom: 0.5em;
  791. text-align: center;
  792. word-spacing: 30000px;
  793. }
  794. .field--name-field-description{
  795. @extend %front-col-descritpion;
  796. padding:0.5em;
  797. p{
  798. margin: 0;
  799. }
  800. }
  801. }
  802. }
  803. }
  804. }
  805. }
  806. }
  807. // ___ _
  808. // / __|__ _ _ _ __| |___
  809. // | (__/ _` | '_/ _` (_-<
  810. // \___\__,_|_| \__,_/__/
  811. .infinite-loading-container{
  812. .infinite-status-prompt{
  813. i[class^="loading-"]{
  814. width:15px; height:15px;
  815. }
  816. }
  817. }
  818. .cards-list{
  819. position: relative;
  820. .search-info{
  821. font-size: 0.756em;
  822. font-weight: 500;
  823. margin: 0;
  824. padding: 0 0 0.5em 0;
  825. }
  826. &>ul{
  827. // outline: 1px green solid;
  828. margin:0; padding:0;
  829. width: calc(100% + #{$column_goutiere});
  830. &>li{
  831. list-style: none;
  832. margin:0 $column_goutiere $column_goutiere 0; padding:0;
  833. display: inline-block;
  834. vertical-align: top;
  835. }
  836. }
  837. }
  838. article.card{
  839. position: relative;
  840. box-shadow: 0 0 5px rgba(0,0,0,0.2);
  841. width:$column_width; height:$card_height;
  842. &.article{
  843. width:$column_width*2 + $column_goutiere; height:$card_height;
  844. }
  845. &.minicard{
  846. height:100px;
  847. }
  848. // &.card-small{
  849. // width:100px; height:140px;
  850. // }
  851. // focused
  852. // box-shadow: 0 0 7px rgba(0,0,0,0.9);
  853. // &.article{
  854. // width: $column_width * 2 + $column_goutiere;
  855. //
  856. // }
  857. header{
  858. position: absolute;
  859. bottom:0;
  860. z-index:10;
  861. color: #000;
  862. background-color: rgba(255,255,255,0.8);
  863. padding: 0.3em 0.3em;
  864. box-sizing:border-box;
  865. width:100%;
  866. h1, h4{ margin:0; padding:0; }
  867. h1{
  868. font-size: 1.3em;
  869. font-weight: 700;
  870. line-height: 0.85;
  871. margin-bottom: 0.2em;
  872. }
  873. h4{
  874. font-size: 0.882em;
  875. font-weight: 300;
  876. line-height: 1;
  877. // margin-bottom: 0.1em;
  878. }
  879. span.ref{
  880. font-size: 0.693em;
  881. font-weight: 300;
  882. line-height: 1;
  883. }
  884. }
  885. &.card-thematique header{
  886. background-color: $color-base-transparent;
  887. }
  888. nav.tools{
  889. position: absolute;
  890. top: 0;
  891. right: 0;
  892. z-index: 21;
  893. $toolbar_width: 15px;
  894. width: $toolbar_width;
  895. background-color: #fff;
  896. box-sizing: content-box;
  897. padding: 0.3em 0.1em;
  898. >*{
  899. overflow: visible;
  900. position: relative;
  901. span.btn{
  902. overflow: hidden;
  903. font-size: 0.882em;
  904. }
  905. .tool-content{
  906. position: absolute;
  907. top: 0px;
  908. right: 100%;
  909. // width: 5em;
  910. width: $column_width - $toolbar_width - 10px;
  911. box-sizing: border-box;
  912. padding: 0.3em;
  913. background-color: #fff;
  914. box-shadow: -2px 3px 4px rgba(0, 0, 0, 0.2);
  915. opacity: 0;
  916. max-height: 0; max-width:0;
  917. overflow: hidden;
  918. transition: all 0.2s ease-in-out;
  919. }
  920. &:hover{
  921. .tool-content{
  922. transition: all 0.3s ease-in-out;
  923. opacity: 1;
  924. max-height: 195px;
  925. max-width:200px;
  926. }
  927. }
  928. }
  929. .tool.flags{
  930. .tool-content{
  931. ul{
  932. display: flex;
  933. flex-flow: row wrap;
  934. li{
  935. padding:0 0.5em 0 0;
  936. }
  937. }
  938. }
  939. span.flag{
  940. cursor: pointer;
  941. font-size: 0.756em;
  942. color: #bbb;
  943. transition: color 0.3s ease-in-out;
  944. &:hover, &.isActive{
  945. color:#1a1a1a;
  946. }
  947. }
  948. }
  949. opacity: 0;
  950. transition: opacity 0.2s ease-in-out;
  951. }
  952. &:hover{
  953. nav.tools{
  954. opacity:1;
  955. }
  956. }
  957. section.images{
  958. position: relative;
  959. &, *{width: 100%; height:100%;}
  960. figure{
  961. cursor: pointer;
  962. margin:0;
  963. position: absolute;
  964. top:0; left:0;
  965. // width: 100%; height:100%;
  966. &:first-of-type{
  967. z-index:5
  968. }
  969. transition: opacity 0.2s ease-in-out;
  970. &.show{opacity: 1; z-index:6;}
  971. &.hide{opacity: 0;}
  972. img{
  973. // width: 100%; height:100%;
  974. &.blank{
  975. position: absolute;
  976. top:0; left:0;
  977. z-index: 20;
  978. }
  979. }
  980. }
  981. }
  982. // overwritnig card for card-medium (aka search-card)
  983. &.search-card{
  984. >header{
  985. cursor: pointer;
  986. }
  987. }
  988. // overwriting card for modal-card
  989. &.modal-card{
  990. display: flex;
  991. flex-flow: row-reverse nowrap;
  992. width: $modalcard_width;
  993. height: $modalcard_height;
  994. >.col{
  995. flex-basis: 50%;
  996. }
  997. section.col-right{
  998. >*:not(nav.tools){
  999. position: relative;
  1000. padding: 0.5em;
  1001. box-sizing: border-box;
  1002. width: 100%;
  1003. }
  1004. header{
  1005. bottom: auto;
  1006. }
  1007. section.samples{
  1008. ul{
  1009. display: flex;
  1010. flex-flow: row wrap;
  1011. font-size: 0.882em;
  1012. font-weight: 300;
  1013. // line-height: 1.35;
  1014. li{
  1015. padding-right: 0.5em;
  1016. span.showroom{ font-weight: 500; }
  1017. }
  1018. }
  1019. }
  1020. section.body{
  1021. p{
  1022. font-size: 0.882em;
  1023. font-weight: 300;
  1024. line-height: 1.35;
  1025. }
  1026. }
  1027. nav.tools{
  1028. opacity: 1;
  1029. section.close{
  1030. span.btn.mdi-close{
  1031. cursor:pointer;
  1032. }
  1033. }
  1034. }
  1035. }
  1036. }
  1037. }
  1038. // _____ _ _ _
  1039. // |_ _| |_ ___ _ __ __ _| |_(_)__ _ _ _ ___
  1040. // | | | ' \/ -_) ' \/ _` | _| / _` | || / -_)
  1041. // |_| |_||_\___|_|_|_\__,_|\__|_\__, |\_,_\___|
  1042. // |_|
  1043. #main-content > article.thematique{
  1044. div.cols{
  1045. display: flex;
  1046. flex-direction: row;
  1047. flex-wrap: nowrap;
  1048. // @media only screen and (max-width: $small-bp) {
  1049. @include col-mediaquery-max(3){
  1050. flex-wrap: wrap;
  1051. }
  1052. // }
  1053. div.col-left{
  1054. padding: 0 $column_goutiere $column_goutiere 0;
  1055. flex: 0 0 $column_width * 2 + $column_goutiere;
  1056. }
  1057. div.col-right{}
  1058. }
  1059. div.col-left section.body{
  1060. background-color: $color-base;
  1061. padding: 0.5em 1em 1em;
  1062. }
  1063. aside.linked-materials{
  1064. ul{
  1065. width:calc(100% + #{$column_goutiere});
  1066. li{
  1067. display: inline-block;
  1068. vertical-align: top;
  1069. width:$column_width;
  1070. margin:0 $column_goutiere $column_goutiere 0;
  1071. }
  1072. }
  1073. h3.field__label{
  1074. font-size: 1em;
  1075. font-weight: 500;
  1076. margin: 2em 0 1em 0;
  1077. }
  1078. h1.title{
  1079. font-size: 1em;
  1080. font-weight: 400;
  1081. }
  1082. h3.ref{
  1083. font-size: 0.756em;
  1084. font-weight: 600;
  1085. }
  1086. h2.description{
  1087. font-size: 0.756em;
  1088. font-weight: 400;
  1089. }
  1090. }
  1091. }
  1092. // ___ _ _ _
  1093. // | _ ) |__ _| |__| |__ _
  1094. // | _ \ / _` | '_ \ / _` |
  1095. // |___/_\__,_|_.__/_\__,_|
  1096. #blabla{
  1097. }
  1098. #main-content > article.article{
  1099. div.cols{
  1100. display: grid;
  1101. grid-template-rows: 1fr;
  1102. grid-template-columns: repeat(6, 1fr);
  1103. grid-gap: 1em;
  1104. div.col-left{
  1105. grid-column: 1;
  1106. }
  1107. div.col-right{
  1108. grid-column: 2/6;
  1109. }
  1110. }
  1111. section.accroche{
  1112. figure{
  1113. width:$column_width*2 + $column_goutiere;
  1114. margin:0 $column_goutiere 0 0;
  1115. img{
  1116. width:100%;
  1117. }
  1118. }
  1119. }
  1120. section.taxonomy{
  1121. margin:1em 0;
  1122. ul{
  1123. margin: 0;
  1124. }
  1125. li{
  1126. display:inline-block;
  1127. padding:0 0.5em 0 0;
  1128. }
  1129. }
  1130. div.gallery-wrapper{
  1131. .image{
  1132. display: inline-block;
  1133. width:$column_width;
  1134. margin:0 $column_goutiere $column_goutiere*0.6 0;
  1135. height:$card_height / 2;
  1136. background-size: cover;
  1137. }
  1138. }
  1139. // section.videos{
  1140. // ul{
  1141. // margin:0; padding:0;
  1142. // li{
  1143. // margin:0; padding:0;
  1144. // display: inline-block;
  1145. // width:100%; overflow: hidden;
  1146. // }
  1147. // }
  1148. // }
  1149. // section.visuels{
  1150. // width:calc(100% + #{$column_goutiere});
  1151. // figure{
  1152. // position: relative;
  1153. // display: inline-block;
  1154. // vertical-align: top;
  1155. // width:$column_width*2 + $column_goutiere;
  1156. // margin:0 $column_goutiere $column_goutiere*0.6 0;
  1157. // img{
  1158. // width:100%;
  1159. // }
  1160. // caption{
  1161. // position: absolute; bottom: 0; left:0;
  1162. // box-sizing: border-box; width: 100%; padding:0.5em;
  1163. // background-color: $transparent-bg-blk; color: #fff;
  1164. // }
  1165. // }
  1166. // }
  1167. aside.linked-materials{
  1168. ul{
  1169. width:calc(100% + #{$column_goutiere});
  1170. li{
  1171. display: inline-block;
  1172. vertical-align: top;
  1173. width:$column_width;
  1174. margin:0 $column_goutiere $column_goutiere 0;
  1175. }
  1176. }
  1177. h3.field__label{
  1178. font-size: 1em;
  1179. font-weight: 500;
  1180. margin: 2em 0 1em 0;
  1181. }
  1182. h1.title{
  1183. font-size: 1em;
  1184. font-weight: 400;
  1185. }
  1186. h3.ref{
  1187. font-size: 0.756em;
  1188. font-weight: 600;
  1189. }
  1190. h2.description{
  1191. font-size: 0.756em;
  1192. font-weight: 400;
  1193. }
  1194. }
  1195. nav.prevnext{
  1196. &.bottom{
  1197. margin:2em 0;
  1198. }
  1199. ul{
  1200. padding:0;
  1201. margin:0;
  1202. display: grid;
  1203. grid-template-columns: 1fr 1fr;
  1204. }
  1205. li{
  1206. padding:0;
  1207. margin:0;
  1208. list-style: none;
  1209. a{
  1210. font-size: 0.756em;
  1211. font-weight: 700;
  1212. }
  1213. &:nth-child(1){
  1214. grid-column: 1;
  1215. a:before{
  1216. content:'< ';
  1217. }
  1218. }
  1219. &:nth-child(2){
  1220. grid-column: 2;
  1221. text-align: right;
  1222. a:after{
  1223. content:' >';
  1224. }
  1225. }
  1226. }
  1227. }
  1228. }
  1229. // ___ _
  1230. // / __| |_ _____ __ ___ _ ___ ___ _ __ ___
  1231. // \__ \ ' \/ _ \ V V / '_/ _ \/ _ \ ' \(_-<
  1232. // |___/_||_\___/\_/\_/|_| \___/\___/_|_|_/__/
  1233. #showrooms{
  1234. width: calc(100% + #{$column_goutiere});
  1235. article.showroom{
  1236. width: $column_width * 2 + $column_goutiere;
  1237. display: inline-block;
  1238. vertical-align: top;
  1239. margin: 0 $column_goutiere $column_goutiere 0;
  1240. h1{
  1241. margin:0;
  1242. font-weight: 4;
  1243. }
  1244. p{ margin:0; }
  1245. figure{
  1246. margin:0;
  1247. img{
  1248. max-width: 100%;
  1249. }
  1250. }
  1251. }
  1252. }
  1253. // ___ _
  1254. // | __|__ ___| |_ ___ _ _
  1255. // | _/ _ \/ _ \ _/ -_) '_|
  1256. // |_|\___/\___/\__\___|_|
  1257. footer[role="contentinfo"]{
  1258. body:not(.path-home) & {
  1259. display:none;
  1260. }
  1261. #block-materiosimplenewssubscription{
  1262. form{
  1263. display: flex;
  1264. flex-flow: row nowrap;
  1265. align-items: center;
  1266. font-size: 0.756em;
  1267. >*{
  1268. margin-right: 0.5em;
  1269. }
  1270. #edit-subscriptions{
  1271. display: flex;
  1272. flex-flow: row nowrap;
  1273. >*{
  1274. margin-right: 0.5em;
  1275. display: flex;
  1276. flex-flow: row nowrap;
  1277. align-items: center;
  1278. }
  1279. input{
  1280. margin-right: 0.3em;
  1281. }
  1282. }
  1283. #edit-mail-wrapper{
  1284. input[type="email"]{
  1285. width:10em;
  1286. }
  1287. }
  1288. #edit-actions--2{
  1289. input[type="submit"]{
  1290. border: none;
  1291. background: none;
  1292. background-color: $color-base;
  1293. border-radius: 5px;
  1294. color: #fff;
  1295. padding: 0.7em 1em;
  1296. font-weight: 700;
  1297. }
  1298. }
  1299. }
  1300. }
  1301. }