0

finished styling controls

This commit is contained in:
Aaron Griffith
2011-06-08 19:58:18 -04:00
parent 6bb39a87ca
commit 512b2032b2
4 changed files with 21 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
web_assets/control-bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -42,7 +42,8 @@ body {
text-align: center; text-align: center;
padding: 0px 6px; padding: 0px 6px;
background-color: white; background-image: url('control-bg.png');
background-repeat: repeat-x;
border: 1px solid #A9BBDF; border: 1px solid #A9BBDF;
border-radius: 2px 2px; border-radius: 2px 2px;
@@ -50,10 +51,26 @@ body {
cursor: pointer; cursor: pointer;
} }
.customControl > div.top:hover {
border: 1px solid #678AC7;
}
.customControl > div.top-active {
color: white;
font-weight: bold;
padding: 0px 5px;
border: 1px solid #678AC7;
background-image: url('control-bg-active.png');
}
.customControl > div.dropDown { .customControl > div.dropDown {
border: 1px solid #000;
font-size: 12px; font-size: 12px;
background-color: #fff; background-color: white;
border: 1px solid #A9BBDF;
border-radius: 2px 2px;
box-shadow: rgba(0, 0, 0, 0.347656) 2px 2px 3px;
display: none; display: none;
} }

View File

@@ -706,6 +706,7 @@ var overviewer = {
// add the functionality to toggle visibility of the items // add the functionality to toggle visibility of the items
$(controlText).click(function() { $(controlText).click(function() {
$(controlBorder).toggleClass('top-active');
$(dropdownDiv).toggle(); $(dropdownDiv).toggle();
}); });