-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
102 lines (92 loc) · 2.2 KB
/
style.css
File metadata and controls
102 lines (92 loc) · 2.2 KB
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
/* Define CSS custom properties for color, font, and size */
:root{
--bg-colour: hsl(0, 0%, 8%);
--white:hsl(0, 0%, 100%);
--primary-col: hsl(75, 94%, 57%);
--grey: hsl(0, 0%, 20%);
--dark-grey: hsl(0, 0%, 12%);
--fsize: 14px;
--fontf: inter, Georgia, 'Times New Roman', Times, serif;
}
/* Reset default margin and padding for all elements */
*{
margin: 0px;
padding: 0px;
}
/* Style the container to center its content vertically and horizontally */
.container{
width:100vw;
height: 100vh;
background-color: var(--bg-colour);
display: flex;
justify-content: center;
align-items: center;
}
/* Style the main content */
.main{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: var(--dark-grey);
padding: 15px 9px;
border-radius: 10px;
}
/* Style the profile image */
img{
margin-top: 10px;
width: 70px;
border-radius: 100%;
}
/* Style the name */
.name{
font-size: 20px;
font-family:var(--fontf);
font-weight: 700;
margin-top: 20px;
margin-bottom:5px;
color: var(--white);
}
/* Style the location */
.location{
font-size: var(--fsize);
color: var(--primary-col);
font-family: var(--fontf);
font-weight: 400;
margin-top: 3px;
}
/* Style the description */
.discription{
font-size: var(--fsize);
color: var(--white);
font-family: inter, Georgia, 'Times New Roman', Times, serif;
margin:2rem 2rem;
}
/* Style the social links container */
.social{
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
}
/* Style the individual social links */
.link a {
display: flex;
width: 15rem; /* Adjust the width as needed */
height: 1.4rem; /* Adjust the height as needed */
padding: .5rem;
border-radius: 10px;
align-items: center;
justify-content: center;
background-color: var(--grey);
text-decoration: none;
font-size: 14px;
font-family: var(--fontf);
font-weight: 600;
color: var(--white);
}
/* Style the hover and focus states of social links */
.link a:hover, .link a:focus {
background-color: var(--primary-col);
color: var(--bg-colour);
}