Merge branch 'master' of github.com:WoltLab/WCF
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / colorPicker.less
CommitLineData
ee013cde
AE
1#colorPickerGradient {
2 background-color: #f00;
8eacc867 3 background-image: url('../images/colorPickerGradient.png');
ee013cde
AE
4 background-repeat: no-repeat;
5 border: 1px solid rgba(0, 0, 0, 1);
6 cursor: default;
7 display: inline-block;
8 height: 256px;
9 overflow: hidden;
10 position: relative;
11 width: 256px;
12
13 > span {
14 border: 1px solid rgba(0, 0, 0, 1);
15 border-radius: 10px;
16 display: block;
17 height: 10px;
18 left: -4px;
19 position: absolute;
20 top: -4px;
21 width: 10px;
22
23 > span {
24 border: 1px solid rgba(255, 255, 255, 1);
25 border-radius: 10px;
26 display: block;
27 height: 8px;
28 width: 8px;
29 }
30 }
0f0590c2 31}
ee013cde
AE
32
33#colorPickerBar {
8eacc867 34 background-image: url('../images/colorPickerBar.png');
ee013cde
AE
35 background-repeat: repeat-x;
36 border: 1px solid rgba(0, 0, 0, 1);
37 cursor: default;
38 display: inline-block;
39 height: 256px;
40 margin-left: 10px;
41 position: relative;
42 width: 16px;
43
44 > span {
45 display: inline-block;
46 height: 1px;
47 left: 0;
48 position: absolute;
49 top: 27px;
50 width: 16px;
2d63c13c 51
19e5d9ff
MW
52 &::after,
53 &::before {
ee013cde
AE
54 content: "";
55 display: block;
56 height: 0;
57 position: absolute;
58 top: 0;
59 width: 0;
60 }
61
19e5d9ff 62 &::after {
ee013cde
AE
63 border-bottom: 5px solid transparent;
64 border-right: 5px solid rgba(0, 0, 0, 1);
65 border-top: 5px solid transparent;
66 right: -7px;
67 top: -5px;
68 }
69
19e5d9ff 70 &::before {
ee013cde
AE
71 border-bottom: 5px solid transparent;
72 border-left: 5px solid rgba(0, 0, 0, 1);
73 border-top: 5px solid transparent;
74 left: -7px;
75 top: -5px;
76 }
77 }
78}
79
80#colorPickerForm {
81 display: inline-block;
82 margin-left: 20px;
83 position: relative;
d75df1b7 84 text-align: center;
ee013cde 85 width: 100px;
d7f7f6eb 86
ee013cde
AE
87 > .colors {
88 > .new,
89 > .old {
90 border: 1px solid rgba(0, 0, 0, 1);
91 display: block;
92 height: 24px;
93 }
94
95 > .old {
96 border-top-width: 0;
97 }
98 }
99
100 > .hex {
ee69ad79 101 margin-top: @wcfGapLarge;
ee013cde
AE
102 }
103
104 > .rgba {
ee69ad79 105 margin-top: @wcfGapLarge;
ee013cde
AE
106
107 > li.a {
ee69ad79 108 margin-top: @wcfGapSmall;
ee013cde 109 }
907766b0
MW
110
111 > li.g,
112 > li.b {
113 margin-top: 2px;
114 }
ee013cde
AE
115 }
116
117 > .rgba > li,
118 > .hex > li {
119 text-align: right;
120
121 input {
ee69ad79 122 margin-left: @wcfGapSmall;
ee013cde
AE
123 width: 80px;
124 }
125 }
126}