main.scss 27 KB

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