Reduce nesting, rewrite selectors

This commit is contained in:
verpixelt
2015-11-17 11:07:34 +01:00
parent 4e2db14e47
commit 315dbadb23

View File

@@ -1,23 +1,23 @@
@import 'src/main/less/highlight_default.less'; @import 'src/main/less/highlight_default.less';
@import 'src/main/less/specs.less'; @import 'src/main/less/specs.less';
@import 'src/main/less/auth.less'; @import 'src/main/less/auth.less';
.swagger-section { .swagger-section {
.access { .access { float: right; }
float: right;
}
.auth { .auth { float: right; }
float: right;
}
.api-ic { .api-ic {
height: 18px; height: 18px;
vertical-align: middle; vertical-align: middle;
display: inline-block; display: inline-block;
background: url(../images/explorer_icons.png) no-repeat; background: url(../images/explorer_icons.png) no-repeat;
.api_information_panel { }
.api-ic .api_information_panel {
position: relative; position: relative;
margin-top: 20px; margin-top: 20px;
margin-left: -5px; margin-left: -5px;
@@ -30,82 +30,80 @@
line-height: 30px; line-height: 30px;
color: black; color: black;
padding: 5px; padding: 5px;
p {
.api-msg-enabled {
color: green;
} }
.api-msg-disabled {
color: red;
}
}
}
}
.api-ic:hover { .api-ic .api_information_panel p .api-msg-enabled { color: green; }
.api_information_panel { .api-ic .api_information_panel p .api-msg-disabled { color: red; }
.api-ic:hover .api_information_panel {
position: absolute; position: absolute;
display: block; display: block;
} }
}
.ic-info { .ic-info {
background-position: 0 0; background-position: 0 0;
width: 18px; width: 18px;
margin-top: -6px; margin-top: -6px;
margin-left: 4px; margin-left: 4px;
} }
.ic-warning {
.ic-warning {
background-position: -60px 0; background-position: -60px 0;
width: 18px; width: 18px;
margin-top: -6px; margin-top: -6px;
margin-left: 4px; margin-left: 4px;
} }
.ic-error {
.ic-error {
background-position: -30px 0; background-position: -30px 0;
width: 18px; width: 18px;
margin-top: -6px; margin-top: -6px;
margin-left: 4px; margin-left: 4px;
} }
.ic-off {
.ic-off {
background-position: -90px 0; background-position: -90px 0;
width: 58px; width: 58px;
margin-top: -4px; margin-top: -4px;
cursor: pointer; cursor: pointer;
} }
.ic-on {
.ic-on {
background-position: -160px 0; background-position: -160px 0;
width: 58px; width: 58px;
margin-top: -4px; margin-top: -4px;
cursor: pointer; cursor: pointer;
} }
#header { #header {
background-color: #89bf04; background-color: #89bf04;
padding: 14px; padding: 14px;
a#logo {
font-size: 1.5em;
font-weight: bold;
text-decoration: none;
background: transparent url(../images/logo_small.png) no-repeat left center;
padding: 20px 0 20px 40px;
color: white;
} }
form#api_selector {
#input_baseUrl { width: 400px; }
#api_selector {
display: block; display: block;
clear: none; clear: none;
float: right; float: right;
.input { }
#api_selector .input {
display: block; display: block;
clear: none; clear: none;
float: left; float: left;
margin: 0 10px 0 0; margin: 0 10px 0 0;
input#input_apiKey {
width: 200px;
} }
input#input_baseUrl {
width: 400px; #api_selector input {
font-size: 0.9em;
padding: 3px;
margin: 0;
} }
a#explore {
#input_apiKey { width: 200px; }
#explore {
display: block; display: block;
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
@@ -119,29 +117,28 @@
-ms-border-radius: 4px; -ms-border-radius: 4px;
-khtml-border-radius: 4px; -khtml-border-radius: 4px;
border-radius: 4px; border-radius: 4px;
}
a#explore:hover {
background-color: #547f00;
}
input {
font-size: 0.9em;
padding: 3px;
margin: 0;
}
}
}
}
#content_message { &:hover { background-color: #547f00; }
}
#header a#logo {
font-size: 1.5em;
font-weight: bold;
text-decoration: none;
background: transparent url(../images/logo_small.png) no-repeat left center;
padding: 20px 0 20px 40px;
color: white;
}
#content_message {
margin: 10px 15px; margin: 10px 15px;
font-style: italic; font-style: italic;
color: #999999; color: #999999;
} }
#message-bar { #message-bar {
min-height: 30px; min-height: 30px;
text-align: center; text-align: center;
padding-top: 10px; padding-top: 10px;
} }
} }