styles.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  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. $maincolor: #5b2d87;
  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 $maincolor;
  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 $maincolor;}
  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 $maincolor;
  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: left;
  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: left;
  216. padding:0; margin:0;}
  217. h1{
  218. // font-size: 1em; font-weight: bold;
  219. @include fontbold;
  220. color: $maincolor;
  221. margin:0; line-height: 1; height:auto;
  222. display:inline-block; position:relative;
  223. // &:after{
  224. // content: ""; height:0;
  225. // display: block; margin-top:-.7em; margin-bottom:.7em;
  226. // // border-top:0.5em solid $maincolor;
  227. // transition:border-color 0.3s ease-in;}
  228. }
  229. h2{@include fontnormal; margin:-0.4em 0 0; line-height: 1;}
  230. &.projet-block-text{
  231. text-align: left;
  232. h1{margin-bottom: 0.3em;}
  233. h2{
  234. // font-weight:bold;
  235. @include fontbold;
  236. margin-bottom: 0.3em;
  237. }
  238. }
  239. &:hover{
  240. // header{
  241. // background-color: rgba($maincolor, 0.7); transition-timing-function: ease-out;
  242. // h1:after{border-top:0.5em solid #FFF;transition-timing-function: ease-out;}
  243. // }
  244. }
  245. }
  246. /*
  247. * PAGE PROJET
  248. */
  249. .projet{
  250. .row{margin:0;}
  251. h1{
  252. @include fontbold;
  253. margin:0; padding:0 0.7em; line-height: 1;
  254. display: inline-block;
  255. // &:after{
  256. // content: "";
  257. // display: block; margin-top:-.7em; margin-bottom:.7em;
  258. // border-top:0.5em solid $maincolor;
  259. // transition:border-color 0.3s ease-in;}
  260. }
  261. h2{@include fontnormal; margin:-0.2em 0 0.7em; line-height: 1; padding:0 0.7em;}
  262. // .block{
  263. // display: inline-block;
  264. // }
  265. p{padding:0 0.7em 0.7em; margin:0;}
  266. #images{
  267. // .row{margin:0;}
  268. .block{padding:0.7em;}
  269. }
  270. img{
  271. width:100%; max-width:100%;
  272. }
  273. }
  274. .default{
  275. >*{padding-left:0.7em;padding-right:0.7em;}
  276. }
  277. body.projet{
  278. nav.categories{
  279. ul.tags li a:hover span{
  280. text-decoration: underline;
  281. }
  282. }
  283. }
  284. /*
  285. * Catégories
  286. */
  287. nav.categories{
  288. margin: 1em 0;
  289. ul.tags{
  290. margin:0; padding:0; text-align:center;
  291. li{
  292. list-style: none; display:inline-block;
  293. margin:0 1em;
  294. a{
  295. display:block;
  296. // &:hover{text-decoration: underline;}
  297. }
  298. span{@include fontnormal;}
  299. &.active span{
  300. display:inline-block;
  301. position:relative;
  302. // font-weight: bold;
  303. @include fontbold;
  304. border-bottom: 1px solid #000;
  305. line-height: 0.2;
  306. // &:after{
  307. // content: ""; height:0;
  308. // display: block; margin-top:-0.2em; margin-bottom:0.2em;
  309. // border-top:0.5em solid $maincolor;}
  310. }
  311. }
  312. }
  313. }
  314. #diaporama{
  315. position:relative;
  316. height:20vw;
  317. margin:0 0 1.5em;
  318. >*{
  319. position:absolute; top:0; left:0;
  320. height:100%; width:100%;
  321. text-align: center;
  322. opacity:0;
  323. transition: opacity 0.2s ease-in;
  324. &.visible{opacity:1;}
  325. img{height:100%;}
  326. }
  327. }
  328. .client-block{
  329. margin:0 0 1em;
  330. padding:0.7em;
  331. h3{
  332. @include fontbold;
  333. line-height:0.6; display:inline-block; position:relative;
  334. margin:0; padding:0;
  335. // $maincolor overline
  336. // &:after{
  337. // content: "";
  338. // display: block; margin-top:-.5em; margin-bottom:.5em;
  339. // border-top:0.5em solid $maincolor;
  340. // transition:border-color 0.3s ease-in;
  341. // }
  342. }
  343. h4{
  344. margin:0;
  345. @include fontnormal;
  346. a:hover{text-decoration: underline;}
  347. }
  348. }
  349. }
  350. /*
  351. _ _ _
  352. (_) | | | |
  353. _ __ ___ ___ _ __ ___ _ __ ___ ___ _____ | | __ _ _ _ ___ _ _| |_
  354. | '__/ _ \/ __| '_ \ / _ \| '_ \/ __| \ \ / / _ \ | |/ _` | | | |/ _ \| | | | __|
  355. | | | __/\__ \ |_) | (_) | | | \__ \ |\ V / __/ | | (_| | |_| | (_) | |_| | |_
  356. |_| \___||___/ .__/ \___/|_| |_|___/_| \_/ \___| |_|\__,_|\__, |\___/ \__,_|\__|
  357. | | __/ |
  358. |_| |___/
  359. */
  360. @media #{$small-only}{
  361. header#top-bar{
  362. &:before{
  363. padding-bottom: $headerpaddingtopH*0.5;
  364. }
  365. #title-area{
  366. height:$titleareaH -3.1em;
  367. // padding-top: $headerpaddingtopH;
  368. h1{
  369. height:100%;
  370. min-height:($titleareaH - 3.1em)*0.8;
  371. a{display: block;
  372. height:$logoH - 3em;
  373. // height:100%;
  374. }
  375. }
  376. }
  377. &.reduced{
  378. #title-area{
  379. height:($titleareaH - 3.1em)*$titleReducedFactor;
  380. // overflow: hidden;
  381. }
  382. }
  383. .nav{
  384. position:absolute;
  385. top:$headerborderH+$headerpaddingtopH*0.5;
  386. height:auto;
  387. }
  388. #left-nav{left:0;}
  389. #right-nav{right:0;}
  390. }
  391. div#center{
  392. padding-top:$centerpaddingtop - 1.1em;
  393. padding-bottom: $centerpaddingbottom;
  394. }
  395. body.categories{
  396. a.projet-img{
  397. display:none;
  398. }
  399. }
  400. }
  401. /*
  402. __ _
  403. / _| | |
  404. | |_ ___ ___ | |_ ___ _ __
  405. | _/ _ \ / _ \| __/ _ \ '__|
  406. | || (_) | (_) | || __/ |
  407. |_| \___/ \___/ \__\___|_|
  408. */
  409. footer#bottom-bar{
  410. position:absolute; bottom:0;
  411. width:100%; height:$footerheight;
  412. background-color: $maincolor;
  413. color: white;
  414. text-align: center;
  415. padding:1em 0;
  416. // margin: 5vh 0 0;
  417. h1{
  418. @include fontbold; height:auto; display:inline-block; position:relative; margin:0;
  419. color: inherit;
  420. a{
  421. font-weight: inherit;
  422. color: inherit;
  423. }
  424. // &:after{
  425. // content: ""; height:0;
  426. // display: block; margin-top:-.9em; margin-bottom:1em;
  427. // border-top:0.5em solid #fff;
  428. // transition:border-color 0.3s ease-in;}
  429. }
  430. address{
  431. // font-size: 1em; font-weight: normal;
  432. @include fontnormal;
  433. margin:-0.7em 0 0; line-height: 1.1; font-style: normal;
  434. a{text-decoration: underline;}
  435. }
  436. }