summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/pages/issuable.scss
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-01-05 15:07:13 -0600
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-01-05 19:35:50 -0600
commit0ff564347c00b277f494947c8cd6803aa547c68a (patch)
tree4bdb12ee6bd8bcc305d6c98525bed5c2453cac41 /app/assets/stylesheets/pages/issuable.scss
parent3b8c81fe9edfa62f011716b94117df8dd44251cb (diff)
downloadgitlab-ce-0ff564347c00b277f494947c8cd6803aa547c68a.tar.gz
Keep max width on MR content on side by side viewside-by-side-fixed-width
Diffstat (limited to 'app/assets/stylesheets/pages/issuable.scss')
-rw-r--r--app/assets/stylesheets/pages/issuable.scss49
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 {