styles.scss 10 KB

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