-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
231 lines (199 loc) · 4.28 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
.sidebar {
position: fixed;
width: 300px;
height: 100%;
background: #f4f4f4;
left: -300px;
transition: all 500ms ease-in-out;
overflow-y: auto;
padding: 20px;
}
.sidebar.open {
left: 0;
}
.sidebar .header {
padding: 20px;
/* background: #333;
color: #fff; */
}
.sidebar .card {
margin-bottom: 15px;
border-radius: 15px;
overflow: hidden;
box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.1);
}
.sidebar .card .btn-link {
color: #333;
text-decoration: none;
display: block;
padding: 10px;
background: #f4f4f4;
}
.sidebar .card .btn-link:hover {
background: #eee;
}
.sidebar .card .card-body {
padding: 10px;
font-size: 0.9em;
line-height: 1.5;
}
.tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
visibility: hidden;
position: absolute;
width: 80px;
background-color: #555;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
z-index: 1;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip-bottom {
top: 135%;
left: 50%;
margin-left: -40px;
}
.tooltip-bottom::after {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent transparent #555 transparent;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
/* Container for each list item */
.list-element {
display: flex;
justify-content: space-between;
align-items: start;
border-bottom: 1px solid #ccc;
/* padding: 25px; */
padding: 15px 25px 15px 25px;
/* margin: 10px 0; */
/* margin: 0px 0px 10px 0px; */
/* border-radius: 5px; */
position: relative;
}
.list-element:hover {
background-color: #f4f4f4;
cursor: pointer;
}
/* Container for the text details */
.list-text {
flex: 1;
margin-right: 20px; /* Space between text and image */
overflow: hidden; /* Ensures that if text is too long, it won't overflow */
font-family: "Open Sans",Roboto,Arial,sans-serif;
line-height: 1.25rem;
font-size: 0.975rem;
letter-spacing: 0;
font-weight: 400;
}
/* Name (bolded) */
.list-name {
font-weight: 500;
margin-bottom: 5px;
font-size:1.1rem;
line-height: 1.5rem;
}
/* Other details, address, and description */
.list-details,
.list-rating,
.list-address,
.list-description {
margin: 5px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: wrap;
color: #70757a;
overflow: hidden;
direction: inherit;
}
/* Image container */
.list-img {
flex-shrink: 0; /* Ensures that the image container doesn't shrink */
width: 84px;
height: 84px;
}
.list-img img {
/* width: 100%; */
/* height: 100%; */
width: 84px;
height: 84px;
object-fit: cover;
border-radius: 5px; /* Rounded corners for the image */
position: absolute;
top: 15px;
right: 25px;
}
.accordion {
overflow-y: auto;
overflow-x: hidden;
height: calc(100% - 47px);
}
.event-stats {
display: flex;
justify-content: space-between;
}
.stat-box {
width: 50%;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.progress-ring {
width: 60px;
height: 60px;
border-radius: 50%;
position: absolute;
}
.progress-ring:before,
.progress-ring:after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 60px;
height: 60px;
border-radius: 50%;
/* clip: rect(0, 60px, 60px, 30px); */
}
/* Low risk */
.progress-ring.low-risk:after {
border: 4px solid green;
transform: rotate(0deg); /* Adjust rotation for different percentages */
}
/* Medium risk */
.progress-ring.medium-risk:after {
border: 4px solid orange;
transform: rotate(120deg); /* Adjust rotation for different percentages */
}
/* High risk */
.progress-ring.high-risk:after {
border: 4px solid red;
transform: rotate(360deg); /* Adjust rotation for different percentages */
}
.stat-box img {
width: 24px;
height: 24px;
z-index: 1;
}
.stat-box p {
position: absolute;
z-index: 2;
margin: 0;
}