Skip to content
Snippets Groups Projects
Commit ddf47bf6 authored by alexisben's avatar alexisben
Browse files

add config to link style

parent 619cce78
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,6 @@ $color-background: #FFFFFF !default
$body-color: $color-text !default
$body-background-color: $color-background !default
$link-color: $color-text !default
$link-underline-offset: 0.2em !default
// Grid
$grid-gutter: px2rem(64) !default
......@@ -136,6 +135,12 @@ $quote-line-height: 120% !default
$quote-weight: normal !default
$quote-style: italic !default
// Link
$link-underline-offset: 0.2em !default
$link-underline-thickness: 1px !default
$link-transition: text-decoration-color .3s ease !default
$link-unhover-decoration-color-alpha: 0.3 !default
// Buttons
$btn-font-size-desktop: px2rem(18) !default // TODO
$btn-font-size: px2rem(14) !default
......
......@@ -47,11 +47,11 @@ $space-unit: 4 !default
@mixin link($color: $link-color, $unhover_decorated: true)
color: $color
text-decoration-line: underline
text-decoration-thickness: 1px
text-decoration-thickness: $link-underline-thickness
text-underline-offset: $link-underline-offset
transition: text-decoration-color .3s ease
transition: $link-transition
@if $unhover_decorated
text-decoration-color: rgba($color, 0.3)
text-decoration-color: rgba($color, $link-unhover-decoration-color-alpha)
@else
text-decoration-color: transparent
&:hover
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment