main.scss 51 KB

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