main.scss 46 KB

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