Use real colors for the color buttons on the LED strip configuration tab

10.3.x-maintenance
bradnon 2015-03-15 02:09:08 -04:00 committed by bradnon
parent 432d9f0720
commit 5c5fb26aad
2 changed files with 41 additions and 18 deletions

View File

@ -144,7 +144,7 @@
margin: 3px 0;
}
.tab-led-strip button:hover {
.tab-led-strip .not(colors) button:hover {
background-color: #acacac;
}
@ -170,7 +170,30 @@
.tab-led-strip .functions .function-c.btnOn {
background: linear-gradient( to bottom right, rgba(255, 0, 0, .5) 0%, rgba(255, 255, 0, 0.5) 15%, rgba(0, 255, 0, .5) 30%, rgba(0, 255, 255, .5) 50%, rgba(0, 0, 255, .5) 65%, rgba(255, 0, 255, .5) 80%, rgba(255, 0, 0, .5) 100%);
}
.tab-led-strip .colors .btnOn,
.tab-led-strip .color-0 {background: black; color: white;}
.tab-led-strip .color-1 {background: white; color: black;}
.tab-led-strip .color-2 {background: red; color: white;}
.tab-led-strip .color-3 {background: orange; color: black;}
.tab-led-strip .color-4 {background: yellow; color: black;}
.tab-led-strip .color-5 {background: lime; color: black;}
.tab-led-strip .color-6 {background: green; color: white;}
.tab-led-strip .color-7 {background: palegreen; color: black;}
.tab-led-strip .color-8 {background: cyan; color: white;}
.tab-led-strip .color-9 {background: lightcyan; color: black;}
.tab-led-strip .color-10 {background: blue; color: white;}
.tab-led-strip .color-11 {background: darkviolet; color: white;}
.tab-led-strip .color-12 {background: magenta; color: white;}
.tab-led-strip .color-13 {background: deeppink; color: white;}
.tab-led-strip .color-14 {background: black; color: white;}
.tab-led-strip .color-15 {background: black; color: white;}
.tab-led-strip .colors .btnOn {box-shadow: brown 2px 3px 3px;}
.tab-led-strip .colors button:hover {
border-color: inherit;
border-style: solid;
}
.tab-led-strip .directions .btnOn {background: #FFF; color: #000;}
.tab-led-strip .indicators {

View File

@ -48,22 +48,22 @@
<button class="dir-d">D</button>
</div>
<div class="colors">
<button class="color-0">0</button>
<button class="color-1">1</button>
<button class="color-2">2</button>
<button class="color-3">3</button>
<button class="color-4">4</button>
<button class="color-5">5</button>
<button class="color-6">6</button>
<button class="color-7">7</button>
<button class="color-8">8</button>
<button class="color-9">9</button>
<button class="color-10">10</button>
<button class="color-11">11</button>
<button class="color-12">12</button>
<button class="color-13">13</button>
<button class="color-14">14</button>
<button class="color-15">15</button>
<button class="color-0" title="black">0</button>
<button class="color-1" title="white">1</button>
<button class="color-2" title="red">2</button>
<button class="color-3" title="orange">3</button>
<button class="color-4" title="yellow">4</button>
<button class="color-5" title="lime green">5</button>
<button class="color-6" title="green">6</button>
<button class="color-7" title="mint green">7</button>
<button class="color-8" title="cyan">8</button>
<button class="color-9" title="light blue">9</button>
<button class="color-10" title="blue">10</button>
<button class="color-11" title="dark violet">11</button>
<button class="color-12" title="magenta">12</button>
<button class="color-13" title="deep pink">13</button>
<button class="color-14" title="black">14</button>
<button class="color-15" title="black">15</button>
</div>