Use prettier for SCSS (#3895)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / colorPicker.scss
CommitLineData
ee013cde
AE
1#colorPickerGradient {
2 background-color: #f00;
8a52619a 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;
8a52619a 12
ee013cde
AE
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;
8a52619a 22
ee013cde
AE
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 {
8a52619a 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;
8a52619a 43
ee013cde
AE
44 > span {
45 display: inline-block;
46 height: 1px;
47 left: 0;
48 position: absolute;
49 top: 27px;
50 width: 16px;
8a52619a 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 }
8a52619a 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 }
8a52619a 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;
8a52619a 86
ee013cde 87 > .colors {
431fed3f 88 margin-left: 2px;
8a52619a 89
ee013cde
AE
90 > .new,
91 > .old {
431fed3f 92 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEX////MzMw46qqDAAAAD0lEQVQI12P4z4Ad4ZAAAH6/D/Hgw85/AAAAAElFTkSuQmCC);
ee013cde 93 border: 1px solid rgba(0, 0, 0, 1);
5f75607b 94 box-sizing: content-box;
ee013cde
AE
95 display: block;
96 height: 24px;
8a52619a 97
431fed3f
MW
98 > span {
99 display: block;
100 height: 24px;
101 }
ee013cde 102 }
8a52619a 103
ee013cde 104 > .old {
431fed3f 105 background-position: 8px 0;
ee013cde
AE
106 border-top-width: 0;
107 }
108 }
8a52619a 109
ee013cde 110 > .hex {
21bb06e2 111 margin-top: 20px;
ee013cde 112 }
8a52619a 113
ee013cde 114 > .rgba {
21bb06e2 115 margin-top: 20px;
8a52619a 116
ee013cde 117 > li.a {
21bb06e2 118 margin-top: 10px;
ee013cde 119 }
8a52619a 120
907766b0
MW
121 > li.g,
122 > li.b {
123 margin-top: 2px;
124 }
ee013cde 125 }
8a52619a 126
ee013cde
AE
127 > .rgba > li,
128 > .hex > li {
129 text-align: right;
8a52619a 130
ee013cde 131 input {
21bb06e2 132 margin-left: 5px;
ee013cde
AE
133 width: 80px;
134 }
135 }
136}
f64b7433
MW
137
138.colorPreview {
139 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEX////MzMw46qqDAAAAD0lEQVQI12P4z4Ad4ZAAAH6/D/Hgw85/AAAAAElFTkSuQmCC);
140 border: 1px solid $wcfContentBorderInner;
141 display: inline-block;
8a52619a 142
f64b7433
MW
143 > div {
144 border: 2px solid $wcfContentBackground;
145 cursor: pointer;
146 display: block;
147 height: 60px;
148 width: 180px;
149 }
150}