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 | 825 | } |
826 | 826 | |
827 | 827 | .federation-home-list { |
828 | - | |
828 | + float: left; | |
829 | 829 | height: 27px; |
830 | - width: 502px; | |
831 | - margin: 0 auto; | |
830 | + position: relative; | |
831 | + left: 50%; | |
832 | 832 | } |
833 | 833 | |
834 | 834 | .federation-home-list li { |
835 | 835 | list-style: none; |
836 | 836 | float: left; |
837 | - | |
838 | 837 | padding: 0 20px; |
839 | 838 | height: 27px; |
840 | 839 | line-height: 27px; |
841 | 840 | cursor: pointer; |
841 | + position: relative; | |
842 | + left: -50%; | |
842 | 843 | } |
843 | 844 | |
844 | 845 | .federation-home-list li span { | ... | ... |
frontend/web/js/script.js
... | ... | @@ -293,15 +293,6 @@ $(document).ready( |
293 | 293 | |
294 | 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 | 296 | $('.federation-home-list li').click( |
306 | 297 | function() |
307 | 298 | { | ... | ... |