main.scss 48 KB

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