Skip to content

Commit a010322

Browse files
committed
Merge pull request #5 from yconoclast/css-rules
refactor css classes to be more specific
2 parents 5f31ab5 + cd50582 commit a010322

File tree

3 files changed

+112
-117
lines changed

3 files changed

+112
-117
lines changed

css/color-picker.css

Lines changed: 41 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,71 +13,66 @@
1313
margin: 0px;
1414
font-size: 11px; }
1515

16-
.arrow {
17-
height: 0px;
18-
width: 0px;
16+
.color-picker {
17+
margin-left: 10px;
18+
width: 232px;
19+
height: 290px;
20+
border: #777 solid 1px;
21+
left: 30px;
22+
top: 250px;
23+
position: absolute;
24+
z-index: 1000;
25+
background-color: #fff;
26+
-webkit-touch-callout: none;
27+
-webkit-user-select: none;
28+
-khtml-user-select: none;
29+
-moz-user-select: none;
30+
-ms-user-select: none;
31+
user-select: none; }
32+
.color-picker i {
33+
cursor: default;
34+
position: relative; }
35+
.color-picker input {
36+
text-align: center;
37+
font-size: 13px;
38+
height: 26px; }
39+
.color-picker input:invalid {
40+
box-shadow: none; }
41+
.color-picker input:-moz-submit-invalid {
42+
box-shadow: none; }
43+
.color-picker input:-moz-ui-invalid {
44+
box-shadow: none; }
45+
.color-picker button {
46+
position: absolute;
47+
top: 275px;
48+
left: 161px; }
49+
.color-picker .arrow {
50+
height: 0;
51+
width: 0;
1952
border-style: solid;
2053
position: absolute;
2154
z-index: 999999; }
22-
23-
.arrow-right {
55+
.color-picker .arrow-right {
2456
border-width: 5px 10px;
2557
border-color: transparent #777 transparent transparent;
2658
top: 10px;
2759
left: -20px; }
28-
29-
.arrow-left {
60+
.color-picker .arrow-left {
3061
border-width: 5px 10px;
3162
border-color: transparent transparent transparent #777;
3263
top: 10px;
3364
left: 231px; }
34-
35-
.arrow-bottom {
65+
.color-picker .arrow-bottom {
3666
border-width: 10px 5px;
3767
border-color: transparent transparent #777 transparent;
3868
top: -21px;
39-
left: 0px; }
40-
41-
.arrow-top {
69+
left: 0; }
70+
.color-picker .arrow-top {
4271
border-width: 10px 5px;
4372
border-color: #777 transparent transparent transparent;
4473
top: 299px;
4574
left: 20px; }
4675

47-
.color-picker {
48-
margin-left: 10px;
49-
width: 232px;
50-
height: 290px;
51-
border: #777 solid 1px;
52-
left: 30px;
53-
top: 250px;
54-
position: absolute;
55-
z-index: 1000;
56-
background-color: #fff;
57-
-webkit-touch-callout: none;
58-
-webkit-user-select: none;
59-
-khtml-user-select: none;
60-
-moz-user-select: none;
61-
-ms-user-select: none;
62-
user-select: none; }
63-
.color-picker i {
64-
cursor: default;
65-
position: relative; }
66-
.color-picker input {
67-
text-align: center;
68-
font-size: 13px;
69-
height: 26px; }
70-
.color-picker input:invalid {
71-
box-shadow: none; }
72-
.color-picker input:-moz-submit-invalid {
73-
box-shadow: none; }
74-
.color-picker input:-moz-ui-invalid {
75-
box-shadow: none; }
76-
.color-picker button {
77-
position: absolute;
78-
top: 275px;
79-
left: 161px; }
80-
8176
.color-picker-extra-large {
8277
height: 320px !important; }
8378

0 commit comments

Comments
 (0)