Commit 4ada1301 authored by Annabel Gray's avatar Annabel Gray

Merge branch 'leipert-enable-scss-lint-for-ee' into 'master'

Enable SCSS linting for EE

Closes #7063

See merge request gitlab-org/gitlab-ee!6750
parents f9d07908 8aef6a72
# Linter Documentation: # Linter Documentation:
# https://github.com/brigade/scss-lint/blob/master/lib/scss_lint/linter/README.md # https://github.com/brigade/scss-lint/blob/master/lib/scss_lint/linter/README.md
scss_files: 'app/assets/stylesheets/**/*.scss' scss_files:
- 'app/assets/stylesheets/**/*.scss'
- 'ee/app/assets/stylesheets/**/*.scss'
exclude: exclude:
- 'app/assets/stylesheets/pages/emojis.scss' - 'app/assets/stylesheets/pages/emojis.scss'
......
...@@ -63,27 +63,10 @@ ...@@ -63,27 +63,10 @@
height: calc(100vh - #{$header-height + $system-header-height}); height: calc(100vh - #{$header-height + $system-header-height});
} }
} }
}
// System Footer
.with-system-footer {
// left sidebar eg: project page
// right sidebar eg: mr page
.nav-sidebar,
.right-sidebar,
// web IDE status bar
.ide-status-bar,
// navless pages' footer eg: login page
// navless pages' footer border eg: login page
&.devise-layout-html body .footer-container,
&.devise-layout-html body hr.footer-fixed {
bottom: $system-footer-height;
}
}
// Performance Bar // Performance Bar
// System Header // System Header
.with-system-header.with-performance-bar { &.with-performance-bar {
// main navigation // main navigation
header.navbar-gitlab { header.navbar-gitlab {
top: $performance-bar-height + $system-header-height; top: $performance-bar-height + $system-header-height;
...@@ -106,6 +89,23 @@ ...@@ -106,6 +89,23 @@
.ide.nav-only { .ide.nav-only {
padding-top: $header-height + $performance-bar-height + $system-header-height; padding-top: $header-height + $performance-bar-height + $system-header-height;
} }
}
}
// System Footer
.with-system-footer {
// left sidebar eg: project page
// right sidebar eg: mr page
.nav-sidebar,
.right-sidebar,
// web IDE status bar
.ide-status-bar,
// navless pages' footer eg: login page
// navless pages' footer border eg: login page
&.devise-layout-html body .footer-container,
&.devise-layout-html body hr.footer-fixed {
bottom: $system-footer-height;
}
} }
@mixin ide-height-with($map) { @mixin ide-height-with($map) {
......
...@@ -60,17 +60,13 @@ ...@@ -60,17 +60,13 @@
.status-icon-failure { .status-icon-failure {
fill: $gl-danger; fill: $gl-danger;
} }
}
.geo-node-item {
.card-body { .card-body {
padding: 0; padding: 0;
.node-detail-section { .node-detail-section {
padding: $gl-padding 0; padding: $gl-padding 0;
}
.node-detail-section {
&.sync-section, &.sync-section,
&.verification-section, &.verification-section,
&.other-section { &.other-section {
......
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
.git-clone-holder { .git-clone-holder {
.btn-geo { .btn-geo {
border-left: none; border-left: 0;
} }
} }
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
} }
.split-report-section:last-of-type { .split-report-section:last-of-type {
border-bottom: none; border-bottom: 0;
} }
} }
......
...@@ -2,9 +2,17 @@ $header-item-height: 60px; ...@@ -2,9 +2,17 @@ $header-item-height: 60px;
$item-height: 50px; $item-height: 50px;
$details-cell-width: 320px; $details-cell-width: 320px;
$border-style: 1px solid $border-gray-normal; $border-style: 1px solid $border-gray-normal;
$scroll-top-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(255, 255, 255, 0.001) 100%); $roadmap-gradient-dark-gray: rgba(0, 0, 0, 0.15);
$scroll-bottom-gradient: linear-gradient(to bottom, rgba(255, 255, 255, 0.001) 0%, rgba(0, 0, 0, 0.15) 100%); $roadmap-gradient-gray: rgba(255, 255, 255, 0.001);
$column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(255, 255, 255, 0.001) 100%); $scroll-top-gradient: linear-gradient(to bottom, $roadmap-gradient-dark-gray 0%, $roadmap-gradient-gray 100%);
$scroll-bottom-gradient: linear-gradient(to bottom, $roadmap-gradient-gray 0%, $roadmap-gradient-dark-gray 100%);
$column-right-gradient: linear-gradient(to right, $roadmap-gradient-dark-gray 0%, $roadmap-gradient-gray 100%);
@mixin roadmap-scroll-mixin {
height: $grid-size;
width: $details-cell-width;
pointer-events: none;
}
.epics-roadmap-filters { .epics-roadmap-filters {
.epics-details-filters { .epics-details-filters {
...@@ -22,7 +30,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2 ...@@ -22,7 +30,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
border-bottom: $border-style; border-bottom: $border-style;
.breadcrumbs-container { .breadcrumbs-container {
border-bottom: none; border-bottom: 0;
} }
} }
...@@ -42,24 +50,8 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2 ...@@ -42,24 +50,8 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
} }
} }
.roadmap-timeline-section .timeline-header-item { .roadmap-timeline-section .timeline-header-blank::after,
.item-label, .epics-list-section .epic-details-cell::after {
.item-sublabel .sublabel-value {
color: $theme-gray-600;
font-weight: 400;
&.label-dark {
color: $theme-gray-900;
}
&.label-bold {
font-weight: 600;
}
}
}
.roadmap-timeline-section .timeline-header-blank:after,
.epics-list-section .epic-details-cell:after {
content: ''; content: '';
position: absolute; position: absolute;
top: 0; top: 0;
...@@ -92,14 +84,28 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2 ...@@ -92,14 +84,28 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
width: $details-cell-width; width: $details-cell-width;
z-index: 2; z-index: 2;
&:after { &::after {
height: $header-item-height; height: $header-item-height;
} }
} }
.timeline-header-item { .timeline-header-item {
&:last-of-type .item-label { &:last-of-type .item-label {
border-right: none; border-right: 0;
}
.item-label,
.item-sublabel .sublabel-value {
color: $theme-gray-600;
font-weight: 400;
&.label-dark {
color: $theme-gray-900;
}
&.label-bold {
font-weight: 600;
}
} }
.item-label { .item-label {
...@@ -129,7 +135,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2 ...@@ -129,7 +135,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
pointer-events: none; pointer-events: none;
} }
.today-bar:before { .today-bar::before {
content: ''; content: '';
position: absolute; position: absolute;
top: -2px; top: -2px;
...@@ -141,6 +147,16 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2 ...@@ -141,6 +147,16 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
} }
} }
} }
&.scroll-top-shadow .timeline-header-blank::before {
@include roadmap-scroll-mixin;
content: '';
position: absolute;
left: 0;
bottom: -$grid-size;
border-top: 1px solid $white-light;
background: $scroll-top-gradient;
}
} }
.epics-list-section { .epics-list-section {
...@@ -157,12 +173,12 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2 ...@@ -157,12 +173,12 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
.epic-details-cell, .epic-details-cell,
.epic-timeline-cell { .epic-timeline-cell {
background-color: $white-light; background-color: $white-light;
border-bottom: none; border-bottom: 0;
} }
} }
.epic-details-cell, .epic-details-cell,
.epic-details-cell:after, .epic-details-cell::after,
.epic-timeline-cell { .epic-timeline-cell {
height: 100%; height: 100%;
} }
...@@ -186,7 +202,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2 ...@@ -186,7 +202,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
background-color: $white-light; background-color: $white-light;
z-index: 2; z-index: 2;
&:after { &::after {
height: $item-height; height: $item-height;
} }
...@@ -194,9 +210,8 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2 ...@@ -194,9 +210,8 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100%; width: 100%;
}
.epic-title .epic-url { .epic-url {
display: table-cell; display: table-cell;
color: $theme-gray-900; color: $theme-gray-900;
font-weight: 600; font-weight: 600;
...@@ -204,6 +219,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2 ...@@ -204,6 +219,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
}
.epic-group-timeframe { .epic-group-timeframe {
color: $theme-gray-700; color: $theme-gray-700;
...@@ -238,33 +254,33 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2 ...@@ -238,33 +254,33 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
opacity: 1; opacity: 1;
} }
&.start-date-outside:before, &.start-date-outside::before,
&.end-date-outside:after { &.end-date-outside::after {
content: ''; content: '';
position: absolute; position: absolute;
top: 0; top: 0;
height: 100%; height: 100%;
} }
&.start-date-outside:before, &.start-date-outside::before,
&.end-date-outside:after { &.end-date-outside::after {
border-top: 12px solid transparent; border-top: 12px solid transparent;
border-bottom: 12px solid transparent; border-bottom: 12px solid transparent;
} }
&.start-date-undefined { &.start-date-undefined {
background: linear-gradient(to right, rgba(255, 255, 255, 0.001) 0%, $blue-200 50%, $blue-500 100%); background: linear-gradient(to right, $roadmap-gradient-gray 0%, $blue-200 50%, $blue-500 100%);
} }
&.end-date-undefined { &.end-date-undefined {
background: linear-gradient(to right, $blue-500 0%, $blue-200 50%, rgba(255, 255, 255, 0.001) 100%); background: linear-gradient(to right, $blue-500 0%, $blue-200 50%, $roadmap-gradient-gray 100%);
} }
&.start-date-outside { &.start-date-outside {
border-top-left-radius: 0; border-top-left-radius: 0;
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
&:before { &::before {
left: -$grid-size; left: -$grid-size;
border-right: $grid-size solid $blue-500; border-right: $grid-size solid $blue-500;
} }
...@@ -274,7 +290,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2 ...@@ -274,7 +290,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
border-top-right-radius: 0; border-top-right-radius: 0;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
&:after { &::after {
right: -$grid-size; right: -$grid-size;
border-left: $grid-size solid $blue-500; border-left: $grid-size solid $blue-500;
} }
...@@ -287,31 +303,16 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2 ...@@ -287,31 +303,16 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
} }
&:last-child { &:last-child {
border-right: none; border-right: 0;
} }
} }
} }
}
.roadmap-timeline-section.scroll-top-shadow .timeline-header-blank:before, .scroll-bottom-shadow {
.epics-list-section .scroll-bottom-shadow { @include roadmap-scroll-mixin;
height: $grid-size;
width: $details-cell-width;
pointer-events: none;
}
.roadmap-timeline-section.scroll-top-shadow .timeline-header-blank:before {
content: '';
position: absolute;
left: 0;
bottom: -$grid-size;
border-top: 1px solid $white-light;
background: $scroll-top-gradient;
}
.epics-list-section .scroll-bottom-shadow {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
background: $scroll-bottom-gradient; background: $scroll-bottom-gradient;
z-index: 2; z-index: 2;
}
} }
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