main.scss 53 KB

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