removed hover user menu
This commit is contained in:
parent
ede03fe1d5
commit
a74e00c159
3 changed files with 44 additions and 164 deletions
|
|
@ -30,7 +30,7 @@
|
||||||
= content_tag :div, msg, :id => "flash_#{name}"
|
= content_tag :div, msg, :id => "flash_#{name}"
|
||||||
|
|
||||||
%header
|
%header
|
||||||
.container
|
.container{:style => "position:relative;"}
|
||||||
#diaspora_text{:href => root_path}
|
#diaspora_text{:href => root_path}
|
||||||
= link_to "DIASPORA*", root_path
|
= link_to "DIASPORA*", root_path
|
||||||
%span.sub_text
|
%span.sub_text
|
||||||
|
|
@ -40,18 +40,16 @@
|
||||||
= link_to "photos", albums_path
|
= link_to "photos", albums_path
|
||||||
|
|
||||||
#session_action
|
#session_action
|
||||||
#global_search
|
%ul
|
||||||
= form_tag(people_path, :method => 'get') do
|
%li#global_search
|
||||||
%label{:for => 'q'} Search
|
= form_tag(people_path, :method => 'get') do
|
||||||
= text_field_tag 'q'
|
%label{:for => 'q'} Search
|
||||||
|
= text_field_tag 'q'
|
||||||
|
|
||||||
%ul#user_menu
|
%li= link_to current_user.real_name, current_user.person
|
||||||
%li
|
%li= link_to "requests (#{@request_count})", requests_path, :class => new_request(@request_count)
|
||||||
= owner_image_tag
|
%li= link_to "edit profile", edit_user_path(current_user)
|
||||||
= link_to current_user.real_name, current_user.person
|
%li= link_to "logout", destroy_user_session_path
|
||||||
%li.requests= link_to "requests (#{@request_count})", requests_path, :class => new_request(@request_count)
|
|
||||||
%li.settings= link_to "edit profile", edit_user_path(current_user)
|
|
||||||
%li.logout= link_to "logout", destroy_user_session_path
|
|
||||||
|
|
||||||
= render "shared/group_nav"
|
= render "shared/group_nav"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ header {
|
||||||
color: black;
|
color: black;
|
||||||
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(black), to(#333333));
|
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(black), to(#333333));
|
||||||
background: -moz-linear-gradient(19% 75% 90deg, #333333, black);
|
background: -moz-linear-gradient(19% 75% 90deg, #333333, black);
|
||||||
background-color: #333333;
|
background-color: #222222;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
border-bottom: 1px solid #cccccc; }
|
border-bottom: 1px solid #cccccc; }
|
||||||
|
|
@ -97,13 +97,20 @@ header {
|
||||||
header #diaspora_text span.sub_text {
|
header #diaspora_text span.sub_text {
|
||||||
text-shadow: none; }
|
text-shadow: none; }
|
||||||
header #session_action {
|
header #session_action {
|
||||||
position: relative;
|
top: 0;
|
||||||
|
position: absolute;
|
||||||
display: inline;
|
display: inline;
|
||||||
float: right;
|
right: 0; }
|
||||||
z-index: 3;
|
header #session_action ul {
|
||||||
padding-right: 10px; }
|
list-style: none;
|
||||||
header #session_action a.new_requests {
|
padding: 0;
|
||||||
color: #df0101; }
|
margin: 0;
|
||||||
|
display: inline; }
|
||||||
|
header #session_action ul li {
|
||||||
|
display: inline;
|
||||||
|
margin-right: 1em; }
|
||||||
|
header #session_action ul li:last-child {
|
||||||
|
margin-right: 0; }
|
||||||
header #group_header {
|
header #group_header {
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
text-shadow: 0 2px 0 white;
|
text-shadow: 0 2px 0 white;
|
||||||
|
|
@ -505,67 +512,10 @@ h1.big_text {
|
||||||
left: -25px;
|
left: -25px;
|
||||||
top: 4px; }
|
top: 4px; }
|
||||||
|
|
||||||
#user_menu {
|
|
||||||
position: absolute;
|
|
||||||
z-index: 10;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
display: inline-block;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
list-style: none; }
|
|
||||||
#user_menu > li {
|
|
||||||
display: none;
|
|
||||||
background-color: white;
|
|
||||||
width: 180px;
|
|
||||||
height: 29px;
|
|
||||||
border-left: 2px solid black;
|
|
||||||
border-right: 2px solid black; }
|
|
||||||
#user_menu > li:hover {
|
|
||||||
background-color: #eeeeee; }
|
|
||||||
#user_menu > li:first-child {
|
|
||||||
display: block;
|
|
||||||
background: none;
|
|
||||||
border-left: 2px solid #333333;
|
|
||||||
border-right: 2px solid #333333; }
|
|
||||||
#user_menu > li:first-child a {
|
|
||||||
color: #999999; }
|
|
||||||
#user_menu > li:first-child img {
|
|
||||||
position: absolute;
|
|
||||||
width: 20px;
|
|
||||||
height: 20px;
|
|
||||||
top: 3px;
|
|
||||||
left: 9px; }
|
|
||||||
#user_menu > li:last-child {
|
|
||||||
border-bottom: 2px solid black; }
|
|
||||||
#user_menu > li a {
|
|
||||||
display: block;
|
|
||||||
height: 100%;
|
|
||||||
padding-left: 40px;
|
|
||||||
padding-top: 5px;
|
|
||||||
color: black; }
|
|
||||||
#user_menu > li a:hover {
|
|
||||||
background-color: transparent; }
|
|
||||||
#user_menu .requests {
|
|
||||||
background-image: url("/images/glyphish-icons/icons/40-inbox.png");
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: 5px; }
|
|
||||||
#user_menu .settings {
|
|
||||||
background-image: url("/images/glyphish-icons/icons/20-gear2.png");
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: 5px; }
|
|
||||||
#user_menu .logout {
|
|
||||||
background-image: url("/images/glyphish-icons/icons/54-lock.png");
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: 5px; }
|
|
||||||
#user_menu:hover li {
|
|
||||||
display: block; }
|
|
||||||
|
|
||||||
#global_search {
|
#global_search {
|
||||||
display: inline;
|
display: inline;
|
||||||
position: relative;
|
position: relative;
|
||||||
opacity: 0.5;
|
opacity: 0.5; }
|
||||||
padding-right: 167px; }
|
|
||||||
#global_search form {
|
#global_search form {
|
||||||
display: inline; }
|
display: inline; }
|
||||||
#global_search form input {
|
#global_search form input {
|
||||||
|
|
|
||||||
|
|
@ -111,14 +111,26 @@ header
|
||||||
:shadow none
|
:shadow none
|
||||||
|
|
||||||
#session_action
|
#session_action
|
||||||
:position relative
|
:top 0
|
||||||
|
:position absolute
|
||||||
:display inline
|
:display inline
|
||||||
:float right
|
:right 0
|
||||||
:z-index 3
|
|
||||||
a
|
ul
|
||||||
&.new_requests
|
:list
|
||||||
:color #DF0101
|
:style none
|
||||||
:padding-right 10px
|
:padding 0
|
||||||
|
:margin 0
|
||||||
|
:display inline
|
||||||
|
|
||||||
|
li
|
||||||
|
:display inline
|
||||||
|
:margin
|
||||||
|
:right 1em
|
||||||
|
|
||||||
|
&:last-child
|
||||||
|
:margin
|
||||||
|
:right 0
|
||||||
|
|
||||||
#group_header
|
#group_header
|
||||||
:z-index 5
|
:z-index 5
|
||||||
|
|
@ -654,91 +666,11 @@ h1.big_text
|
||||||
:left -25px
|
:left -25px
|
||||||
:top 4px
|
:top 4px
|
||||||
|
|
||||||
#user_menu
|
|
||||||
:position absolute
|
|
||||||
:z-index 10
|
|
||||||
:top 0
|
|
||||||
:right 0
|
|
||||||
:display inline-block
|
|
||||||
:padding 0
|
|
||||||
:margin 0
|
|
||||||
:list
|
|
||||||
:style none
|
|
||||||
|
|
||||||
> li
|
|
||||||
:display none
|
|
||||||
:background
|
|
||||||
:color #fff
|
|
||||||
:width 180px
|
|
||||||
:height 29px
|
|
||||||
:border
|
|
||||||
:left 2px solid #000
|
|
||||||
:right 2px solid #000
|
|
||||||
|
|
||||||
&:hover
|
|
||||||
:background
|
|
||||||
:color #eee
|
|
||||||
|
|
||||||
&:first-child
|
|
||||||
:display block
|
|
||||||
:background none
|
|
||||||
:border
|
|
||||||
:left 2px solid #333
|
|
||||||
:right 2px solid #333
|
|
||||||
a
|
|
||||||
:color #999
|
|
||||||
|
|
||||||
img
|
|
||||||
:position absolute
|
|
||||||
:width 20px
|
|
||||||
:height 20px
|
|
||||||
:top 3px
|
|
||||||
:left 9px
|
|
||||||
|
|
||||||
&:last-child
|
|
||||||
:border
|
|
||||||
:bottom 2px solid #000
|
|
||||||
|
|
||||||
a
|
|
||||||
:display block
|
|
||||||
:height 100%
|
|
||||||
:padding
|
|
||||||
:left 40px
|
|
||||||
:top 5px
|
|
||||||
:color #000
|
|
||||||
|
|
||||||
&:hover
|
|
||||||
:background
|
|
||||||
:color transparent
|
|
||||||
|
|
||||||
.requests
|
|
||||||
:background
|
|
||||||
:image url('/images/glyphish-icons/icons/40-inbox.png')
|
|
||||||
:repeat no-repeat
|
|
||||||
:position 5px
|
|
||||||
.settings
|
|
||||||
:background
|
|
||||||
:image url('/images/glyphish-icons/icons/20-gear2.png')
|
|
||||||
:repeat no-repeat
|
|
||||||
:position 5px
|
|
||||||
.logout
|
|
||||||
:background
|
|
||||||
:image url('/images/glyphish-icons/icons/54-lock.png')
|
|
||||||
:repeat no-repeat
|
|
||||||
:position 5px
|
|
||||||
|
|
||||||
&:hover li
|
|
||||||
:display block
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#global_search
|
#global_search
|
||||||
:display inline
|
:display inline
|
||||||
:position relative
|
:position relative
|
||||||
:opacity 0.5
|
:opacity 0.5
|
||||||
:padding
|
|
||||||
:right 167px
|
|
||||||
|
|
||||||
form
|
form
|
||||||
:display inline
|
:display inline
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue