_photos-owl.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. $photos-main-family:'Microsoft JhengHei', Helvetica,Noto Sans TC,Roboto,Arial,sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  2. $photos-main-font-size:16px;
  3. $photos-mob-main-font-size:16px;
  4. a{
  5. &:hover{
  6. text-decoration: none;
  7. }
  8. }
  9. .mt-custom{
  10. margin-top: 6rem;
  11. }
  12. .photos-owl-wrapper{
  13. background-image: url(../images/section/icon/photos/owl-bg.svg);
  14. background-repeat:no-repeat;
  15. background-position: center;
  16. height: 300px;
  17. }
  18. .photos-owl-title{
  19. max-width: 1140px;
  20. margin-left: auto;
  21. margin-right: auto;
  22. display: flex;
  23. justify-content: center;
  24. transform: translateY(-45%);
  25. }
  26. .photos-owl-img-wrapper{
  27. overflow: hidden;
  28. &:hover{
  29. .photos-owl-img{
  30. transform: scale(1.2);
  31. }
  32. span{
  33. padding: 0 7rem;
  34. }
  35. }
  36. }
  37. .photos-owl-img{
  38. background-repeat: no-repeat;
  39. background-position: center;
  40. background-size: cover;
  41. height: 220px;
  42. box-shadow: 0px 3px 6px 5px #ccc;
  43. transition: all 300ms ease-in-out;
  44. &:hover{
  45. cursor: pointer;
  46. }
  47. }
  48. .photos-owl-text-wrapper{
  49. position: absolute;
  50. top: 0;
  51. left: 0;
  52. width: 100%;
  53. height: 100%;
  54. .photos-owl-text{
  55. width: 100%;
  56. height: 100%;
  57. display: flex;
  58. align-items: center;
  59. justify-content: center;
  60. }
  61. span{
  62. color: #6D6D6D;
  63. background-color: #FFF;
  64. opacity: 0.8;
  65. font-family: $photos-main-family;
  66. font-size: $photos-main-font-size;
  67. padding: 0 1rem;
  68. transition: all 500ms ease-in-out;
  69. z-index: 30;
  70. }
  71. }
  72. .owl-nav{
  73. position: absolute;
  74. top: 15%;
  75. width: 100%;
  76. width: calc(100% + 105px);
  77. display:flex;
  78. justify-content: space-between;
  79. z-index: -1;
  80. transform: translateX(-4%);
  81. }
  82. button:focus{
  83. outline: none;
  84. }
  85. .item{
  86. &:hover{
  87. cursor: pointer;
  88. }
  89. &:hover span{
  90. text-decoration: none;
  91. }
  92. }
  93. .carousel-arrow-prev:after{
  94. content:'';
  95. position: absolute;
  96. left: 4px;
  97. width: 30px;
  98. height: 105px;
  99. background: url("../images/section/icon/photos/LEFT-1.svg") no-repeat ;
  100. display: inline-block;
  101. }
  102. .carousel-arrow-next:after{
  103. content:'';
  104. position: absolute;
  105. right: 4px;
  106. width: 30px;
  107. height: 105px;
  108. background: url("../images/section/icon/photos/RIGHT-1.svg") no-repeat ;
  109. display: inline-block;
  110. }