Commit efeb060cdbc188c449d081bb94c6ceff568d05ae
1 parent
04e9879f
git
Showing
2 changed files
with
5 additions
and
13 deletions
Show diff stats
frontend/web/css/style.css
| @@ -825,20 +825,21 @@ li.project-home-active span { | @@ -825,20 +825,21 @@ li.project-home-active span { | ||
| 825 | } | 825 | } |
| 826 | 826 | ||
| 827 | .federation-home-list { | 827 | .federation-home-list { |
| 828 | - | 828 | + float: left; |
| 829 | height: 27px; | 829 | height: 27px; |
| 830 | - width: 502px; | ||
| 831 | - margin: 0 auto; | 830 | + position: relative; |
| 831 | + left: 50%; | ||
| 832 | } | 832 | } |
| 833 | 833 | ||
| 834 | .federation-home-list li { | 834 | .federation-home-list li { |
| 835 | list-style: none; | 835 | list-style: none; |
| 836 | float: left; | 836 | float: left; |
| 837 | - | ||
| 838 | padding: 0 20px; | 837 | padding: 0 20px; |
| 839 | height: 27px; | 838 | height: 27px; |
| 840 | line-height: 27px; | 839 | line-height: 27px; |
| 841 | cursor: pointer; | 840 | cursor: pointer; |
| 841 | + position: relative; | ||
| 842 | + left: -50%; | ||
| 842 | } | 843 | } |
| 843 | 844 | ||
| 844 | .federation-home-list li span { | 845 | .federation-home-list li span { |
frontend/web/js/script.js
| @@ -293,15 +293,6 @@ $(document).ready( | @@ -293,15 +293,6 @@ $(document).ready( | ||
| 293 | 293 | ||
| 294 | function federationHome() | 294 | function federationHome() |
| 295 | { | 295 | { |
| 296 | - var menu_width = 0; | ||
| 297 | - $('.federation-home-list li').each( | ||
| 298 | - function() | ||
| 299 | - { | ||
| 300 | - menu_width = menu_width + $(this).outerWidth() + 9 | ||
| 301 | - } | ||
| 302 | - ); | ||
| 303 | - $('.federation-home-list').css({width : menu_width}); | ||
| 304 | - | ||
| 305 | $('.federation-home-list li').click( | 296 | $('.federation-home-list li').click( |
| 306 | function() | 297 | function() |
| 307 | { | 298 | { |