-
Notifications
You must be signed in to change notification settings - Fork 7
/
style.css
145 lines (126 loc) · 2.59 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-clr: rgb(26, 26, 34);
--fg-clr: rgb(17, 17, 22);
--accent-clr: rgb(78, 46, 121);
--text-clr: white;
--hidden-text-clr: rgb(170, 170, 170);
--border-radius: 0.45rem;
--backdrop-url: url("");
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: var(--bg-clr);
color: var(--text-clr);
}
body {
height: 100vh;
display: grid;
align-items: center;
justify-content: center;
}
#avatar {
border-radius: 50%;
}
.display {
min-width: 35vw;
padding: 1.75em;
background: var(--fg-clr);
border-radius: var(--border-radius);
}
.userinfo {
background-image:
linear-gradient(
rgb(0, 0, 0, 0.7),
rgb(0, 0, 0, 0.7)
),
var(--backdrop-url);
background-size: cover;
background-position: 50% 50%;
border-radius: var(--border-radius);
padding: 1em 1em;
display: grid;
grid-template-columns: min-content 1fr max-content;
gap: 0 12px;
align-items: center;
grid-template-areas:
"avatar display view"
"avatar username view"
"avatar status view";
}
#avatar {
grid-area: avatar;
}
#username {
color: var(--hidden-text-clr);
grid-area: username;
}
#display {
grid-area: display;
}
#status {
display: flex;
align-items: center;
gap: 6px;
grid-area: status;
}
#viewuser {
grid-area: view;
}
.activity {
display: grid;
grid-template-columns: min-content 1fr;
grid-template-rows: min-content min-content min-content;
gap: 0px 12px;
align-items: center;
grid-template-areas:
"images name"
"images details"
"images state";
}
.act-name {
font-weight: 700;
grid-area: name;
}
.act-details {
grid-area: details;
}
.act-state {
grid-area: state;
}
.act-images {
position: relative;
grid-area: images;
}
.largeimage {
border-radius: var(--border-radius);
}
.smallimage {
position: absolute;
bottom: -4px;
right: -4px;
border-radius: 50%;
border: 4px solid var(--fg-clr);
}
.activities {
display: grid;
gap: 16px 0;
}
.return {
position: absolute;
top: 8px;
left: 8px;
}
a {
text-decoration: none;
}
.button {
cursor: pointer;
padding: 4px 8px;
border: transparent;
border-radius: var(--border-radius);
color: var(--text-clr);
background: var(--accent-clr);
}