_section-media-queries.scss 6.3 KB

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