Add shortcut numbers for 1-9 palette colors

This commit is contained in:
juliandescottes 2015-08-13 00:44:47 +02:00
parent 9f0aaceb5f
commit cd36c07a45

View File

@ -15,6 +15,48 @@
height: 32px;
position: relative;
}
.palettes-list-color:nth-child(-n+10):after {
position: absolute;
top: 0;
right: 0;
background-color: #444;
color: white;
font-size: 0.5em;
padding: 1px;
padding-left: 2px;
border-radius: 0 0 0 2px;
}
.palettes-list-color:nth-child(1):after {
content: "1";
}
.palettes-list-color:nth-child(2):after {
content: "2";
}
.palettes-list-color:nth-child(3):after {
content: "3";
}
.palettes-list-color:nth-child(4):after {
content: "4";
}
.palettes-list-color:nth-child(5):after {
content: "5";
}
.palettes-list-color:nth-child(6):after {
content: "6";
}
.palettes-list-color:nth-child(7):after {
content: "7";
}
.palettes-list-color:nth-child(8):after {
content: "8";
}
.palettes-list-color:nth-child(9):after {
content: "9";
}
.palettes-list-color:nth-child(-n+5) {
margin-top: 5px;
}