main.scss 49 KB

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