diff options
author | tauriedavis <taurie@gitlab.com> | 2016-11-29 13:05:02 -0800 |
---|---|---|
committer | tauriedavis <taurie@gitlab.com> | 2016-12-14 12:58:56 -0800 |
commit | d1765f70583e51b0afa63fdabea190ee60ae3e18 (patch) | |
tree | 80ba51d8c8d7237c07d342945eed86bd394d37fb | |
parent | 6910bf29b6a93aaf65ae5fa3261da6df2d03ec44 (diff) | |
download | gitlab-ce-23962-new-file-mobile.tar.gz |
23962 Make new file page mobile friendly23962-new-file-mobile
-rw-r--r-- | app/assets/stylesheets/pages/editor.scss | 40 | ||||
-rw-r--r-- | changelogs/unreleased/23962-new-file-mobile.yml | 4 |
2 files changed, 34 insertions, 10 deletions
diff --git a/app/assets/stylesheets/pages/editor.scss b/app/assets/stylesheets/pages/editor.scss index 6cde9c592de..bff5f753356 100644 --- a/app/assets/stylesheets/pages/editor.scss +++ b/app/assets/stylesheets/pages/editor.scss @@ -23,14 +23,9 @@ .file-title { @extend .monospace; - line-height: 35px; padding-top: 7px; - padding-bottom: 7px; - - .pull-right { - height: 20px; - } + padding-bottom: 0; } .editor-ref { @@ -44,19 +39,43 @@ .editor-file-name { @extend .monospace; - float: left; margin-right: 10px; } .new-file-name { display: inline-block; - width: 450px; + max-width: 450px; float: left; + margin-bottom: 7px; + + @media (max-width: $screen-xs-min) { + margin-bottom: 0; + } } .file-buttons { - font-size: 0; + @media (max-width: $screen-xs-min) { + display: flex; + flex-direction: column; + width: 100%; + margin-bottom: 7px; + + .encoding-selector, + .license-selector, + .gitignore-selector, + .gitlab-ci-yml-selector { + margin: 7px 0 0; + + button { + width: 100%; + } + } + + .soft-wrap-toggle { + margin: 7px 0 0; + } + } } .select2 { @@ -71,10 +90,11 @@ display: inline-block; vertical-align: top; font-family: $regular_font; + margin-bottom: 7px; } .soft-wrap-toggle { - margin: 0 $btn-side-margin; + margin-right: $btn-side-margin; .soft-wrap { display: block; diff --git a/changelogs/unreleased/23962-new-file-mobile.yml b/changelogs/unreleased/23962-new-file-mobile.yml new file mode 100644 index 00000000000..16716f69da1 --- /dev/null +++ b/changelogs/unreleased/23962-new-file-mobile.yml @@ -0,0 +1,4 @@ +--- +title: 25040 Make new file page mobile friendly +merge_request: +author: |