main.scss 48 KB

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