_start.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. *{
  2. box-sizing: border-box;
  3. }
  4. .loader{
  5. display: none;
  6. background-image: url('/user/themes/figureslibres/images/ajax-loader.gif');
  7. background-size: 10px 10px;
  8. background-position: center;
  9. background-repeat: no-repeat;
  10. vertical-align: middle;
  11. margin-left: 10px;
  12. width: 10px;
  13. height: 10px;
  14. }
  15. .card{
  16. .loader{
  17. position: absolute;
  18. top: 50%;
  19. left: 50%;
  20. transform: translate(-50%, 50%);
  21. z-index: 999;
  22. margin-left: 0;
  23. }
  24. }
  25. html, body{
  26. background: #f9f9f9fe;
  27. &.hidden{
  28. overflow: hidden;
  29. }
  30. }
  31. img.lazy{
  32. display: block;
  33. }
  34. body{
  35. #start{
  36. width: $Wi80;
  37. margin: 1rem auto auto 1rem;
  38. #text_figli{
  39. p {
  40. a{
  41. #icone_list{
  42. opacity: 0;
  43. // margin-left: -30px;
  44. width: 0px;
  45. z-index: 999;
  46. position: relative;
  47. display: inline-block;
  48. transition: 0.5s width 0.5s ease, 0.5s opacity;
  49. .hamburger{
  50. padding: 0;
  51. margin-left: 10px;
  52. .hamburger-box{
  53. vertical-align: middle;
  54. }
  55. }
  56. }
  57. &.marg{
  58. margin-right: $marg;
  59. }
  60. &.open{
  61. #icone_list{
  62. z-index: 999;
  63. position: relative;
  64. display: inline-block;
  65. margin-left: 0px;
  66. opacity: 1;
  67. transition: 0.5s margin-left, 0.5s opacity;
  68. width: 45px;
  69. .hamburger{
  70. padding: 0;
  71. margin-left: 10px;
  72. &.hamburger--slider{
  73. .hamburger-inner{
  74. transform: translate3d(0,5px,0) rotate(45deg);
  75. transition: 0.8s 0.2s transform;
  76. &:after{
  77. transform: translate3d(0,-20px,0) rotate(90deg);
  78. transition: 1s 0.2s transform;
  79. }
  80. }
  81. }
  82. .hamburger-box{
  83. vertical-align: middle;
  84. }
  85. }
  86. }
  87. }
  88. }
  89. }
  90. #item_list{
  91. width: 80vw;
  92. margin-top: 0.5rem;
  93. position: relative;
  94. .card{
  95. width: calc((100% / 5) - ( #{$marg} * 2) );
  96. min-width: 250px;
  97. display: inline-block;
  98. vertical-align: top;
  99. position: relative;
  100. margin: 0 $marg $marg 0;
  101. height: 100%;
  102. & > .card-image{
  103. &.open{
  104. a{
  105. img{
  106. filter: grayscale(0);
  107. transition: filter 0.3s ease;
  108. }
  109. }
  110. }
  111. }
  112. a{
  113. display: block;
  114. border-radius: 5px;
  115. overflow: auto;
  116. img{
  117. filter: grayscale(1);
  118. transition: filter 0.3s ease;
  119. }
  120. }
  121. .card-header{
  122. width: 100%;
  123. padding: $marg;
  124. flex-wrap: wrap;
  125. display: none;
  126. border-bottom-left-radius: 5px;
  127. border-bottom-right-radius: 5px;
  128. & > *{
  129. font-size: 0.8rem;
  130. line-height: 1rem;
  131. margin-right: $marg;
  132. }
  133. }
  134. &:hover{
  135. a{
  136. display: block;
  137. img{
  138. filter: grayscale(0);
  139. transition: filter 0.3s ease;
  140. }
  141. }
  142. .card-header{
  143. display: inline-flex;
  144. position: absolute;
  145. // transform: translateY(-100%);
  146. bottom: 0;
  147. }
  148. }
  149. &:last-of-type{
  150. vertical-align: baseline!important;
  151. }
  152. #item{
  153. width: calc( 80vw - ( #{$marg} * 6) );
  154. padding: 2rem 2rem 0.5rem 2rem;
  155. margin-top: $marg;
  156. border-radius: 5px;
  157. position: relative;
  158. .content-title{
  159. margin: 1rem auto 3rem auto;
  160. display: flex;
  161. flex-wrap: wrap;
  162. justify-content: space-between;
  163. align-items: baseline;
  164. a{
  165. display: block;
  166. }
  167. }
  168. .e-content{
  169. // margin: 1rem auto 2rem auto;
  170. p{
  171. font-size: 1rem;
  172. line-height: 1.2rem;
  173. }
  174. }
  175. &.publique{
  176. background: $color_publique;
  177. }
  178. &.sociale{
  179. background: $color_sociale;
  180. }
  181. &.culturelle{
  182. background: $color_culturelle;
  183. }
  184. &.commanditaires{
  185. background: $color_commanditaire;
  186. }
  187. #icone_list{
  188. position: absolute;
  189. top: 10px;
  190. right: 0;
  191. line-height: 0;
  192. }
  193. }
  194. }
  195. &.publique{
  196. .card{
  197. &:hover{
  198. .card-header{
  199. background: $color_publique;
  200. }
  201. }
  202. }
  203. }
  204. &.sociale{
  205. .card{
  206. &:hover{
  207. .card-header{
  208. background: $color_sociale;
  209. }
  210. }
  211. }
  212. }
  213. &.culturelle{
  214. .card{
  215. &:hover{
  216. .card-header{
  217. background: $color_culturelle;
  218. }
  219. }
  220. }
  221. }
  222. &.commanditaires{
  223. columns: 4 150px;
  224. -webkit-column-gap: 2em;
  225. -moz-column-gap: 2em;
  226. column-gap: 2em;
  227. display: block;
  228. margin: 1rem auto;
  229. p{
  230. font-size: 1rem;
  231. line-height: 1.2rem;
  232. margin: 0.5rem auto;
  233. }
  234. .card{
  235. &:hover{
  236. .card-header{
  237. background: $color_culturelle;
  238. }
  239. }
  240. }
  241. }
  242. &.figureslibres, &.logiciels-libres{
  243. display: block;
  244. width: 70%;
  245. min-width: 500px;
  246. margin: 1rem 0;
  247. p{
  248. font-size: 1rem;
  249. line-height: 1.5rem;
  250. }
  251. }
  252. }
  253. #top{
  254. cursor: pointer;
  255. position: relative;
  256. width: 100%;
  257. text-align: center;
  258. }
  259. }
  260. }
  261. &:not(.home){
  262. #start{
  263. margin-top: calc( 2rem + #{$Flhome});
  264. }
  265. }
  266. }
  267. #icone_list{
  268. .hamburger{
  269. // padding: 0.8rem;
  270. .hamburger-box{
  271. width: 35px;
  272. // height: 12px;
  273. .hamburger-inner{
  274. height: 2px;
  275. width: 35px;
  276. &::before{
  277. width: 35px;
  278. height: inherit;
  279. top: 10px;
  280. }
  281. &::after{
  282. top: 20px;
  283. height: inherit;
  284. width: inherit;
  285. }
  286. }
  287. }
  288. &.hamburger--slider.is-active{
  289. .hamburger-inner{
  290. transform: translate3d(0, 10px, 0) rotate(45deg);
  291. &::after {
  292. transform: translate3d(0, -20px, 0) rotate(-90deg);
  293. }
  294. }
  295. }
  296. }
  297. }