-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
115 lines (99 loc) · 2.49 KB
/
styles.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
/* Colours */
--primary-colour: hsl(75, 94%, 57%);
--white-colour: hsl(0, 0%, 100%);
--grey-colour: #333333;
--grey-drk-colour: #1f1f1f;
--black-colour: hsl(0, 0%, 8%);
/* Typography */
--font-size-body: 0.875rem; /* based on 14px*/
--font-size-heading: 1.5rem; /*24px*/
--font-primary: "Inter", sans-serif;
--font-weight-400: 400;
--font-weight-600: 600;
--font-weight-700: 700;
/* spacing */
--spacing-xs: 0.625rem; /*based on 10px*/
--spacing-s: 0.9375rem; /*based on 15px*/
--spacing-med: 1.125rem; /*18px*/
--spacing-lg: 1.5rem; /*24px*/
--spacing-xl: 1.875rem; /*30px*/
--spacing-xxl: 2.5rem; /*40px*/
--spacing-circle: 15rem; /*makes fully round border*/
}
body {
font-size: var(--font-size-body);
color: var(--white-colour);
background-color: var(--black-colour);
font-family: var(--font-primary);
font-weight: var(--font-weight-400);
margin: 0;
overflow-x: hidden;
}
.container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
/* I am experimenting with functions out of curiosity, not because they are strictly necessary for this project */
.social-card {
text-align: center;
background-color: var(--grey-drk-colour);
border-radius: var(--spacing-s);
padding: clamp(var(--spacing-lg), 5vw, var(--spacing-xxl));
width: calc(100% - var(--spacing-xl));
max-width: 24rem;
}
.social-card-img {
border-radius: var(--spacing-circle);
margin-bottom: var(--spacing-xl);
}
.social-card-name {
font-size: var(--font-size-heading);
font-weight: var(--font-weight-600);
margin-bottom: var(--spacing-xs);
}
.social-card-location {
color: var(--primary-colour);
font-weight: var(--font-weight-600);
margin-bottom: var(--spacing-xl);
}
.social-card-bio {
margin-bottom: var(--spacing-lg);
}
.social-card-links {
display: flex;
flex-direction: column;
gap: var(--spacing-s);
padding: 0;
}
.social-card-links li {
list-style-type: none;
}
.link {
cursor: pointer;
display: inline-block;
width: 100%;
color: var(--white-colour);
background-color: var(--grey-colour);
text-decoration: none;
padding: var(--spacing-s);
border-radius: var(--spacing-xs);
font-weight: var(--font-weight-700);
}
.link:hover, .link:active {
background-color: var(--primary-colour);
color: var(--black-colour);
}
.link:focus {
outline: 2px solid var(--primary-colour);
box-shadow: 0 0 8px var(--primary-colour);
}