styles.scss 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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.4;
  96. // @media screen and (min-width:$medium-breakpoint) {
  97. height:$titleareaH*0.74;
  98. // }
  99. // TODO: a terminer diminuer plus le logo sur mobile
  100. }
  101. }
  102. h1, h2{
  103. text-align: center;
  104. a{
  105. color: #000;
  106. }}
  107. .nav{
  108. padding:0 0.7em;
  109. position:relative;
  110. height:100%;
  111. ul{padding: 0; margin: 0;}
  112. li{list-style: none;}
  113. // @include breakpoint(medium) {
  114. @media screen and (min-width:$small-breakpoint) {
  115. .wrapper{padding-top: $titleareaH/2-.5em;}
  116. }
  117. }
  118. #left-nav{
  119. // margin-left: -0.1rem;
  120. a{@include fontbold;}
  121. a:hover{@include fontbold; text-decoration: underline;}
  122. }
  123. #right-nav{
  124. // margin-right: -0.1rem;
  125. text-align: right;
  126. h4{
  127. @include fontbold; margin:0; line-height: 1.6;
  128. a:hover{text-decoration: underline;}
  129. }
  130. ul{background-color: transparent;}
  131. li{
  132. line-height: 1;
  133. // &:not(.active){
  134. overflow: hidden; height:1px; transition: height 0.3s ease-in;
  135. // }
  136. a{
  137. display:block;
  138. @include fontnormal;
  139. }
  140. // &.active span{
  141. // display:inline-block;
  142. // position:relative;
  143. // &:after{
  144. // content: ""; height:0;
  145. // display: block; margin-top:-.7em; margin-bottom:.7em;
  146. // border-top:0.5em solid $green;}
  147. // }
  148. }
  149. &:hover{
  150. li{
  151. height:1.1em; transition: height 0.5s ease-out;
  152. &:hover span{
  153. // border-bottom: 1px solid #000;
  154. text-decoration: underline;
  155. }
  156. }
  157. }
  158. }
  159. }
  160. /*
  161. _____ _
  162. / ____| | |
  163. | | ___ _ __ | |_ ___ _ __
  164. | | / _ \ '_ \| __/ _ \ '__|
  165. | |___| __/ | | | || __/ |
  166. \_____\___|_| |_|\__\___|_|
  167. */
  168. div#center{
  169. padding-top:$centerpaddingtop;
  170. padding-bottom: $centerpaddingbottom;
  171. .columns{
  172. padding: 0;
  173. }
  174. p{
  175. @include fontnormal;
  176. span.stab{
  177. display:inline-block; position:relative;
  178. font-weight:bold;
  179. &:after{
  180. content: ""; height:0;
  181. display: block; margin-top:-1em; //margin-bottom:.9em;
  182. border-top:0.5em solid $green;
  183. // transition:border-color 0.3s ease-in;}
  184. }
  185. }
  186. }
  187. /*
  188. * LIST PROJET
  189. */
  190. .projet-block{
  191. padding:0.7em;
  192. text-align: center;
  193. a{display: block;}
  194. header{
  195. position:relative;
  196. // margin-top:0;padding-top:0;
  197. margin-top: -3em; padding-top: 3.5em; padding-bottom: 0.7em;
  198. transition:background-color 0.3s ease-in;}
  199. header>*{
  200. font-family: $font; text-align: center;
  201. padding:0; margin:0;}
  202. h1{
  203. // font-size: 1em; font-weight: bold;
  204. @include fontbold;
  205. margin:0; line-height: 1; height:auto;
  206. display:inline-block; position:relative;
  207. &:after{
  208. content: ""; height:0;
  209. display: block; margin-top:-.7em; margin-bottom:.7em;
  210. border-top:0.5em solid $green;
  211. transition:border-color 0.3s ease-in;}
  212. }
  213. h2{@include fontnormal; margin:-0.4em 0 0; line-height: 1;}
  214. &.projet-block-text{
  215. text-align: left;
  216. h1{margin-bottom: 0.3em;}
  217. h2{
  218. // font-weight:bold;
  219. @include fontbold;
  220. margin-bottom: 0.3em;
  221. }
  222. }
  223. &:hover{
  224. header{
  225. background-color: rgba($green, 0.7); transition-timing-function: ease-out;
  226. h1:after{border-top:0.5em solid #FFF;transition-timing-function: ease-out;}
  227. }
  228. }
  229. }
  230. /*
  231. * PAGE PROJET
  232. */
  233. .projet{
  234. .row{margin:0;}
  235. h1{
  236. @include fontbold;
  237. line-height:0.6; display:inline-block; position:relative;
  238. margin:0; padding:0 0.7em;
  239. // $green overline
  240. &:after{
  241. content: "";
  242. display: block; margin-top:-.5em; margin-bottom:.5em;
  243. border-top:0.5em solid $green;
  244. transition:border-color 0.3s ease-in;}
  245. }
  246. h2{@include fontnormal; margin:0; padding:0 0.7em;}
  247. // .block{
  248. // display: inline-block;
  249. // }
  250. p{padding:0.7em; margin:0;}
  251. #images{
  252. // .row{margin:0;}
  253. .block{padding:0.7em;}
  254. }
  255. img{
  256. width:100%; max-width:100%;
  257. }
  258. }
  259. body.projet{
  260. nav.categories{
  261. ul.tags li a:hover span{
  262. text-decoration: underline;
  263. }
  264. }
  265. }
  266. /*
  267. * Catégories
  268. */
  269. nav.categories{
  270. margin: 1em 0;
  271. ul.tags{
  272. margin:0; padding:0; text-align:center;
  273. li{
  274. list-style: none; display:inline-block;
  275. margin:0 1em;
  276. a{display:block;}
  277. span{@include fontnormal;}
  278. &.active span{
  279. display:inline-block;
  280. position:relative;
  281. // font-weight: bold;
  282. @include fontbold;
  283. border-bottom: 1px solid #000;
  284. line-height: 0.2;
  285. &:after{
  286. content: ""; height:0;
  287. display: block; margin-top:-0.2em; margin-bottom:0.2em;
  288. border-top:0.5em solid $green;}
  289. }
  290. }
  291. }
  292. }
  293. #diaporama{
  294. position:relative;
  295. height:20vw;
  296. margin:0 0 1.5em;
  297. >*{
  298. position:absolute; top:0; left:0;
  299. height:100%; width:100%;
  300. text-align: center;
  301. opacity:0;
  302. transition: opacity 0.2s ease-in;
  303. &.visible{opacity:1;}
  304. img{height:100%;}
  305. }
  306. }
  307. .client-block{
  308. margin:0 0 1em;
  309. h3{
  310. @include fontbold;
  311. line-height:0.6; display:inline-block; position:relative;
  312. margin:0; padding:0;
  313. // $green overline
  314. &:after{
  315. content: "";
  316. display: block; margin-top:-.5em; margin-bottom:.5em;
  317. border-top:0.5em solid $green;
  318. transition:border-color 0.3s ease-in;
  319. }
  320. }
  321. h4{
  322. margin:0;
  323. @include fontnormal;
  324. }
  325. }
  326. }
  327. /*
  328. __ _
  329. / _| | |
  330. | |_ ___ ___ | |_ ___ _ __
  331. | _/ _ \ / _ \| __/ _ \ '__|
  332. | || (_) | (_) | || __/ |
  333. |_| \___/ \___/ \__\___|_|
  334. */
  335. footer#bottom-bar{
  336. position:absolute; bottom:0;
  337. width:100%; height:$footerheight;
  338. background-color: $green;
  339. text-align: center;
  340. padding:1em 0;
  341. // margin: 5vh 0 0;
  342. h1{
  343. @include fontbold; height:auto; display:inline-block; position:relative; margin:0;
  344. a{
  345. font-weight: inherit;
  346. }
  347. &:after{
  348. content: ""; height:0;
  349. display: block; margin-top:-.9em; margin-bottom:1em;
  350. border-top:0.5em solid #fff;
  351. transition:border-color 0.3s ease-in;}
  352. }
  353. address{
  354. // font-size: 1em; font-weight: normal;
  355. @include fontnormal;
  356. margin:-0.7em 0 0; line-height: 1.1; font-style: normal;
  357. a{text-decoration: underline;}
  358. }
  359. }