-
Notifications
You must be signed in to change notification settings - Fork 19
/
style.css
75 lines (62 loc) · 1.31 KB
/
style.css
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
@import url('https://fonts.googleapis.com/css?family=Karla:400,700&display=swap');
:root {
--textColor: white;
--invertColor: black;
--font: 'Karla', sans-serif;
}
html {
/*FONT:*/
font-family: var(--font);
color: var(--textColor);
font-size: 18px;
font-weight: 400;
/*BACKGROUND:*/
background: url('./images/sky.svg');
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
body {
margin: 10px auto; /*auto - center the linktree*/
}
img {
width: 130px;
height: 130px;
display: block;
margin: 20px auto;
border-radius: 50%; /*round image*/
}
#userName {
font-weight: 700; /*bold*/
}
#description {
margin: 20px auto;
}
main {
width: auto;
max-width: 500px;
margin: 15px auto;
}
/*LINKS*/
a {
/*LINKS TEXT*/
color: var(--textColor);
text-decoration: none;
text-align: center;
/*LINKS BORDER:*/
border: 2px solid var(--textColor);
border-radius: 10px;
display: block; /*each link takes a whole line*/
margin: 10px;
padding: 10px;
transition: .2s;
}
a:hover {
background-color: var(--textColor);
color: var(--invertColor);
transition: .2s;
}