main.scss 30 KB

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