_section-media-queries.scss 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. @media screen and (max-width: 1024px) {
  2. header{
  3. .navbar{
  4. li{
  5. margin-right: 20px!important;
  6. }
  7. .tags{
  8. a{
  9. padding: 0 10px;
  10. -webkit-transition: padding 0.5s;
  11. transition: padding 0.5s;
  12. }
  13. }
  14. }
  15. }
  16. }
  17. @media screen and (max-width: 700px) {
  18. header{
  19. position: fixed;
  20. width: 100%;
  21. height: 40px;
  22. top: 0;
  23. padding: 0 20px;
  24. display: -webkit-box;
  25. display: -ms-flexbox;
  26. display: flex;
  27. -webkit-box-pack: justify;
  28. -ms-flex-pack: justify;
  29. justify-content: space-between;
  30. background-color: white;
  31. border-bottom: 2px solid rgb(0,0,0);
  32. z-index: 999;
  33. h1{
  34. margin: auto 0;
  35. }
  36. nav{
  37. ul{
  38. display: none;
  39. &.open{
  40. // height: 100vh;
  41. width: 100vw;
  42. left: 0;
  43. top: 38px;
  44. position: absolute;
  45. display: -webkit-box;
  46. display: -ms-flexbox;
  47. display: flex;
  48. -webkit-box-orient: vertical;
  49. -webkit-box-direction: normal;
  50. -ms-flex-direction: column;
  51. flex-direction: column;
  52. -webkit-box-pack: start;
  53. -ms-flex-pack: start;
  54. justify-content: flex-start;
  55. -webkit-box-align: center;
  56. -ms-flex-align: center;
  57. align-items: center;
  58. border-bottom: 2px solid #000;
  59. background: white;
  60. li{
  61. height: 40px;
  62. text-align: center;
  63. border-bottom: 2px solid black;
  64. width: 100vw;
  65. text-align: center;
  66. -webkit-box-pack: center;
  67. -ms-flex-pack: center;
  68. justify-content: center;
  69. &:first-child{
  70. border-top: 2px solid black;
  71. // flex-direction: column;
  72. .cat{
  73. width: 10px;
  74. position: absolute;
  75. right: 45px;
  76. img{
  77. -webkit-transform: rotate(0deg);
  78. transform: rotate(0deg);
  79. }
  80. }
  81. }
  82. &:last-child{
  83. margin-right: 20px!important;
  84. border-bottom: 0px solid #000;
  85. }
  86. &.act{
  87. .cat{
  88. img{
  89. -webkit-transform: rotate(180deg);
  90. transform: rotate(180deg);
  91. }
  92. }
  93. }
  94. }
  95. .tags{
  96. position: relative;
  97. border: none;
  98. top:-2px;
  99. border-bottom: 2px solid black;
  100. background: rgb(0, 255, 0);
  101. a{
  102. padding: 0;
  103. margin:0;
  104. height: 40px;
  105. li{
  106. margin: 0;
  107. }
  108. }
  109. }
  110. }
  111. }
  112. & > .tags{
  113. & > a {
  114. height: 30px!important;
  115. li{
  116. position: relative;
  117. z-index: 0;
  118. &::after{
  119. content: " ";
  120. position: absolute;
  121. background: rgb(0, 255, 0);
  122. height: 10px;
  123. margin: auto;
  124. z-index: -1;
  125. -webkit-transition: width 0.5s;
  126. transition: width 0.5s;
  127. width: 0%;
  128. }
  129. }
  130. &:hover{
  131. li{
  132. &::after{
  133. content: " ";
  134. position: absolute;
  135. background: rgb(0, 255, 0);
  136. height: 10px;
  137. margin: auto;
  138. z-index: -1;
  139. width: 100%;
  140. -webkit-transition: width 0.5s;
  141. transition: width 0.5s;
  142. }
  143. }
  144. }
  145. }
  146. }
  147. .col {
  148. width: auto;
  149. text-align: center;
  150. height: auto;
  151. position: absolute;
  152. top: 10px;
  153. right: 20px;
  154. }
  155. .burger{
  156. cursor: pointer;
  157. display: -webkit-box;
  158. display: -ms-flexbox;
  159. display: flex;
  160. -webkit-box-orient: vertical;
  161. -webkit-box-direction: normal;
  162. -ms-flex-direction: column;
  163. flex-direction: column;
  164. width: auto;
  165. margin: 0 auto;
  166. -webkit-transition: all .7s ease;
  167. transition: all .7s ease;
  168. .bar {
  169. display: block;
  170. height: 2px;
  171. width: 20px;
  172. background: black;
  173. margin: 3px auto;
  174. -webkit-transition: all .7s ease;
  175. transition: all .7s ease;
  176. }
  177. .middle {
  178. margin: 0 auto;
  179. }
  180. &:hover{
  181. // .bar{
  182. // background-color: rgb(0, 255, 0);
  183. // }
  184. .top {
  185. -webkit-transform: translateY(5px) rotateZ(45deg);
  186. transform: translateY(5px) rotateZ(45deg);
  187. }
  188. .middle {
  189. width: 0;
  190. }
  191. .bottom {
  192. -webkit-transform: translateY(-5px) rotateZ(-45deg);
  193. transform: translateY(-5px) rotateZ(-45deg);
  194. }
  195. }
  196. }
  197. }
  198. ul.tags{
  199. display: none;
  200. }
  201. ul.visible, ul.active{
  202. border-left: 2px solid black;
  203. border-bottom: 2px solid black;
  204. background: white;
  205. display: block;
  206. position: absolute;
  207. top: 40px;
  208. right: 0px;
  209. width: auto;
  210. z-index: 999;
  211. a{
  212. display: -webkit-box;
  213. display: -ms-flexbox;
  214. display: flex;
  215. width: auto;
  216. height: 40px;
  217. padding: 0 20px;
  218. &:first-child{
  219. margin-top: 0px;
  220. }
  221. &:last-child{
  222. margin-bottom: 10px;
  223. }
  224. li{
  225. margin: auto;
  226. }
  227. }
  228. }
  229. }
  230. #start{
  231. margin-top: 40px;
  232. //home
  233. .item{
  234. display: block;
  235. .card{
  236. position: relative;
  237. width: 100%;
  238. overflow-y: hidden;
  239. padding-bottom: 5px;
  240. margin-left: 0px!important;
  241. margin-right: 0px!important;
  242. &:last-child{
  243. padding-bottom: 0px!important;
  244. }
  245. .card-image:hover{
  246. -webkit-transition: all 0.6s;
  247. transition: all 0.6s;
  248. background-color: rgb(0, 255, 0);
  249. img{
  250. -webkit-transition: all .6s;
  251. transition: all .6s;
  252. mix-blend-mode: multiply;
  253. opacity: .95;
  254. }
  255. & ~ .card-title{
  256. top: 50%;
  257. left: 50%;
  258. opacity: 1;
  259. -webkit-transition: opacity 1s, top 0s;
  260. transition: opacity 1s, top 0s;
  261. }
  262. }
  263. .card-title{
  264. pointer-events: none;
  265. position: absolute;
  266. left: 50%;
  267. top: 50%;
  268. opacity: 0;
  269. -webkit-transition: all 1s;
  270. transition: all 1s;
  271. -webkit-transform: translate(-50% , -50%);
  272. transform: translate(-50% , -50%);
  273. }
  274. }
  275. }
  276. //pageprojet
  277. .content-item{
  278. .e-content{
  279. display: block;
  280. height: 100%;
  281. }
  282. .media{
  283. width: 100%;
  284. }
  285. .content{
  286. width:100%;
  287. min-width: auto!important;
  288. height: auto;
  289. .txt{
  290. position: relative;
  291. right: 0;
  292. width: 100%;
  293. min-width: auto!important;
  294. height: auto!important;
  295. padding: 20px 20px 0px 20px;
  296. overflow-x: auto;
  297. h3{
  298. margin: 0px 0 10px 0;
  299. }
  300. }
  301. .taxonomy{
  302. width: 100%;
  303. min-width: auto!important;
  304. height: auto;
  305. background: white;
  306. position:relative;
  307. bottom: 0;
  308. border-top: 2px solid black;
  309. .tags{
  310. display: -webkit-box;
  311. display: -ms-flexbox;
  312. display: flex;
  313. -ms-flex-wrap: wrap;
  314. flex-wrap: wrap;
  315. margin: auto 0;
  316. padding-bottom: 10px;
  317. a{
  318. margin: 10px 10px 0 10px;
  319. &:first-child{
  320. margin-left: 20px!important;
  321. }
  322. }
  323. }
  324. }
  325. }
  326. }
  327. //page news
  328. .news{
  329. width: 100%;
  330. min-width: auto!important;
  331. height: auto;
  332. padding: 10px 20px 10px 20px;
  333. border-bottom: 2px solid black;
  334. &:nth-child(1){
  335. padding-top: 20px;
  336. }
  337. h3{
  338. pointer-events: none;
  339. margin-bottom: 10px;
  340. }
  341. }
  342. .about{
  343. width:100%;
  344. min-width: auto!important;
  345. height: auto;
  346. padding: 20px;
  347. h3{
  348. pointer-events: none;
  349. margin-bottom: 10px;
  350. }
  351. }
  352. }
  353. }