main.scss 51 KB

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