Commit 1bd3eadb authored by Fatih Acet's avatar Fatih Acet Committed by Douglas Barbosa Alexandre

Merge branch '25907-limited-container' into 'master'

Only limit container width on issues & MRs within fixed-width container

Closes #25907

See merge request !8330
parent 8683f58f
// Limit MR description for side-by-side diff view // Limit MR description for side-by-side diff view
.limit-container-width { .container-limited {
.detail-page-header { &.limit-container-width {
max-width: calc(#{$limited-layout-width} - (#{$gl-padding} * 2)); .detail-page-header {
margin-left: auto;
margin-right: auto;
}
.issuable-details {
.detail-page-description,
.mr-source-target,
.mr-state-widget,
.merge-manually {
max-width: calc(#{$limited-layout-width} - (#{$gl-padding} * 2)); max-width: calc(#{$limited-layout-width} - (#{$gl-padding} * 2));
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
.merge-request-tabs-holder { .issuable-details {
&.affix { .detail-page-description,
border-bottom: 1px solid $border-color; .mr-source-target,
.mr-state-widget,
.merge-manually {
max-width: calc(#{$limited-layout-width} - (#{$gl-padding} * 2));
margin-left: auto;
margin-right: auto;
}
.merge-request-tabs-holder {
&.affix {
border-bottom: 1px solid $border-color;
.nav-links {
border: 0;
}
}
.nav-links { .container-fluid {
border: 0; padding-left: 0;
padding-right: 0;
max-width: calc(#{$limited-layout-width} - (#{$gl-padding} * 2));
margin-left: auto;
margin-right: auto;
} }
} }
}
.container-fluid { .diffs {
padding-left: 0; .mr-version-controls,
padding-right: 0; .files-changed {
max-width: calc(#{$limited-layout-width} - (#{$gl-padding} * 2)); max-width: calc(#{$limited-layout-width} - (#{$gl-padding} * 2));
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
} }
} }
.diffs {
.mr-version-controls,
.files-changed {
max-width: calc(#{$limited-layout-width} - (#{$gl-padding} * 2));
margin-left: auto;
margin-right: auto;
}
}
} }
.issuable-details { .issuable-details {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment