styles.scss 10 KB

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