main.scss 51 KB

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