Blame view

src/styles/components/divider.less 2.28 KB
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
1
2
  @divider-prefix-cls: ~"@{css-prefix}divider";
  
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
3
  .@{divider-prefix-cls} {
a0141266   梁灏   update Divider style
4
5
      .reset-component;
      background: @border-color-split;
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
6
  
a0141266   梁灏   update Divider style
7
8
9
10
11
12
13
14
15
      &, // for compatiable
      &-vertical {
          margin: 0 8px;
          display: inline-block;
          height: 0.9em;
          width: 1px;
          vertical-align: middle;
          position: relative;
          top: -0.06em;
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
16
      }
a0141266   梁灏   update Divider style
17
18
19
20
      &-horizontal {
          display: block;
          height: 1px;
          width: 100%;
9cdfb2e2   梁灏   fix #5135
21
          min-width: 100%;
a0141266   梁灏   update Divider style
22
23
          margin: 24px 0;
          clear: both;
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
24
      }
a0141266   梁灏   update Divider style
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
      &-horizontal&-with-text-center,
      &-horizontal&-with-text-left,
      &-horizontal&-with-text-right {
          display: table;
          white-space: nowrap;
          text-align: center;
          background: transparent;
          font-weight: 500;
          color: @title-color;
          font-size: @font-size-large;
          margin: 16px 0;
          &:before,
          &:after {
              content: '';
              display: table-cell;
              position: relative;
              top: 50%;
              width: 50%;
              border-top: 1px solid @border-color-split;
              transform: translateY(50%);
          }
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
46
      }
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
47
  
f308dcac   梁灏   fixed #4415
48
49
50
51
52
53
54
      &-horizontal&-small&-with-text-center,
      &-horizontal&-small&-with-text-left,
      &-horizontal&-small&-with-text-right{
          font-size: @font-size-base;
          margin: 8px 0;
      }
  
a0141266   梁灏   update Divider style
55
56
      &-horizontal&-with-text-left,
      &-horizontal&-with-text-right {
a0141266   梁灏   update Divider style
57
58
59
60
61
          .@{divider-prefix-cls}-inner-text {
              display: inline-block;
              padding: 0 10px;
          }
      }
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
62
  
a0141266   梁灏   update Divider style
63
64
65
66
67
68
69
70
71
      &-horizontal&-with-text-left {
          &:before {
              top: 50%;
              width: 5%;
          }
          &:after {
              top: 50%;
              width: 95%;
          }
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
72
      }
a0141266   梁灏   update Divider style
73
74
75
76
77
78
79
80
81
82
  
      &-horizontal&-with-text-right {
          &:before {
              top: 50%;
              width: 95%;
          }
          &:after {
              top: 50%;
              width: 5%;
          }
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
83
      }
a0141266   梁灏   update Divider style
84
  
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
85
      &-inner-text {
a0141266   梁灏   update Divider style
86
87
88
89
90
91
92
          display: inline-block;
          padding: 0 24px;
      }
  
      &-dashed {
          background: none;
          border-top: 1px dashed @border-color-split;
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
93
      }
a0141266   梁灏   update Divider style
94
95
96
97
98
99
100
101
      &-horizontal&-with-text&-dashed,
      &-horizontal&-with-text-left&-dashed,
      &-horizontal&-with-text-right&-dashed {
          border-top: 0;
          &:before,
          &:after {
              border-style: dashed none none;
          }
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
102
      }
b26389a0   xiaofengsha   * 对照AntDesign,实现了...
103
  }