Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8aef6a72
Commit
8aef6a72
authored
Aug 01, 2018
by
Lukas Eipert
Committed by
Annabel Gray
Aug 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable SCSS linting for EE
parent
f9d07908
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
105 additions
and
106 deletions
+105
-106
.scss-lint.yml
.scss-lint.yml
+3
-1
ee/app/assets/stylesheets/framework/system_messages.scss
ee/app/assets/stylesheets/framework/system_messages.scss
+30
-30
ee/app/assets/stylesheets/pages/geo_nodes.scss
ee/app/assets/stylesheets/pages/geo_nodes.scss
+0
-4
ee/app/assets/stylesheets/pages/merge_requests.scss
ee/app/assets/stylesheets/pages/merge_requests.scss
+1
-1
ee/app/assets/stylesheets/pages/projects.scss
ee/app/assets/stylesheets/pages/projects.scss
+2
-2
ee/app/assets/stylesheets/pages/promotions.scss
ee/app/assets/stylesheets/pages/promotions.scss
+1
-1
ee/app/assets/stylesheets/pages/roadmap.scss
ee/app/assets/stylesheets/pages/roadmap.scss
+68
-67
No files found.
.scss-lint.yml
View file @
8aef6a72
# Linter Documentation:
# 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
:
-
'
app/assets/stylesheets/pages/emojis.scss'
...
...
ee/app/assets/stylesheets/framework/system_messages.scss
View file @
8aef6a72
...
...
@@ -63,51 +63,51 @@
height
:
calc
(
100vh
-
#{
$header-height
+
$system-header-height
}
);
}
}
// Performance Bar
// System Header
&
.with-performance-bar
{
// main navigation
header
.navbar-gitlab
{
top
:
$performance-bar-height
+
$system-header-height
;
}
.layout-page
{
margin-top
:
$header-height
+
$performance-bar-height
+
$system-header-height
;
}
// left sidebar eg: project page
// right sidebar eg: MR page
.nav-sidebar
,
.right-sidebar
{
top
:
$header-height
+
$performance-bar-height
+
$system-header-height
;
}
// IDE adjustments
// body element on WebIDe view
.ide.nav-only
{
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
,
.
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 .footer-container,
&.devise-layout-html body hr.footer-fixed {
bottom: $system-footer-height;
}
}
// Performance Bar
// System Header
.with-system-header.with-performance-bar {
// main navigation
header.navbar-gitlab {
top: $performance-bar-height + $system-header-height;
}
.layout-page {
margin-top: $header-height + $performance-bar-height + $system-header-height;
}
// left sidebar eg: project page
// right sidebar eg: MR page
.nav-sidebar,
.right-sidebar {
top: $header-height + $performance-bar-height + $system-header-height;
}
// IDE adjustments
// body element on WebIDe view
.ide.nav-only {
padding-top: $header-height + $performance-bar-height + $system-header-height;
}
}
@mixin ide-height-with($map) {
$height: 0;
$height: $height + $header-height; // header is always present
...
...
ee/app/assets/stylesheets/pages/geo_nodes.scss
View file @
8aef6a72
...
...
@@ -60,17 +60,13 @@
.status-icon-failure
{
fill
:
$gl-danger
;
}
}
.geo-node-item
{
.card-body
{
padding
:
0
;
.node-detail-section
{
padding
:
$gl-padding
0
;
}
.node-detail-section
{
&
.sync-section
,
&
.verification-section
,
&
.other-section
{
...
...
ee/app/assets/stylesheets/pages/merge_requests.scss
View file @
8aef6a72
...
...
@@ -48,7 +48,7 @@
}
.approve-btn
{
vertical-align
:
baseline
;
vertical-align
:
baseline
;
}
.approvals-required-text
{
...
...
ee/app/assets/stylesheets/pages/projects.scss
View file @
8aef6a72
...
...
@@ -109,7 +109,7 @@
.git-clone-holder
{
.btn-geo
{
border-left
:
none
;
border-left
:
0
;
}
}
...
...
@@ -137,7 +137,7 @@
}
.split-report-section
:last-of-type
{
border-bottom
:
none
;
border-bottom
:
0
;
}
}
...
...
ee/app/assets/stylesheets/pages/promotions.scss
View file @
8aef6a72
...
...
@@ -67,7 +67,7 @@
.promotion-burndown-charts-content
{
justify-content
:
end
;
.svg-container
{
margin-left
:
4px
;
margin-right
:
24px
;
...
...
ee/app/assets/stylesheets/pages/roadmap.scss
View file @
8aef6a72
...
...
@@ -2,9 +2,17 @@ $header-item-height: 60px;
$item-height
:
50px
;
$details-cell-width
:
320px
;
$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%
);
$scroll-bottom-gradient
:
linear-gradient
(
to
bottom
,
rgba
(
255
,
255
,
255
,
0
.001
)
0%
,
rgba
(
0
,
0
,
0
,
0
.15
)
100%
);
$column-right-gradient
:
linear-gradient
(
to
right
,
rgba
(
0
,
0
,
0
,
0
.15
)
0%
,
rgba
(
255
,
255
,
255
,
0
.001
)
100%
);
$roadmap-gradient-dark-gray
:
rgba
(
0
,
0
,
0
,
0
.15
);
$roadmap-gradient-gray
:
rgba
(
255
,
255
,
255
,
0
.001
);
$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-details-filters
{
...
...
@@ -22,7 +30,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
border-bottom
:
$border-style
;
.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
}
}
.roadmap-timeline-section
.timeline-header-item
{
.item-label
,
.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
{
.
roadmap-timeline-section
.
timeline-header-blank
:
:
after
,
.
epics-list-section
.
epic-details-cell
::
after
{
content
:
''
;
position
:
absolute
;
top
:
0
;
...
...
@@ -92,14 +84,28 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
width
:
$details-cell-width
;
z-index
:
2
;
&
:after
{
&
:
:
after
{
height
:
$header-item-height
;
}
}
.timeline-header-item
{
&
: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
{
...
...
@@ -129,7 +135,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
pointer-events
:
none
;
}
.today-bar
:before
{
.
today-bar
:
:
before
{
content
:
''
;
position
:
absolute
;
top
:
-2px
;
...
...
@@ -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
{
...
...
@@ -157,12 +173,12 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
.epic-details-cell
,
.epic-timeline-cell
{
background-color
:
$white-light
;
border-bottom
:
none
;
border-bottom
:
0
;
}
}
.
epic-details-cell
,
.epic-details-cell
:after
,
.
epic-details-cell
:
:
after
,
.
epic-timeline-cell
{
height
:
100%
;
}
...
...
@@ -186,7 +202,7 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
background-color
:
$white-light
;
z-index
:
2
;
&
:after
{
&
:
:
after
{
height
:
$item-height
;
}
...
...
@@ -194,15 +210,15 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
display
:
table
;
table-layout
:
fixed
;
width
:
100%
;
}
.epic-title
.epic-url
{
display
:
table-cell
;
color
:
$theme-gray-900
;
font-weight
:
600
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
.epic-url
{
display
:
table-cell
;
color
:
$theme-gray-900
;
font-weight
:
600
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
.epic-group-timeframe
{
...
...
@@ -238,33 +254,33 @@ $column-right-gradient: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(2
opacity
:
1
;
}
&
.start-date-outside
:before
,
&
.end-date-outside
:after
{
&.
start-date-outside
:
:
before
,
&.
end-date-outside
:
:
after
{
content
:
''
;
position
:
absolute
;
top
:
0
;
height
:
100%
;
}
&
.start-date-outside
:before
,
&
.end-date-outside
:after
{
&.
start-date-outside
:
:
before
,
&.
end-date-outside
:
:
after
{
border-top
:
12px
solid
transparent
;
border-bottom
:
12px
solid
transparent
;
}
&
.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
{
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
{
border-top-left-radius
:
0
;
border-bottom-left-radius
:
0
;
&
:before
{
&
:
:
before
{
left
:
-
$grid-size
;
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
border-top-right-radius
:
0
;
border-bottom-right-radius
:
0
;
&
:after
{
&
:
:
after
{
right
:
-
$grid-size
;
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
}
&
:last-child
{
border-right
:
none
;
border-right
:
0
;
}
}
}
}
.roadmap-timeline-section.scroll-top-shadow
.timeline-header-blank
:before
,
.epics-list-section
.scroll-bottom-shadow
{
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
;
bottom
:
0
;
background
:
$scroll-bottom-gradient
;
z-index
:
2
;
.scroll-bottom-shadow
{
@include
roadmap-scroll-mixin
;
position
:
fixed
;
bottom
:
0
;
background
:
$scroll-bottom-gradient
;
z-index
:
2
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment