main.scss 53 KB

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