main.scss 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965
  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. section.images{
  905. a{
  906. display:block;
  907. }
  908. }
  909. }
  910. &.minicard{
  911. height:100px;
  912. width:$minicard_width;
  913. height:$minicard_height;
  914. margin:auto;
  915. >header{
  916. padding: 0.3em 0.3em 0.1em;
  917. cursor: pointer;
  918. h1{
  919. margin:0;
  920. font-size: 1em;
  921. }
  922. h4{
  923. margin:0;
  924. line-height: 1.1;
  925. margin-bottom: -0.4em;
  926. }
  927. span.ref{
  928. line-height: 0.5;
  929. }
  930. }
  931. >nav.tools{
  932. top: auto;
  933. bottom: 0;
  934. padding:0 0.2em;
  935. background:transparent;
  936. .mdi.unflag{
  937. cursor: pointer;
  938. }
  939. }
  940. }
  941. &.linkedmaterialcard{
  942. width:$linkedmaterialcard_width;
  943. height:$linkedmaterialcard_height;
  944. >header{
  945. padding: 0.3em 0.3em 0.1em;
  946. cursor: pointer;
  947. h1{
  948. margin:0;
  949. font-size: 1em;
  950. }
  951. h4{
  952. margin:0;
  953. line-height: 1.1;
  954. margin-bottom: -0.4em;
  955. }
  956. span.ref{
  957. line-height: 0.5;
  958. }
  959. }
  960. >nav.tools{
  961. top: auto;
  962. bottom: 0;
  963. padding:0 0.2em;
  964. background:transparent;
  965. .mdi.unflag{
  966. cursor: pointer;
  967. }
  968. }
  969. }
  970. // &.card-small{
  971. // width:100px; height:140px;
  972. // }
  973. // focused
  974. // box-shadow: 0 0 7px rgba(0,0,0,0.9);
  975. // &.article{
  976. // width: $column_width * 2 + $column_goutiere;
  977. //
  978. // }
  979. header{
  980. position: absolute;
  981. bottom:0;
  982. z-index:10;
  983. color: #000;
  984. background-color: rgba(255,255,255,0.8);
  985. padding: 0.3em 0.3em;
  986. box-sizing:border-box;
  987. width:100%;
  988. h1, h4{ margin:0; padding:0; }
  989. h1{
  990. font-size: 1.3em;
  991. font-weight: 700;
  992. line-height: 0.85;
  993. margin-bottom: 0.2em;
  994. }
  995. h4{
  996. font-size: 0.882em;
  997. font-weight: 300;
  998. line-height: 1.1;
  999. margin-bottom: -0.2em;
  1000. }
  1001. span.ref{
  1002. font-size: 0.693em;
  1003. font-weight: 300;
  1004. line-height: 1;
  1005. }
  1006. }
  1007. &.card-thematique header{
  1008. background-color: $color-base-transparent;
  1009. }
  1010. $navtool_width: 15px;
  1011. nav.tools{
  1012. position: absolute;
  1013. top: 0;
  1014. right: 0;
  1015. z-index: 21;
  1016. width: $navtool_width;
  1017. background-color: #fff;
  1018. box-sizing: content-box;
  1019. padding: 0.3em 0.1em;
  1020. >*{
  1021. overflow: visible;
  1022. position: relative;
  1023. span.btn{
  1024. overflow: hidden;
  1025. font-size: 0.882em;
  1026. }
  1027. .tool-content{
  1028. position: absolute;
  1029. top: 0px;
  1030. right: 100%;
  1031. // width: 5em;
  1032. width: $column_width - $navtool_width - 10px;
  1033. box-sizing: border-box;
  1034. padding: 0;
  1035. background-color: #fff;
  1036. box-shadow: -2px 3px 8px rgba(0, 0, 0, 0.5);
  1037. opacity: 0;
  1038. max-height: 0; max-width:0;
  1039. overflow: hidden;
  1040. transition: all 0.2s ease-in-out;
  1041. transition-delay: 0.1s;
  1042. }
  1043. &:hover{
  1044. .tool-content{
  1045. transition: all 0.3s ease-in-out;
  1046. opacity: 1;
  1047. padding: 0.3em;
  1048. max-height: 195px;
  1049. max-width:200px;
  1050. }
  1051. }
  1052. }
  1053. .tool.flags{
  1054. .tool-content{
  1055. ul{
  1056. display: flex;
  1057. flex-flow: row wrap;
  1058. li{
  1059. padding:0 0.5em 0 0;
  1060. }
  1061. }
  1062. }
  1063. span.flag{
  1064. cursor: pointer;
  1065. font-size: 0.756em;
  1066. color: #bbb;
  1067. transition: color 0.3s ease-in-out;
  1068. &:hover, &.isActive{
  1069. color:#1a1a1a;
  1070. }
  1071. }
  1072. li.create-flag{
  1073. margin-top: 0.2em;
  1074. padding:0;
  1075. input{
  1076. align-self: flex-end;
  1077. border: 1px solid #bbb;
  1078. border-radius:5px;
  1079. width: calc(100% - 2em);
  1080. font-size:0.8em;
  1081. }
  1082. span.add-btn{
  1083. align-self: flex-end;
  1084. color: #bbb;
  1085. font-size: 1em;
  1086. // padding: 0 0 0 .5em;
  1087. transition: all 0.2s ease-in-out;
  1088. &.active{
  1089. cursor: pointer;
  1090. color:#1a1a1a;
  1091. }
  1092. &.loading:before{
  1093. animation: rotating 2s linear infinite;
  1094. }
  1095. }
  1096. }
  1097. }
  1098. opacity: 0;
  1099. transition: opacity 0.2s ease-in-out;
  1100. }
  1101. &:hover{
  1102. nav.tools{
  1103. opacity:1;
  1104. }
  1105. }
  1106. section.images{
  1107. position: relative;
  1108. &, *{width: 100%; height:100%;}
  1109. figure{
  1110. cursor: pointer;
  1111. margin:0;
  1112. position: absolute;
  1113. top:0; left:0;
  1114. // width: 100%; height:100%;
  1115. &:first-of-type{
  1116. z-index:5
  1117. }
  1118. transition: opacity 0.2s ease-in-out;
  1119. &.show{opacity: 1; z-index:6;}
  1120. &.hide{opacity: 0;}
  1121. img{
  1122. // width: 100%; height:100%;
  1123. &.blank{
  1124. position: absolute;
  1125. top:0; left:0;
  1126. z-index: 20;
  1127. }
  1128. }
  1129. }
  1130. }
  1131. // overwritnig card for card-medium (aka search-card)
  1132. &.search-card{
  1133. >header{
  1134. cursor: pointer;
  1135. }
  1136. }
  1137. // overwriting card for modal-card
  1138. &.modal-card{
  1139. display: flex;
  1140. flex-flow: row-reverse nowrap;
  1141. width: $modalcard_width;
  1142. height: $modalcard_height;
  1143. >.col{
  1144. flex-basis: 50%;
  1145. }
  1146. section.col-right{
  1147. >*:not(nav.tools){
  1148. position: relative;
  1149. padding: 0.3em $navtool_width + 5px 0 0.5em;
  1150. box-sizing: border-box;
  1151. width: 100%;
  1152. }
  1153. >header{
  1154. bottom: auto;
  1155. }
  1156. span.label{
  1157. font-size: 0.693em;
  1158. font-weight: 500;
  1159. }
  1160. section.body{
  1161. p{
  1162. font-size: 0.693em;
  1163. font-weight: 300;
  1164. line-height: 1.35;
  1165. margin:0 0 0.3em;
  1166. }
  1167. }
  1168. .vsa-list{
  1169. padding:0;
  1170. border: none;
  1171. --vsa-heading-padding: 0 0;
  1172. --vsa-content-padding: 0 0 0.5em;
  1173. --vsa-default-icon-size: 0.2;
  1174. --vsa-border-width: 0;
  1175. --vsa-text-color: #{$color-main-text};
  1176. --vsa-highlight-color: #fff;
  1177. --vsa-bg-color: #fff;
  1178. .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 {
  1179. background-color: var(--vsa-text-color);
  1180. }
  1181. .vsa-item{
  1182. .vsa-item__heading{
  1183. button.vsa-item__trigger{
  1184. height:2em;
  1185. &:hover,
  1186. &:focus{
  1187. color: var(--vsa-text-color);
  1188. }
  1189. }
  1190. }
  1191. .vsa-item__content{
  1192. }
  1193. }
  1194. }
  1195. section.linked-materials{
  1196. >ul{
  1197. display: flex;
  1198. flex-flow: row wrap;
  1199. justify-content: space-between;
  1200. >li{
  1201. flex-basis: 0 0 50%;
  1202. margin-bottom: 0.5em;
  1203. article.linkedmaterialcard{
  1204. }
  1205. }
  1206. }
  1207. }
  1208. nav.tools{
  1209. opacity: 1;
  1210. section.close{
  1211. span.btn.mdi-close{
  1212. cursor:pointer;
  1213. }
  1214. }
  1215. div.tool-content{
  1216. min-width: $column_width *2 - $navtool_width - 10px;
  1217. }
  1218. }
  1219. section.tool.samples{
  1220. div.tool-content{
  1221. ul{
  1222. // display: flex;
  1223. // flex-flow: row wrap;
  1224. font-size: 0.882em;
  1225. font-weight: 300;
  1226. // line-height: 1.35;
  1227. li{
  1228. padding-right: 0.5em;
  1229. span.showroom{ font-weight: 500; }
  1230. }
  1231. }
  1232. }
  1233. }
  1234. section.tool.note{
  1235. &:hover div.tool-content{
  1236. max-height: 370px;
  1237. }
  1238. div.tool-content{
  1239. textarea,
  1240. textarea:focus,
  1241. textarea:focus-visible,
  1242. textarea:active{
  1243. resize:none;
  1244. width:99%;
  1245. height:350px;
  1246. margin:0;
  1247. padding:0.3em;
  1248. border:1px solid #ccc;
  1249. border-radius: 3px;
  1250. outline: none;
  1251. box-sizing: border-box;
  1252. }
  1253. }
  1254. }
  1255. // section.tool.industriels{
  1256. // div.tool-content{
  1257. // display: flex;
  1258. // flex-flow: row;
  1259. // >section{
  1260. // flex: 0 0 50%;
  1261. // h2{
  1262. // margin:0;
  1263. // font-size: 1em;
  1264. // line-height: 0.6;
  1265. // }
  1266. // p{
  1267. // margin: 0;
  1268. // font-size: 0.882em;
  1269. // }
  1270. // }
  1271. // }
  1272. // }
  1273. section.industriels{
  1274. display: flex;
  1275. flex-flow: row;
  1276. >section{
  1277. flex: 0 0 50%;
  1278. ul{
  1279. li{
  1280. padding:0.1em 0 .4em 0;
  1281. }
  1282. }
  1283. h2{
  1284. margin:0;
  1285. font-size: 1em;
  1286. line-height: 1;
  1287. }
  1288. p{
  1289. margin: 0;
  1290. font-size: 0.756em;
  1291. }
  1292. }
  1293. }
  1294. section.attachments{
  1295. a{
  1296. margin:0;
  1297. font-size: 0.882em;
  1298. line-height: 0.6;
  1299. span{
  1300. font-size: 0.8em
  1301. }
  1302. }
  1303. p{
  1304. margin: 0;
  1305. font-size: 0.882em;
  1306. }
  1307. }
  1308. }
  1309. }
  1310. }
  1311. // _____ _ _ _
  1312. // |_ _| |_ ___ _ __ __ _| |_(_)__ _ _ _ ___
  1313. // | | | ' \/ -_) ' \/ _` | _| / _` | || / -_)
  1314. // |_| |_||_\___|_|_|_\__,_|\__|_\__, |\_,_\___|
  1315. // |_|
  1316. #main-content > article.thematique{
  1317. div.cols{
  1318. display: flex;
  1319. flex-direction: row;
  1320. flex-wrap: nowrap;
  1321. // @media only screen and (max-width: $small-bp) {
  1322. @include col-mediaquery-max(3){
  1323. flex-wrap: wrap;
  1324. }
  1325. // }
  1326. div.col-left{
  1327. padding: 0 $column_goutiere $column_goutiere 0;
  1328. flex: 0 0 $column_width * 2 + $column_goutiere;
  1329. }
  1330. div.col-right{}
  1331. }
  1332. div.col-left{
  1333. section.body{
  1334. background-color: $color-base;
  1335. padding: 0.5em 1em 1em;
  1336. }
  1337. section.visuel{
  1338. img{
  1339. width: 100%;
  1340. }
  1341. }
  1342. }
  1343. aside.linked-materials{
  1344. ul{
  1345. width:calc(100% + #{$column_goutiere});
  1346. li{
  1347. display: inline-block;
  1348. vertical-align: top;
  1349. width:$column_width;
  1350. margin:0 $column_goutiere $column_goutiere 0;
  1351. }
  1352. }
  1353. h3.field__label{
  1354. font-size: 1em;
  1355. font-weight: 500;
  1356. margin: 2em 0 1em 0;
  1357. }
  1358. h1.title{
  1359. font-size: 1em;
  1360. font-weight: 400;
  1361. }
  1362. h3.ref{
  1363. font-size: 0.756em;
  1364. font-weight: 600;
  1365. }
  1366. h2.description{
  1367. font-size: 0.756em;
  1368. font-weight: 400;
  1369. }
  1370. }
  1371. }
  1372. // ___ _ _ _
  1373. // | _ ) |__ _| |__| |__ _
  1374. // | _ \ / _` | '_ \ / _` |
  1375. // |___/_\__,_|_.__/_\__,_|
  1376. #blabla{
  1377. }
  1378. #main-content > article.article{
  1379. div.cols{
  1380. display: grid;
  1381. grid-template-rows: 1fr;
  1382. grid-template-columns: repeat(6, 1fr);
  1383. grid-gap: 1em;
  1384. div.col-left{
  1385. grid-column: 1;
  1386. }
  1387. div.col-right{
  1388. grid-column: 2/6;
  1389. }
  1390. }
  1391. section.accroche{
  1392. figure{
  1393. width:$column_width*2 + $column_goutiere;
  1394. margin:0 $column_goutiere 0 0;
  1395. img{
  1396. width:100%;
  1397. }
  1398. }
  1399. }
  1400. section.taxonomy{
  1401. margin:1em 0;
  1402. ul{
  1403. margin: 0;
  1404. }
  1405. li{
  1406. display:inline-block;
  1407. padding:0 0.5em 0 0;
  1408. }
  1409. }
  1410. div.gallery-wrapper{
  1411. .image{
  1412. display: inline-block;
  1413. width:$column_width;
  1414. margin:0 $column_goutiere $column_goutiere*0.6 0;
  1415. height:$card_height / 2;
  1416. background-size: cover;
  1417. }
  1418. }
  1419. // section.videos{
  1420. // ul{
  1421. // margin:0; padding:0;
  1422. // li{
  1423. // margin:0; padding:0;
  1424. // display: inline-block;
  1425. // width:100%; overflow: hidden;
  1426. // }
  1427. // }
  1428. // }
  1429. // section.visuels{
  1430. // width:calc(100% + #{$column_goutiere});
  1431. // figure{
  1432. // position: relative;
  1433. // display: inline-block;
  1434. // vertical-align: top;
  1435. // width:$column_width*2 + $column_goutiere;
  1436. // margin:0 $column_goutiere $column_goutiere*0.6 0;
  1437. // img{
  1438. // width:100%;
  1439. // }
  1440. // caption{
  1441. // position: absolute; bottom: 0; left:0;
  1442. // box-sizing: border-box; width: 100%; padding:0.5em;
  1443. // background-color: $transparent-bg-blk; color: #fff;
  1444. // }
  1445. // }
  1446. // }
  1447. aside.linked-materials{
  1448. ul{
  1449. width:calc(100% + #{$column_goutiere});
  1450. li{
  1451. display: inline-block;
  1452. vertical-align: top;
  1453. width:$column_width;
  1454. margin:0 $column_goutiere $column_goutiere 0;
  1455. }
  1456. }
  1457. h3.field__label{
  1458. font-size: 1em;
  1459. font-weight: 500;
  1460. margin: 2em 0 1em 0;
  1461. }
  1462. h1.title{
  1463. font-size: 1em;
  1464. font-weight: 400;
  1465. }
  1466. h3.ref{
  1467. font-size: 0.756em;
  1468. font-weight: 600;
  1469. }
  1470. h2.description{
  1471. font-size: 0.756em;
  1472. font-weight: 400;
  1473. }
  1474. }
  1475. nav.prevnext{
  1476. &.bottom{
  1477. margin:2em 0;
  1478. }
  1479. ul{
  1480. padding:0;
  1481. margin:0;
  1482. display: grid;
  1483. grid-template-columns: 1fr 1fr;
  1484. }
  1485. li{
  1486. padding:0;
  1487. margin:0;
  1488. list-style: none;
  1489. a{
  1490. font-size: 0.756em;
  1491. font-weight: 700;
  1492. }
  1493. &:nth-child(1){
  1494. grid-column: 1;
  1495. a:before{
  1496. content:'< ';
  1497. }
  1498. }
  1499. &:nth-child(2){
  1500. grid-column: 2;
  1501. text-align: right;
  1502. a:after{
  1503. content:' >';
  1504. }
  1505. }
  1506. }
  1507. }
  1508. }
  1509. // ___ _
  1510. // / __| |_ _____ __ ___ _ ___ ___ _ __ ___
  1511. // \__ \ ' \/ _ \ V V / '_/ _ \/ _ \ ' \(_-<
  1512. // |___/_||_\___/\_/\_/|_| \___/\___/_|_|_/__/
  1513. #showrooms{
  1514. width: calc(100% + #{$column_goutiere});
  1515. article.showroom{
  1516. width: $column_width * 2 + $column_goutiere;
  1517. display: inline-block;
  1518. vertical-align: top;
  1519. margin: 0 $column_goutiere $column_goutiere 0;
  1520. h1{
  1521. margin:0;
  1522. font-weight: 4;
  1523. }
  1524. p{ margin:0; }
  1525. figure{
  1526. margin:0;
  1527. img{
  1528. max-width: 100%;
  1529. }
  1530. }
  1531. }
  1532. }
  1533. // ___ _ _
  1534. // | _ \_ _(_)__(_)_ _ __ _
  1535. // | _/ '_| / _| | ' \/ _` |
  1536. // |_| |_| |_\__|_|_||_\__, |
  1537. // |___/
  1538. #main-content>#pricing,
  1539. #main-content .view-pricing-products .view-content{
  1540. display: flex;
  1541. flex-flow: row nowrap;
  1542. article.product,
  1543. .views-row{
  1544. flex:0 0 50%;
  1545. text-align: center;
  1546. padding: 2em 0;
  1547. >header{
  1548. padding-bottom: 1.3em;
  1549. }
  1550. >header h1,
  1551. .views-field-title{
  1552. font-size: 4em;
  1553. line-height: 0.6;
  1554. color: #fff;
  1555. text-align: center;
  1556. word-spacing: 30000px;
  1557. }
  1558. section.content, .views-field-body{
  1559. color: #fff;
  1560. .description{
  1561. font-size: 1.134em;
  1562. p{
  1563. margin: 0.3em;
  1564. }
  1565. }
  1566. }
  1567. aside{
  1568. padding:1em 0;
  1569. .variation{
  1570. display: flex;
  1571. flex-flow: row nowrap;
  1572. justify-content: center;
  1573. align-items:flex-end;
  1574. div.variation-description{
  1575. flex: 0 0 6.7em;
  1576. font-size: 2.012em;
  1577. font-weight: 800;
  1578. color: #fff;
  1579. p{
  1580. margin:0;
  1581. text-align: left;
  1582. }
  1583. }
  1584. button{
  1585. @include btn;
  1586. background-color: #fff;
  1587. }
  1588. }
  1589. }
  1590. &:nth-child(1){
  1591. background-color: $color-base;
  1592. aside .variation button{
  1593. color: $color-base;
  1594. }
  1595. }
  1596. &:nth-child(2){
  1597. background-color: $color-webshowroom;
  1598. aside .variation button{
  1599. color: $color-webshowroom;
  1600. }
  1601. }
  1602. }
  1603. }
  1604. .modal{
  1605. position: relative;
  1606. }
  1607. #pricing-modal-login-register{
  1608. position: relative;
  1609. width: 100%;
  1610. text-align: left;
  1611. h2{
  1612. margin: 0.4em 0 1.1em;
  1613. padding-right: 4em;
  1614. font-size: 1.2em;
  1615. font-weight: 300;
  1616. }
  1617. #login-register{
  1618. width: 100%;
  1619. display: flex;
  1620. flex-flow: row nowrap;
  1621. >section{
  1622. flex:0 0 250px;
  1623. form{
  1624. .form-item, .form-actions {
  1625. margin: 0.5em 0;
  1626. max-width: none;
  1627. }
  1628. .form-type-email,
  1629. .form-type-password,
  1630. .form-actions{
  1631. display:block;
  1632. }
  1633. input[type="email"],
  1634. input[type="password"]{
  1635. max-width: 11em;
  1636. }
  1637. &#user-login-form #edit-pass--description,
  1638. #edit-pass-pass1--description{
  1639. display: block;
  1640. max-width: 16em;
  1641. font-size: 0.693em;
  1642. }
  1643. span.login-message,
  1644. span.register-message{
  1645. color: red;
  1646. font-size: 0.693em;
  1647. line-height: 1.2;
  1648. display: block;
  1649. padding: 0.8em 0 0 0;
  1650. }
  1651. span.login-message[v-if="loginMessage"],
  1652. span.register-message[v-if="registerMessage"]{
  1653. display: none;
  1654. }
  1655. }
  1656. }
  1657. section.login{
  1658. form{
  1659. >div{
  1660. // display: block;
  1661. }
  1662. }
  1663. }
  1664. section.register{
  1665. }
  1666. }
  1667. }
  1668. #main-content form.commerce-checkout-flow{
  1669. $w:3;
  1670. max-width: $column_width * $w + $column_goutiere * ($w - 1);
  1671. .layout-checkout-form{
  1672. display: flex;
  1673. flex-flow: column;
  1674. .layout-region-checkout-main{
  1675. // disable default style
  1676. width:100%;
  1677. float: none;
  1678. // apply custom style
  1679. order:2;
  1680. background-color: $color-webshowroom;
  1681. padding: 1em;
  1682. label,
  1683. legend,
  1684. fieldset#edit-review-contact-information,
  1685. fieldset#edit-review-payment-information{
  1686. color: #fff;
  1687. }
  1688. fieldset{
  1689. border:none;
  1690. margin:0; padding:0;
  1691. legend{
  1692. font-size: 1.5em;
  1693. font-weight: 600;
  1694. margin-bottom: 0.5em;
  1695. }
  1696. }
  1697. $lw:10em;
  1698. .form-item{
  1699. margin:0 0 0.5em 0;
  1700. }
  1701. label{
  1702. display: inline-block;
  1703. font-weight: bold;
  1704. min-width: $lw;
  1705. }
  1706. input[type="text"]{
  1707. width:20em;
  1708. }
  1709. .stripe-form{
  1710. display: inline-block;
  1711. background-color: #fff;
  1712. color: #1A1A1A;
  1713. border-radius: 5px;
  1714. padding: 1em;
  1715. margin: 0 0 1em;
  1716. .form-item{
  1717. display: flex;
  1718. align-items: center;
  1719. flex-flow: row nowrap;
  1720. label{
  1721. color: #777;
  1722. }
  1723. .form-text{
  1724. background-color: #fff;
  1725. border-radius: 3px;
  1726. }
  1727. }
  1728. }
  1729. // .form-item-payment-information-billing-information-address-0-address-address-line2
  1730. .form-item-payment-information-add-payment-method-billing-information-address-0-address-address-line2{
  1731. padding-left:$lw + 0.25em;
  1732. }
  1733. // .form-item-payment-information-billing-information-copy-to-address-book
  1734. .form-item-payment-information-add-payment-method-billing-information-copy-to-address-book{
  1735. display: none;
  1736. }
  1737. }
  1738. .layout-region-checkout-secondary{
  1739. // disable default style
  1740. width:100%;
  1741. float: none;
  1742. // apply custom style
  1743. order: 1;
  1744. // display: flex;
  1745. // flex-flow: row nowrap;
  1746. // >.checkout-pane{
  1747. // flex: 0 0 50%;
  1748. // }
  1749. >h3{display:none;}
  1750. #edit-order-summary{
  1751. background-color: $color-base;
  1752. color:#fff;
  1753. padding:1em;
  1754. .view-commerce-checkout-order-summary{
  1755. display: flex;
  1756. flex-flow: row nowrap;
  1757. justify-content: space-between;
  1758. align-items: flex-end;
  1759. }
  1760. .field--name-product-id{
  1761. .field--name-title{
  1762. font-size: 2.5em;
  1763. font-weight: 800;
  1764. }
  1765. .field--name-body{
  1766. }
  1767. }
  1768. .field--name-title{
  1769. font-size: 1.5em;
  1770. font-weight: 600;
  1771. }
  1772. p{
  1773. margin:0;
  1774. }
  1775. }
  1776. #edit-coupon-redemption{
  1777. background-color: $color-showrooms;
  1778. padding:1em;
  1779. >.form-wrapper{
  1780. display: flex;
  1781. flex-flow: row;
  1782. align-items: center;
  1783. .form-item{
  1784. margin:0 0.5em 0 0;
  1785. label{
  1786. color: #fff;
  1787. font-size: 1.5em;
  1788. font-weight: 600;
  1789. margin-right: 0.5em;
  1790. }
  1791. input[type="text"]{
  1792. width: 7em;
  1793. }
  1794. }
  1795. input[type="submit"]{
  1796. background-color: #fff;
  1797. color: $color-showrooms;
  1798. border: none;
  1799. margin:0;
  1800. padding:0.1em 0.7em;
  1801. box-sizing: content-box;
  1802. height:2em;
  1803. font-weight: 800;
  1804. border-radius: 5px;
  1805. }
  1806. }
  1807. }
  1808. }
  1809. .layout-region-checkout-footer{
  1810. // disable default style
  1811. float: none;
  1812. width: 100%;
  1813. padding: 0;
  1814. // apply custom style
  1815. order: 3;
  1816. #edit-actions{
  1817. text-align: right;
  1818. }
  1819. input#edit-actions-next{
  1820. background-color: $color-blabla;
  1821. color: #fff;
  1822. border: none;
  1823. border-radius: 5px;
  1824. padding: 0.2em 0.4em 0.3em;
  1825. font-weight: 600;
  1826. font-size: 1.323em;
  1827. }
  1828. }
  1829. }
  1830. }
  1831. form#user-pass{
  1832. input.form-email{
  1833. max-width: 95%;
  1834. }
  1835. }
  1836. // ___ _
  1837. // | __|__ ___| |_ ___ _ _
  1838. // | _/ _ \/ _ \ _/ -_) '_|
  1839. // |_|\___/\___/\__\___|_|
  1840. footer[role="contentinfo"]{
  1841. body:not(.path-home) & {
  1842. display:none;
  1843. }
  1844. #block-materiosimplenewssubscription{
  1845. form{
  1846. display: flex;
  1847. flex-flow: row nowrap;
  1848. align-items: center;
  1849. font-size: 0.756em;
  1850. >*{
  1851. margin-right: 0.5em;
  1852. }
  1853. #edit-subscriptions{
  1854. display: flex;
  1855. flex-flow: row nowrap;
  1856. >*{
  1857. margin-right: 0.5em;
  1858. display: flex;
  1859. flex-flow: row nowrap;
  1860. align-items: center;
  1861. }
  1862. input{
  1863. margin-right: 0.3em;
  1864. }
  1865. }
  1866. #edit-mail-wrapper{
  1867. input[type="email"]{
  1868. width:10em;
  1869. }
  1870. }
  1871. #edit-actions--2{
  1872. input[type="submit"]{
  1873. border: none;
  1874. background: none;
  1875. background-color: $color-base;
  1876. border-radius: 5px;
  1877. color: #fff;
  1878. padding: 0.7em 1em;
  1879. font-weight: 700;
  1880. }
  1881. }
  1882. }
  1883. }
  1884. }