styles.scss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. @import '../bower_components/foundation/scss/normalize.scss';
  2. $include-xl-html-grid-classes: true;
  3. @import '../bower_components/foundation/scss/foundation.scss';
  4. @import "_settings.scss";
  5. // $include-html-grid-classes: $include-html-classes;
  6. @import '../bower_components/foundation/scss/foundation/components/_global.scss';
  7. @import '../bower_components/foundation/scss/foundation/components/_grid.scss';
  8. $column-gutter: rem-calc(15);
  9. $green: rgb(0, 255, 0);
  10. $font: "CiutadellaRounded", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  11. @mixin fontbold{
  12. // TODO : media query
  13. font: $font; font-size:0.87em; font-weight:bold;
  14. }
  15. @mixin fontnormal{
  16. // TODO : media query
  17. font: $font; font-size:0.8em; font-weight:normal;
  18. }
  19. body{font-family: $font; letter-spacing: 1px;}
  20. h1,h2,h3,h4,h5,h6{font-family: $font;}
  21. a, a:hover{color:inherit;}
  22. // @media $large-up {
  23. // .row.fullwidth{width:1200px;}
  24. // }
  25. #container{
  26. display: block; position: relative;
  27. min-height: 100vh;
  28. }
  29. @media #{$medium-up}{
  30. .row{width:41rem;}
  31. }
  32. @media #{$large-up}{
  33. .row{width:62rem;}
  34. }
  35. @media #{$xlarge-up}{
  36. .row{width:83rem;max-width:83rem;}
  37. }
  38. // @media #{$xxlarge-up}{
  39. // .row{width:125rem;max-width:125rem;}
  40. // }
  41. /*
  42. _ _ _
  43. | | | | | |
  44. | |__| | ___ __ _ __| | ___ _ __
  45. | __ |/ _ \/ _` |/ _` |/ _ \ '__|
  46. | | | | __/ (_| | (_| | __/ |
  47. |_| |_|\___|\__,_|\__,_|\___|_|
  48. */
  49. $headerborderH: 0.3em;
  50. $headerpaddingtopH:1.3em;
  51. $titleareaH: 10em;
  52. $titleareaHReduced: 5em;
  53. $centerpaddingtop: $headerborderH+$headerpaddingtopH+$titleareaH+1em;
  54. $footerheight: 5em;
  55. $centerpaddingbottom:$footerheight+1em;
  56. header#top-bar{
  57. position: fixed; top:0;
  58. width:100%;
  59. // TODO: flou sous le haeder
  60. z-index: 9;
  61. &:before{
  62. content:"";
  63. background: transparent!important;
  64. border-top: $headerborderH solid $green;
  65. display: block;
  66. padding-bottom: $headerpaddingtopH;
  67. }
  68. >.bg{
  69. background-color: rgba(255, 255, 255, 0.95);
  70. }
  71. >.row{
  72. position:relative; display:block;
  73. }
  74. #title-area{
  75. // overflow: hidden;
  76. position:relative;
  77. height:$titleareaH;
  78. padding:0.2em 0 0.7em;
  79. transition: height 0.4s ease-in-out;
  80. h1{
  81. font-size: 1em; margin: 0;
  82. height:100%; min-height:$titleareaH - 2.4em;
  83. overflow: hidden;
  84. a{display: block;
  85. // height:100%;
  86. height:$titleareaH - 0.9em;
  87. background: transparent url("../images/logo.png") no-repeat center center;
  88. background-size: contain;}
  89. }
  90. h1 span, h2{
  91. position:absolute; margin-left:-3000px;
  92. }
  93. }
  94. &.reduced{
  95. #title-area{
  96. // height:$titleareaH*0.4;
  97. // @media screen and (min-width:$medium-breakpoint) {
  98. height:$titleareaH*0.74;
  99. // }
  100. // TODO: a terminer diminuer plus le logo sur mobile
  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:1px; 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. &:hover{
  151. li{
  152. height:1.1em; transition: height 0.5s ease-out;
  153. &:hover span{
  154. // border-bottom: 1px solid #000;
  155. text-decoration: underline;
  156. }
  157. }
  158. }
  159. }
  160. }
  161. /*
  162. _____ _
  163. / ____| | |
  164. | | ___ _ __ | |_ ___ _ __
  165. | | / _ \ '_ \| __/ _ \ '__|
  166. | |___| __/ | | | || __/ |
  167. \_____\___|_| |_|\__\___|_|
  168. */
  169. div#center{
  170. padding-top:$centerpaddingtop;
  171. padding-bottom: $centerpaddingbottom;
  172. .columns{
  173. padding: 0;
  174. }
  175. p{
  176. @include fontnormal;
  177. span.stab{
  178. display:inline-block; position:relative;
  179. font-weight:bold;
  180. &:after{
  181. content: ""; height:0;
  182. display: block; margin-top:-1em; //margin-bottom:.9em;
  183. border-top:0.5em solid $green;
  184. // transition:border-color 0.3s ease-in;}
  185. }
  186. }
  187. }
  188. /*
  189. * LIST PROJET
  190. */
  191. .projet-block{
  192. padding:0.7em;
  193. text-align: center;
  194. a{display: block;}
  195. header{
  196. position:relative;
  197. // margin-top:0;padding-top:0;
  198. margin-top: -3em; padding-top: 3.5em; padding-bottom: 0.7em;
  199. transition:background-color 0.3s ease-in;}
  200. header>*{
  201. font-family: $font; text-align: center;
  202. padding:0; margin:0;}
  203. h1{
  204. // font-size: 1em; font-weight: bold;
  205. @include fontbold;
  206. margin:0; line-height: 1; height:auto;
  207. display:inline-block; position:relative;
  208. &:after{
  209. content: ""; height:0;
  210. display: block; margin-top:-.7em; margin-bottom:.7em;
  211. border-top:0.5em solid $green;
  212. transition:border-color 0.3s ease-in;}
  213. }
  214. h2{@include fontnormal; margin:-0.4em 0 0; line-height: 1;}
  215. &.projet-block-text{
  216. text-align: left;
  217. h1{margin-bottom: 0.3em;}
  218. h2{
  219. // font-weight:bold;
  220. @include fontbold;
  221. margin-bottom: 0.3em;
  222. }
  223. }
  224. &:hover{
  225. header{
  226. background-color: rgba($green, 0.7); transition-timing-function: ease-out;
  227. h1:after{border-top:0.5em solid #FFF;transition-timing-function: ease-out;}
  228. }
  229. }
  230. }
  231. /*
  232. * PAGE PROJET
  233. */
  234. .projet{
  235. .row{margin:0;}
  236. h1{
  237. // font-family: $font; font-size: 1.05em; font-weight: bold;
  238. @include fontbold;
  239. line-height:0.6; display:inline-block; position:relative;
  240. margin:0; padding:0 0.7em;
  241. // $green overline
  242. &:after{
  243. content: "";
  244. display: block; margin-top:-.5em; margin-bottom:.5em;
  245. border-top:0.5em solid $green;
  246. transition:border-color 0.3s ease-in;}
  247. }
  248. h2{@include fontnormal; margin:0; padding:0 0.7em;}
  249. // .block{
  250. // display: inline-block;
  251. // }
  252. p{padding:0.7em; margin:0;}
  253. #images{
  254. // .row{margin:0;}
  255. .block{padding:0.7em;}
  256. }
  257. img{
  258. width:100%; max-width:100%;
  259. }
  260. }
  261. body.projet{
  262. nav.categories{
  263. ul.tags li a:hover span{
  264. text-decoration: underline;
  265. }
  266. }
  267. }
  268. /*
  269. * Catégories
  270. */
  271. nav.categories{
  272. margin: 1em 0;
  273. ul.tags{
  274. margin:0; padding:0; text-align:center;
  275. li{
  276. list-style: none; display:inline-block;
  277. margin:0 1em;
  278. a{display:block;}
  279. span{@include fontnormal;}
  280. &.active span{
  281. display:inline-block;
  282. position:relative;
  283. // font-weight: bold;
  284. @include fontbold;
  285. border-bottom: 1px solid #000;
  286. line-height: 0.2;
  287. &:after{
  288. content: ""; height:0;
  289. display: block; margin-top:-0.2em; margin-bottom:0.2em;
  290. border-top:0.5em solid $green;}
  291. }
  292. }
  293. }
  294. }
  295. #diaporama{
  296. position:relative;
  297. height:20vw;
  298. >*{
  299. position:absolute; top:0; left:0;
  300. height:100%; width:100%;
  301. text-align: center;
  302. opacity:0;
  303. transition: opacity 0.2s ease-in;
  304. &.visible{opacity:1;}
  305. img{height:100%;}
  306. }
  307. }
  308. }
  309. /*
  310. __ _
  311. / _| | |
  312. | |_ ___ ___ | |_ ___ _ __
  313. | _/ _ \ / _ \| __/ _ \ '__|
  314. | || (_) | (_) | || __/ |
  315. |_| \___/ \___/ \__\___|_|
  316. */
  317. footer#bottom-bar{
  318. position:absolute; bottom:0;
  319. width:100%; height:$footerheight;
  320. background-color: $green;
  321. text-align: center;
  322. padding:1em 0;
  323. // margin: 5vh 0 0;
  324. h1{
  325. @include fontbold; height:auto; display:inline-block; position:relative; margin:0;
  326. a{
  327. font-weight: inherit;
  328. }
  329. &:after{
  330. content: ""; height:0;
  331. display: block; margin-top:-.9em; margin-bottom:1em;
  332. border-top:0.5em solid #fff;
  333. transition:border-color 0.3s ease-in;}
  334. }
  335. address{
  336. // font-size: 1em; font-weight: normal;
  337. @include fontnormal;
  338. margin:-0.7em 0 0; line-height: 1.1; font-style: normal;
  339. a{text-decoration: underline;}
  340. }
  341. }