item.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. body{
  2. & >.item{
  3. #body-wrapper.blog-listing{
  4. border-top: 1px solid black;
  5. padding-top: 20px;
  6. .img-card{
  7. width: 50%;
  8. &:nth-child(odd){
  9. padding-right: 10px;
  10. }
  11. &:nth-child(even){
  12. padding-left: 10px;
  13. }
  14. }
  15. .header-item{
  16. position: relative;
  17. .title{
  18. display: inline-flex;
  19. align-items: baseline;
  20. h2{
  21. margin-right: 5px;
  22. }
  23. time{
  24. margin-right: 5px;
  25. }
  26. span{
  27. margin-right: 5px;
  28. }
  29. }
  30. .content{
  31. width: calc((100% / 3) * 2);
  32. margin: 20px 0;
  33. .txt{
  34. column-count: 2;
  35. }
  36. }
  37. .prev-next{
  38. width: calc(100% / 3);
  39. padding-left: 20px;
  40. position: absolute;
  41. top: 0;
  42. right: 0;
  43. .btn-info{
  44. position: absolute;
  45. transform: rotate(-15deg);
  46. margin-left: 40px;
  47. margin-top: 20px;
  48. }
  49. img{
  50. float: right;
  51. width: 80%;
  52. }
  53. }
  54. }
  55. }
  56. .top{
  57. text-align: center;
  58. margin: 20px auto 20px auto;
  59. width: 50px;
  60. img{
  61. width: 20px;
  62. margin-bottom:5px;
  63. }
  64. p{
  65. transform: rotate(-10deg);
  66. }
  67. }
  68. }
  69. }