styles.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. @import '../bower_components/foundation/scss/normalize.scss';
  2. @import "_settings.scss";
  3. @import '../bower_components/foundation/scss/foundation.scss';
  4. @import '../bower_components/foundation/scss/foundation/components/_global.scss';
  5. @import '../bower_components/foundation/scss/foundation/components/_grid.scss';
  6. $column-gutter: rem-calc(15);
  7. // colors
  8. $maincolor: #5b2d87;
  9. $secondcolor: #e30613;
  10. $cat1: #e30613;
  11. $cat2: #00acba;
  12. $cat3: #5b2d87;
  13. $cat4: #f7a939;
  14. $cat5: #95c11f;
  15. $cat6: #e5007d;
  16. $cat7: #009641;
  17. $cat8: #009fe3;
  18. $catRadius: 12px;
  19. // $font: "CiutadellaRounded", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  20. $font: "cocogoose", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  21. @mixin fontbold{
  22. // TODO : media query
  23. font: $font; font-size:0.95em; font-weight:500; font-variant: normal;
  24. }
  25. @mixin fontnormal{
  26. // TODO : media query
  27. font: $font; font-size:0.8em; font-weight:300; font-variant: normal;
  28. }
  29. body{
  30. font-family: $font;
  31. letter-spacing: 1px;
  32. font-weight: 300;
  33. font-variant: normal;
  34. color: $maincolor;
  35. }
  36. h1,h2,h3,h4,h5,h6{font-family: $font;}
  37. a, a:hover{color:inherit;}
  38. ul,li{padding:0; margin:0; list-style: none;}
  39. // @media $large-up {
  40. // .row.fullwidth{width:1200px;}
  41. // }
  42. #container{
  43. display: block; position: relative;
  44. min-height: 100vh;
  45. }
  46. @media #{$medium-up}{
  47. .row{width:41rem;}
  48. }
  49. @media #{$large-up}{
  50. .row{width:62rem;}
  51. }
  52. @media #{$xlarge-up}{
  53. .row{width:83rem;max-width:83rem;}
  54. }
  55. // @media #{$xxlarge-up}{
  56. // .row{width:125rem;max-width:125rem;}
  57. // }
  58. /*
  59. _ _ _
  60. | | | | | |
  61. | |__| | ___ __ _ __| | ___ _ __
  62. | __ |/ _ \/ _` |/ _` |/ _ \ '__|
  63. | | | | __/ (_| | (_| | __/ |
  64. |_| |_|\___|\__,_|\__,_|\___|_|
  65. */
  66. $headerborderH: 0.3em;
  67. $headerpaddingtopH:0.9em;
  68. $logoH: 9.3em;
  69. $logo_mt:0.3em;
  70. $logo_mb:0.5em;
  71. $titleareaH: $logoH+$logo_mb+$logo_mt;
  72. $titleReducedFactor:0.7555;
  73. $titleReducedFactorSmall:0.5;
  74. $centerpaddingtop: $headerborderH+$headerpaddingtopH+$titleareaH;
  75. $footerheight: 5em;
  76. $centerpaddingbottom:$footerheight+1em;
  77. header#top-bar{
  78. position: fixed; top:0;
  79. width:100%;
  80. // TODO: flou sous le haeder
  81. z-index: 9;
  82. // &:before{
  83. // content:"";
  84. // background: transparent!important;
  85. // border-top: $headerborderH solid $maincolor;
  86. // display: block;
  87. // padding-bottom: $headerpaddingtopH;
  88. // }
  89. >.bg{
  90. padding-top: $headerpaddingtopH;
  91. background-color: rgba(255, 255, 255, 0.95);
  92. >.row{
  93. position:relative; display:block;
  94. padding:0 0.7em;
  95. // box-sizing: border-box;
  96. }
  97. }
  98. #title-area{
  99. // overflow: hidden;
  100. position:relative;
  101. height:$titleareaH;
  102. transition: height 0.4s ease-in-out;
  103. h1{
  104. font-size: 1em; margin: 0;
  105. height:100%;
  106. min-height:$titleareaH*0.8;
  107. overflow: hidden;
  108. position: relative;
  109. a{display: block;
  110. height:$logoH;
  111. margin:$logo_mt 0 $logo_mb;
  112. color:$secondcolor;
  113. @include fontnormal;
  114. font-weight: 500;
  115. &:before{
  116. content:"";
  117. display: block;
  118. $r: 95px;
  119. width:$r; height:$r;
  120. border-radius: $r/2;
  121. border: 17px solid $maincolor;
  122. margin: 0 auto 1em;
  123. }
  124. }
  125. }
  126. }
  127. &.reduced{
  128. #title-area{
  129. height:$titleareaH*$titleReducedFactor;
  130. // @media #{$medium-up}{
  131. // height:$titleareaH*$titleReducedFactorSmall;
  132. // }
  133. }
  134. }
  135. h1, h2{
  136. text-align: center;
  137. a{
  138. color: inherit;
  139. }}
  140. .nav{
  141. padding:0;
  142. position:relative;
  143. height:100%;
  144. ul{padding: 0; margin: 0;}
  145. li{list-style: none;}
  146. // @include breakpoint(medium) {
  147. @media screen and (min-width:$small-breakpoint) {
  148. .wrapper{padding-top: $titleareaH/2-.5em;}
  149. }
  150. }
  151. #left-nav{
  152. // margin-right: -0.1rem;
  153. text-align: left;
  154. h4{
  155. @include fontnormal; margin:0; line-height: 1.9;
  156. a{color:$maincolor;}
  157. // a:hover{text-decoration: underline;}
  158. }
  159. ul{background-color: transparent; padding-bottom: 1em;}
  160. li{
  161. line-height: 1;
  162. // &:not(.active){
  163. overflow: hidden; height:0.01px; transition: height 0.3s ease-in;
  164. // }
  165. position: relative;
  166. // line-height: $catRadius;
  167. // min-width:$catRadius; height:$catRadius;
  168. a{
  169. display: block;
  170. &:before{
  171. content:"";
  172. opacity: 1;
  173. position: relative;
  174. display:inline-block;
  175. border-width: 3px;
  176. border-style: solid;
  177. // line-height: $catRadius;
  178. width:$catRadius; height:$catRadius;
  179. border-radius: $catRadius/2;
  180. }
  181. &.tag-1:before{ border-color: $cat1;}
  182. &.tag-2:before{ border-color: $cat2;}
  183. &.tag-3:before{ border-color: $cat3;}
  184. &.tag-4:before{ border-color: $cat4;}
  185. &.tag-5:before{ border-color: $cat5;}
  186. &.tag-6:before{ border-color: $cat6;}
  187. &.tag-7:before{ border-color: $cat7;}
  188. &.tag-8:before{ border-color: $cat8;}
  189. span{
  190. // position: absolute;
  191. // z-index: -1;
  192. // font-size: 0.7em;
  193. @include fontnormal;
  194. font-weight: 300;
  195. white-space: nowrap;
  196. // opacity: 0;
  197. // transition: opacity 0.3s ease-in-out;
  198. padding:0.15em 0.3em;
  199. // width:0;
  200. }
  201. // &:hover{
  202. // span{ opacity: 1; width:auto; z-index: 10;}
  203. // }
  204. }
  205. // &.active span{
  206. // display:inline-block;
  207. // position:relative;
  208. // &:after{
  209. // content: ""; height:0;
  210. // display: block; margin-top:-.7em; margin-bottom:.7em;
  211. // border-top:0.5em solid $maincolor;}
  212. // }
  213. }
  214. @media #{$medium-up}{
  215. &:hover{
  216. li{
  217. height:1.1em; transition: height 0.5s ease-out;
  218. &:hover span{
  219. // border-bottom: 1px solid #000;
  220. text-decoration: underline;
  221. }
  222. }
  223. }
  224. }
  225. }
  226. #right-nav{
  227. text-align: right;
  228. // margin-left: -0.1rem;
  229. line-height:0.5;
  230. a{@include fontnormal;}
  231. a:hover{@include fontnormal; text-decoration: underline;}
  232. }
  233. div.line{
  234. // position: absolute;
  235. bottom: 0;
  236. height: 1px;
  237. // width: 100%;
  238. // box-sizing: border-box;
  239. content:" ";
  240. border-bottom: 1px solid $secondcolor;
  241. }
  242. }
  243. /*
  244. _____ _
  245. / ____| | |
  246. | | ___ _ __ | |_ ___ _ __
  247. | | / _ \ '_ \| __/ _ \ '__|
  248. | |___| __/ | | | || __/ |
  249. \_____\___|_| |_|\__\___|_|
  250. */
  251. div#center{
  252. padding-top:$centerpaddingtop;
  253. padding-bottom: $centerpaddingbottom;
  254. .columns{
  255. padding: 0;
  256. }
  257. p{
  258. line-height:1.5;
  259. // display:inline-block;
  260. position:relative;
  261. @include fontnormal;
  262. span.stab{
  263. display:inline-block; position:relative;
  264. font-weight:bold;
  265. // &:after{
  266. // content: ""; height:0;
  267. // display: block; margin-top:-1em; //margin-bottom:.9em;
  268. // border-top:0.5em solid $maincolor;
  269. // // transition:border-color 0.3s ease-in;}
  270. // }
  271. }
  272. a{
  273. text-decoration: underline;
  274. }
  275. }
  276. /*
  277. * LIST PROJET
  278. */
  279. .projet-block{
  280. padding:0.7em 0.7em 2em;
  281. text-align: left;
  282. nav.categories{
  283. margin:0;
  284. ul{
  285. margin: 0;
  286. li{
  287. position: relative;
  288. display: inline-block;
  289. // line-height: $catRadius;
  290. min-width:$catRadius; height:$catRadius;
  291. margin-right: -0.2em;
  292. a{
  293. display: block;
  294. &:before{
  295. content:"";
  296. opacity: 1;
  297. position: relative;
  298. display:inline-block;
  299. border-width: 3px;
  300. border-style: solid;
  301. // line-height: $catRadius;
  302. width:$catRadius; height:$catRadius;
  303. border-radius: $catRadius/2;
  304. }
  305. &.tag-1:before{ border-color: $cat1;}
  306. &.tag-2:before{ border-color: $cat2;}
  307. &.tag-3:before{ border-color: $cat3;}
  308. &.tag-4:before{ border-color: $cat4;}
  309. &.tag-5:before{ border-color: $cat5;}
  310. &.tag-6:before{ border-color: $cat6;}
  311. &.tag-7:before{ border-color: $cat7;}
  312. &.tag-8:before{ border-color: $cat8;}
  313. span{
  314. position: absolute;
  315. z-index: -1;
  316. font-size: 0.7em;
  317. font-weight: 300;
  318. background-color: #fff;
  319. white-space: nowrap;
  320. opacity: 0;
  321. transition: opacity 0.3s ease-in-out;
  322. padding:0.2em 0.3em;
  323. width:0;
  324. }
  325. &:hover{
  326. span{ opacity: 1; width:auto; z-index: 10;}
  327. }
  328. }
  329. }
  330. }
  331. }
  332. a.image-link{display: block;}
  333. header{
  334. position:relative;
  335. // margin-top:0;padding-top:0;
  336. margin-top: -3em; padding-top: 3.5em; padding-bottom: 0.7em;
  337. // transition:background-color 0.3s ease-in;
  338. }
  339. header>*{
  340. font-family: $font;
  341. // text-align: center;
  342. padding:0; margin:0;
  343. }
  344. h1{
  345. @include fontbold;
  346. color: $maincolor;
  347. margin:0.4em 0 0.5em 0;
  348. line-height: 1.6;
  349. height:auto;
  350. span.date{
  351. font-weight: 200;
  352. border-left: 1px solid $maincolor;
  353. // font-size: 0.7em;
  354. // line-height: 0.5;
  355. // &:before{
  356. // content: "|";
  357. padding:0.2em 0 0 0.5em;
  358. margin-left: 0.2em;
  359. // display: inline-block;
  360. // }
  361. }
  362. }
  363. h2{
  364. @include fontnormal;
  365. margin:0.4em 0 0;
  366. line-height: 1;
  367. a{color: $maincolor;}
  368. }
  369. &.projet-block-text{
  370. text-align: left;
  371. h1{margin-bottom: 0.3em;}
  372. h2{
  373. // font-weight:bold;
  374. @include fontbold;
  375. margin-bottom: 0.3em;
  376. }
  377. }
  378. &:hover{
  379. // header{
  380. // background-color: rgba($maincolor, 0.7); transition-timing-function: ease-out;
  381. // h1:after{border-top:0.5em solid #FFF;transition-timing-function: ease-out;}
  382. // }
  383. }
  384. }
  385. /*
  386. * PAGE PROJET
  387. */
  388. .projet{
  389. .row{margin:0;}
  390. h1{
  391. @include fontbold;
  392. margin:0; padding:0 0.7em; line-height: 1;
  393. display: inline-block;
  394. // &:after{
  395. // content: "";
  396. // display: block; margin-top:-.7em; margin-bottom:.7em;
  397. // border-top:0.5em solid $maincolor;
  398. // transition:border-color 0.3s ease-in;}
  399. }
  400. h2{@include fontnormal; margin:-0.2em 0 0.7em; line-height: 1; padding:0 0.7em;}
  401. // .block{
  402. // display: inline-block;
  403. // }
  404. p{padding:0 0.7em 0.7em; margin:0;}
  405. #images{
  406. // .row{margin:0;}
  407. // .block{padding:0.7em;}
  408. letter-spacing: 0px;
  409. a{
  410. letter-spacing: normal;
  411. display: inline-block;
  412. margin:0 1em 1em 0;
  413. }
  414. }
  415. img{
  416. // width:100%;
  417. max-width:100%;
  418. height:300px;
  419. }
  420. }
  421. .default{
  422. >*{padding-left:0.7em;padding-right:0.7em;}
  423. }
  424. body.projet{
  425. nav.categories{
  426. ul.tags li a:hover span{
  427. text-decoration: underline;
  428. }
  429. }
  430. }
  431. /*
  432. * Catégories
  433. */
  434. nav.categories{
  435. margin: 1em 0;
  436. ul.tags{
  437. margin:0; padding:0; text-align:center;
  438. li{
  439. list-style: none; display:inline-block;
  440. margin:0 1em;
  441. a{
  442. display:block;
  443. // &:hover{text-decoration: underline;}
  444. }
  445. span{@include fontnormal;}
  446. &.active span{
  447. display:inline-block;
  448. position:relative;
  449. // font-weight: bold;
  450. @include fontbold;
  451. border-bottom: 1px solid #000;
  452. line-height: 0.2;
  453. // &:after{
  454. // content: ""; height:0;
  455. // display: block; margin-top:-0.2em; margin-bottom:0.2em;
  456. // border-top:0.5em solid $maincolor;}
  457. }
  458. }
  459. }
  460. }
  461. #diaporama{
  462. position:relative;
  463. height:20vw;
  464. margin:0 0 1.5em;
  465. >*{
  466. position:absolute; top:0; left:0;
  467. height:100%; width:100%;
  468. text-align: center;
  469. opacity:0;
  470. transition: opacity 0.2s ease-in;
  471. &.visible{opacity:1;}
  472. img{height:100%;}
  473. }
  474. }
  475. .client-block{
  476. margin:0 0 1em;
  477. padding:0.7em;
  478. h3{
  479. @include fontbold;
  480. line-height:0.6; display:inline-block; position:relative;
  481. margin:0; padding:0;
  482. // $maincolor overline
  483. // &:after{
  484. // content: "";
  485. // display: block; margin-top:-.5em; margin-bottom:.5em;
  486. // border-top:0.5em solid $maincolor;
  487. // transition:border-color 0.3s ease-in;
  488. // }
  489. }
  490. h4{
  491. margin:0;
  492. @include fontnormal;
  493. a:hover{text-decoration: underline;}
  494. }
  495. }
  496. }
  497. /*
  498. _ _ _
  499. (_) | | | |
  500. _ __ ___ ___ _ __ ___ _ __ ___ ___ _____ | | __ _ _ _ ___ _ _| |_
  501. | '__/ _ \/ __| '_ \ / _ \| '_ \/ __| \ \ / / _ \ | |/ _` | | | |/ _ \| | | | __|
  502. | | | __/\__ \ |_) | (_) | | | \__ \ |\ V / __/ | | (_| | |_| | (_) | |_| | |_
  503. |_| \___||___/ .__/ \___/|_| |_|___/_| \_/ \___| |_|\__,_|\__, |\___/ \__,_|\__|
  504. | | __/ |
  505. |_| |___/
  506. */
  507. @media #{$small-only}{
  508. header#top-bar{
  509. &:before{
  510. padding-bottom: $headerpaddingtopH*0.5;
  511. }
  512. #title-area{
  513. height:$titleareaH -3.1em;
  514. // padding-top: $headerpaddingtopH;
  515. h1{
  516. height:100%;
  517. min-height:($titleareaH - 3.1em)*0.8;
  518. a{display: block;
  519. height:$logoH - 3em;
  520. // height:100%;
  521. }
  522. }
  523. }
  524. &.reduced{
  525. #title-area{
  526. height:($titleareaH - 3.1em)*$titleReducedFactor;
  527. // overflow: hidden;
  528. }
  529. }
  530. .nav{
  531. position:absolute;
  532. top:$headerborderH+$headerpaddingtopH*0.5;
  533. height:auto;
  534. }
  535. #left-nav{left:0;}
  536. #right-nav{right:0;}
  537. }
  538. div#center{
  539. padding-top:$centerpaddingtop - 1.1em;
  540. padding-bottom: $centerpaddingbottom;
  541. }
  542. body.categories{
  543. a.projet-img{
  544. display:none;
  545. }
  546. }
  547. }
  548. /*
  549. __ _
  550. / _| | |
  551. | |_ ___ ___ | |_ ___ _ __
  552. | _/ _ \ / _ \| __/ _ \ '__|
  553. | || (_) | (_) | || __/ |
  554. |_| \___/ \___/ \__\___|_|
  555. */
  556. footer#bottom-bar{
  557. position:absolute; bottom:0;
  558. width:100%; height:$footerheight;
  559. background-color: $maincolor;
  560. color: white;
  561. text-align: center;
  562. padding:1em 0;
  563. // margin: 5vh 0 0;
  564. h1{
  565. @include fontbold; height:auto; display:inline-block; position:relative; margin:0;
  566. color: inherit;
  567. a{
  568. font-weight: inherit;
  569. color: inherit;
  570. }
  571. // &:after{
  572. // content: ""; height:0;
  573. // display: block; margin-top:-.9em; margin-bottom:1em;
  574. // border-top:0.5em solid #fff;
  575. // transition:border-color 0.3s ease-in;}
  576. }
  577. address{
  578. // font-size: 1em; font-weight: normal;
  579. @include fontnormal;
  580. margin:-0.7em 0 0; line-height: 1.1; font-style: normal;
  581. a{text-decoration: underline;}
  582. }
  583. }
  584. div.featherlight:last-of-type{
  585. background-color: rgba(255,255,255,0.9);
  586. div.featherlight-content{
  587. background: none;
  588. span.featherlight-next, span.featherlight-previous{
  589. // left:90%;
  590. // outline: 1px solid red;
  591. &:hover{
  592. background: none;
  593. }
  594. span{
  595. // outline: 1px solid green;
  596. color:$maincolor;
  597. text-shadow: none;
  598. visibility: hidden;
  599. position: relative;
  600. left:0; right:0;
  601. width:100%;
  602. &:after{
  603. // outline: 1px solid purple;
  604. content:">";
  605. display: block;
  606. visibility: visible;
  607. position: absolute;
  608. top:0; width:100%;
  609. text-align: right;
  610. padding:0 0.5em;
  611. @include $font;
  612. font-weight: 500;
  613. font-size: 1.2em;
  614. }
  615. }
  616. }
  617. span.featherlight-previous{
  618. // left:25px;
  619. // right:90%;
  620. span{
  621. &:after{
  622. content:"<";
  623. text-align: left;
  624. }
  625. }
  626. }
  627. }
  628. }