main.scss 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487
  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 auto;
  547. grid-template-rows: auto auto;
  548. row-gap: 0.2em;
  549. .form-item, input.button{
  550. display: inline-block;
  551. margin: 0;
  552. }
  553. #edit-search{
  554. grid-row: 1 / 1;
  555. grid-column: 1 / 1;
  556. border:1px #BBB solid;
  557. border-radius: 14px;
  558. padding:0.3em;
  559. color:#666;
  560. }
  561. fieldset#edit-filters{
  562. grid-row: 2 / 2;
  563. grid-column: 1 / span 2;
  564. border: none;
  565. padding: 0;
  566. >legend{
  567. line-height: 0.6;
  568. padding-bottom: 0.2em;
  569. width: 100%;
  570. text-align: right;
  571. span{
  572. cursor: pointer;
  573. font-size: 0.756em;
  574. color: #8f8f8f;
  575. }
  576. }
  577. > div.fieldset-wrapper{
  578. height: 0;
  579. overflow: hidden;
  580. }
  581. &.open >div.fieldset-wrapper{
  582. height: auto;
  583. overflow: visible;
  584. }
  585. .ss-main{
  586. font-size: 0.756em;
  587. .ss-single-selected{
  588. border-radius: 0.7em;
  589. &.ss-open-below{
  590. border-radius: 0.7em 0.7em 0 0.7em;
  591. }
  592. height:1.5em;
  593. border: none;
  594. padding: 0 0.5em;
  595. background-color: #eeeaea;
  596. span.placeholder{
  597. color: $color-main-text;
  598. line-height: 1;
  599. span.ss-disabled{
  600. color: #8f8f8f;
  601. }
  602. }
  603. span.ss-arrow span{
  604. border-color: #b1adad;
  605. }
  606. }
  607. .ss-content{
  608. width:auto;
  609. border: none;
  610. border-radius: 0.7em 0 0.7em 0.7em;
  611. &.ss-open{
  612. box-shadow: 0 0 10px #ccc;
  613. }
  614. right: 0;
  615. .ss-list{
  616. max-height: none;
  617. .ss-option{
  618. white-space: nowrap;
  619. text-align: right;
  620. }
  621. }
  622. }
  623. }
  624. }
  625. .button.form-submit{
  626. grid-row: 1 / 1;
  627. grid-column: 2 / 2;
  628. justify-self: end;
  629. align-self: center;
  630. border:0;
  631. text-indent: 50px;
  632. overflow: hidden;
  633. width:20px; height:20px;
  634. margin:0;
  635. // border-radius: 7px;
  636. background-image: url('../img/search.svg');
  637. background-position: center;
  638. background-repeat: no-repeat;
  639. background-size: contain;
  640. background-color: transparent
  641. }
  642. }
  643. @include col-mediaquery-max(3){
  644. body:not(.path-base) &{
  645. display: none;
  646. }
  647. padding: 0 1em 1em;
  648. background-color: $color-base;
  649. }
  650. }
  651. }
  652. // main
  653. aside.messages{
  654. padding: 0;
  655. }
  656. // content top
  657. // #content-top{
  658. // &:after{
  659. // content:"";
  660. // clear:both;
  661. // display: block;
  662. // }
  663. // }
  664. // ___ _ _ _ __ _
  665. // / __|___ _ _| |_ ___ _ _| |_ ___| | ___ / _| |_
  666. // | (__/ _ \ ' \ _/ -_) ' \ _|___| |__/ -_) _| _|
  667. // \___\___/_||_\__\___|_||_\__| |____\___|_| \__|
  668. #content-left{
  669. z-index: 5;
  670. box-sizing: content-box;
  671. max-width:1px;
  672. overflow-x: hidden;
  673. transition: all 0.3s ease-in-out;
  674. &.opened{
  675. max-width: 500px;
  676. padding: 0.3em;
  677. }
  678. >*{
  679. box-sizing: border-box;
  680. background-color: #fff;
  681. box-shadow: -2px 0px 4px rgba(0, 0, 0, 0.2);
  682. padding: 0.5em;
  683. }
  684. .flag-collection{
  685. >header{
  686. display: flex;
  687. flex-direction: row;
  688. justify-content: space-between;
  689. padding-bottom: $column_goutiere;
  690. h3{
  691. // flex-basis: calc(100% - 1em);
  692. }
  693. .mdi-close{
  694. // display: block;
  695. // flex-basis: 1em;
  696. cursor:pointer;
  697. align-self: flex-end;
  698. }
  699. }
  700. >ul{
  701. @include col-mediaquery-max(2){
  702. display:flex;
  703. flex-direction: row;
  704. flex-wrap: wrap;
  705. justify-content: space-between;
  706. }
  707. >li{
  708. margin:0 0 $column_goutiere 0;
  709. padding:0;
  710. article.card.minicard{
  711. width:$minicard_width;
  712. height:$minicard_height;
  713. margin:auto;
  714. >header{
  715. padding: 0.3em 0.3em 0.1em;
  716. h1{
  717. margin:0;
  718. }
  719. }
  720. >nav.tools{
  721. // top: auto;
  722. // bottom: 0;
  723. padding:0 0.2em;
  724. // background:transparent;
  725. .mdi.unflag{
  726. cursor: pointer;
  727. }
  728. .tool.samples{
  729. .tool-content{
  730. }
  731. }
  732. }
  733. }
  734. }
  735. }
  736. }
  737. }
  738. // __ _
  739. // / _|_ _ ___ _ _| |_
  740. // | _| '_/ _ \ ' \ _|
  741. // |_| |_| \___/_||_\__|
  742. @mixin btn{
  743. display: inline-block;
  744. font-size: 0.9em;
  745. font-weight: bold;
  746. padding: 0.7em 1em;
  747. margin-bottom: 0.3em;
  748. background-color: #fff;
  749. color: #000;
  750. border-radius: 5px;
  751. border: none;
  752. }
  753. article.node--type-frontpage{
  754. %front-col-field__label{
  755. font-size: 3.5em;
  756. line-height: 1;
  757. @include col-mediaquery-max(3){
  758. font-size: 2em;
  759. }
  760. }
  761. %front-col-description{
  762. font-size: 0.9em;
  763. line-height: 1.3;
  764. }
  765. %part-centered-layout{
  766. padding:1.5em 0;
  767. background-color: #fff;
  768. >div:nth-child(1){
  769. width:80%;
  770. margin: 0 auto;
  771. text-align: center;
  772. @include col-mediaquery-max(3){
  773. width:auto;
  774. padding:0 1em;
  775. text-align: left;
  776. }
  777. .field__label{
  778. @extend %front-col-field__label;
  779. }
  780. .field__item{
  781. @extend %front-col-description;
  782. }
  783. }
  784. }
  785. // %part-columned-layout{
  786. // display:grid;
  787. // grid-template-columns: 300px 1fr;
  788. // grid-column-gap: 2em;
  789. // padding:2em 1em;
  790. // >div:nth-child(1){
  791. // color: #fff;
  792. // grid-column: 1;
  793. // .field__label{
  794. // @extend %front-col-field__label;
  795. // }
  796. // .field__item{
  797. // @extend %front-col-description;
  798. // }
  799. // }
  800. // >div:nth-child(2){
  801. // grid-column: 2;
  802. // }
  803. // }
  804. %part-columned-layout{
  805. display:flex;
  806. flex-direction: row;
  807. flex-wrap: nowrap;
  808. >div:nth-child(1){
  809. flex: 0 0 $column_width * 2 + $column_goutiere;
  810. box-sizing: border-box;
  811. padding: 1em;
  812. color: #fff;
  813. .field__label{
  814. @extend %front-col-field__label;
  815. }
  816. .field__item{
  817. @extend %front-col-description;
  818. }
  819. }
  820. >div:nth-child(2){
  821. flex: 1 1 auto;
  822. box-sizing: border-box;
  823. padding: 1em 0.5em;
  824. }
  825. @include col-mediaquery-max(3){
  826. flex-direction: column;
  827. >div:nth-child(1){
  828. flex: 0 0 auto;
  829. // box-sizing: border-box;
  830. // padding: 1em;
  831. }
  832. >div:nth-child(2){
  833. // flex: 1 1 auto;
  834. // box-sizing: border-box;
  835. // padding: 1em 0.5em;
  836. }
  837. }
  838. }
  839. >h2{
  840. display: none;
  841. }
  842. .node__content{
  843. &>section{
  844. &.home-intro{
  845. @extend %part-centered-layout;
  846. .field__item{
  847. display: flex;
  848. flex-flow: row nowrap;
  849. justify-content: center;
  850. p{
  851. flex: 0 0 $column_width * 2;
  852. padding:1em;
  853. }
  854. @include col-mediaquery-max(3){
  855. display: none;
  856. }
  857. }
  858. }
  859. &.home-database{
  860. background-color: $color-base;
  861. @extend %part-columned-layout;
  862. .field--name-field-a-database{
  863. .field__label{
  864. cursor: pointer;
  865. }
  866. }
  867. .field--name-field-database-links{
  868. .field__item{
  869. display: inline-block;
  870. a{
  871. @include btn;
  872. background-color: #fff;
  873. color: $color-base;
  874. }
  875. }
  876. }
  877. .cards-list-home{
  878. position: relative;
  879. // max-height: (130px*1.4)*3;
  880. max-height: 580px;
  881. overflow-y: hidden;
  882. ul{
  883. width:100%;
  884. margin:0; padding:0;
  885. // display: grid;
  886. // grid-template-columns: repeat(auto-fill, minmax(50px, 130px));
  887. // grid-template-rows: 1fr;
  888. // grid-gap: 1em;
  889. // justify-content:start;
  890. display: flex;
  891. flex-flow: row wrap;
  892. justify-content: space-between;
  893. @include col-mediaquery-max(3){
  894. justify-content: space-around;
  895. }
  896. li{
  897. padding:0 0 $column_goutiere / 2 0;
  898. box-sizing: border-box;
  899. // padding-top: 140%;
  900. width: $column_width / 2;
  901. height: $card_height / 2;
  902. position: relative;
  903. list-style: none;
  904. margin:0;
  905. .card{
  906. // position:absolute;
  907. // top:0; bottom:0;
  908. // left:0; right:0;
  909. width: 100%;
  910. height: 100%;
  911. .field--name-field-short-description{
  912. font-size: 0.656em;
  913. line-height: 1.2;
  914. }
  915. }
  916. }
  917. }
  918. }
  919. }
  920. &.home-showrooms{
  921. background-color: $color-showrooms;
  922. @extend %part-columned-layout;
  923. .field--name-field-showrooms{}
  924. .field--name-field-showroom-links{
  925. .field__item{
  926. display: inline-block;
  927. a{
  928. @include btn;
  929. background-color: #fff;
  930. color: $color-showrooms;
  931. }
  932. }
  933. }
  934. .field--name-computed-showrooms-reference{
  935. overflow: hidden;
  936. position:relative;
  937. // height:550px;
  938. display: grid;
  939. grid-template-rows: 1fr;
  940. $bp: ($column_width + $column_goutiere )*7;
  941. @media only screen and (max-width: $bp){
  942. grid-template-columns: 1fr;
  943. >.field__item{
  944. grid-column: 1;
  945. }
  946. }
  947. @media only screen and (min-width: $bp + 1px){
  948. grid-template-columns: 1fr 1fr;
  949. grid-gap: 1em;
  950. >.field__item:nth-child(odd){
  951. grid-column: 1;
  952. }
  953. >.field__item:nth-child(even){
  954. grid-column: 2;
  955. }
  956. }
  957. >.field__item{
  958. grid-row: 1;
  959. // position: absolute;
  960. // top:0; left:0;
  961. // width:100%; height:100%;
  962. // overflow: hidden;
  963. opacity: 0;
  964. // transform: translateX(100%);
  965. transition: all 2s ease-out;
  966. &.active{
  967. opacity: 1;
  968. // transform: translateX(0);
  969. // transition: all 0.3s ease-in-out;
  970. }
  971. .taxonomy-term{
  972. position: relative;
  973. width:100%; height:100%;
  974. div.visuel{
  975. width:100%;
  976. padding-bottom: 5em;
  977. img{
  978. max-width: 100%;
  979. height: auto;
  980. }
  981. }
  982. section.text{
  983. position: absolute;
  984. bottom:0; left:0;
  985. width:100%;
  986. box-sizing:border-box;
  987. padding:1em 0 0;
  988. background-color:$color-showrooms;
  989. color: #fff;
  990. // >*{
  991. // // display: inline-block;
  992. // font-size: 0.9em;
  993. // }
  994. h2,p{
  995. margin:0;
  996. }
  997. h2{
  998. font-size: 2em;
  999. }
  1000. .field--name-field-public-address{
  1001. br{
  1002. display:none;
  1003. }
  1004. span:not(:nth-last-of-type(1)) {
  1005. margin-right: 0.4em;
  1006. &:after{
  1007. padding-left: 0.5em;
  1008. content:"⋅"
  1009. }
  1010. }
  1011. }
  1012. .field--name-field-public-phone {
  1013. display: inline-block;
  1014. margin-right: 0.4em;
  1015. &:after{
  1016. padding-left: 0.5em;
  1017. content:"⋅"
  1018. }
  1019. }
  1020. .field--name-field-public-email {
  1021. display: inline-block;
  1022. }
  1023. }
  1024. }
  1025. }
  1026. }
  1027. }
  1028. &.home-blabla{
  1029. background-color: $color-blabla;
  1030. @extend %part-columned-layout;
  1031. .field--name-field-blabla-links{
  1032. .field__item{
  1033. display: inline-block;
  1034. a{
  1035. @include btn;
  1036. background-color: #fff;
  1037. color: $color-blabla;
  1038. }
  1039. }
  1040. }
  1041. .cards-list-home{
  1042. position: relative;
  1043. $bp: ($column_width*2 + $column_goutiere );
  1044. overflow-y: hidden;
  1045. max-height: 315px;
  1046. // @media only screen and (max-width: $bp * 6){
  1047. // max-height: 630px;
  1048. // }
  1049. // @media only screen and (min-width: ($bp * 6) + 1px){
  1050. // max-height: 310px;
  1051. // }
  1052. ul{
  1053. width:100%;
  1054. margin:0; padding:0;
  1055. // display: grid;
  1056. // grid-template-columns: repeat(auto-fill, minmax(80px, $column_width*2));
  1057. // // grid-template-rows: 1fr;
  1058. // grid-gap: 1em;
  1059. // justify-content:start;
  1060. display: flex;
  1061. flex-flow: row wrap;
  1062. justify-content: space-between;
  1063. li{
  1064. padding:0 0 $column_goutiere 0;
  1065. box-sizing: border-box;
  1066. // padding-top: 140%;
  1067. width: $column_width;
  1068. // height: $card_height / 2;
  1069. position: relative;
  1070. list-style: none;
  1071. margin:0;
  1072. // padding-top: 67.8%;
  1073. overflow: hidden;
  1074. .card{
  1075. // position:absolute;
  1076. // top:0; bottom:0;
  1077. // left:0; right:0;
  1078. width: 100%;
  1079. height: auto;
  1080. .field--name-title{
  1081. font-size: 0.756em;
  1082. line-height: 0.9;
  1083. }
  1084. }
  1085. }
  1086. }
  1087. @include col-mediaquery-max(3){
  1088. max-height: 386px;
  1089. ul{
  1090. justify-content: space-around;
  1091. li{
  1092. flex: 0 3 45%;
  1093. }
  1094. }
  1095. }
  1096. }
  1097. }
  1098. &.home-pricing{
  1099. @extend %part-centered-layout;
  1100. >h3{
  1101. @extend %front-col-field__label;
  1102. text-align: center;
  1103. text-transform: capitalize;
  1104. padding: 0.7em 0 0.3em 0;
  1105. @include col-mediaquery-max(3){
  1106. text-align: left;
  1107. padding: 0 0.4em;
  1108. }
  1109. }
  1110. .field--name-field-pricing-pitch{
  1111. text-align: center;
  1112. p{ margin:0;}
  1113. @include col-mediaquery-max(3){
  1114. text-align: left;
  1115. p{ padding: 0.5em 1em; }
  1116. }
  1117. }
  1118. .field--name-field-pricing{
  1119. // padding:2em 0;
  1120. display: flex;
  1121. flex-flow: row nowrap;
  1122. justify-content: center;
  1123. padding-bottom: 1em;
  1124. p{
  1125. flex: 0 0 $column_width * 2;
  1126. padding: 1em;
  1127. margin: 0;
  1128. text-align: center;
  1129. }
  1130. @include col-mediaquery-max(3){
  1131. flex-flow: column;
  1132. justify-content: flex-start;
  1133. p{
  1134. flex: 0 0 auto;
  1135. text-align: left;
  1136. padding: 0 1em 0.5em;
  1137. }
  1138. }
  1139. }
  1140. .field--name-computed-products-reference{
  1141. display: flex;
  1142. flex-flow: row nowrap;
  1143. @include col-mediaquery-max(3){
  1144. flex-flow: column;
  1145. justify-content: flex-start;
  1146. }
  1147. >.field__item{
  1148. flex:0 0 50%;
  1149. text-align: center;
  1150. padding: 2em 0;
  1151. a.btn{
  1152. @include btn;
  1153. background-color: #fff;
  1154. }
  1155. &:nth-child(1){
  1156. background-color: $color-base;
  1157. a.btn{
  1158. color: $color-base;
  1159. }
  1160. }
  1161. &:nth-child(2){
  1162. background-color: $color-webshowroom;
  1163. a.btn{
  1164. color: $color-webshowroom;
  1165. }
  1166. }
  1167. color: #fff;
  1168. position: relative;
  1169. height:18em;
  1170. >article{
  1171. position: absolute;
  1172. top:50%; left:50%;
  1173. transform: translate(-50%, -50%);
  1174. }
  1175. .field--name-title{
  1176. @extend %front-col-field__label;
  1177. font-weight: 600;
  1178. line-height: 0.7;
  1179. padding-bottom: 0.1em;
  1180. text-align: center;
  1181. word-spacing: 30000px;
  1182. }
  1183. .field--name-body{
  1184. @extend %front-col-description;
  1185. padding:0.5em;
  1186. p{
  1187. margin: 0;
  1188. }
  1189. }
  1190. @include col-mediaquery-max(3){
  1191. flex: 0 0 auto;
  1192. padding:0;
  1193. // height: auto;
  1194. >article{
  1195. }
  1196. }
  1197. }
  1198. }
  1199. }
  1200. }
  1201. }
  1202. }
  1203. // ___ _
  1204. // / __|__ _ _ _ __| |___
  1205. // | (__/ _` | '_/ _` (_-<
  1206. // \___\__,_|_| \__,_/__/
  1207. .infinite-loading-container{
  1208. .infinite-status-prompt{
  1209. i[class^="loading-"]{
  1210. width:15px; height:15px;
  1211. }
  1212. }
  1213. }
  1214. .cards-list{
  1215. position: relative;
  1216. .search-info{
  1217. font-size: 0.756em;
  1218. font-weight: 500;
  1219. margin: 0;
  1220. padding: 0 0 0.5em 0;
  1221. }
  1222. &>ul{
  1223. // outline: 1px green solid;
  1224. margin:0; padding:0;
  1225. width: calc(100% + #{$column_goutiere});
  1226. &>li{
  1227. list-style: none;
  1228. margin:0 $column_goutiere $column_goutiere 0; padding:0;
  1229. display: inline-block;
  1230. vertical-align: top;
  1231. }
  1232. }
  1233. @include col-mediaquery-max(3){
  1234. &>ul{
  1235. display: flex;
  1236. flex-flow: row wrap;
  1237. justify-content: space-around;
  1238. width:100%;
  1239. >li{
  1240. flex: 0 1 48%;
  1241. margin:0 0 0.5em 0;
  1242. filter: drop-shadow(0 0 3px #aaa);
  1243. >article{
  1244. width:100%;
  1245. height:auto;
  1246. box-shadow: none;
  1247. >section.images{
  1248. #base &{
  1249. height: auto;
  1250. }
  1251. >figure{
  1252. position: relative;
  1253. &:not(:first-child){
  1254. display:none;
  1255. }
  1256. img:not(.blank){
  1257. width:100%;
  1258. height:auto;
  1259. }
  1260. img.blank{
  1261. top:0; bottom:0; left:0; right:0;
  1262. }
  1263. }
  1264. }
  1265. }
  1266. }
  1267. }
  1268. }
  1269. }
  1270. article.card{
  1271. position: relative;
  1272. box-shadow: 0 0 5px rgba(0,0,0,0.2);
  1273. width:$column_width; height:$card_height;
  1274. &.article{
  1275. width:$column_width*2 + $column_goutiere; height:$card_height;
  1276. section.images{
  1277. a{
  1278. display:block;
  1279. }
  1280. }
  1281. }
  1282. &.minicard{
  1283. height:100px;
  1284. width:$minicard_width;
  1285. height:$minicard_height;
  1286. margin:auto;
  1287. >header{
  1288. padding: 0.3em 0.3em 0.1em;
  1289. cursor: pointer;
  1290. h1{
  1291. margin:0;
  1292. font-size: 1em;
  1293. }
  1294. h4{
  1295. margin:0;
  1296. line-height: 1.1;
  1297. margin-bottom: -0.4em;
  1298. }
  1299. span.ref{
  1300. line-height: 0.5;
  1301. }
  1302. }
  1303. >nav.tools{
  1304. // top: auto;
  1305. // bottom: 0;
  1306. padding:0 0.2em;
  1307. background:rgba(255,255,255, 0.8);
  1308. .mdi.unflag{
  1309. cursor: pointer;
  1310. }
  1311. .tool.samples{
  1312. @include hover{
  1313. .tool-content{
  1314. max-width:140px;
  1315. }
  1316. }
  1317. }
  1318. }
  1319. }
  1320. &.linkedmaterialcard{
  1321. width:$linkedmaterialcard_width;
  1322. height:$linkedmaterialcard_height;
  1323. >header{
  1324. padding: 0.3em 0.3em 0.1em;
  1325. cursor: pointer;
  1326. h1{
  1327. margin:0;
  1328. font-size: 1em;
  1329. }
  1330. h4{
  1331. margin:0;
  1332. line-height: 1.1;
  1333. margin-bottom: -0.4em;
  1334. }
  1335. span.ref{
  1336. line-height: 0.5;
  1337. }
  1338. }
  1339. >nav.tools{
  1340. top: auto;
  1341. bottom: 0;
  1342. padding:0 0.2em;
  1343. background:transparent;
  1344. .mdi.unflag{
  1345. cursor: pointer;
  1346. }
  1347. }
  1348. }
  1349. // &.card-small{
  1350. // width:100px; height:140px;
  1351. // }
  1352. // focused
  1353. // box-shadow: 0 0 7px rgba(0,0,0,0.9);
  1354. // &.article{
  1355. // width: $column_width * 2 + $column_goutiere;
  1356. //
  1357. // }
  1358. header{
  1359. position: absolute;
  1360. bottom:0;
  1361. z-index:10;
  1362. color: #000;
  1363. background-color: rgba(255,255,255,0.8);
  1364. padding: 0.3em 0.3em;
  1365. box-sizing:border-box;
  1366. width:100%;
  1367. h1, h4{ margin:0; padding:0; }
  1368. h1{
  1369. font-size: 1.3em;
  1370. font-weight: 700;
  1371. line-height: 0.85;
  1372. margin-bottom: 0.2em;
  1373. }
  1374. h4{
  1375. font-size: 0.882em;
  1376. font-weight: 300;
  1377. line-height: 1.1;
  1378. margin-bottom: -0.2em;
  1379. }
  1380. span.ref{
  1381. font-size: 0.693em;
  1382. font-weight: 300;
  1383. line-height: 1;
  1384. }
  1385. }
  1386. &.card-thematique header{
  1387. background-color: $color-base-transparent;
  1388. }
  1389. $navtool_width: 15px;
  1390. nav.tools{
  1391. position: absolute;
  1392. top: 0;
  1393. right: 0;
  1394. z-index: 21;
  1395. width: $navtool_width;
  1396. background-color: #fff;
  1397. box-sizing: content-box;
  1398. padding: 0.3em 0.1em;
  1399. >*{
  1400. overflow: visible;
  1401. position: relative;
  1402. span.btn{
  1403. overflow: hidden;
  1404. font-size: 0.882em;
  1405. }
  1406. .tool-content{
  1407. position: absolute;
  1408. top: 0px;
  1409. right: 100%;
  1410. // width: 5em;
  1411. width: $column_width - $navtool_width - 10px;
  1412. box-sizing: border-box;
  1413. padding: 0;
  1414. background-color: #fff;
  1415. box-shadow: -2px 3px 8px rgba(0, 0, 0, 0.5);
  1416. opacity: 0;
  1417. max-height: 0; max-width:0;
  1418. overflow: hidden;
  1419. transition: all 0.2s ease-in-out;
  1420. transition-delay: 0.1s;
  1421. }
  1422. @include hover{
  1423. .tool-content{
  1424. transition: all 0.3s ease-in-out;
  1425. opacity: 1;
  1426. padding: 0.3em;
  1427. max-height: 195px;
  1428. max-width:200px;
  1429. }
  1430. }
  1431. }
  1432. @include col-mediaquery-max(3){
  1433. width:23px;
  1434. >*{
  1435. >span.btn, >a{
  1436. font-size:1.2em;
  1437. }
  1438. }
  1439. }
  1440. .tool.flags{
  1441. .tool-content{
  1442. ul{
  1443. display: flex;
  1444. flex-flow: row wrap;
  1445. li{
  1446. padding:0 0.5em 0 0;
  1447. }
  1448. }
  1449. }
  1450. span.flag{
  1451. cursor: pointer;
  1452. font-size: 0.756em;
  1453. color: #bbb;
  1454. transition: color 0.3s ease-in-out;
  1455. @include hover{
  1456. color:#1a1a1a;
  1457. }
  1458. &.isActive{
  1459. color:#1a1a1a;
  1460. }
  1461. }
  1462. li.create-flag{
  1463. margin-top: 0.2em;
  1464. padding:0;
  1465. input{
  1466. align-self: flex-end;
  1467. border: 1px solid #bbb;
  1468. border-radius:5px;
  1469. width: calc(100% - 2em);
  1470. font-size:0.8em;
  1471. }
  1472. span.add-btn{
  1473. align-self: flex-end;
  1474. color: #bbb;
  1475. font-size: 1em;
  1476. // padding: 0 0 0 .5em;
  1477. transition: all 0.2s ease-in-out;
  1478. &.active{
  1479. cursor: pointer;
  1480. color:#1a1a1a;
  1481. }
  1482. &.loading:before{
  1483. animation: rotating 2s linear infinite;
  1484. }
  1485. }
  1486. }
  1487. }
  1488. .tool.samples{
  1489. .tool-content{
  1490. font-size: 0.756em;
  1491. ul li{
  1492. font-weight: bold;
  1493. span.showroom{
  1494. font-weight: 400;
  1495. }
  1496. }
  1497. }
  1498. }
  1499. opacity: 0;
  1500. transition: opacity 0.2s ease-in-out;
  1501. }
  1502. @include hover{
  1503. nav.tools{
  1504. opacity:1;
  1505. }
  1506. }
  1507. section.images{
  1508. position: relative;
  1509. &, *{width: 100%; height:100%;}
  1510. figure{
  1511. cursor: pointer;
  1512. margin:0;
  1513. position: absolute;
  1514. top:0; left:0;
  1515. // width: 100%; height:100%;
  1516. &:first-of-type{
  1517. z-index:5
  1518. }
  1519. transition: opacity 0.2s ease-in-out;
  1520. &.show{opacity: 1; z-index:6;}
  1521. &.hide{opacity: 0;}
  1522. img{
  1523. // width: 100%; height:100%;
  1524. &.blank{
  1525. position: absolute;
  1526. top:0; left:0;
  1527. z-index: 20;
  1528. }
  1529. }
  1530. }
  1531. }
  1532. // overwritnig card for card-medium (aka search-card)
  1533. &.search-card{
  1534. >header{
  1535. cursor: pointer;
  1536. }
  1537. }
  1538. // overwriting card for modal-card
  1539. &.modal-card{
  1540. display: flex;
  1541. flex-flow: row-reverse nowrap;
  1542. width: $modalcard_width;
  1543. height: $modalcard_height;
  1544. >.col{
  1545. flex-basis: 50%;
  1546. }
  1547. @include col-mediaquery-max(3){
  1548. flex-flow: column;
  1549. width: 100%;
  1550. height: 100%;
  1551. overflow-y: auto;
  1552. >.col-right{
  1553. flex:0 0 auto;
  1554. }
  1555. >.col-left{
  1556. flex:0 0 100%;
  1557. }
  1558. }
  1559. section.col-right{
  1560. >*:not(nav.tools){
  1561. position: relative;
  1562. padding: 0.3em $navtool_width + 5px 0 0.5em;
  1563. box-sizing: border-box;
  1564. width: 100%;
  1565. }
  1566. >header{
  1567. bottom: auto;
  1568. }
  1569. span.label{
  1570. font-size: 0.693em;
  1571. font-weight: 500;
  1572. }
  1573. section.body{
  1574. p{
  1575. font-size: 0.693em;
  1576. font-weight: 300;
  1577. line-height: 1.35;
  1578. margin:0 0 0.3em;
  1579. }
  1580. }
  1581. .vsa-list{
  1582. padding:0;
  1583. border: none;
  1584. --vsa-heading-padding: 0 0;
  1585. --vsa-content-padding: 0 0 0.5em;
  1586. --vsa-default-icon-size: 0.3;
  1587. --vsa-border-width: 0;
  1588. --vsa-text-color: #{$color-main-text};
  1589. --vsa-highlight-color: #fff;
  1590. --vsa-bg-color: #fff;
  1591. .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 {
  1592. background-color: var(--vsa-text-color);
  1593. }
  1594. .vsa-item{
  1595. .vsa-item__heading{
  1596. button.vsa-item__trigger{
  1597. height:2em;
  1598. &:hover,
  1599. &:focus{
  1600. color: var(--vsa-text-color);
  1601. }
  1602. }
  1603. }
  1604. .vsa-item__content{}
  1605. &[data-vsa-active="false"]{
  1606. .vsa-item__heading{
  1607. padding-bottom: 0.2em;
  1608. margin-bottom: 0.2em;
  1609. border-bottom: 0.5px dotted $color-main-text;
  1610. }
  1611. }
  1612. }
  1613. }
  1614. section.linked-materials{
  1615. >ul{
  1616. display: flex;
  1617. flex-flow: row wrap;
  1618. justify-content: space-between;
  1619. >li{
  1620. flex-basis: 0 0 50%;
  1621. margin-bottom: 0.5em;
  1622. article.linkedmaterialcard{
  1623. }
  1624. }
  1625. }
  1626. }
  1627. nav.tools{
  1628. opacity: 1;
  1629. section.close{
  1630. span.btn.mdi-close{
  1631. cursor:pointer;
  1632. }
  1633. }
  1634. div.tool-content{
  1635. min-width: $column_width *2 - $navtool_width - 10px;
  1636. @include col-mediaquery-max(3){
  1637. min-width: 80vw;
  1638. }
  1639. }
  1640. }
  1641. section.tool.samples{
  1642. div.tool-content{
  1643. ul{
  1644. // display: flex;
  1645. // flex-flow: row wrap;
  1646. font-size: 0.756em;
  1647. font-weight: 300;
  1648. // line-height: 1.35;
  1649. li{
  1650. padding-right: 0.5em;
  1651. span.showroom{ font-weight: 500; }
  1652. }
  1653. }
  1654. }
  1655. }
  1656. section.tool.note{
  1657. @include hover{
  1658. div.tool-content{
  1659. max-height: 370px;
  1660. }
  1661. }
  1662. div.tool-content{
  1663. textarea,
  1664. textarea:focus,
  1665. textarea:focus-visible,
  1666. textarea:active{
  1667. resize:none;
  1668. width:99%;
  1669. height:350px;
  1670. margin:0;
  1671. padding:0.3em;
  1672. border:1px solid #ccc;
  1673. border-radius: 3px;
  1674. outline: none;
  1675. box-sizing: border-box;
  1676. }
  1677. }
  1678. }
  1679. // section.tool.industriels{
  1680. // div.tool-content{
  1681. // display: flex;
  1682. // flex-flow: row;
  1683. // >section{
  1684. // flex: 0 0 50%;
  1685. // h2{
  1686. // margin:0;
  1687. // font-size: 1em;
  1688. // line-height: 0.6;
  1689. // }
  1690. // p{
  1691. // margin: 0;
  1692. // font-size: 0.882em;
  1693. // }
  1694. // }
  1695. // }
  1696. // }
  1697. section.industriels{
  1698. display: flex;
  1699. flex-flow: row;
  1700. >section{
  1701. flex: 0 0 50%;
  1702. ul{
  1703. li{
  1704. padding:0.1em 0 .4em 0;
  1705. }
  1706. }
  1707. h2{
  1708. margin:0;
  1709. font-size: 1em;
  1710. line-height: 1;
  1711. }
  1712. p{
  1713. margin: 0;
  1714. font-size: 0.756em;
  1715. }
  1716. }
  1717. }
  1718. section.attachments{
  1719. a{
  1720. margin:0;
  1721. font-size: 0.882em;
  1722. line-height: 0.6;
  1723. span{
  1724. font-size: 0.8em
  1725. }
  1726. }
  1727. p{
  1728. margin: 0;
  1729. font-size: 0.882em;
  1730. }
  1731. }
  1732. }
  1733. }
  1734. }
  1735. // vuejs-modale hack as maxWidth and maxHeight does not work :(
  1736. @include col-mediaquery-min(3){
  1737. .vm--modale-card{
  1738. max-width: 850px;
  1739. max-height: 610px;
  1740. left: 50% !important;
  1741. top: 50% !important;
  1742. transform: translate(-50%, -50%) !important;
  1743. }
  1744. }
  1745. .vm--overlay{
  1746. background: rgba(0, 0, 0, 0.5)!important;
  1747. }
  1748. // _____ _ _ _
  1749. // |_ _| |_ ___ _ __ __ _| |_(_)__ _ _ _ ___
  1750. // | | | ' \/ -_) ' \/ _` | _| / _` | || / -_)
  1751. // |_| |_||_\___|_|_|_\__,_|\__|_\__, |\_,_\___|
  1752. // |_|
  1753. #main-content > article.thematique{
  1754. div.cols{
  1755. display: flex;
  1756. flex-direction: row;
  1757. flex-wrap: nowrap;
  1758. // @media only screen and (max-width: $small-bp) {
  1759. @include col-mediaquery-max(3){
  1760. flex-wrap: wrap;
  1761. }
  1762. // }
  1763. div.col-left{
  1764. padding: 0 $column_goutiere $column_goutiere 0;
  1765. flex: 0 0 $column_width * 2 + $column_goutiere;
  1766. }
  1767. div.col-right{}
  1768. }
  1769. div.col-left{
  1770. section.body{
  1771. background-color: $color-base;
  1772. padding: 0.5em 1em 1em;
  1773. }
  1774. section.visuel{
  1775. img{
  1776. width: 100%;
  1777. }
  1778. }
  1779. }
  1780. aside.linked-materials{
  1781. div.card-list{
  1782. >ul{
  1783. width:calc(100% + #{$column_goutiere});
  1784. >li{
  1785. display: inline-block;
  1786. vertical-align: top;
  1787. width:$column_width;
  1788. margin:0 $column_goutiere $column_goutiere 0;
  1789. }
  1790. }
  1791. }
  1792. h3.field__label{
  1793. font-size: 1em;
  1794. font-weight: 500;
  1795. margin: 2em 0 1em 0;
  1796. }
  1797. h1.title{
  1798. font-size: 1em;
  1799. font-weight: 400;
  1800. }
  1801. h3.ref{
  1802. font-size: 0.756em;
  1803. font-weight: 600;
  1804. }
  1805. h2.description{
  1806. font-size: 0.756em;
  1807. font-weight: 400;
  1808. }
  1809. }
  1810. }
  1811. // ___ _ _ _
  1812. // | _ ) |__ _| |__| |__ _
  1813. // | _ \ / _` | '_ \ / _` |
  1814. // |___/_\__,_|_.__/_\__,_|
  1815. #blabla{
  1816. }
  1817. #main-content > article.article{
  1818. // grid only on big screens
  1819. @include col-mediaquery-min(3){
  1820. div.cols{
  1821. display: grid;
  1822. grid-template-rows: 1fr;
  1823. grid-template-columns: repeat(6, 1fr);
  1824. grid-gap: 1em;
  1825. div.col-left{
  1826. grid-column: 1;
  1827. }
  1828. div.col-right{
  1829. grid-column: 2/6;
  1830. }
  1831. }
  1832. }
  1833. @include col-mediaquery-max(3){
  1834. div.cols{
  1835. padding:1em;
  1836. box-sizing: border-box;
  1837. .accroche{
  1838. figure{
  1839. width:100%;
  1840. }
  1841. }
  1842. }
  1843. }
  1844. section.accroche{
  1845. figure{
  1846. width:$column_width*2 + $column_goutiere;
  1847. margin:0 $column_goutiere 0 0;
  1848. img{
  1849. width:100%;
  1850. }
  1851. }
  1852. }
  1853. section.taxonomy{
  1854. margin:1em 0;
  1855. ul{
  1856. margin: 0;
  1857. }
  1858. li{
  1859. display:inline-block;
  1860. padding:0 0.5em 0 0;
  1861. }
  1862. }
  1863. div.gallery-wrapper{
  1864. .image{
  1865. display: inline-block;
  1866. width:$column_width;
  1867. margin:0 $column_goutiere $column_goutiere*0.6 0;
  1868. height:$card_height / 2;
  1869. background-size: cover;
  1870. }
  1871. @include col-mediaquery-max(3){
  1872. display: flex;
  1873. flex-flow: row wrap;
  1874. justify-content: space-between;
  1875. .image{
  1876. // width: auto; height: auto;
  1877. display: block;
  1878. flex: 0 1 48%;
  1879. margin: 0 0 $column_goutiere*0.6 0;
  1880. }
  1881. }
  1882. }
  1883. // section.videos{
  1884. // ul{
  1885. // margin:0; padding:0;
  1886. // li{
  1887. // margin:0; padding:0;
  1888. // display: inline-block;
  1889. // width:100%; overflow: hidden;
  1890. // }
  1891. // }
  1892. // }
  1893. // section.visuels{
  1894. // width:calc(100% + #{$column_goutiere});
  1895. // figure{
  1896. // position: relative;
  1897. // display: inline-block;
  1898. // vertical-align: top;
  1899. // width:$column_width*2 + $column_goutiere;
  1900. // margin:0 $column_goutiere $column_goutiere*0.6 0;
  1901. // img{
  1902. // width:100%;
  1903. // }
  1904. // caption{
  1905. // position: absolute; bottom: 0; left:0;
  1906. // box-sizing: border-box; width: 100%; padding:0.5em;
  1907. // background-color: $transparent-bg-blk; color: #fff;
  1908. // }
  1909. // }
  1910. // }
  1911. aside.linked-materials{
  1912. @include col-mediaquery-min(3){
  1913. ul{
  1914. width:calc(100% + #{$column_goutiere});
  1915. li{
  1916. display: inline-block;
  1917. vertical-align: top;
  1918. width:$column_width;
  1919. margin:0 $column_goutiere $column_goutiere 0;
  1920. }
  1921. }
  1922. }
  1923. h3.field__label{
  1924. font-size: 1em;
  1925. font-weight: 500;
  1926. margin: 2em 0 1em 0;
  1927. }
  1928. h1.title{
  1929. font-size: 1em;
  1930. font-weight: 400;
  1931. }
  1932. h3.ref{
  1933. font-size: 0.756em;
  1934. font-weight: 600;
  1935. }
  1936. h2.description{
  1937. font-size: 0.756em;
  1938. font-weight: 400;
  1939. }
  1940. }
  1941. nav.prevnext{
  1942. @include col-mediaquery-max(3){
  1943. padding: 0 1em;
  1944. }
  1945. &.bottom{
  1946. margin:2em 0;
  1947. }
  1948. ul{
  1949. padding:0;
  1950. margin:0;
  1951. display: grid;
  1952. grid-template-columns: 1fr 1fr;
  1953. }
  1954. li{
  1955. padding:0;
  1956. margin:0;
  1957. list-style: none;
  1958. a{
  1959. font-size: 0.756em;
  1960. font-weight: 700;
  1961. line-height: 1.3;
  1962. display: block;
  1963. position: relative;
  1964. padding: 0 1em;
  1965. }
  1966. &:nth-child(1){
  1967. grid-column: 1;
  1968. a:before{
  1969. content:'\021A4';
  1970. position: absolute;
  1971. left:0;
  1972. }
  1973. }
  1974. &:nth-child(2){
  1975. grid-column: 2;
  1976. text-align: right;
  1977. a:after{
  1978. content:'\021A6';
  1979. position: absolute;
  1980. right: 0;
  1981. }
  1982. }
  1983. }
  1984. }
  1985. }
  1986. // ___ _
  1987. // / __| |_ _____ __ ___ _ ___ ___ _ __ ___
  1988. // \__ \ ' \/ _ \ V V / '_/ _ \/ _ \ ' \(_-<
  1989. // |___/_||_\___/\_/\_/|_| \___/\___/_|_|_/__/
  1990. #showrooms{
  1991. width: calc(100% + #{$column_goutiere});
  1992. article.showroom{
  1993. width: $column_width * 2 + $column_goutiere;
  1994. display: inline-block;
  1995. vertical-align: top;
  1996. margin: 0 $column_goutiere $column_goutiere 0;
  1997. h1{
  1998. margin:0;
  1999. font-weight: 4;
  2000. }
  2001. p{ margin:0; }
  2002. figure{
  2003. margin:0;
  2004. img{
  2005. max-width: 100%;
  2006. }
  2007. }
  2008. }
  2009. }
  2010. // ___ _ _
  2011. // | _ \_ _(_)__(_)_ _ __ _
  2012. // | _/ '_| / _| | ' \/ _` |
  2013. // |_| |_| |_\__|_|_||_\__, |
  2014. // |___/
  2015. #main-content>#pricing,
  2016. #main-content .view-pricing-products .view-content{
  2017. display: flex;
  2018. flex-flow: row nowrap;
  2019. article.product,
  2020. .views-row{
  2021. flex:0 0 50%;
  2022. text-align: center;
  2023. padding: 2em 0;
  2024. >header{
  2025. padding-bottom: 1.3em;
  2026. }
  2027. >header h1,
  2028. .views-field-title{
  2029. font-size: 4em;
  2030. line-height: 0.6;
  2031. color: #fff;
  2032. text-align: center;
  2033. word-spacing: 30000px;
  2034. }
  2035. section.content, .views-field-body{
  2036. color: #fff;
  2037. .description{
  2038. font-size: 1.134em;
  2039. p{
  2040. margin: 0.3em;
  2041. }
  2042. }
  2043. }
  2044. aside{
  2045. padding:1em 0;
  2046. .variation{
  2047. display: flex;
  2048. flex-flow: row nowrap;
  2049. justify-content: center;
  2050. align-items:flex-end;
  2051. div.variation-description{
  2052. flex: 0 0 6.7em;
  2053. font-size: 2.012em;
  2054. font-weight: 800;
  2055. color: #fff;
  2056. p{
  2057. margin:0;
  2058. text-align: left;
  2059. }
  2060. }
  2061. button{
  2062. @include btn;
  2063. background-color: #fff;
  2064. }
  2065. }
  2066. }
  2067. &:nth-child(1){
  2068. background-color: $color-base;
  2069. aside .variation button{
  2070. color: $color-base;
  2071. }
  2072. }
  2073. &:nth-child(2){
  2074. background-color: $color-webshowroom;
  2075. aside .variation button{
  2076. color: $color-webshowroom;
  2077. }
  2078. }
  2079. }
  2080. @include col-mediaquery-max(3){
  2081. flex-flow: column;
  2082. article.product,
  2083. .views-row{
  2084. flex:0 1 auto;
  2085. }
  2086. }
  2087. }
  2088. .modal{
  2089. position: relative;
  2090. }
  2091. #pricing-modal-login-register{
  2092. position: relative;
  2093. width: 100%;
  2094. text-align: left;
  2095. h2{
  2096. margin: 0.4em 0 1.1em;
  2097. padding-right: 4em;
  2098. font-size: 1.2em;
  2099. font-weight: 300;
  2100. }
  2101. #login-register{
  2102. width: 100%;
  2103. display: flex;
  2104. flex-flow: row nowrap;
  2105. >section{
  2106. flex:0 0 250px;
  2107. form{
  2108. .form-item, .form-actions {
  2109. margin: 0.5em 0;
  2110. max-width: none;
  2111. }
  2112. .form-type-email,
  2113. .form-type-password,
  2114. .form-actions{
  2115. display:block;
  2116. }
  2117. input[type="email"],
  2118. input[type="password"]{
  2119. max-width: 11em;
  2120. }
  2121. &#user-login-form #edit-pass--description,
  2122. #edit-pass-pass1--description{
  2123. display: block;
  2124. max-width: 16em;
  2125. font-size: 0.693em;
  2126. }
  2127. span.login-message,
  2128. span.register-message{
  2129. color: red;
  2130. font-size: 0.693em;
  2131. line-height: 1.2;
  2132. display: block;
  2133. padding: 0.8em 0 0 0;
  2134. }
  2135. span.login-message[v-if="loginMessage"],
  2136. span.register-message[v-if="registerMessage"]{
  2137. display: none;
  2138. }
  2139. }
  2140. }
  2141. section.login{
  2142. form{
  2143. >div{
  2144. // display: block;
  2145. }
  2146. }
  2147. }
  2148. section.register{
  2149. }
  2150. }
  2151. }
  2152. #main-content form.commerce-checkout-flow{
  2153. $w:3;
  2154. max-width: $column_width * $w + $column_goutiere * ($w - 1);
  2155. .layout-checkout-form{
  2156. display: flex;
  2157. flex-flow: column;
  2158. .layout-region-checkout-main{
  2159. // disable default style
  2160. width:100%;
  2161. float: none;
  2162. // apply custom style
  2163. order:2;
  2164. background-color: $color-webshowroom;
  2165. padding: 1em;
  2166. label,
  2167. legend,
  2168. fieldset#edit-review-contact-information,
  2169. fieldset#edit-review-payment-information{
  2170. color: #fff;
  2171. }
  2172. fieldset{
  2173. border:none;
  2174. margin:0; padding:0;
  2175. legend{
  2176. font-size: 1.5em;
  2177. font-weight: 600;
  2178. margin-bottom: 0.5em;
  2179. }
  2180. }
  2181. $lw:10em;
  2182. .form-item{
  2183. margin:0 0 0.5em 0;
  2184. }
  2185. label{
  2186. display: inline-block;
  2187. font-weight: bold;
  2188. min-width: $lw;
  2189. }
  2190. input[type="text"]{
  2191. width:20em;
  2192. }
  2193. .stripe-form{
  2194. display: inline-block;
  2195. background-color: #fff;
  2196. color: #1A1A1A;
  2197. border-radius: 5px;
  2198. padding: 1em;
  2199. margin: 0 0 1em;
  2200. .form-item{
  2201. display: flex;
  2202. align-items: center;
  2203. flex-flow: row nowrap;
  2204. label{
  2205. color: #777;
  2206. }
  2207. .form-text{
  2208. background-color: #fff;
  2209. border-radius: 3px;
  2210. }
  2211. }
  2212. }
  2213. // .form-item-payment-information-billing-information-address-0-address-address-line2
  2214. .form-item-payment-information-add-payment-method-billing-information-address-0-address-address-line2{
  2215. padding-left:$lw + 0.25em;
  2216. }
  2217. // .form-item-payment-information-billing-information-copy-to-address-book
  2218. .form-item-payment-information-add-payment-method-billing-information-copy-to-address-book{
  2219. display: none;
  2220. }
  2221. }
  2222. .layout-region-checkout-secondary{
  2223. // disable default style
  2224. width:100%;
  2225. float: none;
  2226. // apply custom style
  2227. order: 1;
  2228. // display: flex;
  2229. // flex-flow: row nowrap;
  2230. // >.checkout-pane{
  2231. // flex: 0 0 50%;
  2232. // }
  2233. >h3{display:none;}
  2234. #edit-order-summary{
  2235. background-color: $color-base;
  2236. color:#fff;
  2237. padding:1em;
  2238. .view-commerce-checkout-order-summary{
  2239. display: flex;
  2240. flex-flow: row nowrap;
  2241. justify-content: space-between;
  2242. align-items: flex-end;
  2243. }
  2244. .field--name-product-id{
  2245. .field--name-title{
  2246. font-size: 2.5em;
  2247. font-weight: 800;
  2248. }
  2249. .field--name-body{
  2250. }
  2251. }
  2252. .field--name-title{
  2253. font-size: 1.5em;
  2254. font-weight: 600;
  2255. }
  2256. p{
  2257. margin:0;
  2258. }
  2259. }
  2260. #edit-coupon-redemption{
  2261. background-color: $color-showrooms;
  2262. padding:1em;
  2263. >.form-wrapper{
  2264. display: flex;
  2265. flex-flow: row;
  2266. align-items: center;
  2267. .form-item{
  2268. margin:0 0.5em 0 0;
  2269. label{
  2270. color: #fff;
  2271. font-size: 1.5em;
  2272. font-weight: 600;
  2273. margin-right: 0.5em;
  2274. }
  2275. input[type="text"]{
  2276. width: 7em;
  2277. }
  2278. }
  2279. input[type="submit"]{
  2280. background-color: #fff;
  2281. color: $color-showrooms;
  2282. border: none;
  2283. margin:0;
  2284. padding:0.1em 0.7em;
  2285. box-sizing: content-box;
  2286. height:2em;
  2287. font-weight: 800;
  2288. border-radius: 5px;
  2289. }
  2290. }
  2291. }
  2292. }
  2293. .layout-region-checkout-footer{
  2294. // disable default style
  2295. float: none;
  2296. width: 100%;
  2297. padding: 0;
  2298. // apply custom style
  2299. order: 3;
  2300. #edit-actions{
  2301. text-align: right;
  2302. }
  2303. input#edit-actions-next{
  2304. background-color: $color-blabla;
  2305. color: #fff;
  2306. border: none;
  2307. border-radius: 5px;
  2308. padding: 0.2em 0.4em 0.3em;
  2309. font-weight: 600;
  2310. font-size: 1.323em;
  2311. }
  2312. }
  2313. }
  2314. }
  2315. form#user-pass{
  2316. input.form-email{
  2317. max-width: 95%;
  2318. }
  2319. }
  2320. // ___ _
  2321. // | __|__ ___| |_ ___ _ _
  2322. // | _/ _ \/ _ \ _/ -_) '_|
  2323. // |_|\___/\___/\__\___|_|
  2324. footer[role="contentinfo"]{
  2325. body:not(.path-home) & {
  2326. display:none;
  2327. }
  2328. #block-materiosimplenewssubscription{
  2329. form{
  2330. display: flex;
  2331. flex-flow: row nowrap;
  2332. align-items: center;
  2333. font-size: 0.756em;
  2334. >*{
  2335. margin-right: 0.5em;
  2336. }
  2337. #edit-subscriptions{
  2338. display: flex;
  2339. flex-flow: row nowrap;
  2340. >*{
  2341. margin-right: 0.5em;
  2342. display: flex;
  2343. flex-flow: row nowrap;
  2344. align-items: center;
  2345. }
  2346. input{
  2347. margin-right: 0.3em;
  2348. }
  2349. }
  2350. #edit-mail-wrapper{
  2351. input[type="email"]{
  2352. width:10em;
  2353. }
  2354. }
  2355. #edit-actions--2{
  2356. input[type="submit"]{
  2357. border: none;
  2358. background: none;
  2359. background-color: $color-base;
  2360. border-radius: 5px;
  2361. color: #fff;
  2362. padding: 0.7em 1em;
  2363. font-weight: 700;
  2364. }
  2365. }
  2366. }
  2367. }
  2368. }