New icons

iconic icons
This commit is contained in:
astaar 2017-08-06 03:23:02 +02:00
parent fba2653302
commit c12214a912
8 changed files with 66 additions and 33 deletions

BIN
icon128.psd Normal file

Binary file not shown.

BIN
icon128_g.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
icon128_o.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@ -13,25 +13,25 @@
<div id="default"> <div id="default">
<div id="global"> <div id="global">
Enable globally:<br> Enable globally:<br>
<button id="statusBtn" class="enable" onclick="changeStatus()"><img src="icon96.png"></button> <button class="status statusEnabled"></button>
</div> </div>
<div id="individual"> <div id="individual">
Enable individually:<br> Enable individually:<br>
<div id="presets"> <div id="presets">
---placeholder--- <div class="element"><button class="switch switchEnabled"></button><div class="textElement">---placeholder---</div><br></div>
<!-- <button id="exception" class="enable" onclick="handleException()">Enable on page</button><br> --> <!-- <button id="exception" class="enable" onclick="handleException()">Enable on page</button><br> -->
</div> </div>
</div> </div>
</div> </div>
<div id="custom"> <div id="custom">
My rules:<br> My rules (advanced):<br>
<div id="rules"> <div id="rules">
---placeholder---<br> ---placeholder---<br>
</div> </div>
<div id="addRuleOuter"> <div id="addRuleOuter">
Add new rule (advanced):<br> Add new rule:<br>
<div id="addRuleInner"> <div id="addRuleInner">
<div id="addRuleField"><input type="text"></div><div id="addRuleBtn"><img src="plus.png"></div> <div id="addRuleField"><input type="text"></div><button id="addRuleBtn"><img src="plus.png"></button>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,9 +1,8 @@
body { body {
margin: 0; margin: 0;
margin-bottom: 5px;
background: #fff; background: #fff;
min-width: 400px; min-width: 500px;
max-width: 500px; max-width: 600px;
font-family: "Arial"; font-family: "Arial";
} }
@ -12,19 +11,23 @@ img {
margin: auto; margin: auto;
} }
input[type="text"] {
width: auto;
}
#main { #main {
max-width: 500px; max-width: 500px;
max-height: 400px; max-height: 400px;
overflow: auto; overflow-y: auto;
overflow-x: hidden;
white-space: nowrap;
} }
#content { #content {
display: inline-block;
padding: 10px 10px 20px 10px;
width: calc(100% - 20px);
font-size: 14pt; font-size: 14pt;
padding: 10px;
} }
.header { .header {
@ -37,8 +40,12 @@ input[type="text"] {
margin: 5px 0px 5px 0px; margin: 5px 0px 5px 0px;
} }
#default::after, #addRuleOuter::after, #addRuleInner::after {
content: "";
#default::after, #presets::after, .element::after, #rules::after, #addRuleOuter::after, #addRuleInner::after {
content: " ";
clear: both; clear: both;
display: table; display: table;
} }
@ -48,28 +55,27 @@ input[type="text"] {
float: left; float: left;
} }
.enable { .status {
border: none;
background: none;
}
.enable:hover {
filter: brightness(90%);
}
.disable {
color: #fcf9fa;
background: #b2aeaf;
}
.disable:hover {
background: #4c4b4c;
}
#statusBtn {
display: block; display: block;
width: 145px;
height: 145px;
margin-top: 10px; margin-top: 10px;
margin-left: 10px; margin-left: 10px;
padding: 0; padding: 0;
background: none;
border: none;
} }
.status:hover {
filter: brightness(90%);
}
.statusEnabled {
background-image: url("icon128_o.png");
}
.statusDisabled {
background-image: url("icon128_g.png");
}
#individual { #individual {
width: 50%; width: 50%;
@ -80,6 +86,10 @@ input[type="text"] {
margin: 10px 0px 0px 10px; margin: 10px 0px 0px 10px;
} }
#custom { #custom {
margin-top: 20px; margin-top: 20px;
width: 100%; width: 100%;
@ -111,7 +121,30 @@ input[type="text"] {
border: none; border: none;
border-radius: 5px; border-radius: 5px;
} }
#addRuleBtn:hover { #addRuleBtn:hover {
background-color: #96d160; background-color: #96d160;
} }
.switch {
margin-right: 10px;
width: 50px;
height: 26px;
float: left;
background: none;
border: none;
}
.switchEnabled {
background-image: url("switchEnabled.png");
}
.switchDisabled {
background-image: url("switchDisabled.png");
}
.textElement {
clear: right;
text-overflow: ellipsis;
}

BIN
switchDisabled.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
switchEnabled.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
toggle.psd Normal file

Binary file not shown.