_start.scss 6.9 KB

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