styles.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  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:100%;
  111. height:$logoH;
  112. margin:$logo_mt 0 $logo_mb;
  113. // height:$titleareaH;
  114. background: transparent url("../images/logo.png") no-repeat center center;
  115. background-size: contain;}
  116. }
  117. h1 span, h2{
  118. position:absolute; margin-top:-3000px; height:0;
  119. }
  120. }
  121. &.reduced{
  122. #title-area{
  123. height:$titleareaH*$titleReducedFactor;
  124. // @media #{$medium-up}{
  125. // height:$titleareaH*$titleReducedFactorSmall;
  126. // }
  127. }
  128. }
  129. h1, h2{
  130. text-align: center;
  131. a{
  132. color: inherit;
  133. }}
  134. .nav{
  135. padding:0;
  136. position:relative;
  137. height:100%;
  138. ul{padding: 0; margin: 0;}
  139. li{list-style: none;}
  140. // @include breakpoint(medium) {
  141. @media screen and (min-width:$small-breakpoint) {
  142. .wrapper{padding-top: $titleareaH/2-.5em;}
  143. }
  144. }
  145. #left-nav{
  146. // margin-right: -0.1rem;
  147. text-align: left;
  148. h4{
  149. @include fontnormal; margin:0; line-height: 1.9;
  150. a{color:$maincolor;}
  151. // a:hover{text-decoration: underline;}
  152. }
  153. ul{background-color: transparent; padding-bottom: 1em;}
  154. li{
  155. line-height: 1;
  156. // &:not(.active){
  157. overflow: hidden; height:0.01px; transition: height 0.3s ease-in;
  158. // }
  159. position: relative;
  160. // line-height: $catRadius;
  161. // min-width:$catRadius; height:$catRadius;
  162. a{
  163. display: block;
  164. &:before{
  165. content:"";
  166. opacity: 1;
  167. position: relative;
  168. display:inline-block;
  169. border-width: 3px;
  170. border-style: solid;
  171. // line-height: $catRadius;
  172. width:$catRadius; height:$catRadius;
  173. border-radius: $catRadius/2;
  174. }
  175. &.tag-1:before{ border-color: $cat1;}
  176. &.tag-2:before{ border-color: $cat2;}
  177. &.tag-3:before{ border-color: $cat3;}
  178. &.tag-4:before{ border-color: $cat4;}
  179. &.tag-5:before{ border-color: $cat5;}
  180. &.tag-6:before{ border-color: $cat6;}
  181. &.tag-7:before{ border-color: $cat7;}
  182. &.tag-8:before{ border-color: $cat8;}
  183. span{
  184. // position: absolute;
  185. // z-index: -1;
  186. // font-size: 0.7em;
  187. @include fontnormal;
  188. font-weight: 300;
  189. white-space: nowrap;
  190. // opacity: 0;
  191. // transition: opacity 0.3s ease-in-out;
  192. padding:0.15em 0.3em;
  193. // width:0;
  194. }
  195. // &:hover{
  196. // span{ opacity: 1; width:auto; z-index: 10;}
  197. // }
  198. }
  199. // &.active span{
  200. // display:inline-block;
  201. // position:relative;
  202. // &:after{
  203. // content: ""; height:0;
  204. // display: block; margin-top:-.7em; margin-bottom:.7em;
  205. // border-top:0.5em solid $maincolor;}
  206. // }
  207. }
  208. @media #{$medium-up}{
  209. &:hover{
  210. li{
  211. height:1.1em; transition: height 0.5s ease-out;
  212. &:hover span{
  213. // border-bottom: 1px solid #000;
  214. text-decoration: underline;
  215. }
  216. }
  217. }
  218. }
  219. }
  220. #right-nav{
  221. text-align: right;
  222. // margin-left: -0.1rem;
  223. line-height:0.5;
  224. a{@include fontnormal;}
  225. a:hover{@include fontnormal; text-decoration: underline;}
  226. }
  227. div.line{
  228. // position: absolute;
  229. bottom: 0;
  230. height: 1px;
  231. // width: 100%;
  232. // box-sizing: border-box;
  233. content:" ";
  234. border-bottom: 1px solid $secondcolor;
  235. }
  236. }
  237. /*
  238. _____ _
  239. / ____| | |
  240. | | ___ _ __ | |_ ___ _ __
  241. | | / _ \ '_ \| __/ _ \ '__|
  242. | |___| __/ | | | || __/ |
  243. \_____\___|_| |_|\__\___|_|
  244. */
  245. div#center{
  246. padding-top:$centerpaddingtop;
  247. padding-bottom: $centerpaddingbottom;
  248. .columns{
  249. padding: 0;
  250. }
  251. p{
  252. line-height:1.5;
  253. // display:inline-block;
  254. position:relative;
  255. @include fontnormal;
  256. span.stab{
  257. display:inline-block; position:relative;
  258. font-weight:bold;
  259. // &:after{
  260. // content: ""; height:0;
  261. // display: block; margin-top:-1em; //margin-bottom:.9em;
  262. // border-top:0.5em solid $maincolor;
  263. // // transition:border-color 0.3s ease-in;}
  264. // }
  265. }
  266. a{
  267. text-decoration: underline;
  268. }
  269. }
  270. /*
  271. * LIST PROJET
  272. */
  273. .projet-block{
  274. padding:0.7em 0.7em 2em;
  275. text-align: left;
  276. nav.categories{
  277. margin:0;
  278. ul{
  279. margin: 0;
  280. li{
  281. position: relative;
  282. display: inline-block;
  283. // line-height: $catRadius;
  284. min-width:$catRadius; height:$catRadius;
  285. margin-right: -0.2em;
  286. a{
  287. display: block;
  288. &:before{
  289. content:"";
  290. opacity: 1;
  291. position: relative;
  292. display:inline-block;
  293. border-width: 3px;
  294. border-style: solid;
  295. // line-height: $catRadius;
  296. width:$catRadius; height:$catRadius;
  297. border-radius: $catRadius/2;
  298. }
  299. &.tag-1:before{ border-color: $cat1;}
  300. &.tag-2:before{ border-color: $cat2;}
  301. &.tag-3:before{ border-color: $cat3;}
  302. &.tag-4:before{ border-color: $cat4;}
  303. &.tag-5:before{ border-color: $cat5;}
  304. &.tag-6:before{ border-color: $cat6;}
  305. &.tag-7:before{ border-color: $cat7;}
  306. &.tag-8:before{ border-color: $cat8;}
  307. span{
  308. position: absolute;
  309. z-index: -1;
  310. font-size: 0.7em;
  311. font-weight: 300;
  312. background-color: #fff;
  313. white-space: nowrap;
  314. opacity: 0;
  315. transition: opacity 0.3s ease-in-out;
  316. padding:0.2em 0.3em;
  317. width:0;
  318. }
  319. &:hover{
  320. span{ opacity: 1; width:auto; z-index: 10;}
  321. }
  322. }
  323. }
  324. }
  325. }
  326. a.image-link{display: block;}
  327. header{
  328. position:relative;
  329. // margin-top:0;padding-top:0;
  330. margin-top: -3em; padding-top: 3.5em; padding-bottom: 0.7em;
  331. // transition:background-color 0.3s ease-in;
  332. }
  333. header>*{
  334. font-family: $font; text-align: center;
  335. padding:0; margin:0;
  336. }
  337. h1{
  338. @include fontbold;
  339. color: $maincolor;
  340. margin:0.4em 0 0.5em 0;
  341. line-height: 1.6;
  342. height:auto;
  343. span.date{
  344. font-weight: 200;
  345. border-left: 1px solid $maincolor;
  346. // font-size: 0.7em;
  347. // line-height: 0.5;
  348. // &:before{
  349. // content: "|";
  350. padding:0.2em 0 0 0.5em;
  351. margin-left: 0.2em;
  352. // display: inline-block;
  353. // }
  354. }
  355. }
  356. h2{
  357. @include fontnormal;
  358. margin:0.4em 0 0;
  359. line-height: 1;
  360. a{color: $maincolor;}
  361. }
  362. &.projet-block-text{
  363. text-align: left;
  364. h1{margin-bottom: 0.3em;}
  365. h2{
  366. // font-weight:bold;
  367. @include fontbold;
  368. margin-bottom: 0.3em;
  369. }
  370. }
  371. &:hover{
  372. // header{
  373. // background-color: rgba($maincolor, 0.7); transition-timing-function: ease-out;
  374. // h1:after{border-top:0.5em solid #FFF;transition-timing-function: ease-out;}
  375. // }
  376. }
  377. }
  378. /*
  379. * PAGE PROJET
  380. */
  381. .projet{
  382. .row{margin:0;}
  383. h1{
  384. @include fontbold;
  385. margin:0; padding:0 0.7em; line-height: 1;
  386. display: inline-block;
  387. // &:after{
  388. // content: "";
  389. // display: block; margin-top:-.7em; margin-bottom:.7em;
  390. // border-top:0.5em solid $maincolor;
  391. // transition:border-color 0.3s ease-in;}
  392. }
  393. h2{@include fontnormal; margin:-0.2em 0 0.7em; line-height: 1; padding:0 0.7em;}
  394. // .block{
  395. // display: inline-block;
  396. // }
  397. p{padding:0 0.7em 0.7em; margin:0;}
  398. #images{
  399. // .row{margin:0;}
  400. .block{padding:0.7em;}
  401. }
  402. img{
  403. width:100%; max-width:100%;
  404. }
  405. }
  406. .default{
  407. >*{padding-left:0.7em;padding-right:0.7em;}
  408. }
  409. body.projet{
  410. nav.categories{
  411. ul.tags li a:hover span{
  412. text-decoration: underline;
  413. }
  414. }
  415. }
  416. /*
  417. * Catégories
  418. */
  419. nav.categories{
  420. margin: 1em 0;
  421. ul.tags{
  422. margin:0; padding:0; text-align:center;
  423. li{
  424. list-style: none; display:inline-block;
  425. margin:0 1em;
  426. a{
  427. display:block;
  428. // &:hover{text-decoration: underline;}
  429. }
  430. span{@include fontnormal;}
  431. &.active span{
  432. display:inline-block;
  433. position:relative;
  434. // font-weight: bold;
  435. @include fontbold;
  436. border-bottom: 1px solid #000;
  437. line-height: 0.2;
  438. // &:after{
  439. // content: ""; height:0;
  440. // display: block; margin-top:-0.2em; margin-bottom:0.2em;
  441. // border-top:0.5em solid $maincolor;}
  442. }
  443. }
  444. }
  445. }
  446. #diaporama{
  447. position:relative;
  448. height:20vw;
  449. margin:0 0 1.5em;
  450. >*{
  451. position:absolute; top:0; left:0;
  452. height:100%; width:100%;
  453. text-align: center;
  454. opacity:0;
  455. transition: opacity 0.2s ease-in;
  456. &.visible{opacity:1;}
  457. img{height:100%;}
  458. }
  459. }
  460. .client-block{
  461. margin:0 0 1em;
  462. padding:0.7em;
  463. h3{
  464. @include fontbold;
  465. line-height:0.6; display:inline-block; position:relative;
  466. margin:0; padding:0;
  467. // $maincolor overline
  468. // &:after{
  469. // content: "";
  470. // display: block; margin-top:-.5em; margin-bottom:.5em;
  471. // border-top:0.5em solid $maincolor;
  472. // transition:border-color 0.3s ease-in;
  473. // }
  474. }
  475. h4{
  476. margin:0;
  477. @include fontnormal;
  478. a:hover{text-decoration: underline;}
  479. }
  480. }
  481. }
  482. /*
  483. _ _ _
  484. (_) | | | |
  485. _ __ ___ ___ _ __ ___ _ __ ___ ___ _____ | | __ _ _ _ ___ _ _| |_
  486. | '__/ _ \/ __| '_ \ / _ \| '_ \/ __| \ \ / / _ \ | |/ _` | | | |/ _ \| | | | __|
  487. | | | __/\__ \ |_) | (_) | | | \__ \ |\ V / __/ | | (_| | |_| | (_) | |_| | |_
  488. |_| \___||___/ .__/ \___/|_| |_|___/_| \_/ \___| |_|\__,_|\__, |\___/ \__,_|\__|
  489. | | __/ |
  490. |_| |___/
  491. */
  492. @media #{$small-only}{
  493. header#top-bar{
  494. &:before{
  495. padding-bottom: $headerpaddingtopH*0.5;
  496. }
  497. #title-area{
  498. height:$titleareaH -3.1em;
  499. // padding-top: $headerpaddingtopH;
  500. h1{
  501. height:100%;
  502. min-height:($titleareaH - 3.1em)*0.8;
  503. a{display: block;
  504. height:$logoH - 3em;
  505. // height:100%;
  506. }
  507. }
  508. }
  509. &.reduced{
  510. #title-area{
  511. height:($titleareaH - 3.1em)*$titleReducedFactor;
  512. // overflow: hidden;
  513. }
  514. }
  515. .nav{
  516. position:absolute;
  517. top:$headerborderH+$headerpaddingtopH*0.5;
  518. height:auto;
  519. }
  520. #left-nav{left:0;}
  521. #right-nav{right:0;}
  522. }
  523. div#center{
  524. padding-top:$centerpaddingtop - 1.1em;
  525. padding-bottom: $centerpaddingbottom;
  526. }
  527. body.categories{
  528. a.projet-img{
  529. display:none;
  530. }
  531. }
  532. }
  533. /*
  534. __ _
  535. / _| | |
  536. | |_ ___ ___ | |_ ___ _ __
  537. | _/ _ \ / _ \| __/ _ \ '__|
  538. | || (_) | (_) | || __/ |
  539. |_| \___/ \___/ \__\___|_|
  540. */
  541. footer#bottom-bar{
  542. position:absolute; bottom:0;
  543. width:100%; height:$footerheight;
  544. background-color: $maincolor;
  545. color: white;
  546. text-align: center;
  547. padding:1em 0;
  548. // margin: 5vh 0 0;
  549. h1{
  550. @include fontbold; height:auto; display:inline-block; position:relative; margin:0;
  551. color: inherit;
  552. a{
  553. font-weight: inherit;
  554. color: inherit;
  555. }
  556. // &:after{
  557. // content: ""; height:0;
  558. // display: block; margin-top:-.9em; margin-bottom:1em;
  559. // border-top:0.5em solid #fff;
  560. // transition:border-color 0.3s ease-in;}
  561. }
  562. address{
  563. // font-size: 1em; font-weight: normal;
  564. @include fontnormal;
  565. margin:-0.7em 0 0; line-height: 1.1; font-style: normal;
  566. a{text-decoration: underline;}
  567. }
  568. }