_section-media-queries.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. @media screen and (max-width: 700px) {
  2. header{
  3. position: fixed;
  4. width: 100%;
  5. height: 40px;
  6. top: 0;
  7. padding: 0 20px;
  8. display: -webkit-box;
  9. display: -ms-flexbox;
  10. display: flex;
  11. -webkit-box-pack: justify;
  12. -ms-flex-pack: justify;
  13. justify-content: space-between;
  14. background-color: white;
  15. border-bottom: 2px solid rgb(0,0,0);
  16. z-index: 999;
  17. h1{
  18. margin: auto 0;
  19. }
  20. nav{
  21. margin: auto 0;
  22. & > .tags{
  23. & > a {
  24. li{
  25. position: relative;
  26. z-index: 0;
  27. &::after{
  28. content: " ";
  29. position: absolute;
  30. background: rgb(0, 255, 0);
  31. height: 10px;
  32. margin: auto;
  33. z-index: -1;
  34. -webkit-transition: width 0.5s;
  35. transition: width 0.5s;
  36. width: 0%;
  37. }
  38. }
  39. &:hover{
  40. li{
  41. &::after{
  42. content: " ";
  43. position: absolute;
  44. background: rgb(0, 255, 0);
  45. height: 10px;
  46. margin: auto;
  47. z-index: -1;
  48. width: 100%;
  49. -webkit-transition: width 0.5s;
  50. transition: width 0.5s;
  51. }
  52. }
  53. }
  54. }
  55. }
  56. & > ul:nth-child(1) {
  57. & > li:nth-child(1){
  58. display: -webkit-box;
  59. display: -ms-flexbox;
  60. display: flex;
  61. position: relative;
  62. margin-right: 35px;
  63. & > a{
  64. pointer-events: none;
  65. }
  66. &:after{
  67. content: " ";
  68. cursor: pointer;
  69. display: block;
  70. width: 25px;
  71. height: 40px;
  72. background-image: url(../images/fleche2.svg);
  73. background-repeat: no-repeat;
  74. background-position: center;
  75. // background-size: 10px;
  76. position: absolute;
  77. right: -25px;
  78. -webkit-transition: all 0.5s;
  79. transition: all 0.5s;
  80. }
  81. &.hover{
  82. &:after{
  83. -webkit-transform: rotate(180deg);
  84. transform: rotate(180deg);
  85. -webkit-transition: all 0.5s;
  86. transition: all 0.5s;
  87. }
  88. }
  89. }
  90. }
  91. }
  92. ul{
  93. display: -webkit-box;
  94. display: -ms-flexbox;
  95. display: flex;
  96. -ms-flex-wrap: wrap;
  97. flex-wrap: wrap;
  98. -webkit-box-pack: end;
  99. -ms-flex-pack: end;
  100. justify-content: flex-end;
  101. li{
  102. height: 40px;
  103. margin-right: 20px;
  104. -webkit-box-align: center;
  105. -ms-flex-align: center;
  106. align-items: center;
  107. display: -webkit-box;
  108. display: -ms-flexbox;
  109. display: flex;
  110. &:last-child{
  111. margin-right: 0px!important;
  112. }
  113. }
  114. }
  115. ul.tags{
  116. display: none;
  117. }
  118. ul.visible, ul.active{
  119. border-left: 2px solid black;
  120. border-bottom: 2px solid black;
  121. background: white;
  122. display: block;
  123. position: absolute;
  124. top: 40px;
  125. right: 0px;
  126. width: auto;
  127. z-index: 999;
  128. a{
  129. display: -webkit-box;
  130. display: -ms-flexbox;
  131. display: flex;
  132. width: auto;
  133. height: 40px;
  134. padding: 0 20px;
  135. &:first-child{
  136. margin-top: 10px;
  137. }
  138. &:last-child{
  139. margin-bottom: 10px;
  140. }
  141. li{
  142. margin: auto;
  143. }
  144. }
  145. }
  146. }
  147. #start{
  148. margin-top: 40px;
  149. //home
  150. .item{
  151. display: block;
  152. .card{
  153. position: relative;
  154. width: 100%;
  155. overflow-y: hidden;
  156. padding-bottom: 5px;
  157. margin-left: 0px!important;
  158. margin-right: 0px!important;
  159. &:last-child{
  160. padding-bottom: 0px!important;
  161. }
  162. .card-image:hover{
  163. -webkit-transition: all 0.6s;
  164. transition: all 0.6s;
  165. background-color: rgb(0, 255, 0);
  166. img{
  167. -webkit-transition: all .6s;
  168. transition: all .6s;
  169. mix-blend-mode: multiply;
  170. opacity: .95;
  171. }
  172. & ~ .card-title{
  173. top: 50%;
  174. left: 50%;
  175. opacity: 1;
  176. -webkit-transition: opacity 1s, top 0s;
  177. transition: opacity 1s, top 0s;
  178. }
  179. }
  180. .card-title{
  181. pointer-events: none;
  182. position: absolute;
  183. left: 50%;
  184. top: 50%;
  185. opacity: 0;
  186. -webkit-transition: all 1s;
  187. transition: all 1s;
  188. -webkit-transform: translate(-50% , -50%);
  189. transform: translate(-50% , -50%);
  190. }
  191. }
  192. }
  193. //pageprojet
  194. .content-item{
  195. .e-content{
  196. display: block;
  197. height: 100%;
  198. }
  199. .media{
  200. width: 100%;
  201. }
  202. .content{
  203. width:100%;
  204. min-width: auto!important;
  205. .txt{
  206. position: relative;
  207. right: 0;
  208. width: 100%;
  209. min-width: auto!important;
  210. height: auto!important;
  211. padding: 20px 20px 0px 20px;
  212. overflow-x: auto;
  213. h3{
  214. margin: 0px 0 10px 0;
  215. }
  216. }
  217. .taxonomy{
  218. width: 100%;
  219. min-width: auto!important;
  220. height: auto;
  221. background: white;
  222. position:relative;
  223. bottom: 0;
  224. border-top: 2px solid black;
  225. span{
  226. display: -webkit-box;
  227. display: -ms-flexbox;
  228. display: flex;
  229. -ms-flex-wrap: wrap;
  230. flex-wrap: wrap;
  231. margin: auto 0;
  232. padding-bottom: 10px;
  233. a{
  234. margin: 10px 10px 0 10px;
  235. &:first-child{
  236. margin-left: 20px!important;
  237. }
  238. }
  239. }
  240. }
  241. }
  242. }
  243. //page news
  244. .news{
  245. width: 100%;
  246. min-width: auto!important;
  247. height: auto;
  248. padding: 10px 20px 10px 20px;
  249. &:nth-child(1){
  250. padding-top: 20px;
  251. }
  252. h3{
  253. pointer-events: none;
  254. margin-bottom: 10px;
  255. }
  256. }
  257. .about{
  258. width:100%;
  259. min-width: auto!important;
  260. height: auto;
  261. padding: 20px;
  262. h3{
  263. pointer-events: none;
  264. margin-bottom: 10px;
  265. }
  266. }
  267. }
  268. }