zhangyong
2023-08-22 1353e87cb21a4032d585d7404bae9042f2ebcf08
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
@use 'mixins/mixins' as *;
@use 'mixins/var' as *;
@use 'common/var' as *;
 
@include b(popover) {
  @include set-component-css-var('popover', $popover);
 
  &.#{$namespace}-popper {
    background: getCssVar('popover-bg-color');
    min-width: 150px;
    border-radius: getCssVar('popover-border-radius');
    border: 1px solid getCssVar('popover-border-color');
    padding: getCssVar('popover-padding');
    z-index: getCssVar('index-popper');
    color: getCssVar('text-color', 'regular');
    line-height: 1.4;
    text-align: justify;
    font-size: getCssVar('popover-font-size');
    box-shadow: getCssVar('box-shadow-light');
    word-break: break-all;
    box-sizing: border-box;
 
    @include m(plain) {
      padding: getCssVar('popover-padding-large');
    }
 
    @include e(title) {
      color: getCssVar('popover-title-text-color');
      font-size: getCssVar('popover-title-font-size');
      line-height: 1;
      margin-bottom: 12px;
    }
 
    @include e(reference) {
      &:focus:not(.focusing),
      &:focus:hover {
        outline-width: 0;
      }
    }
 
    @include when(dark) {
      @include set-css-var-value(
        ('popover', 'bg-color'),
        var(#{getCssVarName('text-color', 'primary')})
      );
      @include set-css-var-value(
        ('popover', 'border-color'),
        var(#{getCssVarName('text-color', 'primary')})
      );
      @include set-css-var-value(
        ('popover', 'title-text-color'),
        var(#{getCssVarName('bg-color')})
      );
      color: getCssVar('bg-color');
    }
 
    &:focus:active,
    &:focus {
      outline-width: 0;
    }
  }
}