blob: 7a62ab408a15eeb975df6d6bd9a2e07931f3e9ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// ==========================================================================
// Links
// ==========================================================================
// Make a <button> look like an <a>
button.faux-link {
.cancel-button-styles();
&:extend(a all);
}
// Links
a {
position: relative;
border-bottom: 1px dotted currentColor;
transition: all 0.2s ease;
text-decoration: none;
color: @color-link;
font-weight: @font-weight-bold;
&::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 1px;
transition: width 0.2s ease;
background: currentColor;
}
&:hover,
&:focus {
border-bottom-color: transparent;
outline: 0;
&::after {
width: 100%;
}
}
&.tab-focus {
.tab-focus();
}
}
|