main.scss 48 KB

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