-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
164 lines (140 loc) · 2.66 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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/* General styles for the page */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #fef6e4;
color: #4a4a4a;
font-size: 1rem; /* Base font size for scaling */
}
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
padding: 2vw;
}
/* Skeleton profile and profile content styles */
.skeleton-profile,
.profile-content {
display: flex;
align-items: center;
background-color: #ffffff;
border-radius: 0.5rem;
padding: 2vw;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
max-width: 800px;
width: 100%;
}
/* Center the skeleton and profile content on mobile screens */
.skeleton-profile {
justify-content: center; /* Center content horizontally */
flex-direction: column; /* Stack content vertically */
}
.profile-content {
display: none;
flex-direction: column;
align-items: center;
}
/* Skeleton specific styles */
.skeleton-avatar {
width: 5rem;
height: 5rem;
background-color: #f4a261;
border-radius: 50%;
animation: pulse 1.5s infinite ease-in-out;
}
.skeleton-info {
margin-top: 1.25rem; /* Space between avatar and text */
display: flex;
flex-direction: column;
align-items: center;
}
.skeleton-name,
.skeleton-detail {
background-color: #f4a261;
border-radius: 0.25rem;
margin-bottom: 0.625rem;
animation: pulse 1.5s infinite ease-in-out;
}
.skeleton-name {
width: 12.5rem;
height: 1.25rem;
}
.skeleton-detail {
width: 9.375rem;
height: 1rem;
}
@keyframes pulse {
0% {
background-color: #f4a261;
}
50% {
background-color: #e9c5a7;
}
100% {
background-color: #f4a261;
}
}
.profile-content {
flex-direction: column;
align-items: center;
}
#user-avatar {
width: 5rem;
height: 5rem;
border-radius: 50%;
}
#user-name {
font-size: 1.5rem;
margin: 0.625rem 0;
color: #2a2a2a;
}
#user-bio {
font-size: 1rem;
color: #6a6a6a;
line-height: 1.5;
text-align: center;
}
/* Media queries for larger screens */
@media (min-width: 600px) {
.skeleton-profile,
.profile-content {
flex-direction: row;
align-items: center;
gap: 2vw; /* Responsive gap */
}
.skeleton-profile {
justify-content: flex-start;
}
.skeleton-info {
margin-left: 2vw;
}
.skeleton-avatar {
width: 6.25rem;
height: 6.25rem;
}
.skeleton-info {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.skeleton-name {
width: 15.625rem;
}
.skeleton-detail {
width: 12.5rem;
}
#user-avatar {
width: 6.25rem;
height: 6.25rem;
}
#user-name {
font-size: 1.75rem;
}
#user-bio {
font-size: 1.125rem;
text-align: left;
}
}