summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-16 09:14:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-16 09:14:02 +0000
commit2ec87100a91f88e8eb220225141a3873e9aaf933 (patch)
tree0a10c1053ed62e44ab494fedc21d5bd3c2d3c478 /public
parentaaeb0807bfd7f22433a2dd84ec7145b501465bb6 (diff)
downloadredmine-2ec87100a91f88e8eb220225141a3873e9aaf933.tar.gz
redmine-2ec87100a91f88e8eb220225141a3873e9aaf933.zip
Tab left/right buttons for project menu (#20632).
Patch by Felix Gliesche. git-svn-id: http://svn.redmine.org/redmine/trunk@15067 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/application.js8
-rw-r--r--public/stylesheets/application.css14
2 files changed, 18 insertions, 4 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 9c6c7a47d..b247907ad 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -620,6 +620,13 @@ function setupAjaxIndicator() {
});
}
+function setupTabs() {
+ if($('.tabs').length > 0) {
+ displayTabsButtons();
+ $(window).resize(displayTabsButtons);
+ }
+}
+
function hideOnLoad() {
$('.hol').hide();
}
@@ -677,3 +684,4 @@ $(document).ready(setupAjaxIndicator);
$(document).ready(hideOnLoad);
$(document).ready(addFormObserversForDoubleSubmit);
$(document).ready(defaultFocus);
+$(document).ready(setupTabs);
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index d69215108..e3f70d0a1 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -10,7 +10,7 @@ h4 {border-bottom: 1px dotted #bbb;}
pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}
/***** Layout *****/
-#wrapper {background: white;}
+#wrapper {background: white;overflow: hidden;}
#top-menu {background: #3E5B76; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 2px 0px 6px;}
#top-menu ul {margin: 0; padding: 0;}
@@ -31,14 +31,15 @@ pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}
#header h1 a.ancestor { font-size: 80%; }
#quick-search {float:right;}
-#main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px;}
-#main-menu ul {margin: 0; padding: 0;}
+#main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px; width: 100%;}
+#main-menu ul {margin: 0; padding: 0; width: 100%; white-space: nowrap;}
#main-menu li {
- float:left;
+ float:none;
list-style-type:none;
margin: 0px 2px 0px 0px;
padding: 0px 0px 0px 0px;
white-space:nowrap;
+ display:inline-block;
}
#main-menu li a {
display: block;
@@ -50,6 +51,11 @@ pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}
}
#main-menu li a:hover {background:#759FCF; color:#fff;}
#main-menu li a.selected, #main-menu li a.selected:hover {background:#fff; color:#555;}
+#main-menu .tabs-buttons {
+ right: 6px;
+ background-color: transparent;
+ border-bottom-color: transparent;
+}
#admin-menu ul {margin: 0; padding: 0;}
#admin-menu li {margin: 0; padding: 0 0 6px 0; list-style-type:none;}