Blame view

src/styles/components/tree.less 1.45 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
              transition: all @transition-time @ease-in-out;
8a58b273   梁灏   update Tree Icons
46
47
              font-size: @font-size-large;
              vertical-align: middle;
75c32d5f   梁灏   rebuild Tree
48
49
50
51
          }
          &-open{
              i {
                  transform: rotate(90deg);
e81207a2   梁灏   update Tree
52
53
              }
          }
b31aab71   梁灏   Tree add async lo...
54
55
56
57
58
59
          //&-hidden{
          //    cursor: auto;
          //    i{
          //        display: none;
          //    }
          //}
75c32d5f   梁灏   rebuild Tree
60
61
          &-disabled{
              cursor: @cursor-disabled;
e81207a2   梁灏   update Tree
62
63
          }
      }
94d177cc   Sergio Crisostomo   add width to expa...
64
  }