main.scss 48 KB

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