styles.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  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. $green: rgb(0, 255, 0);
  8. $font: "CiutadellaRounded", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  9. @mixin fontbold{
  10. // TODO : media query
  11. font: $font; font-size:0.87em; font-weight:bold;
  12. }
  13. @mixin fontnormal{
  14. // TODO : media query
  15. font: $font; font-size:0.8em; font-weight:normal;
  16. }
  17. body{font-family: $font; letter-spacing: 1px;}
  18. h1,h2,h3,h4,h5,h6{font-family: $font;}
  19. a, a:hover{color:inherit;}
  20. ul,li{padding:0; margin:0; list-style: none;}
  21. // @media $large-up {
  22. // .row.fullwidth{width:1200px;}
  23. // }
  24. #container{
  25. display: block; position: relative;
  26. min-height: 100vh;
  27. }
  28. @media #{$medium-up}{
  29. .row{width:41rem;}
  30. }
  31. @media #{$large-up}{
  32. .row{width:62rem;}
  33. }
  34. @media #{$xlarge-up}{
  35. .row{width:83rem;max-width:83rem;}
  36. }
  37. // @media #{$xxlarge-up}{
  38. // .row{width:125rem;max-width:125rem;}
  39. // }
  40. /*
  41. _ _ _
  42. | | | | | |
  43. | |__| | ___ __ _ __| | ___ _ __
  44. | __ |/ _ \/ _` |/ _` |/ _ \ '__|
  45. | | | | __/ (_| | (_| | __/ |
  46. |_| |_|\___|\__,_|\__,_|\___|_|
  47. */
  48. $headerborderH: 0.3em;
  49. $headerpaddingtopH:0.9em;
  50. $logoH: 9.3em;
  51. $logo_mt:0.3em;
  52. $logo_mb:0.5em;
  53. $titleareaH: $logoH+$logo_mb+$logo_mt;
  54. $titleReducedFactor:0.7555;
  55. $titleReducedFactorSmall:0.5;
  56. $centerpaddingtop: $headerborderH+$headerpaddingtopH+$titleareaH+1em;
  57. $footerheight: 5em;
  58. $centerpaddingbottom:$footerheight+1em;
  59. header#top-bar{
  60. position: fixed; top:0;
  61. width:100%;
  62. // TODO: flou sous le haeder
  63. z-index: 9;
  64. &:before{
  65. content:"";
  66. background: transparent!important;
  67. border-top: $headerborderH solid $green;
  68. display: block;
  69. padding-bottom: $headerpaddingtopH;
  70. }
  71. >.bg{
  72. background-color: rgba(255, 255, 255, 0.95);
  73. >.row{
  74. position:relative; display:block;
  75. }
  76. }
  77. #title-area{
  78. // overflow: hidden;
  79. position:relative;
  80. height:$titleareaH;
  81. transition: height 0.4s ease-in-out;
  82. h1{
  83. font-size: 1em; margin: 0;
  84. height:100%;
  85. min-height:$titleareaH*0.8;
  86. overflow: hidden;
  87. position: relative;
  88. a{display: block;
  89. // height:100%;
  90. height:$logoH;
  91. margin:$logo_mt 0 $logo_mb;
  92. // height:$titleareaH;
  93. background: transparent url("../images/logo.png") no-repeat center center;
  94. background-size: contain;}
  95. }
  96. h1 span, h2{
  97. position:absolute; margin-top:-3000px; height:0;
  98. }
  99. }
  100. &.reduced{
  101. #title-area{
  102. height:$titleareaH*$titleReducedFactor;
  103. // @media #{$medium-up}{
  104. // height:$titleareaH*$titleReducedFactorSmall;
  105. // }
  106. }
  107. }
  108. h1, h2{
  109. text-align: center;
  110. a{
  111. color: #000;
  112. }}
  113. .nav{
  114. padding:0 0.7em;
  115. position:relative;
  116. height:100%;
  117. ul{padding: 0; margin: 0;}
  118. li{list-style: none;}
  119. // @include breakpoint(medium) {
  120. @media screen and (min-width:$small-breakpoint) {
  121. .wrapper{padding-top: $titleareaH/2-.5em;}
  122. }
  123. }
  124. #left-nav{
  125. // margin-left: -0.1rem;
  126. line-height:0.5;
  127. a{@include fontbold;}
  128. a:hover{@include fontbold; text-decoration: underline;}
  129. }
  130. #right-nav{
  131. // margin-right: -0.1rem;
  132. text-align: right;
  133. h4{
  134. @include fontbold; margin:0; line-height: 1.9;
  135. a:hover{text-decoration: underline;}
  136. }
  137. ul{background-color: transparent;}
  138. li{
  139. line-height: 1;
  140. // &:not(.active){
  141. overflow: hidden; height:0.01px; transition: height 0.3s ease-in;
  142. // }
  143. a{
  144. display:block;
  145. @include fontnormal;
  146. }
  147. // &.active span{
  148. // display:inline-block;
  149. // position:relative;
  150. // &:after{
  151. // content: ""; height:0;
  152. // display: block; margin-top:-.7em; margin-bottom:.7em;
  153. // border-top:0.5em solid $green;}
  154. // }
  155. }
  156. @media #{$medium-up}{
  157. &:hover{
  158. li{
  159. height:1.1em; transition: height 0.5s ease-out;
  160. &:hover span{
  161. // border-bottom: 1px solid #000;
  162. text-decoration: underline;
  163. }
  164. }
  165. }
  166. }
  167. }
  168. }
  169. /*
  170. _____ _
  171. / ____| | |
  172. | | ___ _ __ | |_ ___ _ __
  173. | | / _ \ '_ \| __/ _ \ '__|
  174. | |___| __/ | | | || __/ |
  175. \_____\___|_| |_|\__\___|_|
  176. */
  177. div#center{
  178. padding-top:$centerpaddingtop;
  179. padding-bottom: $centerpaddingbottom;
  180. .columns{
  181. padding: 0;
  182. }
  183. p{
  184. line-height:1.5;
  185. // display:inline-block;
  186. position:relative;
  187. @include fontnormal;
  188. span.stab{
  189. display:inline-block; position:relative;
  190. font-weight:bold;
  191. &:after{
  192. content: ""; height:0;
  193. display: block; margin-top:-1em; //margin-bottom:.9em;
  194. border-top:0.5em solid $green;
  195. // transition:border-color 0.3s ease-in;}
  196. }
  197. }
  198. a{
  199. text-decoration: underline;
  200. }
  201. }
  202. /*
  203. * LIST PROJET
  204. */
  205. .projet-block{
  206. padding:0.7em;
  207. text-align: center;
  208. a{display: block;}
  209. header{
  210. position:relative;
  211. // margin-top:0;padding-top:0;
  212. margin-top: -3em; padding-top: 3.5em; padding-bottom: 0.7em;
  213. transition:background-color 0.3s ease-in;}
  214. header>*{
  215. font-family: $font; text-align: center;
  216. padding:0; margin:0;}
  217. h1{
  218. // font-size: 1em; font-weight: bold;
  219. @include fontbold;
  220. margin:0; line-height: 1; height:auto;
  221. display:inline-block; position:relative;
  222. &:after{
  223. content: ""; height:0;
  224. display: block; margin-top:-.7em; margin-bottom:.7em;
  225. border-top:0.5em solid $green;
  226. transition:border-color 0.3s ease-in;}
  227. }
  228. h2{@include fontnormal; margin:-0.4em 0 0; line-height: 1;}
  229. &.projet-block-text{
  230. text-align: left;
  231. h1{margin-bottom: 0.3em;}
  232. h2{
  233. // font-weight:bold;
  234. @include fontbold;
  235. margin-bottom: 0.3em;
  236. }
  237. }
  238. &:hover{
  239. header{
  240. background-color: rgba($green, 0.7); transition-timing-function: ease-out;
  241. h1:after{border-top:0.5em solid #FFF;transition-timing-function: ease-out;}
  242. }
  243. }
  244. }
  245. /*
  246. * PAGE PROJET
  247. */
  248. .projet{
  249. .row{margin:0;}
  250. h1{
  251. @include fontbold;
  252. margin:0; padding:0 0.7em; line-height: 1;
  253. display: inline-block;
  254. &:after{
  255. content: "";
  256. display: block; margin-top:-.7em; margin-bottom:.7em;
  257. border-top:0.5em solid $green;
  258. transition:border-color 0.3s ease-in;}
  259. }
  260. h2{@include fontnormal; margin:-0.2em 0 0.7em; line-height: 1; padding:0 0.7em;}
  261. // .block{
  262. // display: inline-block;
  263. // }
  264. p{padding:0 0.7em 0.7em; margin:0;}
  265. #images{
  266. // .row{margin:0;}
  267. .block{padding:0.7em;}
  268. }
  269. img{
  270. width:100%; max-width:100%;
  271. }
  272. }
  273. .default{
  274. >*{padding-left:0.7em;padding-right:0.7em;}
  275. }
  276. body.projet{
  277. nav.categories{
  278. ul.tags li a:hover span{
  279. text-decoration: underline;
  280. }
  281. }
  282. }
  283. /*
  284. * Catégories
  285. */
  286. nav.categories{
  287. margin: 1em 0;
  288. ul.tags{
  289. margin:0; padding:0; text-align:center;
  290. li{
  291. list-style: none; display:inline-block;
  292. margin:0 1em;
  293. a{
  294. display:block;
  295. // &:hover{text-decoration: underline;}
  296. }
  297. span{@include fontnormal;}
  298. &.active span{
  299. display:inline-block;
  300. position:relative;
  301. // font-weight: bold;
  302. @include fontbold;
  303. border-bottom: 1px solid #000;
  304. line-height: 0.2;
  305. &:after{
  306. content: ""; height:0;
  307. display: block; margin-top:-0.2em; margin-bottom:0.2em;
  308. border-top:0.5em solid $green;}
  309. }
  310. }
  311. }
  312. }
  313. #diaporama{
  314. position:relative;
  315. height:20vw;
  316. margin:0 0 1.5em;
  317. >*{
  318. position:absolute; top:0; left:0;
  319. height:100%; width:100%;
  320. text-align: center;
  321. opacity:0;
  322. transition: opacity 0.2s ease-in;
  323. &.visible{opacity:1;}
  324. img{height:100%;}
  325. }
  326. }
  327. .client-block{
  328. margin:0 0 1em;
  329. padding:0.7em;
  330. h3{
  331. @include fontbold;
  332. line-height:0.6; display:inline-block; position:relative;
  333. margin:0; padding:0;
  334. // $green overline
  335. &:after{
  336. content: "";
  337. display: block; margin-top:-.5em; margin-bottom:.5em;
  338. border-top:0.5em solid $green;
  339. transition:border-color 0.3s ease-in;
  340. }
  341. }
  342. h4{
  343. margin:0;
  344. @include fontnormal;
  345. a:hover{text-decoration: underline;}
  346. }
  347. }
  348. }
  349. /*
  350. _ _ _
  351. (_) | | | |
  352. _ __ ___ ___ _ __ ___ _ __ ___ ___ _____ | | __ _ _ _ ___ _ _| |_
  353. | '__/ _ \/ __| '_ \ / _ \| '_ \/ __| \ \ / / _ \ | |/ _` | | | |/ _ \| | | | __|
  354. | | | __/\__ \ |_) | (_) | | | \__ \ |\ V / __/ | | (_| | |_| | (_) | |_| | |_
  355. |_| \___||___/ .__/ \___/|_| |_|___/_| \_/ \___| |_|\__,_|\__, |\___/ \__,_|\__|
  356. | | __/ |
  357. |_| |___/
  358. */
  359. @media #{$small-only}{
  360. header#top-bar{
  361. &:before{
  362. padding-bottom: $headerpaddingtopH*0.5;
  363. }
  364. #title-area{
  365. height:$titleareaH -3.1em;
  366. // padding-top: $headerpaddingtopH;
  367. h1{
  368. height:100%;
  369. min-height:($titleareaH - 3.1em)*0.8;
  370. a{display: block;
  371. height:$logoH - 3em;
  372. // height:100%;
  373. }
  374. }
  375. }
  376. &.reduced{
  377. #title-area{
  378. height:($titleareaH - 3.1em)*$titleReducedFactor;
  379. // overflow: hidden;
  380. }
  381. }
  382. .nav{
  383. position:absolute;
  384. top:$headerborderH+$headerpaddingtopH*0.5;
  385. height:auto;
  386. }
  387. #left-nav{left:0;}
  388. #right-nav{right:0;}
  389. }
  390. div#center{
  391. padding-top:$centerpaddingtop - 1.1em;
  392. padding-bottom: $centerpaddingbottom;
  393. }
  394. body.categories{
  395. a.projet-img{
  396. display:none;
  397. }
  398. }
  399. }
  400. /*
  401. __ _
  402. / _| | |
  403. | |_ ___ ___ | |_ ___ _ __
  404. | _/ _ \ / _ \| __/ _ \ '__|
  405. | || (_) | (_) | || __/ |
  406. |_| \___/ \___/ \__\___|_|
  407. */
  408. footer#bottom-bar{
  409. position:absolute; bottom:0;
  410. width:100%; height:$footerheight;
  411. background-color: $green;
  412. text-align: center;
  413. padding:1em 0;
  414. // margin: 5vh 0 0;
  415. h1{
  416. @include fontbold; height:auto; display:inline-block; position:relative; margin:0;
  417. a{
  418. font-weight: inherit;
  419. }
  420. &:after{
  421. content: ""; height:0;
  422. display: block; margin-top:-.9em; margin-bottom:1em;
  423. border-top:0.5em solid #fff;
  424. transition:border-color 0.3s ease-in;}
  425. }
  426. address{
  427. // font-size: 1em; font-weight: normal;
  428. @include fontnormal;
  429. margin:-0.7em 0 0; line-height: 1.1; font-style: normal;
  430. a{text-decoration: underline;}
  431. }
  432. }