_section-media-queries.scss 5.2 KB

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