Blame view

src/styles/components/color-picker.less 1.3 KB
c6faec44   梁灏   init ColorPicker
1
2
3
  @color-picker-prefix-cls: ~"@{css-prefix}color-picker";
  
  .@{color-picker-prefix-cls} {
b6bda1dc   梁灏   update ColorPicker
4
5
6
7
      &-rel{
          line-height: 0;
      }
      &-color{
9673dcb0   梁灏   update ColorPicker
8
9
          width: 18px;
          height: 18px;
dab39476   梁灏   update ColorPicker
10
11
          box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
          border-radius: 2px;
9673dcb0   梁灏   update ColorPicker
12
13
14
15
16
17
18
19
20
21
22
23
          position: relative;
          top: 2px;
      }
      &-large &-color{
          width: 20px;
          height: 20px;
          top: 1px;
      }
      &-small &-color{
          width: 14px;
          height: 14px;
          top: 3px;
b6bda1dc   梁灏   update ColorPicker
24
      }
9af2f01c   梁灏   update ColorPicker
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  
      &-picker{
          padding: 8px 8px 0;
          &-panel{
              width: 200px;
              height: 200px;
              margin: 0 auto;
              background: #47cb89;
              border-radius: 50%;
          }
          &-hue-slider{
  
          }
          &-alpha-slider{
  
          }
          &-colors{
              margin-top: 8px;
              span{
                  display: inline-block;
                  width: 18px;
                  height: 18px;
                  em{
                      display: block;
                      width: 16px;
                      height: 16px;
9af2f01c   梁灏   update ColorPicker
51
52
                      cursor: pointer;
                      border-radius: 2px;
dab39476   梁灏   update ColorPicker
53
                      box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
9af2f01c   梁灏   update ColorPicker
54
55
56
                  }
              }
          }
9af2f01c   梁灏   update ColorPicker
57
58
59
60
          .@{picker-prefix-cls}-confirm{
              margin-top: 8px;
          }
      }
c6faec44   梁灏   init ColorPicker
61
  }