From 4a81c3ae6ae9b4137292c716c004ee83e6d0fdf4 Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Sat, 6 Jan 2018 11:54:59 +0900 Subject: [PATCH] Make rich blob viewer wider for PC --- app/assets/stylesheets/framework/files.scss | 7 +------ app/assets/stylesheets/pages/repo.scss | 6 ------ .../unreleased/41709-rich-blob-viewer-margins-for-pc.yml | 5 +++++ 3 files changed, 6 insertions(+), 12 deletions(-) create mode 100644 changelogs/unreleased/41709-rich-blob-viewer-margins-for-pc.yml diff --git a/app/assets/stylesheets/framework/files.scss b/app/assets/stylesheets/framework/files.scss index 1588036aeae..af400da94d6 100644 --- a/app/assets/stylesheets/framework/files.scss +++ b/app/assets/stylesheets/framework/files.scss @@ -21,11 +21,6 @@ max-width: $limited-layout-width-sm; margin-left: auto; margin-right: auto; - - @media (min-width: $screen-md-min) { - padding-top: 64px; - padding-bottom: 64px; - } } } @@ -128,7 +123,7 @@ } &.wiki { - padding: 30px $gl-padding; + padding: $gl-padding; } &.blob-no-preview { diff --git a/app/assets/stylesheets/pages/repo.scss b/app/assets/stylesheets/pages/repo.scss index 6cb32408a48..acbd9936706 100644 --- a/app/assets/stylesheets/pages/repo.scss +++ b/app/assets/stylesheets/pages/repo.scss @@ -16,12 +16,6 @@ display: inline-block; } -@media (min-width: $screen-md-min) { - .blob-viewer[data-type="rich"] { - margin: 20px; - } -} - .ide-view { display: flex; height: calc(100vh - #{$header-height}); diff --git a/changelogs/unreleased/41709-rich-blob-viewer-margins-for-pc.yml b/changelogs/unreleased/41709-rich-blob-viewer-margins-for-pc.yml new file mode 100644 index 00000000000..51285e5476f --- /dev/null +++ b/changelogs/unreleased/41709-rich-blob-viewer-margins-for-pc.yml @@ -0,0 +1,5 @@ +--- +title: Make rich blob viewer wider for PC +merge_request: 16262 +author: Takuya Noguchi +type: fixed