-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathTextContainer.css
More file actions
107 lines (94 loc) · 1.84 KB
/
Copy pathTextContainer.css
File metadata and controls
107 lines (94 loc) · 1.84 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
103
104
105
106
107
/* ===========================
TextContainer Styles
Updated for better clarity,
modern look, and accessibility
=========================== */
.textContainer {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
padding: 1rem;
font-family: 'Arial', sans-serif;
color: #333;
text-align: center;
background-color: #fafafa;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
/* Intro Section */
.intro h1 {
font-size: 2rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: #111;
}
.intro h2 {
font-size: 1.1rem;
margin-bottom: 0.5rem;
color: #555;
}
/* Users Section */
.usersSection {
margin-top: 2rem;
width: 100%;
max-width: 320px;
}
/* Active User List Container */
.activeContainer {
display: flex;
flex-direction: column;
gap: 0.6rem;
max-height: 220px;
overflow-y: auto;
padding: 0.7rem;
border: 1px solid #e2e2e2;
border-radius: 0.6rem;
background-color: #ffffff;
scrollbar-width: thin;
scrollbar-color: #ccc transparent;
}
/* Scrollbar Styling for WebKit browsers */
.activeContainer::-webkit-scrollbar {
width: 6px;
}
.activeContainer::-webkit-scrollbar-thumb {
background-color: #ccc;
border-radius: 3px;
}
/* Individual Active Item */
.activeItem {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.4rem 0.6rem;
border-radius: 0.4rem;
transition: background-color 0.2s ease, transform 0.1s ease;
cursor: default;
}
.activeItem:hover {
background-color: #e6f7ff;
transform: scale(1.02);
}
/* Online Icon */
.onlineIcon {
width: 16px;
height: 16px;
}
/* Username Text */
.username {
font-weight: 500;
color: #222;
}
/* Responsive Design */
@media (max-width: 480px) {
.intro h1 {
font-size: 1.6rem;
}
.usersSection {
max-width: 90%;
}
.activeContainer {
max-height: 180px;
}
}