Blame view

src/styles/components/tree.less 1.28 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
7
8
9
10
11
12
13
14
          margin: 0;
          padding: 5px;
          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
41
42
43
44
45
46
      }
      &-arrow{
          cursor: pointer;
          i{
              transition: all @transition-time @ease-in-out;
          }
          &-open{
              i {
                  transform: rotate(90deg);
e81207a2   梁灏   update Tree
47
48
              }
          }
75c32d5f   梁灏   rebuild Tree
49
50
51
52
53
          &-hidden{
              cursor: auto;
              i{
                  display: none;
              }
e81207a2   梁灏   update Tree
54
          }
75c32d5f   梁灏   rebuild Tree
55
56
          &-disabled{
              cursor: @cursor-disabled;
e81207a2   梁灏   update Tree
57
58
          }
      }
89f2ba8b   梁灏   init Tree component
59
  }