保誠-保戶業務員媒合平台
jack
2025-01-06 e0c6891acc471f9adf2e29b2a5bed3f8337a92b2
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
@import "mixins/mixins";
@import "common/var";
 
@include b(tooltip) {
  &:focus:not(.focusing), &:focus:hover {
    outline-width: 0;
  }
  @include e(popper) {
    position: absolute;
    border-radius: 4px;
    padding: $--tooltip-padding;
    z-index: $--index-popper;
    font-size: $--tooltip-font-size;
    line-height: 1.2;
    min-width: 10px;
    word-wrap: break-word;
 
    .popper__arrow,
    .popper__arrow::after {
      position: absolute;
      display: block;
      width: 0;
      height: 0;
      border-color: transparent;
      border-style: solid;
    }
 
    .popper__arrow {
      border-width: $--tooltip-arrow-size;
    }
 
    .popper__arrow::after {
      content: " ";
      border-width: 5px;
    }
 
    &[x-placement^="top"] {
      margin-bottom: #{$--tooltip-arrow-size + 6px};
    }
 
    &[x-placement^="top"] .popper__arrow {
      bottom: -$--tooltip-arrow-size;
      border-top-color: $--tooltip-border-color;
      border-bottom-width: 0;
 
      &::after {
        bottom: 1px;
        margin-left: -5px;
        border-top-color: $--tooltip-fill;
        border-bottom-width: 0;
      }
    }
 
    &[x-placement^="bottom"] {
      margin-top: #{$--tooltip-arrow-size + 6px};
    }
 
    &[x-placement^="bottom"] .popper__arrow {
      top: -$--tooltip-arrow-size;
      border-top-width: 0;
      border-bottom-color: $--tooltip-border-color;
 
      &::after {
        top: 1px;
        margin-left: -5px;
        border-top-width: 0;
        border-bottom-color: $--tooltip-fill;
      }
    }
 
    &[x-placement^="right"] {
      margin-left: #{$--tooltip-arrow-size + 6px};
    }
 
    &[x-placement^="right"] .popper__arrow {
      left: -$--tooltip-arrow-size;
      border-right-color: $--tooltip-border-color;
      border-left-width: 0;
 
      &::after {
        bottom: -5px;
        left: 1px;
        border-right-color: $--tooltip-fill;
        border-left-width: 0;
      }
    }
 
    &[x-placement^="left"] {
      margin-right: #{$--tooltip-arrow-size + 6px};
    }
 
    &[x-placement^="left"] .popper__arrow {
      right: -$--tooltip-arrow-size;
      border-right-width: 0;
      border-left-color: $--tooltip-border-color;
 
      &::after {
        right: 1px;
        bottom: -5px;
        margin-left: -5px;
        border-right-width: 0;
        border-left-color: $--tooltip-fill;
      }
    }
 
    @include when(dark) {
      background: $--tooltip-fill;
      color: $--tooltip-color;
    }
 
    @include when(light) {
      background: $--tooltip-color;
      border: 1px solid $--tooltip-fill;
 
      &[x-placement^="top"] .popper__arrow {
        border-top-color: $--tooltip-fill;
        &::after {
          border-top-color: $--tooltip-color;
        }
      }
      &[x-placement^="bottom"] .popper__arrow {
        border-bottom-color: $--tooltip-fill;
        &::after {
          border-bottom-color: $--tooltip-color;
        }
      }
      &[x-placement^="left"] .popper__arrow {
        border-left-color: $--tooltip-fill;
        &::after {
          border-left-color: $--tooltip-color;
        }
      }
      &[x-placement^="right"] .popper__arrow {
        border-right-color: $--tooltip-fill;
        &::after {
          border-right-color: $--tooltip-color;
        }
      }
    }
  }
}