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
325191dd
Commit
325191dd
authored
Jul 09, 2017
by
Takuya Noguchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable UnnecessaryParentReference in scss-lint
parent
420f6b54
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
17 additions
and
13 deletions
+17
-13
.scss-lint.yml
.scss-lint.yml
+1
-1
app/assets/stylesheets/framework/filters.scss
app/assets/stylesheets/framework/filters.scss
+2
-2
app/assets/stylesheets/framework/highlight.scss
app/assets/stylesheets/framework/highlight.scss
+1
-1
app/assets/stylesheets/pages/merge_requests.scss
app/assets/stylesheets/pages/merge_requests.scss
+1
-1
app/assets/stylesheets/pages/notes.scss
app/assets/stylesheets/pages/notes.scss
+1
-1
app/assets/stylesheets/pages/pipeline_schedules.scss
app/assets/stylesheets/pages/pipeline_schedules.scss
+2
-2
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+2
-2
app/assets/stylesheets/pages/todos.scss
app/assets/stylesheets/pages/todos.scss
+1
-1
app/assets/stylesheets/pages/wiki.scss
app/assets/stylesheets/pages/wiki.scss
+2
-2
changelogs/unreleased/enable-scss-lint-unnecessary-parent-reference.yml
...eleased/enable-scss-lint-unnecessary-parent-reference.yml
+4
-0
No files found.
.scss-lint.yml
View file @
325191dd
...
@@ -240,7 +240,7 @@ linters:
...
@@ -240,7 +240,7 @@ linters:
# Do not use parent selector references (&) when they would otherwise
# Do not use parent selector references (&) when they would otherwise
# be unnecessary.
# be unnecessary.
UnnecessaryParentReference
:
UnnecessaryParentReference
:
enabled
:
fals
e
enabled
:
tru
e
# URLs should be valid and not contain protocols or domain names.
# URLs should be valid and not contain protocols or domain names.
UrlFormat
:
UrlFormat
:
...
...
app/assets/stylesheets/framework/filters.scss
View file @
325191dd
...
@@ -368,7 +368,7 @@
...
@@ -368,7 +368,7 @@
margin-right
:
0
.3em
;
margin-right
:
0
.3em
;
}
}
&
>
.value
{
>
.value
{
font-weight
:
600
;
font-weight
:
600
;
}
}
}
}
...
@@ -467,7 +467,7 @@
...
@@ -467,7 +467,7 @@
-webkit-flex-direction
:
column
;
-webkit-flex-direction
:
column
;
flex-direction
:
column
;
flex-direction
:
column
;
&
>
span
{
>
span
{
white-space
:
normal
;
white-space
:
normal
;
word-break
:
break-all
;
word-break
:
break-all
;
}
}
...
...
app/assets/stylesheets/framework/highlight.scss
View file @
325191dd
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
&
:focus
{
&
:focus
{
outline
:
none
;
outline
:
none
;
&
i
{
i
{
visibility
:
visible
;
visibility
:
visible
;
}
}
}
}
...
...
app/assets/stylesheets/pages/merge_requests.scss
View file @
325191dd
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
overflow
:
visible
;
overflow
:
visible
;
}
}
&
>
span
{
>
span
{
padding-right
:
4px
;
padding-right
:
4px
;
}
}
...
...
app/assets/stylesheets/pages/notes.scss
View file @
325191dd
...
@@ -250,7 +250,7 @@ ul.notes {
...
@@ -250,7 +250,7 @@ ul.notes {
}
}
.note-text
{
.note-text
{
&
p
:first-child
{
p
:first-child
{
display
:
none
;
display
:
none
;
}
}
...
...
app/assets/stylesheets/pages/pipeline_schedules.scss
View file @
325191dd
...
@@ -96,12 +96,12 @@
...
@@ -96,12 +96,12 @@
}
}
&
:last-child
{
&
:last-child
{
&
.pipeline-variable-row-remove-button
{
.pipeline-variable-row-remove-button
{
display
:
none
;
display
:
none
;
}
}
@media
(
max-width
:
$screen-sm-max
)
{
@media
(
max-width
:
$screen-sm-max
)
{
&
.pipeline-variable-value-input
{
.pipeline-variable-value-input
{
margin-right
:
$pipeline-variable-remove-button-width
;
margin-right
:
$pipeline-variable-remove-button-width
;
}
}
}
}
...
...
app/assets/stylesheets/pages/projects.scss
View file @
325191dd
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
&
>
.form-group
{
>
.form-group
{
padding-left
:
0
;
padding-left
:
0
;
}
}
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
}
}
&
+
.select2
a
{
+
.select2
a
{
border-top-left-radius
:
0
;
border-top-left-radius
:
0
;
border-bottom-left-radius
:
0
;
border-bottom-left-radius
:
0
;
}
}
...
...
app/assets/stylesheets/pages/todos.scss
View file @
325191dd
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
.todo-title
{
.todo-title
{
display
:
flex
;
display
:
flex
;
&
>
.title-item
{
>
.title-item
{
-webkit-flex
:
0
0
auto
;
-webkit-flex
:
0
0
auto
;
flex
:
0
0
auto
;
flex
:
0
0
auto
;
margin
:
0
2px
;
margin
:
0
2px
;
...
...
app/assets/stylesheets/pages/wiki.scss
View file @
325191dd
...
@@ -147,13 +147,13 @@
...
@@ -147,13 +147,13 @@
}
}
ul
.wiki-pages-list.content-list
{
ul
.wiki-pages-list.content-list
{
&
ul
{
ul
{
list-style
:
none
;
list-style
:
none
;
margin-left
:
0
;
margin-left
:
0
;
padding-left
:
15px
;
padding-left
:
15px
;
}
}
&
ul
li
{
ul
li
{
padding
:
5px
0
;
padding
:
5px
0
;
}
}
}
}
...
...
changelogs/unreleased/enable-scss-lint-unnecessary-parent-reference.yml
0 → 100644
View file @
325191dd
---
title
:
Enable UnnecessaryParentReference in scss-lint
merge_request
:
12738
author
:
Takuya Noguchi
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