main.scss 46 KB

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