Update fedmenu resources.

This commit is contained in:
Ralph Bean 2015-04-23 19:27:47 +00:00
parent 02dbedfe9b
commit 923b88e699
2 changed files with 21 additions and 13 deletions

View file

@ -7,22 +7,22 @@
.fedmenu-bottom-left {
position: fixed;
bottom: 10;
left: 10;
bottom: 10px;
left: 10px;
}
.fedmenu-bottom-right {
position: fixed;
bottom: 10;
right: 10;
bottom: 10px;
right: 10px;
}
.fedmenu-bottom-left:hover .fedmenu-bottom-left.fedmenu-active {
bottom: 2;
left: 2;
bottom: 2px;
left: 2px;
}
.fedmenu-bottom-right:hover .fedmenu-bottom-right.fedmenu-active {
bottom: 2;
right 2;
bottom: 2px;
right 2px;
}
#fedmenu-tray {
@ -61,14 +61,14 @@
filter: drop-shadow(4px 4px 6px #222);
}
.fedmenu-button .img {
.fedmenu-button div.img {
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-size: 100% 100%;
}
#fedmenu-main-button .img { background-image: url("../img/logo.png"); }
#fedmenu-user-button .img { border-radius: 50%; /* Make avatars into a circle */ }
#fedmenu-main-button div.img { background-image: url("../img/logo.png"); }
#fedmenu-user-button div.img { border-radius: 50%; /* Make avatars into a circle */ }
#fedmenu-wrapper {
position: fixed;
@ -158,6 +158,7 @@
font-family: Montserrat;
font-weight: bold;
border-bottom: 2px solid;
color: #294172;
}
.fedmenu-panel {
@ -167,9 +168,13 @@
font-size: 8pt;
padding: 15px;
}
.fedmenu-panel ul {
margin-top: 10px;
padding-left: 0px;
}
.fedmenu-panel li {
list-style: none;
margin-left: -40px;
margin-left: 0px;
}
.fedmenu-panel a,

View file

@ -16,7 +16,10 @@ var fedmenu = function(options) { $(document).ready(function() {
if (o['package'] != null) buttons += '<div id="fedmenu-package-button" class="fedmenu-button"><div class="img"></div></div>';
buttons += '<div id="fedmenu-main-button" class="fedmenu-button"><div class="img"></div></div>';
$('body').append('<link href="https://apps.stg.fedoraproject.org/fedmenu/css/fedmenu.css" rel="stylesheet">');
var script = $("script[src$='fedmenu.js']").attr('src');
var base = script.slice(0, -13);
$('body').append('<link href="' + base + 'css/fedmenu.css" rel="stylesheet">');
$('body').append(
'<div id="fedmenu-tray" class="fedmenu-' + o.position + '">' +
buttons + '</div>');