Blame view

src/styles/components/tree.less 1.36 KB
89f2ba8b   梁灏   init Tree component
1
2
3
  @tree-prefix-cls: ~"@{css-prefix}tree";
  
  .@{tree-prefix-cls} {
75c32d5f   梁灏   rebuild Tree
4
      ul{
e81207a2   梁灏   update Tree
5
          list-style: none;
75c32d5f   梁灏   rebuild Tree
6
          margin: 0;
c8157442   梁灏   fixed #499
7
          padding: 0;
75c32d5f   梁灏   rebuild Tree
8
9
10
11
12
13
14
          font-size: @font-size-small;
          li{
              list-style: none;
              margin: 8px 0;
              padding: 0;
              white-space: nowrap;
              outline: none;
e81207a2   梁灏   update Tree
15
          }
75c32d5f   梁灏   rebuild Tree
16
17
18
      }
      li{
          ul{
e81207a2   梁灏   update Tree
19
20
21
              margin: 0;
              padding: 0 0 0 18px;
          }
75c32d5f   梁灏   rebuild Tree
22
23
24
25
26
27
28
29
30
31
32
33
      }
      &-title {
          display: inline-block;
          margin: 0;
          padding: 0 4px;
          border-radius: @btn-border-radius-small;
          cursor: pointer;
          vertical-align: top;
          color: @text-color;
          transition: all @transition-time @ease-in-out;
          &:hover {
              background-color: tint(@primary-color, 90%);
e81207a2   梁灏   update Tree
34
          }
75c32d5f   梁灏   rebuild Tree
35
36
          &-selected, &-selected:hover{
              background-color: tint(@primary-color, 80%);
ce03ac52   梁灏   update Tree
37
          }
75c32d5f   梁灏   rebuild Tree
38
39
40
      }
      &-arrow{
          cursor: pointer;
94d177cc   Sergio Crisostomo   add width to expa...
41
42
43
44
          width: 12px;
          text-align: center;
          display: inline-block;
          i {
75c32d5f   梁灏   rebuild Tree
45
46
47
48
49
              transition: all @transition-time @ease-in-out;
          }
          &-open{
              i {
                  transform: rotate(90deg);
e81207a2   梁灏   update Tree
50
51
              }
          }
75c32d5f   梁灏   rebuild Tree
52
53
54
55
56
          &-hidden{
              cursor: auto;
              i{
                  display: none;
              }
e81207a2   梁灏   update Tree
57
          }
75c32d5f   梁灏   rebuild Tree
58
59
          &-disabled{
              cursor: @cursor-disabled;
e81207a2   梁灏   update Tree
60
61
          }
      }
94d177cc   Sergio Crisostomo   add width to expa...
62
  }