Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
96fe7ecf
Commit
96fe7ecf
authored
May 28, 2020
by
Lyza Danger Gardner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove extraneous color functions
parent
0d15ec5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
44 deletions
+1
-44
variables.scss
src/styles/variables.scss
+1
-44
No files found.
src/styles/variables.scss
View file @
96fe7ecf
...
...
@@ -50,49 +50,6 @@ $highlight: #58cef4;
$color-focus-outline
:
#51a7e8
;
$color-focus-shadow
:
color
.
scale
(
$color-focus-outline
,
$alpha
:
-50%
);
// Tint and shade functions from
// https://css-tricks.com/snippets/sass/tint-shade-functions
@function
tint
(
$color
,
$percent
)
{
@return
color
.
mix
(
white
,
$color
,
$percent
);
}
@function
shade
(
$color
,
$percent
)
{
@return
color
.
mix
(
black
,
$color
,
$percent
);
}
@function
color-weight
(
$c
,
$n
:
500
)
{
@if
$n
==
50
{
@return
tint
(
$c
,
85%
);
}
@if
$n
==
100
{
@return
tint
(
$c
,
70%
);
}
@if
$n
==
200
{
@return
tint
(
$c
,
50%
);
}
@if
$n
==
300
{
@return
tint
(
$c
,
30%
);
}
@if
$n
==
400
{
@return
tint
(
$c
,
15%
);
}
@if
$n
==
500
{
@return
$c
;
}
@if
$n
==
600
{
@return
shade
(
$c
,
15%
);
}
@if
$n
==
700
{
@return
shade
(
$c
,
30%
);
}
@if
$n
==
800
{
@return
shade
(
$c
,
50%
);
}
@if
$n
==
900
{
@return
shade
(
$c
,
85%
);
}
}
// Scaffolding
// -------------------------
$body-background
:
$white
!
default
;
...
...
@@ -100,7 +57,7 @@ $body-background: $white !default;
// Links
// -------------------------
$link-color
:
$brand
!
default
;
$link-color-hover
:
color-weight
(
$brand
,
700
)
!
default
;
$link-color-hover
:
#84141e
!
default
;
// Typography
// -------------------------
...
...
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