diff --git a/js/apps/system/aardvark/frontend/js/routers/router.js b/js/apps/system/aardvark/frontend/js/routers/router.js index db72eb40aa..5c5a7ed14a 100644 --- a/js/apps/system/aardvark/frontend/js/routers/router.js +++ b/js/apps/system/aardvark/frontend/js/routers/router.js @@ -454,7 +454,6 @@ var roundDiv = parseInt(divider, 10); var newWidth = roundDiv*spanWidth -2; var marginWidth = ((containerWidth+30) - newWidth)/2; - this.footerView.handleResize(marginWidth); $('#content').width(newWidth) .css('margin-left', marginWidth) .css('margin-right', marginWidth); diff --git a/js/apps/system/aardvark/frontend/js/templates/footerView.ejs b/js/apps/system/aardvark/frontend/js/templates/footerView.ejs index dfdbf731b8..f396909964 100644 --- a/js/apps/system/aardvark/frontend/js/templates/footerView.ejs +++ b/js/apps/system/aardvark/frontend/js/templates/footerView.ejs @@ -7,11 +7,9 @@ } %> - diff --git a/js/apps/system/aardvark/frontend/js/views/footerView.js b/js/apps/system/aardvark/frontend/js/views/footerView.js index 25a2c2d8cc..d94a7fec18 100644 --- a/js/apps/system/aardvark/frontend/js/views/footerView.js +++ b/js/apps/system/aardvark/frontend/js/views/footerView.js @@ -4,7 +4,7 @@ (function() { "use strict"; window.FooterView = Backbone.View.extend({ - el: '.footer', + el: '#footerBar', system: {}, isOffline: true, firstLogin: true, @@ -103,18 +103,12 @@ $(this.el).html(this.template.render({ name: this.system.name, version: this.system.version, - database: this.system.database, - margin: this.resizeMargin + database: this.system.database })); this.dbSelectionView.render($("#dbSelect")); } }, - handleResize: function(newMargin) { - this.resizeMargin = newMargin; - this.render(); - }, - handleSelectDatabase: function() { this.dbSelectionView.render($("#dbSelect")); }, @@ -126,8 +120,7 @@ $(this.el).html(this.template.render({ name: this.system.name, version: this.system.version, - database: this.system.database, - margin: this.resizeMargin + database: this.system.database })); this.dbSelectionView.render($("#dbSelect")); return this; diff --git a/js/apps/system/aardvark/frontend/scss/_abstracts.scss b/js/apps/system/aardvark/frontend/scss/_abstracts.scss index 7ad4c06f7d..abe37c6666 100644 --- a/js/apps/system/aardvark/frontend/scss/_abstracts.scss +++ b/js/apps/system/aardvark/frontend/scss/_abstracts.scss @@ -10,6 +10,16 @@ cursor: pointer; } +%fixedbar { + position: fixed; + left: 0px; + right: 0px; + width: 100%; + background-color: $c_nav_bg; + color: $c_white; + z-index: 1000; +} + %negative { background-color: $c_negative; &:hover { diff --git a/js/apps/system/aardvark/frontend/scss/_footer.scss b/js/apps/system/aardvark/frontend/scss/_footer.scss new file mode 100644 index 0000000000..3d6ccc4fdf --- /dev/null +++ b/js/apps/system/aardvark/frontend/scss/_footer.scss @@ -0,0 +1,19 @@ +footer.footer { + @extend %fixedbar; + bottom: 0px; + height: 40px; + + p { + padding-top: 10px; + padding-bottom: 10px; + margin-bottom:0; + } +} + +div.footer-left { + @extend %pull-left; +} + +div.footer-right { + @extend %pull-right; +} diff --git a/js/apps/system/aardvark/frontend/scss/_navbar.scss b/js/apps/system/aardvark/frontend/scss/_navbar.scss index 0bee4dd66c..a27d0f7cc3 100644 --- a/js/apps/system/aardvark/frontend/scss/_navbar.scss +++ b/js/apps/system/aardvark/frontend/scss/_navbar.scss @@ -1,20 +1,8 @@ nav.navbar { - position: fixed; - width: 100%; - left: 0px; - right: 0px; + @extend %fixedbar; top: 0px; height: 34px; margin-bottom: 3px; - background-color: $c_nav_bg; - color: $c_white; - z-index: 1000; -} - -div.navcontainer { - margin: 0px auto; - // TODO: @media tags - width: 970px; } div.navlogo { diff --git a/js/apps/system/aardvark/frontend/scss/_resizing.scss b/js/apps/system/aardvark/frontend/scss/_resizing.scss new file mode 100644 index 0000000000..a13886edb6 --- /dev/null +++ b/js/apps/system/aardvark/frontend/scss/_resizing.scss @@ -0,0 +1,38 @@ +div.resizecontainer { + margin: 0px auto; +} + +@media (max-width: 798px) { + #arangoCollectionUl { + display: none; + } + #collectionsDropdown ul { + width: auto !important; + } + #arangoCollectionSelect { + display: inline-block; + } +} + +@media (min-width: 799px) and (max-width: 1041px) { + #arangoCollectionUl a { + font-size: 11px; + padding: 7px 5px 10px; + } +} + + +@media (min-width: 1042px) and (max-width: 1284px) { + #arangoCollectionUl a { + font-size: 13px; + } +} + +@for $i from 0 through 10 { + $min: 241px + $i * 243; + @media (min-width: $min + 72) and (max-width: $min + 243 + 71) { + div.resizecontainer { + width: $min; + } + } +} diff --git a/js/apps/system/aardvark/frontend/scss/style.scss b/js/apps/system/aardvark/frontend/scss/style.scss index 79f4d14314..f34e702a58 100644 --- a/js/apps/system/aardvark/frontend/scss/style.scss +++ b/js/apps/system/aardvark/frontend/scss/style.scss @@ -6,7 +6,11 @@ @import "fonts"; // All Abstract classes @import "abstracts"; +// Shared classes +@import "resizing"; // Buttons // @import "buttons"; // Navbar @import "navbar"; +// Footer +@import "footer"; diff --git a/js/apps/system/aardvark/index.html b/js/apps/system/aardvark/index.html index 1d3c58de2a..092ceef4db 100644 --- a/js/apps/system/aardvark/index.html +++ b/js/apps/system/aardvark/index.html @@ -14,7 +14,7 @@