保誠-保戶業務員媒合平台
tomasysh
2025-01-02 4efb98f2b554b76270b12837db7a7f724e2ede89
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
@import "mixins/mixins";
@import "common/var";
 
@include b(carousel) {
  position: relative;
 
  @include m(horizontal) {
    overflow-x: hidden;
  }
 
  @include m(vertical) {
    overflow-y: hidden;
  }
 
  @include e(container) {
    position: relative;
    height: 300px;
  }
 
  @include e(arrow) {
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    height: $--carousel-arrow-size;
    width: $--carousel-arrow-size;
    cursor: pointer;
    transition: .3s;
    border-radius: 50%;
    background-color: $--carousel-arrow-background;
    color: $--color-white;
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    text-align: center;
    font-size: $--carousel-arrow-font-size;
 
    @include m(left) {
      left: 16px;
    }
 
    @include m(right) {
      right: 16px;
    }
 
    &:hover {
      background-color: $--carousel-arrow-hover-background;
    }
 
    & i {
      cursor: pointer;
    }
  }
 
  @include e(indicators) {
    position: absolute;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: #{$--index-normal + 1};
 
    @include m(horizontal) {
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
    }
 
    @include m(vertical) {
      right: 0;
      top: 50%;
      transform: translateY(-50%);
    }
 
    @include m(outside) {
      bottom: #{$--carousel-indicator-height + $--carousel-indicator-padding-vertical * 2};
      text-align: center;
      position: static;
      transform: none;
      .el-carousel__indicator:hover button {
        opacity: 0.64;
      }
      button {
        background-color: $--carousel-indicator-out-color;
        opacity: 0.24;
      }
    }
 
    @include m(labels) {
      left: 0;
      right: 0;
      transform: none;
      text-align: center;
 
      .el-carousel__button {
        height: auto;
        width: auto;
        padding: 2px 18px;
        font-size: 12px;
      }
 
      .el-carousel__indicator {
        padding: 6px 4px;
      }
    }
  }
 
  @include e(indicator) {
    background-color: transparent;
    cursor: pointer;
 
    &:hover button {
      opacity: 0.72;
    }
 
    @include m(horizontal) {
      display: inline-block;
      padding: $--carousel-indicator-padding-vertical $--carousel-indicator-padding-horizontal;
    }
 
    @include m(vertical) {
      padding: $--carousel-indicator-padding-horizontal $--carousel-indicator-padding-vertical;
      .el-carousel__button {
        width: $--carousel-indicator-height;
        height: #{$--carousel-indicator-width / 2};
      }
    }
 
    @include when(active) {
      button {
        opacity: 1;
      }
    }
  }
 
  @include e(button) {
    display: block;
    opacity: 0.48;
    width: $--carousel-indicator-width;
    height: $--carousel-indicator-height;
    background-color: $--color-white;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: .3s;
  }
}
 
.carousel-arrow-left-enter,
.carousel-arrow-left-leave-active {
  transform: translateY(-50%) translateX(-10px);
  opacity: 0;
}
 
.carousel-arrow-right-enter,
.carousel-arrow-right-leave-active {
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
}