Style user options

This commit is contained in:
Brian Federle 2013-09-26 11:32:01 -07:00
parent 23093ed05c
commit 92a8dc23de
3 changed files with 33 additions and 3 deletions

View File

@ -332,6 +332,10 @@
return false;
});
}
if (this == 'label.logout') {
$link.addClass('logout');
}
});
// Initialize browser
@ -463,8 +467,14 @@
}
// User options
if ($target.closest('#user div.icon.options').size()) {
$('#user-options').toggle();
if ($target.closest('#user').size()) {
var $options = $('#user-options');
$options.css({
top: $target.offset().top + $target.height(),
left: $target.offset().left
});
$options.toggle();
return false;
}

View File

@ -202,10 +202,21 @@ body {
.ui-dialog, .notification-box, #user-options {
@include dialog;
display: none;
}
#user-options {
display: none;
a {
@include csui-hyperlink;
@include row;
&.logout {
font-weight: bold;
border-bottom: 1px solid gray;
margin-bottom: 25px;
}
}
}
// List view widget

View File

@ -22,6 +22,15 @@ html, body {
font-size: 13px;
}
@mixin csui-hyperlink {
color: black;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
// Sub-components
@import "login";
@import "button";