diff options
| author | Dmitriy Zaporozhets <dzaporozhets@gitlab.com> | 2014-11-19 17:11:06 +0000 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dzaporozhets@gitlab.com> | 2014-11-19 17:11:06 +0000 |
| commit | 20cd7a50be263f954ffc7157892e94aa09f78d04 (patch) | |
| tree | 2563ddac19a1d7cb2b56de6186edd15f4c096852 | |
| parent | a726042773481e15e2f14192bea96599b200699d (diff) | |
| parent | 580cedd76cb1b2a9101fcb722dfec455ad00c8c6 (diff) | |
| download | gitlab-ce-20cd7a50be263f954ffc7157892e94aa09f78d04.tar.gz | |
Merge branch 'improve-mobile-ui' into 'master'
Improve mobile UI. pt1
Related to #1493
* [x] App Header
* [x] Dashboard
* [x] Project home page
See merge request !1266
| -rw-r--r-- | app/assets/stylesheets/sections/events.scss | 21 | ||||
| -rw-r--r-- | app/assets/stylesheets/sections/header.scss | 1 | ||||
| -rw-r--r-- | app/assets/stylesheets/sections/nav.scss | 2 | ||||
| -rw-r--r-- | app/assets/stylesheets/sections/projects.scss | 13 | ||||
| -rw-r--r-- | app/views/projects/_home_panel.html.haml | 2 |
5 files changed, 35 insertions, 4 deletions
diff --git a/app/assets/stylesheets/sections/events.scss b/app/assets/stylesheets/sections/events.scss index 656aa5b18a6..485a9c46610 100644 --- a/app/assets/stylesheets/sections/events.scss +++ b/app/assets/stylesheets/sections/events.scss @@ -186,7 +186,24 @@ } @media (max-width: $screen-xs-max) { - .event-item .event-title { - @include str-truncated(65%); + .event-item { + .event-title { + white-space: normal; + overflow: visible; + max-width: 100%; + } + .avatar { + display: none; + } + + .event-body { + margin: 0; + border-left: 2px solid #DDD; + padding-left: 10px; + } + + .event-item-timestamp { + display: none; + } } } diff --git a/app/assets/stylesheets/sections/header.scss b/app/assets/stylesheets/sections/header.scss index e0e0d60c387..9ad1a1db2cd 100644 --- a/app/assets/stylesheets/sections/header.scss +++ b/app/assets/stylesheets/sections/header.scss @@ -59,6 +59,7 @@ header { } .navbar-collapse { + margin-top: 47px; padding-right: 0; padding-left: 0; } diff --git a/app/assets/stylesheets/sections/nav.scss b/app/assets/stylesheets/sections/nav.scss index 31c0a0835db..ccd672c5f67 100644 --- a/app/assets/stylesheets/sections/nav.scss +++ b/app/assets/stylesheets/sections/nav.scss @@ -63,7 +63,6 @@ @media (max-width: $screen-xs-max) { font-size: 18px; margin: 0; - max-height: none; &, .container { @@ -86,6 +85,7 @@ color: #fff; font-weight: normal; text-shadow: none; + border: none; &:after { display: none; } } diff --git a/app/assets/stylesheets/sections/projects.scss b/app/assets/stylesheets/sections/projects.scss index 76a7507d699..7b894cf00bb 100644 --- a/app/assets/stylesheets/sections/projects.scss +++ b/app/assets/stylesheets/sections/projects.scss @@ -295,3 +295,16 @@ ul.nav.nav-projects-tabs { } } } + +@media (max-width: $screen-xs-max) { + .project-home-panel { + .star-fork-buttons { + padding-top: 10px; + padding-right: 15px; + } + } + + .project-home-links { + display: none; + } +} diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml index 8b9260d661c..30d063c7a36 100644 --- a/app/views/projects/_home_panel.html.haml +++ b/app/views/projects/_home_panel.html.haml @@ -31,7 +31,7 @@ - else = link_to_toggle_star('You must sign in to star a project.', false, false) - .project-home-row + .project-home-row.hidden-xs - if current_user && !empty_repo .project-home-dropdown = render "dropdown" |
