item.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. body{
  2. #page-wrapper.item{
  3. margin: 0 10px;
  4. .contact{
  5. .txt{
  6. display: none
  7. }
  8. }
  9. #start{
  10. margin-top: 5rem;
  11. }
  12. #body-wrapper.blog-listing {
  13. .img-card{
  14. width: calc( (100vw / 3 - calc( 41px / 3 ) ) );
  15. margin-bottom: 10px;
  16. }
  17. .header-item{
  18. position: relative;
  19. margin-bottom: 1.5rem;
  20. padding-top: 1.5rem;
  21. .title{
  22. display: -webkit-inline-box;
  23. display: -ms-inline-flexbox;
  24. display: inline-flex;
  25. -webkit-box-align: baseline;
  26. -ms-flex-align: baseline;
  27. align-items: baseline;
  28. h2{
  29. margin-right: 5px;
  30. text-transform: uppercase;
  31. }
  32. time{
  33. margin-right: 5px;
  34. }
  35. span{
  36. margin-right: 5px;
  37. }
  38. }
  39. .content{
  40. width: calc((100% / 3) - 15px);
  41. margin-top: 20px;
  42. }
  43. .prev-next{
  44. width: calc(100% / 3);
  45. height: 100%;
  46. position: absolute;
  47. top: calc( 50% + 1.5rem );
  48. -webkit-transform: translateY(-50%);
  49. transform: translateY(-50%);
  50. right: 0px;
  51. .btn{
  52. display: block;
  53. width: auto;
  54. height: 100%;
  55. .btn-info{
  56. position: absolute;
  57. -webkit-transform: rotate(-15deg);
  58. transform: rotate(-15deg);
  59. margin-left: 40px;
  60. margin-top: 20px;
  61. }
  62. img{
  63. float: right;
  64. width: 80%;
  65. }
  66. }
  67. }
  68. }
  69. }
  70. .top{
  71. text-align: center;
  72. margin: 20px auto 20px auto;
  73. width: 50px;
  74. img{
  75. width: 20px;
  76. margin-bottom:5px;
  77. }
  78. p{
  79. -webkit-transform: rotate(-10deg);
  80. transform: rotate(-10deg);
  81. }
  82. }
  83. }
  84. }
  85. @media screen and (max-width: 960px) {
  86. body{
  87. #page-wrapper.item{
  88. #body-wrapper.blog-listing{
  89. .header-item{
  90. .content{
  91. width: calc((100% / 2) - 5px);
  92. }
  93. .prev-next{
  94. width: calc((100% / 2) - 5px);
  95. }
  96. }
  97. .img-card{
  98. width: calc((100% / 2) - 5px);
  99. }
  100. }
  101. }
  102. }
  103. }
  104. @media screen and (max-width: 600px) {
  105. body{
  106. #page-wrapper.item{
  107. #body-wrapper.blog-listing{
  108. .header-item{
  109. .content{
  110. width: calc((100%) - 15px);
  111. }
  112. .prev-next{
  113. width: calc((100%) - 15px);
  114. position: relative;
  115. -webkit-transform: translateY(0%);
  116. transform: translateY(0%);
  117. .btn{
  118. .btn-info{
  119. display: none;
  120. }
  121. img{
  122. float: none;
  123. width: 100%;
  124. }
  125. }
  126. }
  127. }
  128. .img-card{
  129. width: 100%;
  130. }
  131. }
  132. }
  133. }
  134. }