main.scss 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172
  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. >h2{
  496. display: none;
  497. }
  498. .node__content{
  499. &>section{
  500. &.home-intro{
  501. @extend %part-centered-layout;
  502. }
  503. &.home-database{
  504. background-color: $color-base;
  505. @extend %part-columned-layout;
  506. .field--name-field-a-database{
  507. a.btn{
  508. background-color: #fff;
  509. color: $color-base;
  510. }
  511. }
  512. .cards-list-home{
  513. position: relative;
  514. // max-height: (130px*1.4)*3;
  515. max-height: 580px;
  516. overflow-y: hidden;
  517. ul{
  518. width:100%;
  519. margin:0; padding:0;
  520. display: grid;
  521. grid-template-columns: repeat(auto-fill, minmax(50px, 130px));
  522. grid-template-rows: 1fr;
  523. grid-gap: 1em;
  524. justify-content:start;
  525. li{
  526. position: relative;
  527. list-style: none;
  528. margin:0; padding:0;
  529. padding-top: 140%;
  530. .card{
  531. position:absolute;
  532. top:0; bottom:0;
  533. left:0; right:0;
  534. width: auto;
  535. height: auto;
  536. .field--name-field-short-description{
  537. font-size: 0.756em;
  538. line-height: 0.9;
  539. }
  540. }
  541. }
  542. }
  543. }
  544. }
  545. &.home-showrooms{
  546. background-color: $color-showrooms;
  547. @extend %part-columned-layout;
  548. .field--name-field-showrooms{
  549. a.btn{
  550. background-color: #fff;
  551. color: $color-showrooms;
  552. }
  553. }
  554. .field--name-computed-showrooms-reference{
  555. position:relative;
  556. // height:550px;
  557. display: grid;
  558. grid-template-rows: 1fr;
  559. $bp: ($column_width + $column_goutiere )*7;
  560. @media only screen and (max-width: $bp){
  561. grid-template-columns: 1fr;
  562. >.field__item{
  563. grid-column: 1;
  564. }
  565. }
  566. @media only screen and (min-width: $bp + 1px){
  567. grid-template-columns: 1fr 1fr;
  568. grid-gap: 1em;
  569. >.field__item:nth-child(odd){
  570. grid-column: 1;
  571. }
  572. >.field__item:nth-child(even){
  573. grid-column: 2;
  574. }
  575. }
  576. >.field__item{
  577. grid-row: 1;
  578. // position: absolute;
  579. // top:0; left:0;
  580. // width:100%; height:100%;
  581. // overflow: hidden;
  582. .taxonomy-term{
  583. position: relative;
  584. width:100%; height:100%;
  585. div.visuel{
  586. width:100%;
  587. padding-bottom: 10em;
  588. img{
  589. max-width: 100%;
  590. height: auto;
  591. }
  592. }
  593. section.text{
  594. position: absolute;
  595. bottom:0; left:0;
  596. width:100%;
  597. box-sizing:border-box;
  598. padding:1em 0;
  599. background-color:$color-showrooms;
  600. color: #fff;
  601. >*{
  602. // display: inline-block;
  603. font-size: 0.9em;
  604. }
  605. h2,p{
  606. margin:0;
  607. }
  608. }
  609. }
  610. }
  611. }
  612. }
  613. &.home-blabla{
  614. background-color: $color-blabla;
  615. @extend %part-columned-layout;
  616. .cards-list-home{
  617. position: relative;
  618. $bp: ($column_width*2 + $column_goutiere );
  619. overflow-y: hidden;
  620. @media only screen and (max-width: $bp * 6){
  621. max-height: 630px;
  622. }
  623. @media only screen and (min-width: ($bp * 6) + 1px){
  624. max-height: 310px;
  625. }
  626. ul{
  627. width:100%;
  628. margin:0; padding:0;
  629. display: grid;
  630. grid-template-columns: repeat(auto-fill, minmax(80px, $column_width*2));
  631. // grid-template-rows: 1fr;
  632. grid-gap: 1em;
  633. justify-content:start;
  634. li{
  635. position: relative;
  636. list-style: none;
  637. margin:0; padding:0;
  638. padding-top: 67.8%;
  639. overflow: hidden;
  640. .card{
  641. position:absolute;
  642. top:0; bottom:0;
  643. left:0; right:0;
  644. width: auto;
  645. height: auto;
  646. .field--name-title{
  647. font-size: 0.756em;
  648. line-height: 0.9;
  649. }
  650. }
  651. }
  652. }
  653. }
  654. }
  655. &.home-pricing{
  656. @extend %part-centered-layout;
  657. }
  658. }
  659. }
  660. }
  661. // ___ _
  662. // / __|__ _ _ _ __| |___
  663. // | (__/ _` | '_/ _` (_-<
  664. // \___\__,_|_| \__,_/__/
  665. .infinite-loading-container{
  666. .infinite-status-prompt{
  667. i[class^="loading-"]{
  668. width:15px; height:15px;
  669. }
  670. }
  671. }
  672. .cards-list{
  673. position: relative;
  674. .search-info{
  675. font-size: 0.756em;
  676. font-weight: 500;
  677. margin: 0;
  678. padding: 0 0 0.5em 0;
  679. }
  680. &>ul{
  681. // outline: 1px green solid;
  682. margin:0; padding:0;
  683. width: calc(100% + #{$column_goutiere});
  684. &>li{
  685. list-style: none;
  686. margin:0 $column_goutiere $column_goutiere 0; padding:0;
  687. display: inline-block;
  688. vertical-align: top;
  689. }
  690. }
  691. }
  692. article.card{
  693. position: relative;
  694. box-shadow: 0 0 5px rgba(0,0,0,0.2);
  695. width:$column_width; height:$card_height;
  696. &.article{
  697. width:$column_width*2 + $column_goutiere; height:$card_height;
  698. }
  699. &.minicard{
  700. height:100px;
  701. }
  702. // &.card-small{
  703. // width:100px; height:140px;
  704. // }
  705. // focused
  706. // box-shadow: 0 0 7px rgba(0,0,0,0.9);
  707. // &.article{
  708. // width: $column_width * 2 + $column_goutiere;
  709. //
  710. // }
  711. header{
  712. position: absolute;
  713. bottom:0;
  714. z-index:10;
  715. color: #000;
  716. background-color: rgba(255,255,255,0.8);
  717. padding: 0.3em 0.3em;
  718. box-sizing:border-box;
  719. width:100%;
  720. h1, h4{ margin:0; padding:0; }
  721. h1{
  722. font-size: 1.3em;
  723. font-weight: 700;
  724. line-height: 0.85;
  725. margin-bottom: 0.2em;
  726. }
  727. h4{
  728. font-size: 0.882em;
  729. font-weight: 300;
  730. line-height: 1;
  731. // margin-bottom: 0.1em;
  732. }
  733. span.ref{
  734. font-size: 0.693em;
  735. font-weight: 300;
  736. line-height: 1;
  737. }
  738. }
  739. &.card-thematique header{
  740. background-color: $color-base-transparent;
  741. }
  742. nav.tools{
  743. position: absolute;
  744. top: 0;
  745. right: 0;
  746. z-index: 21;
  747. $toolbar_width: 15px;
  748. width: $toolbar_width;
  749. background-color: #fff;
  750. box-sizing: content-box;
  751. padding: 0.3em 0.1em;
  752. >*{
  753. overflow: visible;
  754. position: relative;
  755. span.btn{
  756. overflow: hidden;
  757. font-size: 0.882em;
  758. }
  759. .tool-content{
  760. position: absolute;
  761. top: 0px;
  762. right: 100%;
  763. // width: 5em;
  764. width: $column_width - $toolbar_width - 10px;
  765. box-sizing: border-box;
  766. padding: 0.3em;
  767. background-color: #fff;
  768. box-shadow: -2px 3px 4px rgba(0, 0, 0, 0.2);
  769. opacity: 0;
  770. max-height: 0; max-width:0;
  771. overflow: hidden;
  772. transition: all 0.2s ease-in-out;
  773. }
  774. &:hover{
  775. .tool-content{
  776. transition: all 0.3s ease-in-out;
  777. opacity: 1;
  778. max-height: 195px;
  779. max-width:200px;
  780. }
  781. }
  782. }
  783. .tool.flags{
  784. .tool-content{
  785. ul{
  786. display: flex;
  787. flex-flow: row wrap;
  788. li{
  789. padding:0 0.5em 0 0;
  790. }
  791. }
  792. }
  793. span.flag{
  794. cursor: pointer;
  795. font-size: 0.756em;
  796. color: #bbb;
  797. transition: color 0.3s ease-in-out;
  798. &:hover, &.isActive{
  799. color:#1a1a1a;
  800. }
  801. }
  802. }
  803. opacity: 0;
  804. transition: opacity 0.2s ease-in-out;
  805. }
  806. &:hover{
  807. nav.tools{
  808. opacity:1;
  809. }
  810. }
  811. section.images{
  812. position: relative;
  813. &, *{width: 100%; height:100%;}
  814. figure{
  815. cursor: pointer;
  816. margin:0;
  817. position: absolute;
  818. top:0; left:0;
  819. // width: 100%; height:100%;
  820. &:first-of-type{
  821. z-index:5
  822. }
  823. transition: opacity 0.2s ease-in-out;
  824. &.show{opacity: 1; z-index:6;}
  825. &.hide{opacity: 0;}
  826. img{
  827. // width: 100%; height:100%;
  828. &.blank{
  829. position: absolute;
  830. top:0; left:0;
  831. z-index: 20;
  832. }
  833. }
  834. }
  835. }
  836. // overwritnig card for card-medium (aka search-card)
  837. &.search-card{
  838. >header{
  839. cursor: pointer;
  840. }
  841. }
  842. // overwriting card for modal-card
  843. &.modal-card{
  844. display: flex;
  845. flex-flow: row-reverse nowrap;
  846. width: $modalcard_width;
  847. height: $modalcard_height;
  848. >.col{
  849. flex-basis: 50%;
  850. }
  851. section.col-right{
  852. >*:not(nav.tools){
  853. position: relative;
  854. padding: 0.5em;
  855. box-sizing: border-box;
  856. width: 100%;
  857. }
  858. header{
  859. bottom: auto;
  860. }
  861. section.samples{
  862. ul{
  863. display: flex;
  864. flex-flow: row wrap;
  865. font-size: 0.882em;
  866. font-weight: 300;
  867. // line-height: 1.35;
  868. li{
  869. padding-right: 0.5em;
  870. span.showroom{ font-weight: 500; }
  871. }
  872. }
  873. }
  874. section.body{
  875. p{
  876. font-size: 0.882em;
  877. font-weight: 300;
  878. line-height: 1.35;
  879. }
  880. }
  881. nav.tools{
  882. opacity: 1;
  883. section.close{
  884. span.btn.mdi-close{
  885. cursor:pointer;
  886. }
  887. }
  888. }
  889. }
  890. }
  891. }
  892. // _____ _ _ _
  893. // |_ _| |_ ___ _ __ __ _| |_(_)__ _ _ _ ___
  894. // | | | ' \/ -_) ' \/ _` | _| / _` | || / -_)
  895. // |_| |_||_\___|_|_|_\__,_|\__|_\__, |\_,_\___|
  896. // |_|
  897. #main-content > article.thematique{
  898. div.cols{
  899. display: flex;
  900. flex-direction: row;
  901. flex-wrap: nowrap;
  902. // @media only screen and (max-width: $small-bp) {
  903. @include col-mediaquery-max(3){
  904. flex-wrap: wrap;
  905. }
  906. // }
  907. div.col-left{
  908. padding: 0 $column_goutiere $column_goutiere 0;
  909. flex: 0 0 $column_width * 2 + $column_goutiere;
  910. }
  911. div.col-right{}
  912. }
  913. div.col-left section.body{
  914. background-color: $color-base;
  915. padding: 0.5em 1em 1em;
  916. }
  917. aside.linked-materials{
  918. ul{
  919. width:calc(100% + #{$column_goutiere});
  920. li{
  921. display: inline-block;
  922. vertical-align: top;
  923. width:$column_width;
  924. margin:0 $column_goutiere $column_goutiere 0;
  925. }
  926. }
  927. h3.field__label{
  928. font-size: 1em;
  929. font-weight: 500;
  930. margin: 2em 0 1em 0;
  931. }
  932. h1.title{
  933. font-size: 1em;
  934. font-weight: 400;
  935. }
  936. h3.ref{
  937. font-size: 0.756em;
  938. font-weight: 600;
  939. }
  940. h2.description{
  941. font-size: 0.756em;
  942. font-weight: 400;
  943. }
  944. }
  945. }
  946. // ___ _ _ _
  947. // | _ ) |__ _| |__| |__ _
  948. // | _ \ / _` | '_ \ / _` |
  949. // |___/_\__,_|_.__/_\__,_|
  950. #blabla{
  951. }
  952. #main-content > article.article{
  953. div.cols{
  954. display: grid;
  955. grid-template-rows: 1fr;
  956. grid-template-columns: repeat(6, 1fr);
  957. grid-gap: 1em;
  958. div.col-left{
  959. grid-column: 1;
  960. }
  961. div.col-right{
  962. grid-column: 2/6;
  963. }
  964. }
  965. section.accroche{
  966. figure{
  967. width:$column_width*2 + $column_goutiere;
  968. margin:0 $column_goutiere 0 0;
  969. img{
  970. width:100%;
  971. }
  972. }
  973. }
  974. section.taxonomy{
  975. margin:1em 0;
  976. ul{
  977. margin: 0;
  978. }
  979. li{
  980. display:inline-block;
  981. padding:0 0.5em 0 0;
  982. }
  983. }
  984. div.gallery-wrapper{
  985. .image{
  986. display: inline-block;
  987. width:$column_width;
  988. margin:0 $column_goutiere $column_goutiere*0.6 0;
  989. height:$card_height / 2;
  990. background-size: cover;
  991. }
  992. }
  993. // section.videos{
  994. // ul{
  995. // margin:0; padding:0;
  996. // li{
  997. // margin:0; padding:0;
  998. // display: inline-block;
  999. // width:100%; overflow: hidden;
  1000. // }
  1001. // }
  1002. // }
  1003. // section.visuels{
  1004. // width:calc(100% + #{$column_goutiere});
  1005. // figure{
  1006. // position: relative;
  1007. // display: inline-block;
  1008. // vertical-align: top;
  1009. // width:$column_width*2 + $column_goutiere;
  1010. // margin:0 $column_goutiere $column_goutiere*0.6 0;
  1011. // img{
  1012. // width:100%;
  1013. // }
  1014. // caption{
  1015. // position: absolute; bottom: 0; left:0;
  1016. // box-sizing: border-box; width: 100%; padding:0.5em;
  1017. // background-color: $transparent-bg-blk; color: #fff;
  1018. // }
  1019. // }
  1020. // }
  1021. aside.linked-materials{
  1022. ul{
  1023. width:calc(100% + #{$column_goutiere});
  1024. li{
  1025. display: inline-block;
  1026. vertical-align: top;
  1027. width:$column_width;
  1028. margin:0 $column_goutiere $column_goutiere 0;
  1029. }
  1030. }
  1031. h3.field__label{
  1032. font-size: 1em;
  1033. font-weight: 500;
  1034. margin: 2em 0 1em 0;
  1035. }
  1036. h1.title{
  1037. font-size: 1em;
  1038. font-weight: 400;
  1039. }
  1040. h3.ref{
  1041. font-size: 0.756em;
  1042. font-weight: 600;
  1043. }
  1044. h2.description{
  1045. font-size: 0.756em;
  1046. font-weight: 400;
  1047. }
  1048. }
  1049. nav.prevnext{
  1050. &.bottom{
  1051. margin:2em 0;
  1052. }
  1053. ul{
  1054. padding:0;
  1055. margin:0;
  1056. display: grid;
  1057. grid-template-columns: 1fr 1fr;
  1058. }
  1059. li{
  1060. padding:0;
  1061. margin:0;
  1062. list-style: none;
  1063. a{
  1064. font-size: 0.756em;
  1065. font-weight: 700;
  1066. }
  1067. &:nth-child(1){
  1068. grid-column: 1;
  1069. a:before{
  1070. content:'< ';
  1071. }
  1072. }
  1073. &:nth-child(2){
  1074. grid-column: 2;
  1075. text-align: right;
  1076. a:after{
  1077. content:' >';
  1078. }
  1079. }
  1080. }
  1081. }
  1082. }
  1083. // ___ _
  1084. // / __| |_ _____ __ ___ _ ___ ___ _ __ ___
  1085. // \__ \ ' \/ _ \ V V / '_/ _ \/ _ \ ' \(_-<
  1086. // |___/_||_\___/\_/\_/|_| \___/\___/_|_|_/__/
  1087. #showrooms{
  1088. width: calc(100% + #{$column_goutiere});
  1089. article.showroom{
  1090. width: $column_width * 2 + $column_goutiere;
  1091. display: inline-block;
  1092. vertical-align: top;
  1093. margin: 0 $column_goutiere $column_goutiere 0;
  1094. h1{
  1095. margin:0;
  1096. font-weight: 4;
  1097. }
  1098. p{ margin:0; }
  1099. figure{
  1100. margin:0;
  1101. img{
  1102. max-width: 100%;
  1103. }
  1104. }
  1105. }
  1106. }