main.scss 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959
  1. @import './base/variables';
  2. @import './base/colors';
  3. @import './base/reset';
  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. max-height:0px;
  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. z-index:100;
  57. }
  58. &:hover{
  59. &>section{
  60. transition-delay: 0s;
  61. max-height:20em;
  62. padding:1em 1em;
  63. box-shadow: 0 0 10px #ccc;
  64. }
  65. }
  66. .form-item{
  67. margin:0;
  68. position: relative;
  69. width:100%;
  70. &.form-item-name{
  71. margin:2px 0 0.5em 0;
  72. input{
  73. width:90%;
  74. padding:0;
  75. box-sizing: content-box;
  76. }
  77. }
  78. &.form-item-pass{
  79. margin:0 0 0.5em 0;
  80. input{
  81. width:90%;
  82. padding:0;
  83. box-sizing: content-box;
  84. }
  85. }
  86. &.form-item-persistent-login{
  87. font-size: 0.756em;
  88. label{
  89. vertical-align: top;
  90. }
  91. }
  92. }
  93. #edit-actions{
  94. margin:0;
  95. }
  96. .item-list{
  97. ul{
  98. margin:0;
  99. li{
  100. list-style: none;
  101. margin:0;
  102. a{
  103. font-size: 0.756em;
  104. }
  105. }
  106. }
  107. }
  108. span.login-message{
  109. color: red;
  110. font-size: 0.693em;
  111. line-height: 1.2;
  112. display: block;
  113. padding: 0 0 0.8em 0;
  114. }
  115. span.login-message[v-if="loginMessage"],
  116. span.register-message[v-if="registerMessage"]{
  117. display: none;
  118. }
  119. }
  120. // non-vue userblock
  121. #block-userblock{
  122. h2{display:none;}
  123. a{
  124. margin-right: 1em;
  125. }
  126. }
  127. // vue userblock
  128. #user-tools{
  129. padding-top: 0.06em;
  130. h4{
  131. @extend %header-fs;
  132. cursor: pointer;
  133. }
  134. .mdi-logout::before {
  135. margin: -0.125em 0 0 0;
  136. vertical-align: top;
  137. }
  138. }
  139. // vue flaglist
  140. #user-flags{
  141. border-left: 1px solid #000;
  142. padding-left: 0.5em;
  143. margin-left: 0.5em;
  144. display: inline-block;
  145. vertical-align: top;
  146. position: relative;
  147. h2{
  148. @extend %header-fs;
  149. cursor: pointer;
  150. &:before{padding-right: 0.2em;}
  151. }
  152. ul{
  153. background-color: #fff;
  154. overflow: hidden;
  155. width:11em;
  156. max-height:1px;
  157. padding:0.01em 1em;
  158. // margin:0 0 0 -1em;
  159. box-sizing:content-box;
  160. transition: all 0.4s ease-in-out;
  161. // outline: 1px solid blue;
  162. transition-delay: 2s;
  163. position: absolute;
  164. right:0;
  165. top:1.7em;
  166. box-sizing: content-box;
  167. z-index: 30;
  168. }
  169. &:hover{
  170. ul{
  171. transition-delay: 0s;
  172. max-height:50em;
  173. padding:1em 1em;
  174. box-shadow: 0 0 10px #ccc;
  175. }
  176. }
  177. li{
  178. width:100%;
  179. // cursor: pointer;
  180. display: flex;
  181. flex-direction: row;
  182. align-items: baseline;
  183. flex-wrap: nowrap;
  184. h5{
  185. @extend %header-fs;
  186. cursor: pointer;
  187. }
  188. span.mdi{
  189. font-size: 0.9em;
  190. }
  191. div.actions{
  192. opacity:0;
  193. transition: opacity 0.3s ease-in-out;
  194. padding-left:0.5em;
  195. span.mdi{
  196. cursor: pointer;
  197. color: #4e4d4d;
  198. }
  199. span.delete-btn{
  200. &.loading:before{
  201. animation: rotating 2s linear infinite;
  202. }
  203. }
  204. }
  205. &:hover{
  206. div.actions{
  207. opacity:1;
  208. }
  209. }
  210. &.create-flag{
  211. margin-top: 0.2em;
  212. input{
  213. align-self: flex-end;
  214. border: 1px solid #bbb;
  215. border-radius:5px;
  216. width: calc(100% - 2em);
  217. font-size:0.8em;
  218. }
  219. span.add-btn{
  220. align-self: flex-end;
  221. color: #bbb;
  222. font-size: 1em;
  223. padding: 0 0 0 .5em;
  224. transition: all 0.2s ease-in-out;
  225. &.active{
  226. cursor: pointer;
  227. color:#1a1a1a;
  228. }
  229. &.loading:before{
  230. animation: rotating 2s linear infinite;
  231. }
  232. }
  233. }
  234. }
  235. }
  236. // menu
  237. #block-header{
  238. margin-right: 1em;
  239. padding-left: 1em;
  240. border-left: 1px solid #000;
  241. ul.menu{
  242. margin:0;
  243. li{
  244. padding:0;
  245. display: inline-block;
  246. &:not(:first-of-type){
  247. margin-left: 0.5em;
  248. }
  249. a{
  250. @extend %header-fs;
  251. }
  252. }
  253. }
  254. }
  255. #block-languageswitcher{
  256. text-align: right;
  257. h2{
  258. margin: 0.1em 0 0 0;
  259. font-size: 0.756em;
  260. font-weight: 400;
  261. padding:0.1em 0.4em 0.2em;
  262. border-radius: 3px;
  263. background-color: #444;
  264. color: #fff;
  265. display: inline-block;
  266. vertical-align: top;
  267. }
  268. &>ul.links{
  269. // background-color: #fff;
  270. overflow: hidden;
  271. width:3.5em;
  272. // display: inline-block;
  273. height:1px;
  274. padding:0.01em 0;
  275. margin:0;
  276. box-sizing:content-box;
  277. transition: all 0.4s ease-in-out;
  278. // outline: 1px solid blue;
  279. // transition-delay: 2s;
  280. }
  281. &:hover{
  282. &>ul.links{
  283. transition-delay: 0s;
  284. height:2em;
  285. padding:0.3em 0;
  286. // box-shadow: 0 0 10px #ccc;
  287. }
  288. }
  289. li{
  290. list-style: none;
  291. padding:0;
  292. display: inline-block;
  293. &.is-active{
  294. display:none;
  295. }
  296. a{
  297. margin: 0;
  298. font-size: 0.756em;
  299. font-weight: 400;
  300. padding:0.2em 0.4em;
  301. border-radius: 3px;
  302. background-color: #444;
  303. color: #fff;
  304. }
  305. }
  306. }
  307. // header bottom
  308. #header-bottom{
  309. // disable the default wrapper behaviour
  310. &:after{content: none;}
  311. // apply flex for normal layout
  312. display: flex;
  313. flex-direction: row;
  314. justify-content: space-between;
  315. #block-pagetitle{}
  316. #block-materiosapisearchblock{
  317. align-self: flex-end;
  318. }
  319. @include col-mediaquery-max(3){
  320. flex-direction: column-reverse;
  321. // justify-content: flex-start;
  322. #block-pagetitle{
  323. width: max-content;
  324. }
  325. #block-materiosapisearchblock{}
  326. }
  327. }
  328. #block-pagetitle{
  329. // float: left;
  330. padding:1em 0;
  331. h2{
  332. margin:0;
  333. font-size: 1.512em;
  334. text-transform: capitalize;
  335. font-weight: 300;
  336. body:not(.path-home) & {
  337. padding:0.5em 1em;
  338. }
  339. body.path-blabla &,
  340. body.path-checkout & {
  341. color: #fff;
  342. background-color: $color-blabla;
  343. }
  344. body.path-showrooms & {
  345. color: #fff;
  346. background-color: $color-showrooms;
  347. }
  348. body.path-base &,
  349. body.path-thematique & {
  350. color: #fff;
  351. background-color: $color-base;
  352. }
  353. body.path-pricing & {
  354. color: #fff;
  355. background-color: $color-webshowroom;
  356. }
  357. }
  358. }
  359. #block-materiosapisearchblock{
  360. // float:right;
  361. // display:inline-block;
  362. // box-shadow: 0 0 5px rgba(0,0,0,0.2);
  363. padding:0;
  364. #materio-sapi-search-form{
  365. .form-item, input.button{
  366. display: inline-block;
  367. }
  368. #edit-search{
  369. border:1px #BBB solid;
  370. border-radius: 14px;
  371. padding:0.3em;
  372. color:#666;
  373. }
  374. .button.form-submit{
  375. border:0;
  376. text-indent: 50px;
  377. overflow: hidden;
  378. width:20px; height:20px;
  379. margin:0;
  380. // border-radius: 7px;
  381. background-image: url('../img/search.png');
  382. background-position: center;
  383. background-repeat: no-repeat;
  384. background-size: contain;
  385. }
  386. }
  387. }
  388. }
  389. // main
  390. aside.messages{
  391. padding: 0;
  392. }
  393. // content top
  394. // #content-top{
  395. // &:after{
  396. // content:"";
  397. // clear:both;
  398. // display: block;
  399. // }
  400. // }
  401. // ___ _ _ _ __ _
  402. // / __|___ _ _| |_ ___ _ _| |_ ___| | ___ / _| |_
  403. // | (__/ _ \ ' \ _/ -_) ' \ _|___| |__/ -_) _| _|
  404. // \___\___/_||_\__\___|_||_\__| |____\___|_| \__|
  405. #content-left{
  406. z-index: 5;
  407. box-sizing: content-box;
  408. max-width:1px;
  409. overflow-x: hidden;
  410. transition: all 0.3s ease-in-out;
  411. &.opened{
  412. max-width: 500px;
  413. padding: 0.3em;
  414. }
  415. >*{
  416. box-sizing: border-box;
  417. background-color: #fff;
  418. box-shadow: -2px 0px 4px rgba(0, 0, 0, 0.2);
  419. padding: 0.5em;
  420. }
  421. .flag-collection{
  422. >header{
  423. display: flex;
  424. flex-direction: row;
  425. justify-content: space-between;
  426. padding-bottom: $column_goutiere;
  427. h3{
  428. // flex-basis: calc(100% - 1em);
  429. }
  430. .mdi-close{
  431. // display: block;
  432. // flex-basis: 1em;
  433. cursor:pointer;
  434. align-self: flex-end;
  435. }
  436. }
  437. >ul{
  438. >li{
  439. margin:0 0 $column_goutiere 0;
  440. padding:0;
  441. article.card.minicard{
  442. width:$minicard_width;
  443. height:$minicard_height;
  444. margin:auto;
  445. >header{
  446. padding: 0.3em 0.3em 0.1em;
  447. h1{
  448. margin:0;
  449. }
  450. }
  451. >nav.tools{
  452. top: auto;
  453. bottom: 0;
  454. padding:0 0.2em;
  455. background:transparent;
  456. .mdi.unflag{
  457. cursor: pointer;
  458. }
  459. }
  460. }
  461. }
  462. }
  463. }
  464. }
  465. // __ _
  466. // / _|_ _ ___ _ _| |_
  467. // | _| '_/ _ \ ' \ _|
  468. // |_| |_| \___/_||_\__|
  469. @mixin btn{
  470. display: inline-block;
  471. font-size: 0.9em;
  472. font-weight: bold;
  473. padding: 0.7em 1em;
  474. margin-bottom: 0.3em;
  475. background-color: #fff;
  476. color: #000;
  477. border-radius: 5px;
  478. border: none;
  479. }
  480. article.node--type-frontpage{
  481. %front-col-field__label{
  482. font-size: 3.5em;
  483. line-height: 1;
  484. }
  485. %front-col-description{
  486. font-size: 0.9em;
  487. line-height: 1.3;
  488. }
  489. %part-centered-layout{
  490. padding:1.5em 0;
  491. background-color: #fff;
  492. >div:nth-child(1){
  493. width:80%;
  494. margin: 0 auto;
  495. text-align: center;
  496. .field__label{
  497. @extend %front-col-field__label;
  498. }
  499. .field__item{
  500. @extend %front-col-description;
  501. }
  502. }
  503. }
  504. // %part-columned-layout{
  505. // display:grid;
  506. // grid-template-columns: 300px 1fr;
  507. // grid-column-gap: 2em;
  508. // padding:2em 1em;
  509. // >div:nth-child(1){
  510. // color: #fff;
  511. // grid-column: 1;
  512. // .field__label{
  513. // @extend %front-col-field__label;
  514. // }
  515. // .field__item{
  516. // @extend %front-col-description;
  517. // }
  518. // }
  519. // >div:nth-child(2){
  520. // grid-column: 2;
  521. // }
  522. // }
  523. %part-columned-layout{
  524. display:flex;
  525. flex-direction: row;
  526. flex-wrap: nowrap;
  527. >div:nth-child(1){
  528. flex: 0 0 $column_width * 2 + $column_goutiere;
  529. box-sizing: border-box;
  530. padding: 1em;
  531. color: #fff;
  532. .field__label{
  533. @extend %front-col-field__label;
  534. }
  535. .field__item{
  536. @extend %front-col-description;
  537. }
  538. }
  539. >div:nth-child(2){
  540. flex: 1 1 auto;
  541. box-sizing: border-box;
  542. padding: 1em 0.5em;
  543. }
  544. }
  545. >h2{
  546. display: none;
  547. }
  548. .node__content{
  549. &>section{
  550. &.home-intro{
  551. @extend %part-centered-layout;
  552. .field__item{
  553. display: flex;
  554. flex-flow: row nowrap;
  555. justify-content: center;
  556. p{
  557. flex: 0 0 $column_width * 2;
  558. padding:1em;
  559. }
  560. }
  561. }
  562. &.home-database{
  563. background-color: $color-base;
  564. @extend %part-columned-layout;
  565. .field--name-field-a-database{
  566. .field__label{
  567. cursor: pointer;
  568. }
  569. }
  570. .field--name-field-database-links{
  571. .field__item{
  572. display: inline-block;
  573. a{
  574. @include btn;
  575. background-color: #fff;
  576. color: $color-base;
  577. }
  578. }
  579. }
  580. .cards-list-home{
  581. position: relative;
  582. // max-height: (130px*1.4)*3;
  583. max-height: 580px;
  584. overflow-y: hidden;
  585. ul{
  586. width:100%;
  587. margin:0; padding:0;
  588. // display: grid;
  589. // grid-template-columns: repeat(auto-fill, minmax(50px, 130px));
  590. // grid-template-rows: 1fr;
  591. // grid-gap: 1em;
  592. // justify-content:start;
  593. display: flex;
  594. flex-flow: row wrap;
  595. justify-content: space-between;
  596. li{
  597. padding:0 0 $column_goutiere / 2 0;
  598. box-sizing: border-box;
  599. // padding-top: 140%;
  600. width: $column_width / 2;
  601. height: $card_height / 2;
  602. position: relative;
  603. list-style: none;
  604. margin:0;
  605. .card{
  606. // position:absolute;
  607. // top:0; bottom:0;
  608. // left:0; right:0;
  609. width: 100%;
  610. height: 100%;
  611. .field--name-field-short-description{
  612. font-size: 0.656em;
  613. line-height: 1.2;
  614. }
  615. }
  616. }
  617. }
  618. }
  619. }
  620. &.home-showrooms{
  621. background-color: $color-showrooms;
  622. @extend %part-columned-layout;
  623. .field--name-field-showrooms{}
  624. .field--name-field-showroom-links{
  625. .field__item{
  626. display: inline-block;
  627. a{
  628. @include btn;
  629. background-color: #fff;
  630. color: $color-showrooms;
  631. }
  632. }
  633. }
  634. .field--name-computed-showrooms-reference{
  635. overflow: hidden;
  636. position:relative;
  637. // height:550px;
  638. display: grid;
  639. grid-template-rows: 1fr;
  640. $bp: ($column_width + $column_goutiere )*7;
  641. @media only screen and (max-width: $bp){
  642. grid-template-columns: 1fr;
  643. >.field__item{
  644. grid-column: 1;
  645. }
  646. }
  647. @media only screen and (min-width: $bp + 1px){
  648. grid-template-columns: 1fr 1fr;
  649. grid-gap: 1em;
  650. >.field__item:nth-child(odd){
  651. grid-column: 1;
  652. }
  653. >.field__item:nth-child(even){
  654. grid-column: 2;
  655. }
  656. }
  657. >.field__item{
  658. grid-row: 1;
  659. // position: absolute;
  660. // top:0; left:0;
  661. // width:100%; height:100%;
  662. // overflow: hidden;
  663. opacity: 0;
  664. // transform: translateX(100%);
  665. transition: all 2s ease-out;
  666. &.active{
  667. opacity: 1;
  668. // transform: translateX(0);
  669. // transition: all 0.3s ease-in-out;
  670. }
  671. .taxonomy-term{
  672. position: relative;
  673. width:100%; height:100%;
  674. div.visuel{
  675. width:100%;
  676. padding-bottom: 5em;
  677. img{
  678. max-width: 100%;
  679. height: auto;
  680. }
  681. }
  682. section.text{
  683. position: absolute;
  684. bottom:0; left:0;
  685. width:100%;
  686. box-sizing:border-box;
  687. padding:1em 0 0;
  688. background-color:$color-showrooms;
  689. color: #fff;
  690. // >*{
  691. // // display: inline-block;
  692. // font-size: 0.9em;
  693. // }
  694. h2,p{
  695. margin:0;
  696. }
  697. h2{
  698. font-size: 2em;
  699. }
  700. .field--name-field-public-address{
  701. br{
  702. display:none;
  703. }
  704. span:not(:nth-last-of-type(1)) {
  705. margin-right: 0.4em;
  706. &:after{
  707. padding-left: 0.5em;
  708. content:"⋅"
  709. }
  710. }
  711. }
  712. .field--name-field-public-phone {
  713. display: inline-block;
  714. margin-right: 0.4em;
  715. &:after{
  716. padding-left: 0.5em;
  717. content:"⋅"
  718. }
  719. }
  720. .field--name-field-public-email {
  721. display: inline-block;
  722. }
  723. }
  724. }
  725. }
  726. }
  727. }
  728. &.home-blabla{
  729. background-color: $color-blabla;
  730. @extend %part-columned-layout;
  731. .field--name-field-blabla-links{
  732. .field__item{
  733. display: inline-block;
  734. a{
  735. @include btn;
  736. background-color: #fff;
  737. color: $color-blabla;
  738. }
  739. }
  740. }
  741. .cards-list-home{
  742. position: relative;
  743. $bp: ($column_width*2 + $column_goutiere );
  744. overflow-y: hidden;
  745. max-height: 315px;
  746. // @media only screen and (max-width: $bp * 6){
  747. // max-height: 630px;
  748. // }
  749. // @media only screen and (min-width: ($bp * 6) + 1px){
  750. // max-height: 310px;
  751. // }
  752. ul{
  753. width:100%;
  754. margin:0; padding:0;
  755. // display: grid;
  756. // grid-template-columns: repeat(auto-fill, minmax(80px, $column_width*2));
  757. // // grid-template-rows: 1fr;
  758. // grid-gap: 1em;
  759. // justify-content:start;
  760. display: flex;
  761. flex-flow: row wrap;
  762. justify-content: space-between;
  763. li{
  764. padding:0 0 $column_goutiere 0;
  765. box-sizing: border-box;
  766. // padding-top: 140%;
  767. width: $column_width;
  768. // height: $card_height / 2;
  769. position: relative;
  770. list-style: none;
  771. margin:0;
  772. // padding-top: 67.8%;
  773. overflow: hidden;
  774. .card{
  775. // position:absolute;
  776. // top:0; bottom:0;
  777. // left:0; right:0;
  778. width: 100%;
  779. height: auto;
  780. .field--name-title{
  781. font-size: 0.756em;
  782. line-height: 0.9;
  783. }
  784. }
  785. }
  786. }
  787. }
  788. }
  789. &.home-pricing{
  790. @extend %part-centered-layout;
  791. >h3{
  792. @extend %front-col-field__label;
  793. text-align: center;
  794. text-transform: capitalize;
  795. padding: 0.7em 0 0.3em 0;
  796. }
  797. .field--name-field-pricing-pitch{
  798. text-align: center;
  799. p{ margin:0;}
  800. }
  801. .field--name-field-pricing{
  802. // padding:2em 0;
  803. display: flex;
  804. flex-flow: row nowrap;
  805. justify-content: center;
  806. padding-bottom: 1em;
  807. p{
  808. flex: 0 0 $column_width * 2;
  809. padding: 1em;
  810. margin: 0;
  811. text-align: center;
  812. }
  813. }
  814. .field--name-computed-products-reference{
  815. display: flex;
  816. flex-flow: row nowrap;
  817. // TODO: mediaQuery column
  818. >.field__item{
  819. flex:0 0 50%;
  820. text-align: center;
  821. padding: 2em 0;
  822. a.btn{
  823. @include btn;
  824. background-color: #fff;
  825. }
  826. &:nth-child(1){
  827. background-color: $color-base;
  828. a.btn{
  829. color: $color-base;
  830. }
  831. }
  832. &:nth-child(2){
  833. background-color: $color-webshowroom;
  834. a.btn{
  835. color: $color-webshowroom;
  836. }
  837. }
  838. color: #fff;
  839. position: relative;
  840. height:18em;
  841. >article{
  842. position: absolute;
  843. top:50%; left:50%;
  844. transform: translate(-50%, -50%);
  845. }
  846. .field--name-title{
  847. @extend %front-col-field__label;
  848. font-weight: 600;
  849. line-height: 0.7;
  850. padding-bottom: 0.1em;
  851. text-align: center;
  852. word-spacing: 30000px;
  853. }
  854. .field--name-body{
  855. @extend %front-col-description;
  856. padding:0.5em;
  857. p{
  858. margin: 0;
  859. }
  860. }
  861. }
  862. }
  863. }
  864. }
  865. }
  866. }
  867. // ___ _
  868. // / __|__ _ _ _ __| |___
  869. // | (__/ _` | '_/ _` (_-<
  870. // \___\__,_|_| \__,_/__/
  871. .infinite-loading-container{
  872. .infinite-status-prompt{
  873. i[class^="loading-"]{
  874. width:15px; height:15px;
  875. }
  876. }
  877. }
  878. .cards-list{
  879. position: relative;
  880. .search-info{
  881. font-size: 0.756em;
  882. font-weight: 500;
  883. margin: 0;
  884. padding: 0 0 0.5em 0;
  885. }
  886. &>ul{
  887. // outline: 1px green solid;
  888. margin:0; padding:0;
  889. width: calc(100% + #{$column_goutiere});
  890. &>li{
  891. list-style: none;
  892. margin:0 $column_goutiere $column_goutiere 0; padding:0;
  893. display: inline-block;
  894. vertical-align: top;
  895. }
  896. }
  897. }
  898. article.card{
  899. position: relative;
  900. box-shadow: 0 0 5px rgba(0,0,0,0.2);
  901. width:$column_width; height:$card_height;
  902. &.article{
  903. width:$column_width*2 + $column_goutiere; height:$card_height;
  904. }
  905. &.minicard{
  906. height:100px;
  907. width:$minicard_width;
  908. height:$minicard_height;
  909. margin:auto;
  910. >header{
  911. padding: 0.3em 0.3em 0.1em;
  912. cursor: pointer;
  913. h1{
  914. margin:0;
  915. font-size: 1em;
  916. }
  917. h4{
  918. margin:0;
  919. line-height: 1.1;
  920. margin-bottom: -0.4em;
  921. }
  922. span.ref{
  923. line-height: 0.5;
  924. }
  925. }
  926. >nav.tools{
  927. top: auto;
  928. bottom: 0;
  929. padding:0 0.2em;
  930. background:transparent;
  931. .mdi.unflag{
  932. cursor: pointer;
  933. }
  934. }
  935. }
  936. &.linkedmaterialcard{
  937. width:$linkedmaterialcard_width;
  938. height:$linkedmaterialcard_height;
  939. >header{
  940. padding: 0.3em 0.3em 0.1em;
  941. cursor: pointer;
  942. h1{
  943. margin:0;
  944. font-size: 1em;
  945. }
  946. h4{
  947. margin:0;
  948. line-height: 1.1;
  949. margin-bottom: -0.4em;
  950. }
  951. span.ref{
  952. line-height: 0.5;
  953. }
  954. }
  955. >nav.tools{
  956. top: auto;
  957. bottom: 0;
  958. padding:0 0.2em;
  959. background:transparent;
  960. .mdi.unflag{
  961. cursor: pointer;
  962. }
  963. }
  964. }
  965. // &.card-small{
  966. // width:100px; height:140px;
  967. // }
  968. // focused
  969. // box-shadow: 0 0 7px rgba(0,0,0,0.9);
  970. // &.article{
  971. // width: $column_width * 2 + $column_goutiere;
  972. //
  973. // }
  974. header{
  975. position: absolute;
  976. bottom:0;
  977. z-index:10;
  978. color: #000;
  979. background-color: rgba(255,255,255,0.8);
  980. padding: 0.3em 0.3em;
  981. box-sizing:border-box;
  982. width:100%;
  983. h1, h4{ margin:0; padding:0; }
  984. h1{
  985. font-size: 1.3em;
  986. font-weight: 700;
  987. line-height: 0.85;
  988. margin-bottom: 0.2em;
  989. }
  990. h4{
  991. font-size: 0.882em;
  992. font-weight: 300;
  993. line-height: 1.1;
  994. margin-bottom: -0.2em;
  995. }
  996. span.ref{
  997. font-size: 0.693em;
  998. font-weight: 300;
  999. line-height: 1;
  1000. }
  1001. }
  1002. &.card-thematique header{
  1003. background-color: $color-base-transparent;
  1004. }
  1005. $navtool_width: 15px;
  1006. nav.tools{
  1007. position: absolute;
  1008. top: 0;
  1009. right: 0;
  1010. z-index: 21;
  1011. width: $navtool_width;
  1012. background-color: #fff;
  1013. box-sizing: content-box;
  1014. padding: 0.3em 0.1em;
  1015. >*{
  1016. overflow: visible;
  1017. position: relative;
  1018. span.btn{
  1019. overflow: hidden;
  1020. font-size: 0.882em;
  1021. }
  1022. .tool-content{
  1023. position: absolute;
  1024. top: 0px;
  1025. right: 100%;
  1026. // width: 5em;
  1027. width: $column_width - $navtool_width - 10px;
  1028. box-sizing: border-box;
  1029. padding: 0;
  1030. background-color: #fff;
  1031. box-shadow: -2px 3px 8px rgba(0, 0, 0, 0.5);
  1032. opacity: 0;
  1033. max-height: 0; max-width:0;
  1034. overflow: hidden;
  1035. transition: all 0.2s ease-in-out;
  1036. transition-delay: 0.1s;
  1037. }
  1038. &:hover{
  1039. .tool-content{
  1040. transition: all 0.3s ease-in-out;
  1041. opacity: 1;
  1042. padding: 0.3em;
  1043. max-height: 195px;
  1044. max-width:200px;
  1045. }
  1046. }
  1047. }
  1048. .tool.flags{
  1049. .tool-content{
  1050. ul{
  1051. display: flex;
  1052. flex-flow: row wrap;
  1053. li{
  1054. padding:0 0.5em 0 0;
  1055. }
  1056. }
  1057. }
  1058. span.flag{
  1059. cursor: pointer;
  1060. font-size: 0.756em;
  1061. color: #bbb;
  1062. transition: color 0.3s ease-in-out;
  1063. &:hover, &.isActive{
  1064. color:#1a1a1a;
  1065. }
  1066. }
  1067. li.create-flag{
  1068. margin-top: 0.2em;
  1069. padding:0;
  1070. input{
  1071. align-self: flex-end;
  1072. border: 1px solid #bbb;
  1073. border-radius:5px;
  1074. width: calc(100% - 2em);
  1075. font-size:0.8em;
  1076. }
  1077. span.add-btn{
  1078. align-self: flex-end;
  1079. color: #bbb;
  1080. font-size: 1em;
  1081. // padding: 0 0 0 .5em;
  1082. transition: all 0.2s ease-in-out;
  1083. &.active{
  1084. cursor: pointer;
  1085. color:#1a1a1a;
  1086. }
  1087. &.loading:before{
  1088. animation: rotating 2s linear infinite;
  1089. }
  1090. }
  1091. }
  1092. }
  1093. opacity: 0;
  1094. transition: opacity 0.2s ease-in-out;
  1095. }
  1096. &:hover{
  1097. nav.tools{
  1098. opacity:1;
  1099. }
  1100. }
  1101. section.images{
  1102. position: relative;
  1103. &, *{width: 100%; height:100%;}
  1104. figure{
  1105. cursor: pointer;
  1106. margin:0;
  1107. position: absolute;
  1108. top:0; left:0;
  1109. // width: 100%; height:100%;
  1110. &:first-of-type{
  1111. z-index:5
  1112. }
  1113. transition: opacity 0.2s ease-in-out;
  1114. &.show{opacity: 1; z-index:6;}
  1115. &.hide{opacity: 0;}
  1116. img{
  1117. // width: 100%; height:100%;
  1118. &.blank{
  1119. position: absolute;
  1120. top:0; left:0;
  1121. z-index: 20;
  1122. }
  1123. }
  1124. }
  1125. }
  1126. // overwritnig card for card-medium (aka search-card)
  1127. &.search-card{
  1128. >header{
  1129. cursor: pointer;
  1130. }
  1131. }
  1132. // overwriting card for modal-card
  1133. &.modal-card{
  1134. display: flex;
  1135. flex-flow: row-reverse nowrap;
  1136. width: $modalcard_width;
  1137. height: $modalcard_height;
  1138. >.col{
  1139. flex-basis: 50%;
  1140. }
  1141. section.col-right{
  1142. >*:not(nav.tools){
  1143. position: relative;
  1144. padding: 0.3em $navtool_width + 5px 0 0.5em;
  1145. box-sizing: border-box;
  1146. width: 100%;
  1147. }
  1148. >header{
  1149. bottom: auto;
  1150. }
  1151. span.label{
  1152. font-size: 0.693em;
  1153. font-weight: 500;
  1154. }
  1155. section.body{
  1156. p{
  1157. font-size: 0.693em;
  1158. font-weight: 300;
  1159. line-height: 1.35;
  1160. margin:0 0 0.3em;
  1161. }
  1162. }
  1163. .vsa-list{
  1164. padding:0;
  1165. border: none;
  1166. --vsa-heading-padding: 0 0;
  1167. --vsa-content-padding: 0 0 0.5em;
  1168. --vsa-default-icon-size: 0.2;
  1169. --vsa-border-width: 0;
  1170. --vsa-text-color: #{$color-main-text};
  1171. --vsa-highlight-color: #fff;
  1172. --vsa-bg-color: #fff;
  1173. .vsa-item__trigger:focus .vsa-item__trigger__icon--is-default::after, .vsa-item__trigger:focus .vsa-item__trigger__icon--is-default::before, .vsa-item__trigger:hover .vsa-item__trigger__icon--is-default::after, .vsa-item__trigger:hover .vsa-item__trigger__icon--is-default::before {
  1174. background-color: var(--vsa-text-color);
  1175. }
  1176. .vsa-item{
  1177. .vsa-item__heading{
  1178. button.vsa-item__trigger{
  1179. height:2em;
  1180. &:hover,
  1181. &:focus{
  1182. color: var(--vsa-text-color);
  1183. }
  1184. }
  1185. }
  1186. .vsa-item__content{
  1187. }
  1188. }
  1189. }
  1190. section.linked-materials{
  1191. >ul{
  1192. display: flex;
  1193. flex-flow: row wrap;
  1194. justify-content: space-between;
  1195. >li{
  1196. flex-basis: 0 0 50%;
  1197. margin-bottom: 0.5em;
  1198. article.linkedmaterialcard{
  1199. }
  1200. }
  1201. }
  1202. }
  1203. nav.tools{
  1204. opacity: 1;
  1205. section.close{
  1206. span.btn.mdi-close{
  1207. cursor:pointer;
  1208. }
  1209. }
  1210. div.tool-content{
  1211. min-width: $column_width *2 - $navtool_width - 10px;
  1212. }
  1213. }
  1214. section.tool.samples{
  1215. div.tool-content{
  1216. ul{
  1217. // display: flex;
  1218. // flex-flow: row wrap;
  1219. font-size: 0.882em;
  1220. font-weight: 300;
  1221. // line-height: 1.35;
  1222. li{
  1223. padding-right: 0.5em;
  1224. span.showroom{ font-weight: 500; }
  1225. }
  1226. }
  1227. }
  1228. }
  1229. section.tool.note{
  1230. &:hover div.tool-content{
  1231. max-height: 370px;
  1232. }
  1233. div.tool-content{
  1234. textarea,
  1235. textarea:focus,
  1236. textarea:focus-visible,
  1237. textarea:active{
  1238. resize:none;
  1239. width:99%;
  1240. height:350px;
  1241. margin:0;
  1242. padding:0.3em;
  1243. border:1px solid #ccc;
  1244. border-radius: 3px;
  1245. outline: none;
  1246. box-sizing: border-box;
  1247. }
  1248. }
  1249. }
  1250. // section.tool.industriels{
  1251. // div.tool-content{
  1252. // display: flex;
  1253. // flex-flow: row;
  1254. // >section{
  1255. // flex: 0 0 50%;
  1256. // h2{
  1257. // margin:0;
  1258. // font-size: 1em;
  1259. // line-height: 0.6;
  1260. // }
  1261. // p{
  1262. // margin: 0;
  1263. // font-size: 0.882em;
  1264. // }
  1265. // }
  1266. // }
  1267. // }
  1268. section.industriels{
  1269. display: flex;
  1270. flex-flow: row;
  1271. >section{
  1272. flex: 0 0 50%;
  1273. ul{
  1274. li{
  1275. padding:0.1em 0 .4em 0;
  1276. }
  1277. }
  1278. h2{
  1279. margin:0;
  1280. font-size: 1em;
  1281. line-height: 1;
  1282. }
  1283. p{
  1284. margin: 0;
  1285. font-size: 0.756em;
  1286. }
  1287. }
  1288. }
  1289. section.attachments{
  1290. a{
  1291. margin:0;
  1292. font-size: 0.882em;
  1293. line-height: 0.6;
  1294. span{
  1295. font-size: 0.8em
  1296. }
  1297. }
  1298. p{
  1299. margin: 0;
  1300. font-size: 0.882em;
  1301. }
  1302. }
  1303. }
  1304. }
  1305. }
  1306. // _____ _ _ _
  1307. // |_ _| |_ ___ _ __ __ _| |_(_)__ _ _ _ ___
  1308. // | | | ' \/ -_) ' \/ _` | _| / _` | || / -_)
  1309. // |_| |_||_\___|_|_|_\__,_|\__|_\__, |\_,_\___|
  1310. // |_|
  1311. #main-content > article.thematique{
  1312. div.cols{
  1313. display: flex;
  1314. flex-direction: row;
  1315. flex-wrap: nowrap;
  1316. // @media only screen and (max-width: $small-bp) {
  1317. @include col-mediaquery-max(3){
  1318. flex-wrap: wrap;
  1319. }
  1320. // }
  1321. div.col-left{
  1322. padding: 0 $column_goutiere $column_goutiere 0;
  1323. flex: 0 0 $column_width * 2 + $column_goutiere;
  1324. }
  1325. div.col-right{}
  1326. }
  1327. div.col-left{
  1328. section.body{
  1329. background-color: $color-base;
  1330. padding: 0.5em 1em 1em;
  1331. }
  1332. section.visuel{
  1333. img{
  1334. width: 100%;
  1335. }
  1336. }
  1337. }
  1338. aside.linked-materials{
  1339. ul{
  1340. width:calc(100% + #{$column_goutiere});
  1341. li{
  1342. display: inline-block;
  1343. vertical-align: top;
  1344. width:$column_width;
  1345. margin:0 $column_goutiere $column_goutiere 0;
  1346. }
  1347. }
  1348. h3.field__label{
  1349. font-size: 1em;
  1350. font-weight: 500;
  1351. margin: 2em 0 1em 0;
  1352. }
  1353. h1.title{
  1354. font-size: 1em;
  1355. font-weight: 400;
  1356. }
  1357. h3.ref{
  1358. font-size: 0.756em;
  1359. font-weight: 600;
  1360. }
  1361. h2.description{
  1362. font-size: 0.756em;
  1363. font-weight: 400;
  1364. }
  1365. }
  1366. }
  1367. // ___ _ _ _
  1368. // | _ ) |__ _| |__| |__ _
  1369. // | _ \ / _` | '_ \ / _` |
  1370. // |___/_\__,_|_.__/_\__,_|
  1371. #blabla{
  1372. }
  1373. #main-content > article.article{
  1374. div.cols{
  1375. display: grid;
  1376. grid-template-rows: 1fr;
  1377. grid-template-columns: repeat(6, 1fr);
  1378. grid-gap: 1em;
  1379. div.col-left{
  1380. grid-column: 1;
  1381. }
  1382. div.col-right{
  1383. grid-column: 2/6;
  1384. }
  1385. }
  1386. section.accroche{
  1387. figure{
  1388. width:$column_width*2 + $column_goutiere;
  1389. margin:0 $column_goutiere 0 0;
  1390. img{
  1391. width:100%;
  1392. }
  1393. }
  1394. }
  1395. section.taxonomy{
  1396. margin:1em 0;
  1397. ul{
  1398. margin: 0;
  1399. }
  1400. li{
  1401. display:inline-block;
  1402. padding:0 0.5em 0 0;
  1403. }
  1404. }
  1405. div.gallery-wrapper{
  1406. .image{
  1407. display: inline-block;
  1408. width:$column_width;
  1409. margin:0 $column_goutiere $column_goutiere*0.6 0;
  1410. height:$card_height / 2;
  1411. background-size: cover;
  1412. }
  1413. }
  1414. // section.videos{
  1415. // ul{
  1416. // margin:0; padding:0;
  1417. // li{
  1418. // margin:0; padding:0;
  1419. // display: inline-block;
  1420. // width:100%; overflow: hidden;
  1421. // }
  1422. // }
  1423. // }
  1424. // section.visuels{
  1425. // width:calc(100% + #{$column_goutiere});
  1426. // figure{
  1427. // position: relative;
  1428. // display: inline-block;
  1429. // vertical-align: top;
  1430. // width:$column_width*2 + $column_goutiere;
  1431. // margin:0 $column_goutiere $column_goutiere*0.6 0;
  1432. // img{
  1433. // width:100%;
  1434. // }
  1435. // caption{
  1436. // position: absolute; bottom: 0; left:0;
  1437. // box-sizing: border-box; width: 100%; padding:0.5em;
  1438. // background-color: $transparent-bg-blk; color: #fff;
  1439. // }
  1440. // }
  1441. // }
  1442. aside.linked-materials{
  1443. ul{
  1444. width:calc(100% + #{$column_goutiere});
  1445. li{
  1446. display: inline-block;
  1447. vertical-align: top;
  1448. width:$column_width;
  1449. margin:0 $column_goutiere $column_goutiere 0;
  1450. }
  1451. }
  1452. h3.field__label{
  1453. font-size: 1em;
  1454. font-weight: 500;
  1455. margin: 2em 0 1em 0;
  1456. }
  1457. h1.title{
  1458. font-size: 1em;
  1459. font-weight: 400;
  1460. }
  1461. h3.ref{
  1462. font-size: 0.756em;
  1463. font-weight: 600;
  1464. }
  1465. h2.description{
  1466. font-size: 0.756em;
  1467. font-weight: 400;
  1468. }
  1469. }
  1470. nav.prevnext{
  1471. &.bottom{
  1472. margin:2em 0;
  1473. }
  1474. ul{
  1475. padding:0;
  1476. margin:0;
  1477. display: grid;
  1478. grid-template-columns: 1fr 1fr;
  1479. }
  1480. li{
  1481. padding:0;
  1482. margin:0;
  1483. list-style: none;
  1484. a{
  1485. font-size: 0.756em;
  1486. font-weight: 700;
  1487. }
  1488. &:nth-child(1){
  1489. grid-column: 1;
  1490. a:before{
  1491. content:'< ';
  1492. }
  1493. }
  1494. &:nth-child(2){
  1495. grid-column: 2;
  1496. text-align: right;
  1497. a:after{
  1498. content:' >';
  1499. }
  1500. }
  1501. }
  1502. }
  1503. }
  1504. // ___ _
  1505. // / __| |_ _____ __ ___ _ ___ ___ _ __ ___
  1506. // \__ \ ' \/ _ \ V V / '_/ _ \/ _ \ ' \(_-<
  1507. // |___/_||_\___/\_/\_/|_| \___/\___/_|_|_/__/
  1508. #showrooms{
  1509. width: calc(100% + #{$column_goutiere});
  1510. article.showroom{
  1511. width: $column_width * 2 + $column_goutiere;
  1512. display: inline-block;
  1513. vertical-align: top;
  1514. margin: 0 $column_goutiere $column_goutiere 0;
  1515. h1{
  1516. margin:0;
  1517. font-weight: 4;
  1518. }
  1519. p{ margin:0; }
  1520. figure{
  1521. margin:0;
  1522. img{
  1523. max-width: 100%;
  1524. }
  1525. }
  1526. }
  1527. }
  1528. // ___ _ _
  1529. // | _ \_ _(_)__(_)_ _ __ _
  1530. // | _/ '_| / _| | ' \/ _` |
  1531. // |_| |_| |_\__|_|_||_\__, |
  1532. // |___/
  1533. #main-content>#pricing,
  1534. #main-content .view-pricing-products .view-content{
  1535. display: flex;
  1536. flex-flow: row nowrap;
  1537. article.product,
  1538. .views-row{
  1539. flex:0 0 50%;
  1540. text-align: center;
  1541. padding: 2em 0;
  1542. >header{
  1543. padding-bottom: 1.3em;
  1544. }
  1545. >header h1,
  1546. .views-field-title{
  1547. font-size: 4em;
  1548. line-height: 0.6;
  1549. color: #fff;
  1550. text-align: center;
  1551. word-spacing: 30000px;
  1552. }
  1553. section.content, .views-field-body{
  1554. color: #fff;
  1555. .description{
  1556. font-size: 1.134em;
  1557. p{
  1558. margin: 0.3em;
  1559. }
  1560. }
  1561. }
  1562. aside{
  1563. padding:1em 0;
  1564. .variation{
  1565. display: flex;
  1566. flex-flow: row nowrap;
  1567. justify-content: center;
  1568. align-items:flex-end;
  1569. div.variation-description{
  1570. flex: 0 0 6.7em;
  1571. font-size: 2.012em;
  1572. font-weight: 800;
  1573. color: #fff;
  1574. p{
  1575. margin:0;
  1576. text-align: left;
  1577. }
  1578. }
  1579. button{
  1580. @include btn;
  1581. background-color: #fff;
  1582. }
  1583. }
  1584. }
  1585. &:nth-child(1){
  1586. background-color: $color-base;
  1587. aside .variation button{
  1588. color: $color-base;
  1589. }
  1590. }
  1591. &:nth-child(2){
  1592. background-color: $color-webshowroom;
  1593. aside .variation button{
  1594. color: $color-webshowroom;
  1595. }
  1596. }
  1597. }
  1598. }
  1599. .modal{
  1600. position: relative;
  1601. }
  1602. #pricing-modal-login-register{
  1603. position: relative;
  1604. width: 100%;
  1605. text-align: left;
  1606. h2{
  1607. margin: 0.4em 0 1.1em;
  1608. padding-right: 4em;
  1609. font-size: 1.2em;
  1610. font-weight: 300;
  1611. }
  1612. #login-register{
  1613. width: 100%;
  1614. display: flex;
  1615. flex-flow: row nowrap;
  1616. >section{
  1617. flex:0 0 250px;
  1618. form{
  1619. .form-item, .form-actions {
  1620. margin: 0.5em 0;
  1621. max-width: none;
  1622. }
  1623. .form-type-email,
  1624. .form-type-password,
  1625. .form-actions{
  1626. display:block;
  1627. }
  1628. input[type="email"],
  1629. input[type="password"]{
  1630. max-width: 11em;
  1631. }
  1632. &#user-login-form #edit-pass--description,
  1633. #edit-pass-pass1--description{
  1634. display: block;
  1635. max-width: 16em;
  1636. font-size: 0.693em;
  1637. }
  1638. span.login-message,
  1639. span.register-message{
  1640. color: red;
  1641. font-size: 0.693em;
  1642. line-height: 1.2;
  1643. display: block;
  1644. padding: 0.8em 0 0 0;
  1645. }
  1646. span.login-message[v-if="loginMessage"],
  1647. span.register-message[v-if="registerMessage"]{
  1648. display: none;
  1649. }
  1650. }
  1651. }
  1652. section.login{
  1653. form{
  1654. >div{
  1655. // display: block;
  1656. }
  1657. }
  1658. }
  1659. section.register{
  1660. }
  1661. }
  1662. }
  1663. #main-content form.commerce-checkout-flow{
  1664. $w:3;
  1665. max-width: $column_width * $w + $column_goutiere * ($w - 1);
  1666. .layout-checkout-form{
  1667. display: flex;
  1668. flex-flow: column;
  1669. .layout-region-checkout-main{
  1670. // disable default style
  1671. width:100%;
  1672. float: none;
  1673. // apply custom style
  1674. order:2;
  1675. background-color: $color-webshowroom;
  1676. padding: 1em;
  1677. label,
  1678. legend,
  1679. fieldset#edit-review-contact-information,
  1680. fieldset#edit-review-payment-information{
  1681. color: #fff;
  1682. }
  1683. fieldset{
  1684. border:none;
  1685. margin:0; padding:0;
  1686. legend{
  1687. font-size: 1.5em;
  1688. font-weight: 600;
  1689. margin-bottom: 0.5em;
  1690. }
  1691. }
  1692. $lw:10em;
  1693. .form-item{
  1694. margin:0 0 0.5em 0;
  1695. }
  1696. label{
  1697. display: inline-block;
  1698. font-weight: bold;
  1699. min-width: $lw;
  1700. }
  1701. input[type="text"]{
  1702. width:20em;
  1703. }
  1704. .stripe-form{
  1705. display: inline-block;
  1706. background-color: #fff;
  1707. color: #1A1A1A;
  1708. border-radius: 5px;
  1709. padding: 1em;
  1710. margin: 0 0 1em;
  1711. .form-item{
  1712. display: flex;
  1713. align-items: center;
  1714. flex-flow: row nowrap;
  1715. label{
  1716. color: #777;
  1717. }
  1718. .form-text{
  1719. background-color: #fff;
  1720. border-radius: 3px;
  1721. }
  1722. }
  1723. }
  1724. // .form-item-payment-information-billing-information-address-0-address-address-line2
  1725. .form-item-payment-information-add-payment-method-billing-information-address-0-address-address-line2{
  1726. padding-left:$lw + 0.25em;
  1727. }
  1728. // .form-item-payment-information-billing-information-copy-to-address-book
  1729. .form-item-payment-information-add-payment-method-billing-information-copy-to-address-book{
  1730. display: none;
  1731. }
  1732. }
  1733. .layout-region-checkout-secondary{
  1734. // disable default style
  1735. width:100%;
  1736. float: none;
  1737. // apply custom style
  1738. order: 1;
  1739. // display: flex;
  1740. // flex-flow: row nowrap;
  1741. // >.checkout-pane{
  1742. // flex: 0 0 50%;
  1743. // }
  1744. >h3{display:none;}
  1745. #edit-order-summary{
  1746. background-color: $color-base;
  1747. color:#fff;
  1748. padding:1em;
  1749. .view-commerce-checkout-order-summary{
  1750. display: flex;
  1751. flex-flow: row nowrap;
  1752. justify-content: space-between;
  1753. align-items: flex-end;
  1754. }
  1755. .field--name-product-id{
  1756. .field--name-title{
  1757. font-size: 2.5em;
  1758. font-weight: 800;
  1759. }
  1760. .field--name-body{
  1761. }
  1762. }
  1763. .field--name-title{
  1764. font-size: 1.5em;
  1765. font-weight: 600;
  1766. }
  1767. p{
  1768. margin:0;
  1769. }
  1770. }
  1771. #edit-coupon-redemption{
  1772. background-color: $color-showrooms;
  1773. padding:1em;
  1774. >.form-wrapper{
  1775. display: flex;
  1776. flex-flow: row;
  1777. align-items: center;
  1778. .form-item{
  1779. margin:0 0.5em 0 0;
  1780. label{
  1781. color: #fff;
  1782. font-size: 1.5em;
  1783. font-weight: 600;
  1784. margin-right: 0.5em;
  1785. }
  1786. input[type="text"]{
  1787. width: 7em;
  1788. }
  1789. }
  1790. input[type="submit"]{
  1791. background-color: #fff;
  1792. color: $color-showrooms;
  1793. border: none;
  1794. margin:0;
  1795. padding:0.1em 0.7em;
  1796. box-sizing: content-box;
  1797. height:2em;
  1798. font-weight: 800;
  1799. border-radius: 5px;
  1800. }
  1801. }
  1802. }
  1803. }
  1804. .layout-region-checkout-footer{
  1805. // disable default style
  1806. float: none;
  1807. width: 100%;
  1808. padding: 0;
  1809. // apply custom style
  1810. order: 3;
  1811. #edit-actions{
  1812. text-align: right;
  1813. }
  1814. input#edit-actions-next{
  1815. background-color: $color-blabla;
  1816. color: #fff;
  1817. border: none;
  1818. border-radius: 5px;
  1819. padding: 0.2em 0.4em 0.3em;
  1820. font-weight: 600;
  1821. font-size: 1.323em;
  1822. }
  1823. }
  1824. }
  1825. }
  1826. form#user-pass{
  1827. input.form-email{
  1828. max-width: 95%;
  1829. }
  1830. }
  1831. // ___ _
  1832. // | __|__ ___| |_ ___ _ _
  1833. // | _/ _ \/ _ \ _/ -_) '_|
  1834. // |_|\___/\___/\__\___|_|
  1835. footer[role="contentinfo"]{
  1836. body:not(.path-home) & {
  1837. display:none;
  1838. }
  1839. #block-materiosimplenewssubscription{
  1840. form{
  1841. display: flex;
  1842. flex-flow: row nowrap;
  1843. align-items: center;
  1844. font-size: 0.756em;
  1845. >*{
  1846. margin-right: 0.5em;
  1847. }
  1848. #edit-subscriptions{
  1849. display: flex;
  1850. flex-flow: row nowrap;
  1851. >*{
  1852. margin-right: 0.5em;
  1853. display: flex;
  1854. flex-flow: row nowrap;
  1855. align-items: center;
  1856. }
  1857. input{
  1858. margin-right: 0.3em;
  1859. }
  1860. }
  1861. #edit-mail-wrapper{
  1862. input[type="email"]{
  1863. width:10em;
  1864. }
  1865. }
  1866. #edit-actions--2{
  1867. input[type="submit"]{
  1868. border: none;
  1869. background: none;
  1870. background-color: $color-base;
  1871. border-radius: 5px;
  1872. color: #fff;
  1873. padding: 0.7em 1em;
  1874. font-weight: 700;
  1875. }
  1876. }
  1877. }
  1878. }
  1879. }