forked from reneeperpignan/reneeperpignan.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.scss
88 lines (77 loc) · 1.78 KB
/
styles.scss
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.social-buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
}
$social-button-size: 64px;
$social-button-icon-size: 0.4;
$social-button-background: #fff;
$social-button-active-color: #fff;
$social-button-transition-time: 0.3s;
$social-button-colors: (
'mail': #0072c6,
'facebook': #3b5999,
'linkedin': #0077b5,
'github': #6e5494,
'codepen': #212121,
'steam': #7da10e,
'snapchat': #eec900,
'twitter': #55acee,
'instagram': #e4405f,
'npmjs': #c12127,
);
.social-button {
position: relative;
display: flex;
justify-content: center;
align-items: center;
outline: none;
width: $social-button-size;
height: $social-button-size;
text-decoration: none;
border-radius: 100%;
background: $social-button-background;
text-align: center;
&::after {
content: '';
position: absolute;
top: -1px;
left: 50%;
display: block;
width: 0;
height: 0;
border-radius: 100%;
transition: $social-button-transition-time;
}
&:focus,
&:hover {
color: $social-button-active-color;
&::after {
width: calc(100% + 2px);
height: calc(100% + 2px);
margin-left: calc(-50% - 1px);
}
}
i,
svg {
position: relative;
z-index: 1;
transition: $social-button-transition-time;
}
i {
font-size: $social-button-size * $social-button-icon-size;
}
svg {
height: percentage($social-button-icon-size);
width: percentage($social-button-icon-size);
}
@each $name, $color in $social-button-colors {
&--#{$name} {
color: $color;
&::after {
background: $color;
}
}
}
}