item.scss 2.5 KB

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