summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-28 19:48:29 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-28 19:48:29 +0000
commitafccd3245a89aa04ff63a097a756e004ee2f7095 (patch)
treee573ea3b4a6128ae1e1d6650382e6f5d378ff113 /app
parentc8bb171664de94778d4e6eba7773596b265f9efb (diff)
parent6342bc299457a2b298e8cb556bcd55efe1bbe030 (diff)
downloadgitlab-ce-afccd3245a89aa04ff63a097a756e004ee2f7095.tar.gz
Merge branch 'ui-fixes' into 'master'
Ui fixes Fixes the ui bugs described in #925. Also added the suggestion to keep the header at the top of the page. Fixes #925 Some before/after screenshots: - Border doesn't reach bottom on smaller pages - [Before](https://gitlab.com/uploads/gitlab-org/gitlab-ce/5096094d94/Screenshot_from_2014-12-27_19_49_24.png) - [After](https://gitlab.com/uploads/gitlab-org/gitlab-ce/551c1924e4/Screenshot_from_2014-12-27_19_51_43.png) - Ability to always scroll 48px (visible by the scrollbar) - [Before](https://gitlab.com/uploads/gitlab-org/gitlab-ce/ea591bf7b3/Screenshot_from_2014-12-27_19_53_41.png) - [After](https://gitlab.com/uploads/gitlab-org/gitlab-ce/97df62b40d/Screenshot_from_2014-12-27_19_53_17.png) - Mobile sidebar icons off screen (Visible by the scrollbar on the after picture) - [Before](https://gitlab.com/uploads/gitlab-org/gitlab-ce/b6d9a4d076/Screenshot_from_2014-12-27_19_49_05.png) - [After](https://gitlab.com/uploads/gitlab-org/gitlab-ce/fc52ac31ba/Screenshot_from_2014-12-27_19_48_16.png) - Header fixed at top - [Before](https://gitlab.com/uploads/gitlab-org/gitlab-ce/5d74dc1ea5/Screenshot_from_2014-12-27_19_59_28.png) - [After](https://gitlab.com/uploads/gitlab-org/gitlab-ce/57c4c3ea7d/Screenshot_from_2014-12-27_20_00_05.png) See merge request !269
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/generic/common.scss2
-rw-r--r--app/assets/stylesheets/sections/header.scss3
-rw-r--r--app/assets/stylesheets/sections/sidebar.scss15
3 files changed, 13 insertions, 7 deletions
diff --git a/app/assets/stylesheets/generic/common.scss b/app/assets/stylesheets/generic/common.scss
index 6c37cbf072e..19c8f103535 100644
--- a/app/assets/stylesheets/generic/common.scss
+++ b/app/assets/stylesheets/generic/common.scss
@@ -262,7 +262,7 @@ img.emoji {
}
.navless-container {
- margin-top: 20px;
+ margin-top: 68px;
}
.description-block {
diff --git a/app/assets/stylesheets/sections/header.scss b/app/assets/stylesheets/sections/header.scss
index f71b62ace9c..32b0b10c649 100644
--- a/app/assets/stylesheets/sections/header.scss
+++ b/app/assets/stylesheets/sections/header.scss
@@ -8,6 +8,9 @@ header {
margin-bottom: 0;
min-height: 40px;
border: none;
+ position: fixed;
+ top: 0;
+ width: 100%;
.navbar-inner {
filter: none;
diff --git a/app/assets/stylesheets/sections/sidebar.scss b/app/assets/stylesheets/sections/sidebar.scss
index fdf9eb86d46..581a7318ee1 100644
--- a/app/assets/stylesheets/sections/sidebar.scss
+++ b/app/assets/stylesheets/sections/sidebar.scss
@@ -12,6 +12,7 @@
width: 100%;
padding: 15px;
background: #FFF;
+ margin-top: 48px;
}
.nav-sidebar {
@@ -105,10 +106,11 @@
.sidebar-wrapper {
width: 250px;
- position: absolute;
+ position: fixed;
left: 250px;
height: 100%;
margin-left: -250px;
+ border-right: 1px solid #EAEAEA;
.nav-sidebar {
margin-top: 20px;
@@ -120,7 +122,6 @@
.content-wrapper {
padding: 20px;
- border-left: 1px solid #EAEAEA;
}
}
@@ -131,14 +132,16 @@
.sidebar-wrapper {
width: 52px;
- position: absolute;
- left: 50px;
+ position: fixed;
+ top: 0;
+ left: 0;
height: 100%;
- margin-left: -50px;
+ border-right: 1px solid #EAEAEA;
+ overflow-x: hidden;
.nav-sidebar {
margin-top: 20px;
- position: fixed;
+ position: absolute;
top: 45px;
width: 52px;