Fix active button ui

pull/2256/head
0ip 2014-10-03 17:35:48 +02:00
parent d25d81b9e2
commit 12c1d3b05a
5 changed files with 17 additions and 25 deletions

View File

@ -160,11 +160,11 @@ a img {
border: 1px solid #ccc; border: 1px solid #ccc;
outline: none; outline: none;
} }
#usericon a { li[data-key=showusers] > a {
min-width: 30px; min-width: 30px;
text-align: left; text-align: left;
} }
#usericon a #online_count { li[data-key=showusers] > a #online_count {
color: #777; color: #777;
font-size: 10px; font-size: 10px;
position: relative; position: relative;
@ -814,7 +814,7 @@ input[type=checkbox] {
float: left; float: left;
} }
#settings, #settings,
#importexport, #import_export,
#embed, #embed,
#connectivity, #connectivity,
#users { #users {
@ -1070,15 +1070,4 @@ input[type=checkbox] {
text-shadow: none; text-shadow: none;
} }
/* End of gritter stuff */ /* End of gritter stuff */
.activeButton{
background: #eee;
background: -webkit-linear-gradient(#ddd, #fff);
background: -moz-linear-gradient(#ddd, #fff);
background: -o-linear-gradient(#ddd, #fff);
background: -ms-linear-gradient(#ddd, #fff);
background: linear-gradient(#ddd, #fff);
-webkit-box-shadow: 0 0 8px rgba(0,0,0,.1) inset;
-moz-box-shadow: 0 0 8px rgba(0,0,0,.1) inset;
box-shadow: 0 0 8px rgba(0,0,0,.1) inset;
}

View File

@ -158,16 +158,19 @@
float: right float: right
} }
#settings, #settings,
#importexport, #import_export,
#embed, #embed,
#connectivity, #connectivity,
#users { #users {
top: 62px; top: 62px;
} }
#importexport .popup { #import_export .popup {
width: 185px width: 183px;
border-top: none;
border-right: none;
border-radius: 0 0 0 6px;
} }
#importexport { #import_export {
top: 118px; top: 118px;
width: 185px; width: 185px;
} }

View File

@ -206,7 +206,7 @@ var padeditbar = (function()
if(module.css('display') != "none") if(module.css('display') != "none")
{ {
$("#" + self.dropdowns[i] + "link").removeClass("selected"); $("li[data-key=" + self.dropdowns[i] + "] > a").removeClass("selected");
module.slideUp("fast", cb); module.slideUp("fast", cb);
returned = true; returned = true;
} }
@ -223,12 +223,12 @@ var padeditbar = (function()
if(module.css('display') != "none") if(module.css('display') != "none")
{ {
$("#" + self.dropdowns[i] + "link").removeClass("selected"); $("li[data-key=" + self.dropdowns[i] + "] > a").removeClass("selected");
module.slideUp("fast"); module.slideUp("fast");
} }
else if(self.dropdowns[i]==moduleName) else if(self.dropdowns[i]==moduleName)
{ {
$("#" + self.dropdowns[i] + "link").addClass("selected"); $("li[data-key=" + self.dropdowns[i] + "] > a").addClass("selected");
module.slideDown("fast", cb); module.slideDown("fast", cb);
} }
} }
@ -271,7 +271,7 @@ var padeditbar = (function()
toolbar.registerDropdownCommand("showusers", "users"); toolbar.registerDropdownCommand("showusers", "users");
toolbar.registerDropdownCommand("settings"); toolbar.registerDropdownCommand("settings");
toolbar.registerDropdownCommand("connectivity"); toolbar.registerDropdownCommand("connectivity");
toolbar.registerDropdownCommand("import_export", "importexport"); toolbar.registerDropdownCommand("import_export");
toolbar.registerDropdownCommand("embed"); toolbar.registerDropdownCommand("embed");
toolbar.registerCommand("embed", function () { toolbar.registerCommand("embed", function () {

View File

@ -174,7 +174,7 @@
</div> </div>
</div> </div>
<div id="importexport" class="popup"> <div id="import_export" class="popup">
<h1 data-l10n-id="pad.importExport.import_export"></h1> <h1 data-l10n-id="pad.importExport.import_export"></h1>
<div class="column acl-write"> <div class="column acl-write">
<% e.begin_block("importColumn"); %> <% e.begin_block("importColumn"); %>

View File

@ -177,7 +177,7 @@
</div> </div>
<!-- export code --> <!-- export code -->
<div id="importexport"> <div id="import_export">
<div id="export" class="popup"> <div id="export" class="popup">
<p data-l10n-id="timeslider.exportCurrent"></p> <p data-l10n-id="timeslider.exportCurrent"></p>