main.scss 46 KB

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