Skip to content

Commit

Permalink
Merge pull request #5 from yconoclast/css-rules
Browse files Browse the repository at this point in the history
refactor css classes to be more specific
  • Loading branch information
Alberplz committed Mar 31, 2016
2 parents 5f31ab5 + cd50582 commit a010322
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 117 deletions.
87 changes: 41 additions & 46 deletions css/color-picker.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,71 +13,66 @@
margin: 0px;
font-size: 11px; }

.arrow {
height: 0px;
width: 0px;
.color-picker {
margin-left: 10px;
width: 232px;
height: 290px;
border: #777 solid 1px;
left: 30px;
top: 250px;
position: absolute;
z-index: 1000;
background-color: #fff;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; }
.color-picker i {
cursor: default;
position: relative; }
.color-picker input {
text-align: center;
font-size: 13px;
height: 26px; }
.color-picker input:invalid {
box-shadow: none; }
.color-picker input:-moz-submit-invalid {
box-shadow: none; }
.color-picker input:-moz-ui-invalid {
box-shadow: none; }
.color-picker button {
position: absolute;
top: 275px;
left: 161px; }
.color-picker .arrow {
height: 0;
width: 0;
border-style: solid;
position: absolute;
z-index: 999999; }

.arrow-right {
.color-picker .arrow-right {
border-width: 5px 10px;
border-color: transparent #777 transparent transparent;
top: 10px;
left: -20px; }

.arrow-left {
.color-picker .arrow-left {
border-width: 5px 10px;
border-color: transparent transparent transparent #777;
top: 10px;
left: 231px; }

.arrow-bottom {
.color-picker .arrow-bottom {
border-width: 10px 5px;
border-color: transparent transparent #777 transparent;
top: -21px;
left: 0px; }

.arrow-top {
left: 0; }
.color-picker .arrow-top {
border-width: 10px 5px;
border-color: #777 transparent transparent transparent;
top: 299px;
left: 20px; }

.color-picker {
margin-left: 10px;
width: 232px;
height: 290px;
border: #777 solid 1px;
left: 30px;
top: 250px;
position: absolute;
z-index: 1000;
background-color: #fff;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; }
.color-picker i {
cursor: default;
position: relative; }
.color-picker input {
text-align: center;
font-size: 13px;
height: 26px; }
.color-picker input:invalid {
box-shadow: none; }
.color-picker input:-moz-submit-invalid {
box-shadow: none; }
.color-picker input:-moz-ui-invalid {
box-shadow: none; }
.color-picker button {
position: absolute;
top: 275px;
left: 161px; }

.color-picker-extra-large {
height: 320px !important; }

Expand Down
Loading

0 comments on commit a010322

Please sign in to comment.