main.scss 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404
  1. @import './base/reset';
  2. @import './base/variables';
  3. @import './base/colors';
  4. @import './base/grid';
  5. @import './base/layout';
  6. @import './base/animations';
  7. @import './base/fonts';
  8. html{
  9. // background-color: red;
  10. }
  11. aside.messages{
  12. border:none;
  13. }
  14. // _ _ _
  15. // | || |___ __ _ __| |___ _ _
  16. // | __ / -_) _` / _` / -_) '_|
  17. // |_||_\___\__,_\__,_\___|_|
  18. header[role="banner"]{
  19. padding:0.2em 0 0 0;
  20. %header-fs{
  21. font-size: 0.9em;
  22. // line-height: 1;
  23. font-weight: 400;
  24. }
  25. #block-sitebranding{
  26. h1{
  27. margin:0;
  28. line-height: 1;
  29. }
  30. }
  31. #block-userlogin{
  32. position: relative;
  33. // width:8em;
  34. padding:0 1em;
  35. overflow: visible;
  36. h2{
  37. @extend %header-fs;
  38. line-height: 1.38;
  39. margin: 0;
  40. }
  41. &>section{
  42. background-color: #fff;
  43. overflow: hidden;
  44. width:11em;
  45. height:1px;
  46. padding:0.01em 1em;
  47. // margin:0 0 0 -1em;
  48. box-sizing:content-box;
  49. transition: all 0.4s ease-in-out;
  50. // outline: 1px solid blue;
  51. transition-delay: 2s;
  52. position: absolute;
  53. right:0;
  54. top:1.7em;
  55. box-sizing: content-box;
  56. }
  57. &:hover{
  58. &>section{
  59. transition-delay: 0s;
  60. height:12em;
  61. padding:1em 1em;
  62. box-shadow: 0 0 10px #ccc;
  63. }
  64. }
  65. .form-item{
  66. margin:0;
  67. position: relative;
  68. width:100%;
  69. &.form-item-name{
  70. margin:2px 0 0.5em 0;
  71. input{
  72. width:90%;
  73. padding:0;
  74. box-sizing: content-box;
  75. }
  76. }
  77. &.form-item-pass{
  78. margin:0 0 0.5em 0;
  79. input{
  80. width:90%;
  81. padding:0;
  82. box-sizing: content-box;
  83. }
  84. }
  85. &.form-item-persistent-login{
  86. font-size: 0.756em;
  87. label{
  88. vertical-align: top;
  89. }
  90. }
  91. }
  92. #edit-actions{
  93. margin:0;
  94. }
  95. .item-list{
  96. ul{
  97. margin:0;
  98. li{
  99. list-style: none;
  100. margin:0;
  101. a{
  102. font-size: 0.756em;
  103. }
  104. }
  105. }
  106. }
  107. }
  108. // non-vue userblock
  109. #block-userblock{
  110. h2{display:none;}
  111. a{
  112. margin-right: 1em;
  113. }
  114. }
  115. // vue userblock
  116. #user-tools{
  117. padding-top: 0.06em;
  118. h4{
  119. @extend %header-fs;
  120. cursor: pointer;
  121. }
  122. .mdi-logout::before {
  123. margin: -0.125em 0 0 0;
  124. vertical-align: top;
  125. }
  126. }
  127. // vue flaglist
  128. #user-flags{
  129. border-left: 1px solid #000;
  130. padding-left: 0.5em;
  131. margin-left: 0.5em;
  132. display: inline-block;
  133. vertical-align: top;
  134. position: relative;
  135. h2{
  136. @extend %header-fs;
  137. cursor: pointer;
  138. &:before{padding-right: 0.2em;}
  139. }
  140. ul{
  141. background-color: #fff;
  142. overflow: hidden;
  143. width:11em;
  144. max-height:1px;
  145. padding:0.01em 1em;
  146. // margin:0 0 0 -1em;
  147. box-sizing:content-box;
  148. transition: all 0.4s ease-in-out;
  149. // outline: 1px solid blue;
  150. transition-delay: 2s;
  151. position: absolute;
  152. right:0;
  153. top:1.7em;
  154. box-sizing: content-box;
  155. z-index: 30;
  156. }
  157. &:hover{
  158. ul{
  159. transition-delay: 0s;
  160. max-height:50em;
  161. padding:1em 1em;
  162. box-shadow: 0 0 10px #ccc;
  163. }
  164. }
  165. li{
  166. width:100%;
  167. // cursor: pointer;
  168. display: flex;
  169. flex-direction: row;
  170. align-items: baseline;
  171. flex-wrap: nowrap;
  172. h5{
  173. @extend %header-fs;
  174. cursor: pointer;
  175. }
  176. span.mdi{
  177. font-size: 0.9em;
  178. }
  179. div.actions{
  180. opacity:0;
  181. transition: opacity 0.3s ease-in-out;
  182. padding-left:0.5em;
  183. span.mdi{
  184. cursor: pointer;
  185. color: #4e4d4d;
  186. }
  187. span.delete-btn{
  188. &.loading:before{
  189. animation: rotating 2s linear infinite;
  190. }
  191. }
  192. }
  193. &:hover{
  194. div.actions{
  195. opacity:1;
  196. }
  197. }
  198. &.create-flag{
  199. margin-top: 0.2em;
  200. input{
  201. align-self: flex-end;
  202. border: 1px solid #bbb;
  203. border-radius:5px;
  204. width: calc(100% - 2em);
  205. font-size:0.8em;
  206. }
  207. span.add-btn{
  208. align-self: flex-end;
  209. color: #bbb;
  210. font-size: 1em;
  211. padding: 0 0 0 .5em;
  212. transition: all 0.2s ease-in-out;
  213. &.active{
  214. cursor: pointer;
  215. color:#1a1a1a;
  216. }
  217. &.loading:before{
  218. animation: rotating 2s linear infinite;
  219. }
  220. }
  221. }
  222. }
  223. }
  224. // menu
  225. #block-header{
  226. margin-right: 1em;
  227. padding-left: 1em;
  228. border-left: 1px solid #000;
  229. ul.menu{
  230. margin:0;
  231. li{
  232. padding:0;
  233. display: inline-block;
  234. &:not(:first-of-type){
  235. margin-left: 0.5em;
  236. }
  237. a{
  238. @extend %header-fs;
  239. }
  240. }
  241. }
  242. }
  243. #block-languageswitcher{
  244. text-align: right;
  245. h2{
  246. margin: 0.1em 0 0 0;
  247. font-size: 0.756em;
  248. font-weight: 400;
  249. padding:0.1em 0.4em 0.2em;
  250. border-radius: 3px;
  251. background-color: #444;
  252. color: #fff;
  253. display: inline-block;
  254. vertical-align: top;
  255. }
  256. &>ul.links{
  257. // background-color: #fff;
  258. overflow: hidden;
  259. width:3.5em;
  260. // display: inline-block;
  261. height:1px;
  262. padding:0.01em 0;
  263. margin:0;
  264. box-sizing:content-box;
  265. transition: all 0.4s ease-in-out;
  266. // outline: 1px solid blue;
  267. // transition-delay: 2s;
  268. }
  269. &:hover{
  270. &>ul.links{
  271. transition-delay: 0s;
  272. height:2em;
  273. padding:0.3em 0;
  274. // box-shadow: 0 0 10px #ccc;
  275. }
  276. }
  277. li{
  278. list-style: none;
  279. padding:0;
  280. display: inline-block;
  281. &.is-active{
  282. display:none;
  283. }
  284. a{
  285. margin: 0;
  286. font-size: 0.756em;
  287. font-weight: 400;
  288. padding:0.2em 0.4em;
  289. border-radius: 3px;
  290. background-color: #444;
  291. color: #fff;
  292. }
  293. }
  294. }
  295. // header bottom
  296. #header-bottom{
  297. // disable the default wrapper behaviour
  298. &:after{content: none;}
  299. // apply flex for normal layout
  300. display: flex;
  301. flex-direction: row;
  302. justify-content: space-between;
  303. #block-pagetitle{}
  304. #block-materiosapisearchblock{
  305. align-self: flex-end;
  306. }
  307. @include col-mediaquery-max(3){
  308. flex-direction: column-reverse;
  309. // justify-content: flex-start;
  310. #block-pagetitle{
  311. width: max-content;
  312. }
  313. #block-materiosapisearchblock{}
  314. }
  315. }
  316. #block-pagetitle{
  317. // float: left;
  318. padding:1em 0;
  319. h2{
  320. margin:0;
  321. font-size: 1.512em;
  322. text-transform: capitalize;
  323. font-weight: 300;
  324. body:not(.path-home) & {
  325. padding:0.5em 1em;
  326. }
  327. body.path-blabla & {
  328. color: #fff;
  329. background-color: $color-blabla;
  330. }
  331. body.path-showrooms & {
  332. color: #fff;
  333. background-color: $color-showrooms;
  334. }
  335. body.path-base &,
  336. body.path-thematique & {
  337. color: #fff;
  338. background-color: $color-base;
  339. }
  340. }
  341. }
  342. #block-materiosapisearchblock{
  343. // float:right;
  344. // display:inline-block;
  345. // box-shadow: 0 0 5px rgba(0,0,0,0.2);
  346. padding:0;
  347. #materio-sapi-search-form{
  348. .form-item, input.button{
  349. display: inline-block;
  350. }
  351. #edit-search{
  352. border:1px #BBB solid;
  353. border-radius: 14px;
  354. padding:0.3em;
  355. color:#666;
  356. }
  357. #edit-submit{
  358. border:0;
  359. text-indent: 50px;
  360. overflow: hidden;
  361. width:20px; height:20px;
  362. margin:0;
  363. // border-radius: 7px;
  364. background-image: url('../img/search.png');
  365. background-position: center;
  366. background-repeat: no-repeat;
  367. background-size: contain;
  368. }
  369. }
  370. }
  371. }
  372. // main
  373. aside.messages{
  374. padding: 0;
  375. }
  376. // content top
  377. // #content-top{
  378. // &:after{
  379. // content:"";
  380. // clear:both;
  381. // display: block;
  382. // }
  383. // }
  384. // ___ _ _ _ __ _
  385. // / __|___ _ _| |_ ___ _ _| |_ ___| | ___ / _| |_
  386. // | (__/ _ \ ' \ _/ -_) ' \ _|___| |__/ -_) _| _|
  387. // \___\___/_||_\__\___|_||_\__| |____\___|_| \__|
  388. #content-left{
  389. z-index: 5;
  390. box-sizing: content-box;
  391. max-width:1px;
  392. overflow-x: hidden;
  393. transition: all 0.3s ease-in-out;
  394. &.opened{
  395. max-width: 500px;
  396. padding: 0.3em;
  397. }
  398. >*{
  399. box-sizing: border-box;
  400. background-color: #fff;
  401. box-shadow: -2px 0px 4px rgba(0, 0, 0, 0.2);
  402. padding: 0.5em;
  403. }
  404. .flag-collection{
  405. >header{
  406. display: flex;
  407. flex-direction: row;
  408. justify-content: space-between;
  409. padding-bottom: $column_goutiere;
  410. h3{
  411. // flex-basis: calc(100% - 1em);
  412. }
  413. .mdi-close{
  414. // display: block;
  415. // flex-basis: 1em;
  416. cursor:pointer;
  417. align-self: flex-end;
  418. }
  419. }
  420. >ul{
  421. >li{
  422. margin:0 0 $column_goutiere 0;
  423. padding:0;
  424. article.card.minicard{
  425. width:$minicard_width;
  426. height:$minicard_height;
  427. margin:auto;
  428. >header{
  429. padding: 0.3em 0.3em 0.1em;
  430. h1{
  431. margin:0;
  432. }
  433. }
  434. >nav.tools{
  435. top: auto;
  436. bottom: 0;
  437. padding:0 0.2em;
  438. background:transparent;
  439. .mdi.unflag{
  440. cursor: pointer;
  441. }
  442. }
  443. }
  444. }
  445. }
  446. }
  447. }
  448. // __ _
  449. // / _|_ _ ___ _ _| |_
  450. // | _| '_/ _ \ ' \ _|
  451. // |_| |_| \___/_||_\__|
  452. article.node--type-frontpage{
  453. %front-col-field__label{
  454. font-size: 3.5em;
  455. line-height: 1;
  456. }
  457. %front-col-descritpion{
  458. font-size: 0.9em;
  459. line-height: 1.3;
  460. }
  461. %part-centered-layout{
  462. padding:1.5em 0;
  463. background-color: #fff;
  464. >div:nth-child(1){
  465. width:80%;
  466. margin: 0 auto;
  467. text-align: center;
  468. .field__label{
  469. @extend %front-col-field__label;
  470. }
  471. .field__item{
  472. @extend %front-col-descritpion;
  473. }
  474. }
  475. }
  476. // %part-columned-layout{
  477. // display:grid;
  478. // grid-template-columns: 300px 1fr;
  479. // grid-column-gap: 2em;
  480. // padding:2em 1em;
  481. // >div:nth-child(1){
  482. // color: #fff;
  483. // grid-column: 1;
  484. // .field__label{
  485. // @extend %front-col-field__label;
  486. // }
  487. // .field__item{
  488. // @extend %front-col-descritpion;
  489. // }
  490. // }
  491. // >div:nth-child(2){
  492. // grid-column: 2;
  493. // }
  494. // }
  495. %part-columned-layout{
  496. display:flex;
  497. flex-direction: row;
  498. flex-wrap: nowrap;
  499. >div:nth-child(1){
  500. flex: 0 0 $column_width * 2 + $column_goutiere;
  501. box-sizing: border-box;
  502. padding: 1em;
  503. color: #fff;
  504. .field__label{
  505. @extend %front-col-field__label;
  506. }
  507. .field__item{
  508. @extend %front-col-descritpion;
  509. }
  510. }
  511. >div:nth-child(2){
  512. flex: 1 1 auto;
  513. box-sizing: border-box;
  514. padding: 1em 0.5em;
  515. }
  516. }
  517. >h2{
  518. display: none;
  519. }
  520. .node__content{
  521. @mixin btn{
  522. display: inline-block;
  523. font-size: 0.9em;
  524. font-weight: bold;
  525. padding: 0.7em 1em;
  526. margin-bottom: 0.3em;
  527. background-color: #fff;
  528. color: #000;
  529. border-radius: 5px;
  530. }
  531. &>section{
  532. &.home-intro{
  533. @extend %part-centered-layout;
  534. .field__item{
  535. display: flex;
  536. flex-flow: row nowrap;
  537. justify-content: center;
  538. p{
  539. flex: 0 0 $column_width * 2;
  540. padding:1em;
  541. }
  542. }
  543. }
  544. &.home-database{
  545. background-color: $color-base;
  546. @extend %part-columned-layout;
  547. .field--name-field-a-database{
  548. .field__label{
  549. cursor: pointer;
  550. }
  551. }
  552. .field--name-field-database-links{
  553. .field__item{
  554. display: inline-block;
  555. a{
  556. @include btn;
  557. background-color: #fff;
  558. color: $color-base;
  559. }
  560. }
  561. }
  562. .cards-list-home{
  563. position: relative;
  564. // max-height: (130px*1.4)*3;
  565. max-height: 580px;
  566. overflow-y: hidden;
  567. ul{
  568. width:100%;
  569. margin:0; padding:0;
  570. // display: grid;
  571. // grid-template-columns: repeat(auto-fill, minmax(50px, 130px));
  572. // grid-template-rows: 1fr;
  573. // grid-gap: 1em;
  574. // justify-content:start;
  575. display: flex;
  576. flex-flow: row wrap;
  577. justify-content: space-between;
  578. li{
  579. padding:0 0 $column_goutiere / 2 0;
  580. box-sizing: border-box;
  581. // padding-top: 140%;
  582. width: $column_width / 2;
  583. height: $card_height / 2;
  584. position: relative;
  585. list-style: none;
  586. margin:0;
  587. .card{
  588. // position:absolute;
  589. // top:0; bottom:0;
  590. // left:0; right:0;
  591. width: 100%;
  592. height: 100%;
  593. .field--name-field-short-description{
  594. font-size: 0.656em;
  595. line-height: 1.2;
  596. }
  597. }
  598. }
  599. }
  600. }
  601. }
  602. &.home-showrooms{
  603. background-color: $color-showrooms;
  604. @extend %part-columned-layout;
  605. .field--name-field-showrooms{}
  606. .field--name-field-showroom-links{
  607. .field__item{
  608. display: inline-block;
  609. a{
  610. @include btn;
  611. background-color: #fff;
  612. color: $color-showrooms;
  613. }
  614. }
  615. }
  616. .field--name-computed-showrooms-reference{
  617. overflow: hidden;
  618. position:relative;
  619. // height:550px;
  620. display: grid;
  621. grid-template-rows: 1fr;
  622. $bp: ($column_width + $column_goutiere )*7;
  623. @media only screen and (max-width: $bp){
  624. grid-template-columns: 1fr;
  625. >.field__item{
  626. grid-column: 1;
  627. }
  628. }
  629. @media only screen and (min-width: $bp + 1px){
  630. grid-template-columns: 1fr 1fr;
  631. grid-gap: 1em;
  632. >.field__item:nth-child(odd){
  633. grid-column: 1;
  634. }
  635. >.field__item:nth-child(even){
  636. grid-column: 2;
  637. }
  638. }
  639. >.field__item{
  640. grid-row: 1;
  641. // position: absolute;
  642. // top:0; left:0;
  643. // width:100%; height:100%;
  644. // overflow: hidden;
  645. opacity: 0;
  646. // transform: translateX(100%);
  647. transition: all 2s ease-out;
  648. &.active{
  649. opacity: 1;
  650. // transform: translateX(0);
  651. // transition: all 0.3s ease-in-out;
  652. }
  653. .taxonomy-term{
  654. position: relative;
  655. width:100%; height:100%;
  656. div.visuel{
  657. width:100%;
  658. padding-bottom: 5em;
  659. img{
  660. max-width: 100%;
  661. height: auto;
  662. }
  663. }
  664. section.text{
  665. position: absolute;
  666. bottom:0; left:0;
  667. width:100%;
  668. box-sizing:border-box;
  669. padding:1em 0 0;
  670. background-color:$color-showrooms;
  671. color: #fff;
  672. // >*{
  673. // // display: inline-block;
  674. // font-size: 0.9em;
  675. // }
  676. h2,p{
  677. margin:0;
  678. }
  679. h2{
  680. font-size: 2em;
  681. }
  682. .field--name-field-public-address{
  683. br{
  684. display:none;
  685. }
  686. span:not(:nth-last-of-type(1)) {
  687. margin-right: 0.4em;
  688. &:after{
  689. padding-left: 0.5em;
  690. content:"⋅"
  691. }
  692. }
  693. }
  694. .field--name-field-public-phone {
  695. display: inline-block;
  696. margin-right: 0.4em;
  697. &:after{
  698. padding-left: 0.5em;
  699. content:"⋅"
  700. }
  701. }
  702. .field--name-field-public-email {
  703. display: inline-block;
  704. }
  705. }
  706. }
  707. }
  708. }
  709. }
  710. &.home-blabla{
  711. background-color: $color-blabla;
  712. @extend %part-columned-layout;
  713. .field--name-field-blabla-links{
  714. .field__item{
  715. display: inline-block;
  716. a{
  717. @include btn;
  718. background-color: #fff;
  719. color: $color-blabla;
  720. }
  721. }
  722. }
  723. .cards-list-home{
  724. position: relative;
  725. $bp: ($column_width*2 + $column_goutiere );
  726. overflow-y: hidden;
  727. max-height: 315px;
  728. // @media only screen and (max-width: $bp * 6){
  729. // max-height: 630px;
  730. // }
  731. // @media only screen and (min-width: ($bp * 6) + 1px){
  732. // max-height: 310px;
  733. // }
  734. ul{
  735. width:100%;
  736. margin:0; padding:0;
  737. // display: grid;
  738. // grid-template-columns: repeat(auto-fill, minmax(80px, $column_width*2));
  739. // // grid-template-rows: 1fr;
  740. // grid-gap: 1em;
  741. // justify-content:start;
  742. display: flex;
  743. flex-flow: row wrap;
  744. justify-content: space-between;
  745. li{
  746. padding:0 0 $column_goutiere 0;
  747. box-sizing: border-box;
  748. // padding-top: 140%;
  749. width: $column_width;
  750. // height: $card_height / 2;
  751. position: relative;
  752. list-style: none;
  753. margin:0;
  754. // padding-top: 67.8%;
  755. overflow: hidden;
  756. .card{
  757. // position:absolute;
  758. // top:0; bottom:0;
  759. // left:0; right:0;
  760. width: 100%;
  761. height: auto;
  762. .field--name-title{
  763. font-size: 0.756em;
  764. line-height: 0.9;
  765. }
  766. }
  767. }
  768. }
  769. }
  770. }
  771. &.home-pricing{
  772. @extend %part-centered-layout;
  773. >h3{
  774. @extend %front-col-field__label;
  775. text-align: center;
  776. text-transform: capitalize;
  777. padding: 0.7em 0 0.3em 0;
  778. }
  779. .field--name-field-pricing-pitch{
  780. text-align: center;
  781. p{ margin:0;}
  782. }
  783. .field--name-field-pricing{
  784. // padding:2em 0;
  785. display: flex;
  786. flex-flow: row nowrap;
  787. justify-content: center;
  788. padding-bottom: 1em;
  789. p{
  790. flex: 0 0 $column_width * 2;
  791. padding: 1em;
  792. margin: 0;
  793. text-align: center;
  794. }
  795. }
  796. .field--name-computed-products-reference{
  797. display: flex;
  798. flex-flow: row nowrap;
  799. // TODO: mediaQuery column
  800. >.field__item{
  801. flex:0 0 50%;
  802. text-align: center;
  803. padding: 2em 0;
  804. &:nth-child(1){
  805. background-color: $color-base
  806. }
  807. &:nth-child(2){
  808. background-color: $color-webshowroom;
  809. }
  810. color: #fff;
  811. position: relative;
  812. height:18em;
  813. >div{
  814. position: absolute;
  815. top:50%; left:50%;
  816. transform: translate(-50%, -50%);
  817. }
  818. .field--name-title{
  819. @extend %front-col-field__label;
  820. font-weight: 600;
  821. line-height: 0.7;
  822. padding-bottom: 0.5em;
  823. text-align: center;
  824. word-spacing: 30000px;
  825. }
  826. .field--name-field-description{
  827. @extend %front-col-descritpion;
  828. padding:0.5em;
  829. p{
  830. margin: 0;
  831. }
  832. }
  833. }
  834. }
  835. }
  836. }
  837. }
  838. }
  839. // ___ _
  840. // / __|__ _ _ _ __| |___
  841. // | (__/ _` | '_/ _` (_-<
  842. // \___\__,_|_| \__,_/__/
  843. .infinite-loading-container{
  844. .infinite-status-prompt{
  845. i[class^="loading-"]{
  846. width:15px; height:15px;
  847. }
  848. }
  849. }
  850. .cards-list{
  851. position: relative;
  852. .search-info{
  853. font-size: 0.756em;
  854. font-weight: 500;
  855. margin: 0;
  856. padding: 0 0 0.5em 0;
  857. }
  858. &>ul{
  859. // outline: 1px green solid;
  860. margin:0; padding:0;
  861. width: calc(100% + #{$column_goutiere});
  862. &>li{
  863. list-style: none;
  864. margin:0 $column_goutiere $column_goutiere 0; padding:0;
  865. display: inline-block;
  866. vertical-align: top;
  867. }
  868. }
  869. }
  870. article.card{
  871. position: relative;
  872. box-shadow: 0 0 5px rgba(0,0,0,0.2);
  873. width:$column_width; height:$card_height;
  874. &.article{
  875. width:$column_width*2 + $column_goutiere; height:$card_height;
  876. }
  877. &.minicard{
  878. height:100px;
  879. }
  880. // &.card-small{
  881. // width:100px; height:140px;
  882. // }
  883. // focused
  884. // box-shadow: 0 0 7px rgba(0,0,0,0.9);
  885. // &.article{
  886. // width: $column_width * 2 + $column_goutiere;
  887. //
  888. // }
  889. header{
  890. position: absolute;
  891. bottom:0;
  892. z-index:10;
  893. color: #000;
  894. background-color: rgba(255,255,255,0.8);
  895. padding: 0.3em 0.3em;
  896. box-sizing:border-box;
  897. width:100%;
  898. h1, h4{ margin:0; padding:0; }
  899. h1{
  900. font-size: 1.3em;
  901. font-weight: 700;
  902. line-height: 0.85;
  903. margin-bottom: 0.2em;
  904. }
  905. h4{
  906. font-size: 0.882em;
  907. font-weight: 300;
  908. line-height: 1;
  909. // margin-bottom: 0.1em;
  910. }
  911. span.ref{
  912. font-size: 0.693em;
  913. font-weight: 300;
  914. line-height: 1;
  915. }
  916. }
  917. &.card-thematique header{
  918. background-color: $color-base-transparent;
  919. }
  920. nav.tools{
  921. position: absolute;
  922. top: 0;
  923. right: 0;
  924. z-index: 21;
  925. $toolbar_width: 15px;
  926. width: $toolbar_width;
  927. background-color: #fff;
  928. box-sizing: content-box;
  929. padding: 0.3em 0.1em;
  930. >*{
  931. overflow: visible;
  932. position: relative;
  933. span.btn{
  934. overflow: hidden;
  935. font-size: 0.882em;
  936. }
  937. .tool-content{
  938. position: absolute;
  939. top: 0px;
  940. right: 100%;
  941. // width: 5em;
  942. width: $column_width - $toolbar_width - 10px;
  943. box-sizing: border-box;
  944. padding: 0.3em;
  945. background-color: #fff;
  946. box-shadow: -2px 3px 4px rgba(0, 0, 0, 0.2);
  947. opacity: 0;
  948. max-height: 0; max-width:0;
  949. overflow: hidden;
  950. transition: all 0.2s ease-in-out;
  951. }
  952. &:hover{
  953. .tool-content{
  954. transition: all 0.3s ease-in-out;
  955. opacity: 1;
  956. max-height: 195px;
  957. max-width:200px;
  958. }
  959. }
  960. }
  961. .tool.flags{
  962. .tool-content{
  963. ul{
  964. display: flex;
  965. flex-flow: row wrap;
  966. li{
  967. padding:0 0.5em 0 0;
  968. }
  969. }
  970. }
  971. span.flag{
  972. cursor: pointer;
  973. font-size: 0.756em;
  974. color: #bbb;
  975. transition: color 0.3s ease-in-out;
  976. &:hover, &.isActive{
  977. color:#1a1a1a;
  978. }
  979. }
  980. }
  981. opacity: 0;
  982. transition: opacity 0.2s ease-in-out;
  983. }
  984. &:hover{
  985. nav.tools{
  986. opacity:1;
  987. }
  988. }
  989. section.images{
  990. position: relative;
  991. &, *{width: 100%; height:100%;}
  992. figure{
  993. cursor: pointer;
  994. margin:0;
  995. position: absolute;
  996. top:0; left:0;
  997. // width: 100%; height:100%;
  998. &:first-of-type{
  999. z-index:5
  1000. }
  1001. transition: opacity 0.2s ease-in-out;
  1002. &.show{opacity: 1; z-index:6;}
  1003. &.hide{opacity: 0;}
  1004. img{
  1005. // width: 100%; height:100%;
  1006. &.blank{
  1007. position: absolute;
  1008. top:0; left:0;
  1009. z-index: 20;
  1010. }
  1011. }
  1012. }
  1013. }
  1014. // overwritnig card for card-medium (aka search-card)
  1015. &.search-card{
  1016. >header{
  1017. cursor: pointer;
  1018. }
  1019. }
  1020. // overwriting card for modal-card
  1021. &.modal-card{
  1022. display: flex;
  1023. flex-flow: row-reverse nowrap;
  1024. width: $modalcard_width;
  1025. height: $modalcard_height;
  1026. >.col{
  1027. flex-basis: 50%;
  1028. }
  1029. section.col-right{
  1030. >*:not(nav.tools){
  1031. position: relative;
  1032. padding: 0.5em;
  1033. box-sizing: border-box;
  1034. width: 100%;
  1035. }
  1036. header{
  1037. bottom: auto;
  1038. }
  1039. section.samples{
  1040. ul{
  1041. display: flex;
  1042. flex-flow: row wrap;
  1043. font-size: 0.882em;
  1044. font-weight: 300;
  1045. // line-height: 1.35;
  1046. li{
  1047. padding-right: 0.5em;
  1048. span.showroom{ font-weight: 500; }
  1049. }
  1050. }
  1051. }
  1052. section.body{
  1053. p{
  1054. font-size: 0.882em;
  1055. font-weight: 300;
  1056. line-height: 1.35;
  1057. }
  1058. }
  1059. nav.tools{
  1060. opacity: 1;
  1061. section.close{
  1062. span.btn.mdi-close{
  1063. cursor:pointer;
  1064. }
  1065. }
  1066. }
  1067. }
  1068. }
  1069. }
  1070. // _____ _ _ _
  1071. // |_ _| |_ ___ _ __ __ _| |_(_)__ _ _ _ ___
  1072. // | | | ' \/ -_) ' \/ _` | _| / _` | || / -_)
  1073. // |_| |_||_\___|_|_|_\__,_|\__|_\__, |\_,_\___|
  1074. // |_|
  1075. #main-content > article.thematique{
  1076. div.cols{
  1077. display: flex;
  1078. flex-direction: row;
  1079. flex-wrap: nowrap;
  1080. // @media only screen and (max-width: $small-bp) {
  1081. @include col-mediaquery-max(3){
  1082. flex-wrap: wrap;
  1083. }
  1084. // }
  1085. div.col-left{
  1086. padding: 0 $column_goutiere $column_goutiere 0;
  1087. flex: 0 0 $column_width * 2 + $column_goutiere;
  1088. }
  1089. div.col-right{}
  1090. }
  1091. div.col-left section.body{
  1092. background-color: $color-base;
  1093. padding: 0.5em 1em 1em;
  1094. }
  1095. aside.linked-materials{
  1096. ul{
  1097. width:calc(100% + #{$column_goutiere});
  1098. li{
  1099. display: inline-block;
  1100. vertical-align: top;
  1101. width:$column_width;
  1102. margin:0 $column_goutiere $column_goutiere 0;
  1103. }
  1104. }
  1105. h3.field__label{
  1106. font-size: 1em;
  1107. font-weight: 500;
  1108. margin: 2em 0 1em 0;
  1109. }
  1110. h1.title{
  1111. font-size: 1em;
  1112. font-weight: 400;
  1113. }
  1114. h3.ref{
  1115. font-size: 0.756em;
  1116. font-weight: 600;
  1117. }
  1118. h2.description{
  1119. font-size: 0.756em;
  1120. font-weight: 400;
  1121. }
  1122. }
  1123. }
  1124. // ___ _ _ _
  1125. // | _ ) |__ _| |__| |__ _
  1126. // | _ \ / _` | '_ \ / _` |
  1127. // |___/_\__,_|_.__/_\__,_|
  1128. #blabla{
  1129. }
  1130. #main-content > article.article{
  1131. div.cols{
  1132. display: grid;
  1133. grid-template-rows: 1fr;
  1134. grid-template-columns: repeat(6, 1fr);
  1135. grid-gap: 1em;
  1136. div.col-left{
  1137. grid-column: 1;
  1138. }
  1139. div.col-right{
  1140. grid-column: 2/6;
  1141. }
  1142. }
  1143. section.accroche{
  1144. figure{
  1145. width:$column_width*2 + $column_goutiere;
  1146. margin:0 $column_goutiere 0 0;
  1147. img{
  1148. width:100%;
  1149. }
  1150. }
  1151. }
  1152. section.taxonomy{
  1153. margin:1em 0;
  1154. ul{
  1155. margin: 0;
  1156. }
  1157. li{
  1158. display:inline-block;
  1159. padding:0 0.5em 0 0;
  1160. }
  1161. }
  1162. div.gallery-wrapper{
  1163. .image{
  1164. display: inline-block;
  1165. width:$column_width;
  1166. margin:0 $column_goutiere $column_goutiere*0.6 0;
  1167. height:$card_height / 2;
  1168. background-size: cover;
  1169. }
  1170. }
  1171. // section.videos{
  1172. // ul{
  1173. // margin:0; padding:0;
  1174. // li{
  1175. // margin:0; padding:0;
  1176. // display: inline-block;
  1177. // width:100%; overflow: hidden;
  1178. // }
  1179. // }
  1180. // }
  1181. // section.visuels{
  1182. // width:calc(100% + #{$column_goutiere});
  1183. // figure{
  1184. // position: relative;
  1185. // display: inline-block;
  1186. // vertical-align: top;
  1187. // width:$column_width*2 + $column_goutiere;
  1188. // margin:0 $column_goutiere $column_goutiere*0.6 0;
  1189. // img{
  1190. // width:100%;
  1191. // }
  1192. // caption{
  1193. // position: absolute; bottom: 0; left:0;
  1194. // box-sizing: border-box; width: 100%; padding:0.5em;
  1195. // background-color: $transparent-bg-blk; color: #fff;
  1196. // }
  1197. // }
  1198. // }
  1199. aside.linked-materials{
  1200. ul{
  1201. width:calc(100% + #{$column_goutiere});
  1202. li{
  1203. display: inline-block;
  1204. vertical-align: top;
  1205. width:$column_width;
  1206. margin:0 $column_goutiere $column_goutiere 0;
  1207. }
  1208. }
  1209. h3.field__label{
  1210. font-size: 1em;
  1211. font-weight: 500;
  1212. margin: 2em 0 1em 0;
  1213. }
  1214. h1.title{
  1215. font-size: 1em;
  1216. font-weight: 400;
  1217. }
  1218. h3.ref{
  1219. font-size: 0.756em;
  1220. font-weight: 600;
  1221. }
  1222. h2.description{
  1223. font-size: 0.756em;
  1224. font-weight: 400;
  1225. }
  1226. }
  1227. nav.prevnext{
  1228. &.bottom{
  1229. margin:2em 0;
  1230. }
  1231. ul{
  1232. padding:0;
  1233. margin:0;
  1234. display: grid;
  1235. grid-template-columns: 1fr 1fr;
  1236. }
  1237. li{
  1238. padding:0;
  1239. margin:0;
  1240. list-style: none;
  1241. a{
  1242. font-size: 0.756em;
  1243. font-weight: 700;
  1244. }
  1245. &:nth-child(1){
  1246. grid-column: 1;
  1247. a:before{
  1248. content:'< ';
  1249. }
  1250. }
  1251. &:nth-child(2){
  1252. grid-column: 2;
  1253. text-align: right;
  1254. a:after{
  1255. content:' >';
  1256. }
  1257. }
  1258. }
  1259. }
  1260. }
  1261. // ___ _
  1262. // / __| |_ _____ __ ___ _ ___ ___ _ __ ___
  1263. // \__ \ ' \/ _ \ V V / '_/ _ \/ _ \ ' \(_-<
  1264. // |___/_||_\___/\_/\_/|_| \___/\___/_|_|_/__/
  1265. #showrooms{
  1266. width: calc(100% + #{$column_goutiere});
  1267. article.showroom{
  1268. width: $column_width * 2 + $column_goutiere;
  1269. display: inline-block;
  1270. vertical-align: top;
  1271. margin: 0 $column_goutiere $column_goutiere 0;
  1272. h1{
  1273. margin:0;
  1274. font-weight: 4;
  1275. }
  1276. p{ margin:0; }
  1277. figure{
  1278. margin:0;
  1279. img{
  1280. max-width: 100%;
  1281. }
  1282. }
  1283. }
  1284. }
  1285. // ___ _
  1286. // | __|__ ___| |_ ___ _ _
  1287. // | _/ _ \/ _ \ _/ -_) '_|
  1288. // |_|\___/\___/\__\___|_|
  1289. footer[role="contentinfo"]{
  1290. body:not(.path-home) & {
  1291. display:none;
  1292. }
  1293. #block-materiosimplenewssubscription{
  1294. form{
  1295. display: flex;
  1296. flex-flow: row nowrap;
  1297. align-items: center;
  1298. font-size: 0.756em;
  1299. >*{
  1300. margin-right: 0.5em;
  1301. }
  1302. #edit-subscriptions{
  1303. display: flex;
  1304. flex-flow: row nowrap;
  1305. >*{
  1306. margin-right: 0.5em;
  1307. display: flex;
  1308. flex-flow: row nowrap;
  1309. align-items: center;
  1310. }
  1311. input{
  1312. margin-right: 0.3em;
  1313. }
  1314. }
  1315. #edit-mail-wrapper{
  1316. input[type="email"]{
  1317. width:10em;
  1318. }
  1319. }
  1320. #edit-actions--2{
  1321. input[type="submit"]{
  1322. border: none;
  1323. background: none;
  1324. background-color: $color-base;
  1325. border-radius: 5px;
  1326. color: #fff;
  1327. padding: 0.7em 1em;
  1328. font-weight: 700;
  1329. }
  1330. }
  1331. }
  1332. }
  1333. }