main.scss 47 KB

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