mobile.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. @media screen and (max-width: 1024px) {
  2. .card{
  3. width: calc((100% / 2) - 10px);
  4. }
  5. .works-mea{
  6. .card{
  7. &:nth-child(3){
  8. display: none;
  9. }
  10. }
  11. }
  12. #items{
  13. .header-item{
  14. .info{
  15. width: calc(100% / 2);
  16. }
  17. }
  18. }
  19. .img-card{
  20. width: calc((100% / 2) - 5px);
  21. }
  22. }
  23. @media screen and (orientation:landscape) and (max-width: 812px) {
  24. .blog{
  25. header{
  26. .head{
  27. nav{
  28. margin-top: 50vh;
  29. transform: translate(0, -100%);
  30. }
  31. }
  32. }
  33. .down{
  34. header{
  35. .head{
  36. nav{
  37. margin-top: 0!important;
  38. transform: translate(0)!important;
  39. transition: all 0.5s 1s ease;
  40. }
  41. }
  42. }
  43. }
  44. .works-mea{
  45. display: none!important;
  46. }
  47. }
  48. }
  49. @media screen and (max-width: 414px) {
  50. .down header, .item header{
  51. height: 70px;
  52. }
  53. header{
  54. .head{
  55. padding-top: 10px;
  56. nav{
  57. width: 80%!important;
  58. min-width: 80%!important;
  59. }
  60. }
  61. .contact{
  62. width: 70px;
  63. height: 70px;
  64. h3{
  65. top: 24px;
  66. right: 27px;
  67. }
  68. &.open{
  69. .txt{
  70. right: 25px;
  71. width: calc(100% - 30px);
  72. height: calc(100% - 50px);
  73. overflow-y: auto;
  74. p{
  75. font-size: 1rem;
  76. line-height: 1.4rem;
  77. &:nth-last-of-type(2){
  78. font-size: 0.8rem;
  79. line-height: 1.2rem;
  80. a{
  81. width: 15px;
  82. margin-left: 5px;
  83. }
  84. }
  85. em{
  86. font-size: 0.5rem;
  87. }
  88. }
  89. }
  90. }
  91. &.close{
  92. width: 70px;
  93. height: 70px;
  94. }
  95. }
  96. .works-mea{
  97. .card{
  98. width: 100%;
  99. &:nth-child(2){
  100. display: none;
  101. }
  102. &:nth-child(3){
  103. display: none;
  104. }
  105. }
  106. }
  107. }
  108. .blog{
  109. h2{
  110. line-height: 9vw;
  111. font-size: 6vw;
  112. }
  113. }
  114. .down, .item{
  115. #start{
  116. margin-top: 70px;
  117. }
  118. }
  119. .card{
  120. width: calc(100% - 10px);
  121. }
  122. #items{
  123. .header-item{
  124. -webkit-box-orient: vertical;
  125. -webkit-box-direction: reverse;
  126. -ms-flex-direction: column-reverse;
  127. flex-direction: column-reverse;
  128. & > div{
  129. width: 100%!important;
  130. }
  131. & > .info{
  132. margin-top: 25px;
  133. .title{
  134. display: block;
  135. & > a {
  136. margin-right: 0;
  137. }
  138. }
  139. }
  140. .prev-next{
  141. .btn-info{
  142. display: none;
  143. }
  144. }
  145. }
  146. }
  147. .img-card{
  148. width: calc(100%);
  149. }
  150. .item{
  151. #items{
  152. padding-top: 25px;
  153. }
  154. }
  155. }