main.scss 52 KB

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