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
0e873bd3
Commit
0e873bd3
authored
Jul 25, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace snake case in mixins and merge_conflicts variables
parent
425463c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
109 additions
and
110 deletions
+109
-110
app/assets/stylesheets/framework/mixins.scss
app/assets/stylesheets/framework/mixins.scss
+2
-2
app/assets/stylesheets/pages/merge_conflicts.scss
app/assets/stylesheets/pages/merge_conflicts.scss
+102
-108
changelogs/unreleased/replace-all-snake-case-in-scss-variables.yml
...s/unreleased/replace-all-snake-case-in-scss-variables.yml
+5
-0
No files found.
app/assets/stylesheets/framework/mixins.scss
View file @
0e873bd3
...
...
@@ -3,13 +3,13 @@
* Mixins with fixed values
*/
@mixin
str-truncated
(
$max
_
width
:
82%
)
{
@mixin
str-truncated
(
$max
-
width
:
82%
)
{
display
:
inline-block
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
vertical-align
:
top
;
white-space
:
nowrap
;
max-width
:
$max
_
width
;
max-width
:
$max
-
width
;
}
/*
...
...
app/assets/stylesheets/pages/merge_conflicts.scss
View file @
0e873bd3
// Disabled to use the color map for creating color schemes
// scss-lint:disable ColorVariable
$colors
:
(
white
_header_head_
neutral
:
#e1fad7
,
white
_line_head_
neutral
:
#effdec
,
white
_button_head_
neutral
:
#9adb84
,
white
-header-head-
neutral
:
#e1fad7
,
white
-line-head-
neutral
:
#effdec
,
white
-button-head-
neutral
:
#9adb84
,
white
_header_head_
chosen
:
#baf0a8
,
white
_line_head_
chosen
:
#e1fad7
,
white
_button_head_
chosen
:
#52c22d
,
white
-header-head-
chosen
:
#baf0a8
,
white
-line-head-
chosen
:
#e1fad7
,
white
-button-head-
chosen
:
#52c22d
,
white
_header_origin_
neutral
:
#e0f0ff
,
white
_line_origin_
neutral
:
#f2f9ff
,
white
_button_origin_
neutral
:
#87c2fa
,
white
-header-origin-
neutral
:
#e0f0ff
,
white
-line-origin-
neutral
:
#f2f9ff
,
white
-button-origin-
neutral
:
#87c2fa
,
white
_header_origin_
chosen
:
#add8ff
,
white
_line_origin_
chosen
:
#e0f0ff
,
white
_button_origin_
chosen
:
#268ced
,
white
-header-origin-
chosen
:
#add8ff
,
white
-line-origin-
chosen
:
#e0f0ff
,
white
-button-origin-
chosen
:
#268ced
,
white
_header_not_
chosen
:
#f0f0f0
,
white
_line_not_
chosen
:
$gray-light
,
white
-header-not-
chosen
:
#f0f0f0
,
white
-line-not-
chosen
:
$gray-light
,
dark-header-head-neutral
:
rgba
(
#3f3
,
.2
)
,
dark-line-head-neutral
:
rgba
(
#3f3
,
.1
)
,
dark-button-head-neutral
:
#40874f
,
dark
_header_head_neutral
:
rgba
(
#3f3
,
.2
)
,
dark
_line_head_neutral
:
rgba
(
#3f3
,
.1
)
,
dark
_button_head_neutral
:
#40874f
,
dark
-header-head-chosen
:
rgba
(
#3f3
,
.33
)
,
dark
-line-head-chosen
:
rgba
(
#3f3
,
.2
)
,
dark
-button-head-chosen
:
#258537
,
dark
_header_head_chosen
:
rgba
(
#3f3
,
.33
)
,
dark
_line_head_chosen
:
rgba
(
#3f3
,
.2
)
,
dark
_button_head_chosen
:
#258537
,
dark
-header-origin-neutral
:
rgba
(
#2878c9
,
.4
)
,
dark
-line-origin-neutral
:
rgba
(
#2878c9
,
.3
)
,
dark
-button-origin-neutral
:
#2a5c8c
,
dark
_header_origin_neutral
:
rgba
(
#2878c9
,
.4
)
,
dark
_line_origin_neutral
:
rgba
(
#2878c9
,
.3
)
,
dark
_button_origin_neutral
:
#2a5c8c
,
dark
-header-origin-chosen
:
rgba
(
#2878c9
,
.6
)
,
dark
-line-origin-chosen
:
rgba
(
#2878c9
,
.4
)
,
dark
-button-origin-chosen
:
#1d6cbf
,
dark_header_origin_chosen
:
rgba
(
#2878c9
,
.6
)
,
dark_line_origin_chosen
:
rgba
(
#2878c9
,
.4
)
,
dark_button_origin_chosen
:
#1d6cbf
,
dark-header-not-chosen
:
rgba
(
#fff
,
.25
)
,
dark-line-not-chosen
:
rgba
(
#fff
,
.1
)
,
dark_header_not_chosen
:
rgba
(
#fff
,
.25
)
,
dark_line_not_chosen
:
rgba
(
#fff
,
.1
)
,
monokai-header-head-neutral
:
rgba
(
#a6e22e
,
.25
)
,
monokai-line-head-neutral
:
rgba
(
#a6e22e
,
.1
)
,
monokai-button-head-neutral
:
#376b20
,
monokai-header-head-chosen
:
rgba
(
#a6e22e
,
.4
)
,
monokai-line-head-chosen
:
rgba
(
#a6e22e
,
.25
)
,
monokai-button-head-chosen
:
#39800d
,
monokai
_header_head_neutral
:
rgba
(
#a6e22e
,
.2
5
)
,
monokai
_line_head_neutral
:
rgba
(
#a6e22e
,
.1
)
,
monokai
_button_head_neutral
:
#376b20
,
monokai
-header-origin-neutral
:
rgba
(
#60d9f1
,
.3
5
)
,
monokai
-line-origin-neutral
:
rgba
(
#60d9f1
,
.15
)
,
monokai
-button-origin-neutral
:
#38848c
,
monokai
_header_head_chosen
:
rgba
(
#a6e22e
,
.4
)
,
monokai
_line_head_chosen
:
rgba
(
#a6e22e
,
.2
5
)
,
monokai
_button_head_chosen
:
#39800d
,
monokai
-header-origin-chosen
:
rgba
(
#60d9f1
,
.5
)
,
monokai
-line-origin-chosen
:
rgba
(
#60d9f1
,
.3
5
)
,
monokai
-button-origin-chosen
:
#3ea4b2
,
monokai_header_origin_neutral
:
rgba
(
#60d9f1
,
.35
)
,
monokai_line_origin_neutral
:
rgba
(
#60d9f1
,
.15
)
,
monokai_button_origin_neutral
:
#38848c
,
monokai-header-not-chosen
:
rgba
(
#76715d
,
.24
)
,
monokai-line-not-chosen
:
rgba
(
#76715d
,
.1
)
,
monokai_header_origin_chosen
:
rgba
(
#60d9f1
,
.5
)
,
monokai_line_origin_chosen
:
rgba
(
#60d9f1
,
.35
)
,
monokai_button_origin_chosen
:
#3ea4b
2
,
solarized-light-header-head-neutral
:
rgba
(
#859900
,
.37
)
,
solarized-light-line-head-neutral
:
rgba
(
#859900
,
.2
)
,
solarized-light-button-head-neutral
:
#afb26
2
,
monokai_header_not_chosen
:
rgba
(
#76715d
,
.24
)
,
monokai_line_not_chosen
:
rgba
(
#76715d
,
.1
)
,
solarized-light-header-head-chosen
:
rgba
(
#859900
,
.5
)
,
solarized-light-line-head-chosen
:
rgba
(
#859900
,
.37
)
,
solarized-light-button-head-chosen
:
#94993d
,
solarized-light-header-origin-neutral
:
rgba
(
#2878c9
,
.37
)
,
solarized-light-line-origin-neutral
:
rgba
(
#2878c9
,
.15
)
,
solarized-light-button-origin-neutral
:
#60a1bf
,
solarized
_light_header_head_neutral
:
rgba
(
#859900
,
.37
)
,
solarized
_light_line_head_neutral
:
rgba
(
#859900
,
.2
)
,
solarized
_light_button_head_neutral
:
#afb26
2
,
solarized
-light-header-origin-chosen
:
rgba
(
#2878c9
,
.6
)
,
solarized
-light-line-origin-chosen
:
rgba
(
#2878c9
,
.37
)
,
solarized
-light-button-origin-chosen
:
#2482b
2
,
solarized_light_header_head_chosen
:
rgba
(
#859900
,
.5
)
,
solarized_light_line_head_chosen
:
rgba
(
#859900
,
.37
)
,
solarized_light_button_head_chosen
:
#94993d
,
solarized-light-header-not-chosen
:
rgba
(
#839496
,
.37
)
,
solarized-light-line-not-chosen
:
rgba
(
#839496
,
.2
)
,
solarized
_light_header_origin_neutral
:
rgba
(
#2878c9
,
.37
)
,
solarized
_light_line_origin_neutral
:
rgba
(
#2878c9
,
.15
)
,
solarized
_light_button_origin_neutral
:
#60a1bf
,
solarized
-dark-header-head-neutral
:
rgba
(
#859900
,
.35
)
,
solarized
-dark-line-head-neutral
:
rgba
(
#859900
,
.15
)
,
solarized
-dark-button-head-neutral
:
#376b20
,
solarized
_light_header_origin_chosen
:
rgba
(
#2878c9
,
.6
)
,
solarized
_light_line_origin_chosen
:
rgba
(
#2878c9
,
.37
)
,
solarized
_light_button_origin_chosen
:
#2482b2
,
solarized
-dark-header-head-chosen
:
rgba
(
#859900
,
.5
)
,
solarized
-dark-line-head-chosen
:
rgba
(
#859900
,
.35
)
,
solarized
-dark-button-head-chosen
:
#39800d
,
solarized_light_header_not_chosen
:
rgba
(
#839496
,
.37
)
,
solarized_light_line_not_chosen
:
rgba
(
#839496
,
.2
)
,
solarized-dark-header-origin-neutral
:
rgba
(
#2878c9
,
.35
)
,
solarized-dark-line-origin-neutral
:
rgba
(
#2878c9
,
.15
)
,
solarized-dark-button-origin-neutral
:
#086799
,
solarized-dark-header-origin-chosen
:
rgba
(
#2878c9
,
.6
)
,
solarized-dark-line-origin-chosen
:
rgba
(
#2878c9
,
.35
)
,
solarized-dark-button-origin-chosen
:
#0082cc
,
solarized_dark_header_head_neutral
:
rgba
(
#859900
,
.35
)
,
solarized_dark_line_head_neutral
:
rgba
(
#859900
,
.15
)
,
solarized_dark_button_head_neutral
:
#376b20
,
solarized_dark_header_head_chosen
:
rgba
(
#859900
,
.5
)
,
solarized_dark_line_head_chosen
:
rgba
(
#859900
,
.35
)
,
solarized_dark_button_head_chosen
:
#39800d
,
solarized_dark_header_origin_neutral
:
rgba
(
#2878c9
,
.35
)
,
solarized_dark_line_origin_neutral
:
rgba
(
#2878c9
,
.15
)
,
solarized_dark_button_origin_neutral
:
#086799
,
solarized_dark_header_origin_chosen
:
rgba
(
#2878c9
,
.6
)
,
solarized_dark_line_origin_chosen
:
rgba
(
#2878c9
,
.35
)
,
solarized_dark_button_origin_chosen
:
#0082cc
,
solarized_dark_header_not_chosen
:
rgba
(
#839496
,
.25
)
,
solarized_dark_line_not_chosen
:
rgba
(
#839496
,
.15
)
solarized-dark-header-not-chosen
:
rgba
(
#839496
,
.25
)
,
solarized-dark-line-not-chosen
:
rgba
(
#839496
,
.15
)
);
// scss-lint:enable ColorVariable
@mixin
color-scheme
(
$color
)
{
.header.line_content
,
.diff-line-num
{
&
.origin
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_header_origin_
neutral
);
border-color
:
map-get
(
$colors
,
#{
$color
}
_header_origin_
neutral
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
header-origin-
neutral
);
border-color
:
map-get
(
$colors
,
#{
$color
}
-
header-origin-
neutral
);
button
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_button_origin_
neutral
);
border-color
:
darken
(
map-get
(
$colors
,
#{
$color
}
_button_origin_
neutral
)
,
15
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
button-origin-
neutral
);
border-color
:
darken
(
map-get
(
$colors
,
#{
$color
}
-
button-origin-
neutral
)
,
15
);
}
&
.selected
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_header_origin_
chosen
);
border-color
:
map-get
(
$colors
,
#{
$color
}
_header_origin_
chosen
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
header-origin-
chosen
);
border-color
:
map-get
(
$colors
,
#{
$color
}
-
header-origin-
chosen
);
button
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_button_origin_
chosen
);
border-color
:
darken
(
map-get
(
$colors
,
#{
$color
}
_button_origin_
chosen
)
,
15
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
button-origin-
chosen
);
border-color
:
darken
(
map-get
(
$colors
,
#{
$color
}
-
button-origin-
chosen
)
,
15
);
}
}
&
.unselected
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_header_not_
chosen
);
border-color
:
map-get
(
$colors
,
#{
$color
}
_header_not_
chosen
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
header-not-
chosen
);
border-color
:
map-get
(
$colors
,
#{
$color
}
-
header-not-
chosen
);
button
{
background-color
:
lighten
(
map-get
(
$colors
,
#{
$color
}
_button_origin_
neutral
)
,
15
);
border-color
:
map-get
(
$colors
,
#{
$color
}
_button_origin_
neutral
);
background-color
:
lighten
(
map-get
(
$colors
,
#{
$color
}
-
button-origin-
neutral
)
,
15
);
border-color
:
map-get
(
$colors
,
#{
$color
}
-
button-origin-
neutral
);
}
}
}
&
.head
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_header_head_
neutral
);
border-color
:
map-get
(
$colors
,
#{
$color
}
_header_head_
neutral
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
header-head-
neutral
);
border-color
:
map-get
(
$colors
,
#{
$color
}
-
header-head-
neutral
);
button
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_button_head_
neutral
);
border-color
:
darken
(
map-get
(
$colors
,
#{
$color
}
_button_head_
neutral
)
,
15
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
button-head-
neutral
);
border-color
:
darken
(
map-get
(
$colors
,
#{
$color
}
-
button-head-
neutral
)
,
15
);
}
&
.selected
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_header_head_
chosen
);
border-color
:
map-get
(
$colors
,
#{
$color
}
_header_head_
chosen
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
header-head-
chosen
);
border-color
:
map-get
(
$colors
,
#{
$color
}
-
header-head-
chosen
);
button
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_button_head_
chosen
);
border-color
:
darken
(
map-get
(
$colors
,
#{
$color
}
_button_head_
chosen
)
,
15
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
button-head-
chosen
);
border-color
:
darken
(
map-get
(
$colors
,
#{
$color
}
-
button-head-
chosen
)
,
15
);
}
}
&
.unselected
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_header_not_
chosen
);
border-color
:
map-get
(
$colors
,
#{
$color
}
_header_not_
chosen
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
header-not-
chosen
);
border-color
:
map-get
(
$colors
,
#{
$color
}
-
header-not-
chosen
);
button
{
background-color
:
lighten
(
map-get
(
$colors
,
#{
$color
}
_button_head_
neutral
)
,
15
);
border-color
:
map-get
(
$colors
,
#{
$color
}
_button_head_
neutral
);
background-color
:
lighten
(
map-get
(
$colors
,
#{
$color
}
-
button-head-
neutral
)
,
15
);
border-color
:
map-get
(
$colors
,
#{
$color
}
-
button-head-
neutral
);
}
}
}
...
...
@@ -169,32 +164,31 @@ $colors: (
.line_content
{
&
.origin
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_line_origin_
neutral
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
line-origin-
neutral
);
&
.selected
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_line_origin_
chosen
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
line-origin-
chosen
);
}
&
.unselected
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_line_not_
chosen
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
line-not-
chosen
);
}
}
&
.head
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_line_head_
neutral
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
line-head-
neutral
);
&
.selected
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_line_head_
chosen
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
line-head-
chosen
);
}
&
.unselected
{
background-color
:
map-get
(
$colors
,
#{
$color
}
_line_not_
chosen
);
background-color
:
map-get
(
$colors
,
#{
$color
}
-
line-not-
chosen
);
}
}
}
}
#conflicts
{
.white
{
...
...
@@ -210,11 +204,11 @@ $colors: (
}
.solarized-light
{
@include
color-scheme
(
'solarized
_
light'
)
@include
color-scheme
(
'solarized
-
light'
)
}
.solarized-dark
{
@include
color-scheme
(
'solarized
_
dark'
)
@include
color-scheme
(
'solarized
-
dark'
)
}
.diff-wrap-lines
.line_content
{
...
...
changelogs/unreleased/replace-all-snake-case-in-scss-variables.yml
0 → 100644
View file @
0e873bd3
---
title
:
Replace snake case in SCSS variables
merge_request
:
20799
author
:
George Tsiolis
type
:
other
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