diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-01-11 20:01:21 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-01-11 20:01:21 +0300 |
commit | 1ff2dfa1cc6ba125ed53d42443713dcbda3f57f6 (patch) | |
tree | dfa24396b37234cd51268504253bddda8e255f3d /app/assets | |
parent | a9cf230d96f024f18ab720178bb7f63bdadd6649 (diff) | |
parent | 0ff564347c00b277f494947c8cd6803aa547c68a (diff) |
Merge branch 'side-by-side-fixed-width' into 'master'
Keep max width on MR content on side by side view
Closes #25907
See merge request !8467
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 { |