main.scss 45 KB

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