Blame view

src/styles/components/upload.less 1.95 KB
3affd6f3   梁灏   init upload compo...
1
2
3
  @upload-prefix-cls: ~"@{css-prefix}upload";
  
  .@{upload-prefix-cls} {
ddef2bb3   梁灏   update Upload
4
5
6
      input[type="file"]{
          display: none;
      }
3affd6f3   梁灏   init upload compo...
7
  
ddef2bb3   梁灏   update Upload
8
      &-list{
bc3bcb09   梁灏   update Upload
9
          margin-top: 8px;
ddef2bb3   梁灏   update Upload
10
11
12
13
14
15
16
17
18
  
          &-file{
              padding: 4px;
              color: @text-color;
              border-radius: @border-radius-small;
              transition: background-color @transition-time @ease-in-out;
              overflow: hidden;
              position: relative;
  
a6ac0a76   梁灏   update Upload
19
              & > span{
ddef2bb3   梁灏   update Upload
20
21
22
23
24
25
26
27
28
29
30
31
32
                  cursor: pointer;
                  transition: color @transition-time @ease-in-out;
                  i{
                      display: inline-block;
                      width: @font-size-small;
                      height: @font-size-small;
                      color: @text-color;
                      text-align: center;
                  }
              }
  
              &:hover{
                  background: @input-disabled-bg;
a6ac0a76   梁灏   update Upload
33
                  & > span{
ddef2bb3   梁灏   update Upload
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
                      color: @primary-color;
                      i{
                          color: @text-color;
                      }
                  }
                  .@{upload-prefix-cls}-list-remove{
                      opacity: 1;
                  }
              }
          }
          &-remove{
              opacity: 0;
              font-size: 18px;
              cursor: pointer;
              float: right;
              margin-right: 4px;
              color: @legend-color;
              transition: all @transition-time ease;
              &:hover{
                  color: #444;
              }
          }
      }
  
2e769a35   sinchang   fixed #1258
58
59
60
61
       &-select {
          display: inline-block;
      }
      
ddef2bb3   梁灏   update Upload
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
      &-drag{
          background: #fff;
          border: 1px dashed @border-color-base;
          border-radius: @border-radius-small;
          text-align: center;
          cursor: pointer;
          position: relative;
          overflow: hidden;
          transition: border-color @transition-time ease;
  
          &:hover{
              border: 1px dashed @primary-color;
          }
      }
      &-dragOver{
          border: 2px dashed @primary-color;
      }
3affd6f3   梁灏   init upload compo...
79
  }