diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-01-05 15:07:13 -0600 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-01-05 19:35:50 -0600 |
commit | 0ff564347c00b277f494947c8cd6803aa547c68a (patch) | |
tree | 4bdb12ee6bd8bcc305d6c98525bed5c2453cac41 /app/assets | |
parent | 3b8c81fe9edfa62f011716b94117df8dd44251cb (diff) | |
download | gitlab-ce-0ff564347c00b277f494947c8cd6803aa547c68a.tar.gz |
Keep max width on MR content on side by side viewside-by-side-fixed-width
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/stylesheets/pages/issuable.scss | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/issuable.scss b/app/assets/stylesheets/pages/issuable.scss index 0a8c037c402..3272a862b85 100644 --- a/app/assets/stylesheets/pages/issuable.scss +++ b/app/assets/stylesheets/pages/issuable.scss @@ -1,3 +1,52 @@ +// Limit MR description for side-by-side diff view +.fixed-width-container { + max-width: $limited-layout-width - ($gl-padding * 2); + margin-left: auto; + margin-right: auto; +} + +.limit-container-width { + .detail-page-header { + @extend .fixed-width-container; + } + + .issuable-details { + .detail-page-description, + .mr-source-target, + .mr-state-widget, + .merge-manually { + @extend .fixed-width-container; + } + + .merge-request-tabs-holder { + &.affix { + border-bottom: 1px solid $border-color; + + .nav-links { + border: 0; + } + } + + .container-fluid { + @extend .fixed-width-container; + } + } + } + + .merge-request-details { + .emoji-list-container { + @extend .fixed-width-container; + } + } + + .diffs { + .mr-version-controls, + .files-changed { + @extend .fixed-width-container; + } + } +} + .issuable-details { section { .issuable-discussion { |