main.scss 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581
  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. body.path-pricing & {
  341. color: #fff;
  342. background-color: $color-webshowroom;
  343. }
  344. }
  345. }
  346. #block-materiosapisearchblock{
  347. // float:right;
  348. // display:inline-block;
  349. // box-shadow: 0 0 5px rgba(0,0,0,0.2);
  350. padding:0;
  351. #materio-sapi-search-form{
  352. .form-item, input.button{
  353. display: inline-block;
  354. }
  355. #edit-search{
  356. border:1px #BBB solid;
  357. border-radius: 14px;
  358. padding:0.3em;
  359. color:#666;
  360. }
  361. #edit-submit{
  362. border:0;
  363. text-indent: 50px;
  364. overflow: hidden;
  365. width:20px; height:20px;
  366. margin:0;
  367. // border-radius: 7px;
  368. background-image: url('../img/search.png');
  369. background-position: center;
  370. background-repeat: no-repeat;
  371. background-size: contain;
  372. }
  373. }
  374. }
  375. }
  376. // main
  377. aside.messages{
  378. padding: 0;
  379. }
  380. // content top
  381. // #content-top{
  382. // &:after{
  383. // content:"";
  384. // clear:both;
  385. // display: block;
  386. // }
  387. // }
  388. // ___ _ _ _ __ _
  389. // / __|___ _ _| |_ ___ _ _| |_ ___| | ___ / _| |_
  390. // | (__/ _ \ ' \ _/ -_) ' \ _|___| |__/ -_) _| _|
  391. // \___\___/_||_\__\___|_||_\__| |____\___|_| \__|
  392. #content-left{
  393. z-index: 5;
  394. box-sizing: content-box;
  395. max-width:1px;
  396. overflow-x: hidden;
  397. transition: all 0.3s ease-in-out;
  398. &.opened{
  399. max-width: 500px;
  400. padding: 0.3em;
  401. }
  402. >*{
  403. box-sizing: border-box;
  404. background-color: #fff;
  405. box-shadow: -2px 0px 4px rgba(0, 0, 0, 0.2);
  406. padding: 0.5em;
  407. }
  408. .flag-collection{
  409. >header{
  410. display: flex;
  411. flex-direction: row;
  412. justify-content: space-between;
  413. padding-bottom: $column_goutiere;
  414. h3{
  415. // flex-basis: calc(100% - 1em);
  416. }
  417. .mdi-close{
  418. // display: block;
  419. // flex-basis: 1em;
  420. cursor:pointer;
  421. align-self: flex-end;
  422. }
  423. }
  424. >ul{
  425. >li{
  426. margin:0 0 $column_goutiere 0;
  427. padding:0;
  428. article.card.minicard{
  429. width:$minicard_width;
  430. height:$minicard_height;
  431. margin:auto;
  432. >header{
  433. padding: 0.3em 0.3em 0.1em;
  434. h1{
  435. margin:0;
  436. }
  437. }
  438. >nav.tools{
  439. top: auto;
  440. bottom: 0;
  441. padding:0 0.2em;
  442. background:transparent;
  443. .mdi.unflag{
  444. cursor: pointer;
  445. }
  446. }
  447. }
  448. }
  449. }
  450. }
  451. }
  452. // __ _
  453. // / _|_ _ ___ _ _| |_
  454. // | _| '_/ _ \ ' \ _|
  455. // |_| |_| \___/_||_\__|
  456. @mixin btn{
  457. display: inline-block;
  458. font-size: 0.9em;
  459. font-weight: bold;
  460. padding: 0.7em 1em;
  461. margin-bottom: 0.3em;
  462. background-color: #fff;
  463. color: #000;
  464. border-radius: 5px;
  465. border: none;
  466. }
  467. article.node--type-frontpage{
  468. %front-col-field__label{
  469. font-size: 3.5em;
  470. line-height: 1;
  471. }
  472. %front-col-description{
  473. font-size: 0.9em;
  474. line-height: 1.3;
  475. }
  476. %part-centered-layout{
  477. padding:1.5em 0;
  478. background-color: #fff;
  479. >div:nth-child(1){
  480. width:80%;
  481. margin: 0 auto;
  482. text-align: center;
  483. .field__label{
  484. @extend %front-col-field__label;
  485. }
  486. .field__item{
  487. @extend %front-col-description;
  488. }
  489. }
  490. }
  491. // %part-columned-layout{
  492. // display:grid;
  493. // grid-template-columns: 300px 1fr;
  494. // grid-column-gap: 2em;
  495. // padding:2em 1em;
  496. // >div:nth-child(1){
  497. // color: #fff;
  498. // grid-column: 1;
  499. // .field__label{
  500. // @extend %front-col-field__label;
  501. // }
  502. // .field__item{
  503. // @extend %front-col-description;
  504. // }
  505. // }
  506. // >div:nth-child(2){
  507. // grid-column: 2;
  508. // }
  509. // }
  510. %part-columned-layout{
  511. display:flex;
  512. flex-direction: row;
  513. flex-wrap: nowrap;
  514. >div:nth-child(1){
  515. flex: 0 0 $column_width * 2 + $column_goutiere;
  516. box-sizing: border-box;
  517. padding: 1em;
  518. color: #fff;
  519. .field__label{
  520. @extend %front-col-field__label;
  521. }
  522. .field__item{
  523. @extend %front-col-description;
  524. }
  525. }
  526. >div:nth-child(2){
  527. flex: 1 1 auto;
  528. box-sizing: border-box;
  529. padding: 1em 0.5em;
  530. }
  531. }
  532. >h2{
  533. display: none;
  534. }
  535. .node__content{
  536. &>section{
  537. &.home-intro{
  538. @extend %part-centered-layout;
  539. .field__item{
  540. display: flex;
  541. flex-flow: row nowrap;
  542. justify-content: center;
  543. p{
  544. flex: 0 0 $column_width * 2;
  545. padding:1em;
  546. }
  547. }
  548. }
  549. &.home-database{
  550. background-color: $color-base;
  551. @extend %part-columned-layout;
  552. .field--name-field-a-database{
  553. .field__label{
  554. cursor: pointer;
  555. }
  556. }
  557. .field--name-field-database-links{
  558. .field__item{
  559. display: inline-block;
  560. a{
  561. @include btn;
  562. background-color: #fff;
  563. color: $color-base;
  564. }
  565. }
  566. }
  567. .cards-list-home{
  568. position: relative;
  569. // max-height: (130px*1.4)*3;
  570. max-height: 580px;
  571. overflow-y: hidden;
  572. ul{
  573. width:100%;
  574. margin:0; padding:0;
  575. // display: grid;
  576. // grid-template-columns: repeat(auto-fill, minmax(50px, 130px));
  577. // grid-template-rows: 1fr;
  578. // grid-gap: 1em;
  579. // justify-content:start;
  580. display: flex;
  581. flex-flow: row wrap;
  582. justify-content: space-between;
  583. li{
  584. padding:0 0 $column_goutiere / 2 0;
  585. box-sizing: border-box;
  586. // padding-top: 140%;
  587. width: $column_width / 2;
  588. height: $card_height / 2;
  589. position: relative;
  590. list-style: none;
  591. margin:0;
  592. .card{
  593. // position:absolute;
  594. // top:0; bottom:0;
  595. // left:0; right:0;
  596. width: 100%;
  597. height: 100%;
  598. .field--name-field-short-description{
  599. font-size: 0.656em;
  600. line-height: 1.2;
  601. }
  602. }
  603. }
  604. }
  605. }
  606. }
  607. &.home-showrooms{
  608. background-color: $color-showrooms;
  609. @extend %part-columned-layout;
  610. .field--name-field-showrooms{}
  611. .field--name-field-showroom-links{
  612. .field__item{
  613. display: inline-block;
  614. a{
  615. @include btn;
  616. background-color: #fff;
  617. color: $color-showrooms;
  618. }
  619. }
  620. }
  621. .field--name-computed-showrooms-reference{
  622. overflow: hidden;
  623. position:relative;
  624. // height:550px;
  625. display: grid;
  626. grid-template-rows: 1fr;
  627. $bp: ($column_width + $column_goutiere )*7;
  628. @media only screen and (max-width: $bp){
  629. grid-template-columns: 1fr;
  630. >.field__item{
  631. grid-column: 1;
  632. }
  633. }
  634. @media only screen and (min-width: $bp + 1px){
  635. grid-template-columns: 1fr 1fr;
  636. grid-gap: 1em;
  637. >.field__item:nth-child(odd){
  638. grid-column: 1;
  639. }
  640. >.field__item:nth-child(even){
  641. grid-column: 2;
  642. }
  643. }
  644. >.field__item{
  645. grid-row: 1;
  646. // position: absolute;
  647. // top:0; left:0;
  648. // width:100%; height:100%;
  649. // overflow: hidden;
  650. opacity: 0;
  651. // transform: translateX(100%);
  652. transition: all 2s ease-out;
  653. &.active{
  654. opacity: 1;
  655. // transform: translateX(0);
  656. // transition: all 0.3s ease-in-out;
  657. }
  658. .taxonomy-term{
  659. position: relative;
  660. width:100%; height:100%;
  661. div.visuel{
  662. width:100%;
  663. padding-bottom: 5em;
  664. img{
  665. max-width: 100%;
  666. height: auto;
  667. }
  668. }
  669. section.text{
  670. position: absolute;
  671. bottom:0; left:0;
  672. width:100%;
  673. box-sizing:border-box;
  674. padding:1em 0 0;
  675. background-color:$color-showrooms;
  676. color: #fff;
  677. // >*{
  678. // // display: inline-block;
  679. // font-size: 0.9em;
  680. // }
  681. h2,p{
  682. margin:0;
  683. }
  684. h2{
  685. font-size: 2em;
  686. }
  687. .field--name-field-public-address{
  688. br{
  689. display:none;
  690. }
  691. span:not(:nth-last-of-type(1)) {
  692. margin-right: 0.4em;
  693. &:after{
  694. padding-left: 0.5em;
  695. content:"⋅"
  696. }
  697. }
  698. }
  699. .field--name-field-public-phone {
  700. display: inline-block;
  701. margin-right: 0.4em;
  702. &:after{
  703. padding-left: 0.5em;
  704. content:"⋅"
  705. }
  706. }
  707. .field--name-field-public-email {
  708. display: inline-block;
  709. }
  710. }
  711. }
  712. }
  713. }
  714. }
  715. &.home-blabla{
  716. background-color: $color-blabla;
  717. @extend %part-columned-layout;
  718. .field--name-field-blabla-links{
  719. .field__item{
  720. display: inline-block;
  721. a{
  722. @include btn;
  723. background-color: #fff;
  724. color: $color-blabla;
  725. }
  726. }
  727. }
  728. .cards-list-home{
  729. position: relative;
  730. $bp: ($column_width*2 + $column_goutiere );
  731. overflow-y: hidden;
  732. max-height: 315px;
  733. // @media only screen and (max-width: $bp * 6){
  734. // max-height: 630px;
  735. // }
  736. // @media only screen and (min-width: ($bp * 6) + 1px){
  737. // max-height: 310px;
  738. // }
  739. ul{
  740. width:100%;
  741. margin:0; padding:0;
  742. // display: grid;
  743. // grid-template-columns: repeat(auto-fill, minmax(80px, $column_width*2));
  744. // // grid-template-rows: 1fr;
  745. // grid-gap: 1em;
  746. // justify-content:start;
  747. display: flex;
  748. flex-flow: row wrap;
  749. justify-content: space-between;
  750. li{
  751. padding:0 0 $column_goutiere 0;
  752. box-sizing: border-box;
  753. // padding-top: 140%;
  754. width: $column_width;
  755. // height: $card_height / 2;
  756. position: relative;
  757. list-style: none;
  758. margin:0;
  759. // padding-top: 67.8%;
  760. overflow: hidden;
  761. .card{
  762. // position:absolute;
  763. // top:0; bottom:0;
  764. // left:0; right:0;
  765. width: 100%;
  766. height: auto;
  767. .field--name-title{
  768. font-size: 0.756em;
  769. line-height: 0.9;
  770. }
  771. }
  772. }
  773. }
  774. }
  775. }
  776. &.home-pricing{
  777. @extend %part-centered-layout;
  778. >h3{
  779. @extend %front-col-field__label;
  780. text-align: center;
  781. text-transform: capitalize;
  782. padding: 0.7em 0 0.3em 0;
  783. }
  784. .field--name-field-pricing-pitch{
  785. text-align: center;
  786. p{ margin:0;}
  787. }
  788. .field--name-field-pricing{
  789. // padding:2em 0;
  790. display: flex;
  791. flex-flow: row nowrap;
  792. justify-content: center;
  793. padding-bottom: 1em;
  794. p{
  795. flex: 0 0 $column_width * 2;
  796. padding: 1em;
  797. margin: 0;
  798. text-align: center;
  799. }
  800. }
  801. .field--name-computed-products-reference{
  802. display: flex;
  803. flex-flow: row nowrap;
  804. // TODO: mediaQuery column
  805. >.field__item{
  806. flex:0 0 50%;
  807. text-align: center;
  808. padding: 2em 0;
  809. a.btn{
  810. @include btn;
  811. background-color: #fff;
  812. }
  813. &:nth-child(1){
  814. background-color: $color-base;
  815. a.btn{
  816. color: $color-base;
  817. }
  818. }
  819. &:nth-child(2){
  820. background-color: $color-webshowroom;
  821. a.btn{
  822. color: $color-webshowroom;
  823. }
  824. }
  825. color: #fff;
  826. position: relative;
  827. height:18em;
  828. >div{
  829. position: absolute;
  830. top:50%; left:50%;
  831. transform: translate(-50%, -50%);
  832. }
  833. .field--name-title{
  834. @extend %front-col-field__label;
  835. font-weight: 600;
  836. line-height: 0.7;
  837. padding-bottom: 0.5em;
  838. text-align: center;
  839. word-spacing: 30000px;
  840. }
  841. .field--name-field-description{
  842. @extend %front-col-description;
  843. padding:0.5em;
  844. p{
  845. margin: 0;
  846. }
  847. }
  848. }
  849. }
  850. }
  851. }
  852. }
  853. }
  854. // ___ _
  855. // / __|__ _ _ _ __| |___
  856. // | (__/ _` | '_/ _` (_-<
  857. // \___\__,_|_| \__,_/__/
  858. .infinite-loading-container{
  859. .infinite-status-prompt{
  860. i[class^="loading-"]{
  861. width:15px; height:15px;
  862. }
  863. }
  864. }
  865. .cards-list{
  866. position: relative;
  867. .search-info{
  868. font-size: 0.756em;
  869. font-weight: 500;
  870. margin: 0;
  871. padding: 0 0 0.5em 0;
  872. }
  873. &>ul{
  874. // outline: 1px green solid;
  875. margin:0; padding:0;
  876. width: calc(100% + #{$column_goutiere});
  877. &>li{
  878. list-style: none;
  879. margin:0 $column_goutiere $column_goutiere 0; padding:0;
  880. display: inline-block;
  881. vertical-align: top;
  882. }
  883. }
  884. }
  885. article.card{
  886. position: relative;
  887. box-shadow: 0 0 5px rgba(0,0,0,0.2);
  888. width:$column_width; height:$card_height;
  889. &.article{
  890. width:$column_width*2 + $column_goutiere; height:$card_height;
  891. }
  892. &.minicard{
  893. height:100px;
  894. }
  895. // &.card-small{
  896. // width:100px; height:140px;
  897. // }
  898. // focused
  899. // box-shadow: 0 0 7px rgba(0,0,0,0.9);
  900. // &.article{
  901. // width: $column_width * 2 + $column_goutiere;
  902. //
  903. // }
  904. header{
  905. position: absolute;
  906. bottom:0;
  907. z-index:10;
  908. color: #000;
  909. background-color: rgba(255,255,255,0.8);
  910. padding: 0.3em 0.3em;
  911. box-sizing:border-box;
  912. width:100%;
  913. h1, h4{ margin:0; padding:0; }
  914. h1{
  915. font-size: 1.3em;
  916. font-weight: 700;
  917. line-height: 0.85;
  918. margin-bottom: 0.2em;
  919. }
  920. h4{
  921. font-size: 0.882em;
  922. font-weight: 300;
  923. line-height: 1;
  924. // margin-bottom: 0.1em;
  925. }
  926. span.ref{
  927. font-size: 0.693em;
  928. font-weight: 300;
  929. line-height: 1;
  930. }
  931. }
  932. &.card-thematique header{
  933. background-color: $color-base-transparent;
  934. }
  935. nav.tools{
  936. position: absolute;
  937. top: 0;
  938. right: 0;
  939. z-index: 21;
  940. $toolbar_width: 15px;
  941. width: $toolbar_width;
  942. background-color: #fff;
  943. box-sizing: content-box;
  944. padding: 0.3em 0.1em;
  945. >*{
  946. overflow: visible;
  947. position: relative;
  948. span.btn{
  949. overflow: hidden;
  950. font-size: 0.882em;
  951. }
  952. .tool-content{
  953. position: absolute;
  954. top: 0px;
  955. right: 100%;
  956. // width: 5em;
  957. width: $column_width - $toolbar_width - 10px;
  958. box-sizing: border-box;
  959. padding: 0.3em;
  960. background-color: #fff;
  961. box-shadow: -2px 3px 4px rgba(0, 0, 0, 0.2);
  962. opacity: 0;
  963. max-height: 0; max-width:0;
  964. overflow: hidden;
  965. transition: all 0.2s ease-in-out;
  966. }
  967. &:hover{
  968. .tool-content{
  969. transition: all 0.3s ease-in-out;
  970. opacity: 1;
  971. max-height: 195px;
  972. max-width:200px;
  973. }
  974. }
  975. }
  976. .tool.flags{
  977. .tool-content{
  978. ul{
  979. display: flex;
  980. flex-flow: row wrap;
  981. li{
  982. padding:0 0.5em 0 0;
  983. }
  984. }
  985. }
  986. span.flag{
  987. cursor: pointer;
  988. font-size: 0.756em;
  989. color: #bbb;
  990. transition: color 0.3s ease-in-out;
  991. &:hover, &.isActive{
  992. color:#1a1a1a;
  993. }
  994. }
  995. }
  996. opacity: 0;
  997. transition: opacity 0.2s ease-in-out;
  998. }
  999. &:hover{
  1000. nav.tools{
  1001. opacity:1;
  1002. }
  1003. }
  1004. section.images{
  1005. position: relative;
  1006. &, *{width: 100%; height:100%;}
  1007. figure{
  1008. cursor: pointer;
  1009. margin:0;
  1010. position: absolute;
  1011. top:0; left:0;
  1012. // width: 100%; height:100%;
  1013. &:first-of-type{
  1014. z-index:5
  1015. }
  1016. transition: opacity 0.2s ease-in-out;
  1017. &.show{opacity: 1; z-index:6;}
  1018. &.hide{opacity: 0;}
  1019. img{
  1020. // width: 100%; height:100%;
  1021. &.blank{
  1022. position: absolute;
  1023. top:0; left:0;
  1024. z-index: 20;
  1025. }
  1026. }
  1027. }
  1028. }
  1029. // overwritnig card for card-medium (aka search-card)
  1030. &.search-card{
  1031. >header{
  1032. cursor: pointer;
  1033. }
  1034. }
  1035. // overwriting card for modal-card
  1036. &.modal-card{
  1037. display: flex;
  1038. flex-flow: row-reverse nowrap;
  1039. width: $modalcard_width;
  1040. height: $modalcard_height;
  1041. >.col{
  1042. flex-basis: 50%;
  1043. }
  1044. section.col-right{
  1045. >*:not(nav.tools){
  1046. position: relative;
  1047. padding: 0.5em;
  1048. box-sizing: border-box;
  1049. width: 100%;
  1050. }
  1051. header{
  1052. bottom: auto;
  1053. }
  1054. section.samples{
  1055. ul{
  1056. display: flex;
  1057. flex-flow: row wrap;
  1058. font-size: 0.882em;
  1059. font-weight: 300;
  1060. // line-height: 1.35;
  1061. li{
  1062. padding-right: 0.5em;
  1063. span.showroom{ font-weight: 500; }
  1064. }
  1065. }
  1066. }
  1067. section.body{
  1068. p{
  1069. font-size: 0.882em;
  1070. font-weight: 300;
  1071. line-height: 1.35;
  1072. }
  1073. }
  1074. nav.tools{
  1075. opacity: 1;
  1076. section.close{
  1077. span.btn.mdi-close{
  1078. cursor:pointer;
  1079. }
  1080. }
  1081. }
  1082. }
  1083. }
  1084. }
  1085. // _____ _ _ _
  1086. // |_ _| |_ ___ _ __ __ _| |_(_)__ _ _ _ ___
  1087. // | | | ' \/ -_) ' \/ _` | _| / _` | || / -_)
  1088. // |_| |_||_\___|_|_|_\__,_|\__|_\__, |\_,_\___|
  1089. // |_|
  1090. #main-content > article.thematique{
  1091. div.cols{
  1092. display: flex;
  1093. flex-direction: row;
  1094. flex-wrap: nowrap;
  1095. // @media only screen and (max-width: $small-bp) {
  1096. @include col-mediaquery-max(3){
  1097. flex-wrap: wrap;
  1098. }
  1099. // }
  1100. div.col-left{
  1101. padding: 0 $column_goutiere $column_goutiere 0;
  1102. flex: 0 0 $column_width * 2 + $column_goutiere;
  1103. }
  1104. div.col-right{}
  1105. }
  1106. div.col-left section.body{
  1107. background-color: $color-base;
  1108. padding: 0.5em 1em 1em;
  1109. }
  1110. aside.linked-materials{
  1111. ul{
  1112. width:calc(100% + #{$column_goutiere});
  1113. li{
  1114. display: inline-block;
  1115. vertical-align: top;
  1116. width:$column_width;
  1117. margin:0 $column_goutiere $column_goutiere 0;
  1118. }
  1119. }
  1120. h3.field__label{
  1121. font-size: 1em;
  1122. font-weight: 500;
  1123. margin: 2em 0 1em 0;
  1124. }
  1125. h1.title{
  1126. font-size: 1em;
  1127. font-weight: 400;
  1128. }
  1129. h3.ref{
  1130. font-size: 0.756em;
  1131. font-weight: 600;
  1132. }
  1133. h2.description{
  1134. font-size: 0.756em;
  1135. font-weight: 400;
  1136. }
  1137. }
  1138. }
  1139. // ___ _ _ _
  1140. // | _ ) |__ _| |__| |__ _
  1141. // | _ \ / _` | '_ \ / _` |
  1142. // |___/_\__,_|_.__/_\__,_|
  1143. #blabla{
  1144. }
  1145. #main-content > article.article{
  1146. div.cols{
  1147. display: grid;
  1148. grid-template-rows: 1fr;
  1149. grid-template-columns: repeat(6, 1fr);
  1150. grid-gap: 1em;
  1151. div.col-left{
  1152. grid-column: 1;
  1153. }
  1154. div.col-right{
  1155. grid-column: 2/6;
  1156. }
  1157. }
  1158. section.accroche{
  1159. figure{
  1160. width:$column_width*2 + $column_goutiere;
  1161. margin:0 $column_goutiere 0 0;
  1162. img{
  1163. width:100%;
  1164. }
  1165. }
  1166. }
  1167. section.taxonomy{
  1168. margin:1em 0;
  1169. ul{
  1170. margin: 0;
  1171. }
  1172. li{
  1173. display:inline-block;
  1174. padding:0 0.5em 0 0;
  1175. }
  1176. }
  1177. div.gallery-wrapper{
  1178. .image{
  1179. display: inline-block;
  1180. width:$column_width;
  1181. margin:0 $column_goutiere $column_goutiere*0.6 0;
  1182. height:$card_height / 2;
  1183. background-size: cover;
  1184. }
  1185. }
  1186. // section.videos{
  1187. // ul{
  1188. // margin:0; padding:0;
  1189. // li{
  1190. // margin:0; padding:0;
  1191. // display: inline-block;
  1192. // width:100%; overflow: hidden;
  1193. // }
  1194. // }
  1195. // }
  1196. // section.visuels{
  1197. // width:calc(100% + #{$column_goutiere});
  1198. // figure{
  1199. // position: relative;
  1200. // display: inline-block;
  1201. // vertical-align: top;
  1202. // width:$column_width*2 + $column_goutiere;
  1203. // margin:0 $column_goutiere $column_goutiere*0.6 0;
  1204. // img{
  1205. // width:100%;
  1206. // }
  1207. // caption{
  1208. // position: absolute; bottom: 0; left:0;
  1209. // box-sizing: border-box; width: 100%; padding:0.5em;
  1210. // background-color: $transparent-bg-blk; color: #fff;
  1211. // }
  1212. // }
  1213. // }
  1214. aside.linked-materials{
  1215. ul{
  1216. width:calc(100% + #{$column_goutiere});
  1217. li{
  1218. display: inline-block;
  1219. vertical-align: top;
  1220. width:$column_width;
  1221. margin:0 $column_goutiere $column_goutiere 0;
  1222. }
  1223. }
  1224. h3.field__label{
  1225. font-size: 1em;
  1226. font-weight: 500;
  1227. margin: 2em 0 1em 0;
  1228. }
  1229. h1.title{
  1230. font-size: 1em;
  1231. font-weight: 400;
  1232. }
  1233. h3.ref{
  1234. font-size: 0.756em;
  1235. font-weight: 600;
  1236. }
  1237. h2.description{
  1238. font-size: 0.756em;
  1239. font-weight: 400;
  1240. }
  1241. }
  1242. nav.prevnext{
  1243. &.bottom{
  1244. margin:2em 0;
  1245. }
  1246. ul{
  1247. padding:0;
  1248. margin:0;
  1249. display: grid;
  1250. grid-template-columns: 1fr 1fr;
  1251. }
  1252. li{
  1253. padding:0;
  1254. margin:0;
  1255. list-style: none;
  1256. a{
  1257. font-size: 0.756em;
  1258. font-weight: 700;
  1259. }
  1260. &:nth-child(1){
  1261. grid-column: 1;
  1262. a:before{
  1263. content:'< ';
  1264. }
  1265. }
  1266. &:nth-child(2){
  1267. grid-column: 2;
  1268. text-align: right;
  1269. a:after{
  1270. content:' >';
  1271. }
  1272. }
  1273. }
  1274. }
  1275. }
  1276. // ___ _
  1277. // / __| |_ _____ __ ___ _ ___ ___ _ __ ___
  1278. // \__ \ ' \/ _ \ V V / '_/ _ \/ _ \ ' \(_-<
  1279. // |___/_||_\___/\_/\_/|_| \___/\___/_|_|_/__/
  1280. #showrooms{
  1281. width: calc(100% + #{$column_goutiere});
  1282. article.showroom{
  1283. width: $column_width * 2 + $column_goutiere;
  1284. display: inline-block;
  1285. vertical-align: top;
  1286. margin: 0 $column_goutiere $column_goutiere 0;
  1287. h1{
  1288. margin:0;
  1289. font-weight: 4;
  1290. }
  1291. p{ margin:0; }
  1292. figure{
  1293. margin:0;
  1294. img{
  1295. max-width: 100%;
  1296. }
  1297. }
  1298. }
  1299. }
  1300. // ___ _ _
  1301. // | _ \_ _(_)__(_)_ _ __ _
  1302. // | _/ '_| / _| | ' \/ _` |
  1303. // |_| |_| |_\__|_|_||_\__, |
  1304. // |___/
  1305. #main-content>#pricing,
  1306. #main-content .view-pricing-products .view-content{
  1307. display: flex;
  1308. flex-flow: row nowrap;
  1309. article.product,
  1310. .views-row{
  1311. flex:0 0 50%;
  1312. text-align: center;
  1313. padding: 2em 0;
  1314. >header{
  1315. padding-bottom: 1.3em;
  1316. }
  1317. >header h1,
  1318. .views-field-title{
  1319. font-size: 4em;
  1320. line-height: 0.6;
  1321. color: #fff;
  1322. text-align: center;
  1323. word-spacing: 30000px;
  1324. }
  1325. section.content, .views-field-body{
  1326. color: #fff;
  1327. .description{
  1328. font-size: 1.134em;
  1329. p{
  1330. margin: 0.3em;
  1331. }
  1332. }
  1333. }
  1334. aside{
  1335. padding:1em 0;
  1336. .variation{
  1337. display: flex;
  1338. flex-flow: row nowrap;
  1339. justify-content: center;
  1340. align-items:flex-end;
  1341. div.variation-description{
  1342. flex: 0 0 6.7em;
  1343. font-size: 2.012em;
  1344. font-weight: 800;
  1345. color: #fff;
  1346. p{
  1347. margin:0;
  1348. text-align: left;
  1349. }
  1350. }
  1351. button{
  1352. @include btn;
  1353. background-color: #fff;
  1354. }
  1355. }
  1356. }
  1357. &:nth-child(1){
  1358. background-color: $color-base;
  1359. aside .variation button{
  1360. color: $color-base;
  1361. }
  1362. }
  1363. &:nth-child(2){
  1364. background-color: $color-webshowroom;
  1365. aside .variation button{
  1366. color: $color-webshowroom;
  1367. }
  1368. }
  1369. }
  1370. }
  1371. .modal{
  1372. position: relative;
  1373. }
  1374. #pricing-modal-login-register{
  1375. position: relative;
  1376. width: 100%;
  1377. text-align: left;
  1378. h2{
  1379. margin: 0.4em 0 1.1em;
  1380. padding-right: 4em;
  1381. font-size: 1.2em;
  1382. font-weight: 300;
  1383. }
  1384. #login-register{
  1385. width: 100%;
  1386. display: flex;
  1387. flex-flow: row nowrap;
  1388. >section{
  1389. flex:0 0 250px;
  1390. form{
  1391. .form-item, .form-actions {
  1392. margin: 0.5em 0;
  1393. max-width: none;
  1394. }
  1395. .form-type-email,
  1396. .form-type-password,
  1397. .form-actions{
  1398. display:block;
  1399. }
  1400. input[type="email"],
  1401. input[type="password"]{
  1402. max-width: 11em;
  1403. }
  1404. }
  1405. }
  1406. section.login{
  1407. form{
  1408. >div{
  1409. // display: block;
  1410. }
  1411. }
  1412. }
  1413. section.register{
  1414. }
  1415. }
  1416. }
  1417. #main-content form.commerce-checkout-flow{
  1418. $w:3;
  1419. max-width: $column_width * $w + $column_goutiere * ($w - 1);
  1420. .layout-checkout-form{
  1421. display: flex;
  1422. flex-flow: column;
  1423. .layout-region-checkout-main{
  1424. // disable default style
  1425. width:100%;
  1426. float: none;
  1427. // apply custom style
  1428. order:2;
  1429. background-color: $color-webshowroom;
  1430. padding: 1em;
  1431. }
  1432. .layout-region-checkout-secondary{
  1433. // disable default style
  1434. width:100%;
  1435. float: none;
  1436. // apply custom style
  1437. order: 1;
  1438. // display: flex;
  1439. // flex-flow: row nowrap;
  1440. // >.checkout-pane{
  1441. // flex: 0 0 50%;
  1442. // }
  1443. >h3{display:none;}
  1444. #edit-order-summary{
  1445. background-color: $color-base;
  1446. padding:1em;
  1447. }
  1448. #edit-coupon-redemption{
  1449. background-color: $color-showrooms;
  1450. padding:1em;
  1451. input[type="text"]{
  1452. width: 5em;
  1453. }
  1454. }
  1455. }
  1456. .layout-region-checkout-footer{
  1457. order: 3;
  1458. }
  1459. }
  1460. }
  1461. // ___ _
  1462. // | __|__ ___| |_ ___ _ _
  1463. // | _/ _ \/ _ \ _/ -_) '_|
  1464. // |_|\___/\___/\__\___|_|
  1465. footer[role="contentinfo"]{
  1466. body:not(.path-home) & {
  1467. display:none;
  1468. }
  1469. #block-materiosimplenewssubscription{
  1470. form{
  1471. display: flex;
  1472. flex-flow: row nowrap;
  1473. align-items: center;
  1474. font-size: 0.756em;
  1475. >*{
  1476. margin-right: 0.5em;
  1477. }
  1478. #edit-subscriptions{
  1479. display: flex;
  1480. flex-flow: row nowrap;
  1481. >*{
  1482. margin-right: 0.5em;
  1483. display: flex;
  1484. flex-flow: row nowrap;
  1485. align-items: center;
  1486. }
  1487. input{
  1488. margin-right: 0.3em;
  1489. }
  1490. }
  1491. #edit-mail-wrapper{
  1492. input[type="email"]{
  1493. width:10em;
  1494. }
  1495. }
  1496. #edit-actions--2{
  1497. input[type="submit"]{
  1498. border: none;
  1499. background: none;
  1500. background-color: $color-base;
  1501. border-radius: 5px;
  1502. color: #fff;
  1503. padding: 0.7em 1em;
  1504. font-weight: 700;
  1505. }
  1506. }
  1507. }
  1508. }
  1509. }