main.scss 46 KB

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