Update public/css/sidebar.css
Browse files- public/css/sidebar.css +33 -2
public/css/sidebar.css
CHANGED
|
@@ -142,6 +142,7 @@
|
|
| 142 |
flex-shrink: 0;
|
| 143 |
padding: 8px;
|
| 144 |
border-top: 1px solid var(--sidebar-border);
|
|
|
|
| 145 |
}
|
| 146 |
|
| 147 |
.account-section {
|
|
@@ -152,6 +153,9 @@
|
|
| 152 |
|
| 153 |
.sidebar.collapsed .account-section {
|
| 154 |
flex-direction: column;
|
|
|
|
|
|
|
|
|
|
| 155 |
}
|
| 156 |
|
| 157 |
.sidebar.expanded .account-section {
|
|
@@ -166,17 +170,36 @@
|
|
| 166 |
color: #111;
|
| 167 |
font-size: 13px;
|
| 168 |
font-weight: 600;
|
| 169 |
-
transition: opacity var(--transition);
|
| 170 |
white-space: nowrap;
|
| 171 |
overflow: hidden;
|
| 172 |
opacity: 0;
|
| 173 |
pointer-events: none;
|
| 174 |
transition: opacity var(--transition);
|
|
|
|
| 175 |
}
|
| 176 |
|
| 177 |
.sidebar.expanded .btn-signin {
|
| 178 |
opacity: 1;
|
| 179 |
pointer-events: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
}
|
| 181 |
|
| 182 |
.user-profile-btn {
|
|
@@ -187,6 +210,14 @@
|
|
| 187 |
}
|
| 188 |
.user-profile-btn:hover { background: var(--bg-hover); }
|
| 189 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
.user-avatar {
|
| 191 |
width: 30px; height: 30px; border-radius: 50%;
|
| 192 |
background: var(--blue);
|
|
@@ -243,4 +274,4 @@
|
|
| 243 |
.context-item.danger { color: #f07070; }
|
| 244 |
.context-item.warning { color: var(--yellow); }
|
| 245 |
.context-item svg { flex-shrink: 0; color: var(--text-dim); }
|
| 246 |
-
.context-item.danger svg { color: #f07070; }
|
|
|
|
| 142 |
flex-shrink: 0;
|
| 143 |
padding: 8px;
|
| 144 |
border-top: 1px solid var(--sidebar-border);
|
| 145 |
+
overflow: hidden;
|
| 146 |
}
|
| 147 |
|
| 148 |
.account-section {
|
|
|
|
| 153 |
|
| 154 |
.sidebar.collapsed .account-section {
|
| 155 |
flex-direction: column;
|
| 156 |
+
align-items: center;
|
| 157 |
+
justify-content: center;
|
| 158 |
+
width: 100%;
|
| 159 |
}
|
| 160 |
|
| 161 |
.sidebar.expanded .account-section {
|
|
|
|
| 170 |
color: #111;
|
| 171 |
font-size: 13px;
|
| 172 |
font-weight: 600;
|
|
|
|
| 173 |
white-space: nowrap;
|
| 174 |
overflow: hidden;
|
| 175 |
opacity: 0;
|
| 176 |
pointer-events: none;
|
| 177 |
transition: opacity var(--transition);
|
| 178 |
+
display: none;
|
| 179 |
}
|
| 180 |
|
| 181 |
.sidebar.expanded .btn-signin {
|
| 182 |
opacity: 1;
|
| 183 |
pointer-events: auto;
|
| 184 |
+
display: block;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
/* Collapsed sign-in icon */
|
| 188 |
+
.btn-signin-icon {
|
| 189 |
+
display: none;
|
| 190 |
+
width: 34px; height: 34px;
|
| 191 |
+
border-radius: 50%;
|
| 192 |
+
background: var(--yellow);
|
| 193 |
+
color: #111;
|
| 194 |
+
align-items: center; justify-content: center;
|
| 195 |
+
flex-shrink: 0;
|
| 196 |
+
transition: opacity var(--transition);
|
| 197 |
+
}
|
| 198 |
+
.sidebar.collapsed .btn-signin-icon {
|
| 199 |
+
display: flex;
|
| 200 |
+
}
|
| 201 |
+
.sidebar.expanded .btn-signin-icon {
|
| 202 |
+
display: none;
|
| 203 |
}
|
| 204 |
|
| 205 |
.user-profile-btn {
|
|
|
|
| 210 |
}
|
| 211 |
.user-profile-btn:hover { background: var(--bg-hover); }
|
| 212 |
|
| 213 |
+
.sidebar.collapsed .user-profile-btn {
|
| 214 |
+
flex: none;
|
| 215 |
+
width: 36px; height: 36px;
|
| 216 |
+
justify-content: center;
|
| 217 |
+
padding: 0;
|
| 218 |
+
border-radius: 50%;
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
.user-avatar {
|
| 222 |
width: 30px; height: 30px; border-radius: 50%;
|
| 223 |
background: var(--blue);
|
|
|
|
| 274 |
.context-item.danger { color: #f07070; }
|
| 275 |
.context-item.warning { color: var(--yellow); }
|
| 276 |
.context-item svg { flex-shrink: 0; color: var(--text-dim); }
|
| 277 |
+
.context-item.danger svg { color: #f07070; }
|