Improve mobile and tablet usability by fixing viewport and scroll behavior, adding a mobile sidebar flow, and ensuring header action buttons wrap instead of clipping on narrow screens. Made-with: Cursor
347 lines
6.3 KiB
CSS
347 lines
6.3 KiB
CSS
/**
|
|
* UserSection Styles
|
|
*/
|
|
|
|
.userSection {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem;
|
|
padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
|
|
border-top: 1px solid var(--border-color, #e0e0e0);
|
|
}
|
|
|
|
/* Notification Bell */
|
|
.notificationBell {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.userButton {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.5rem;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
text-align: left;
|
|
}
|
|
|
|
.userButton:hover {
|
|
background: var(--hover-bg, rgba(0, 0, 0, 0.05));
|
|
}
|
|
|
|
.avatar {
|
|
flex-shrink: 0;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--primary-color, #2563eb);
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.userInfo {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.userName {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary, #1a1a1a);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.userEmail {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary, #666);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.chevron {
|
|
flex-shrink: 0;
|
|
font-size: 0.625rem;
|
|
color: var(--text-tertiary, #888);
|
|
}
|
|
|
|
/* Menu */
|
|
.menu {
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 0.5rem;
|
|
right: 0.5rem;
|
|
margin-bottom: 0.25rem;
|
|
padding: 0.25rem;
|
|
background: var(--bg-primary, #ffffff);
|
|
border: 1px solid var(--border-color, #e0e0e0);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
z-index: 100;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.menu {
|
|
left: 0.25rem;
|
|
right: 0.25rem;
|
|
max-height: min(60dvh, 420px);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.userButton {
|
|
min-height: 44px;
|
|
}
|
|
}
|
|
|
|
.menuItem {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
width: 100%;
|
|
padding: 0.5rem 0.75rem;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
font-size: 0.875rem;
|
|
color: var(--text-primary, #1a1a1a);
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
text-align: left;
|
|
}
|
|
|
|
.menuItem:hover {
|
|
background: var(--hover-bg, rgba(0, 0, 0, 0.05));
|
|
}
|
|
|
|
.menuItem:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.menuIcon {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.menuDivider {
|
|
height: 1px;
|
|
margin: 0.25rem 0;
|
|
background: var(--border-color, #e0e0e0);
|
|
}
|
|
|
|
/* Dark Theme */
|
|
:global(.dark-theme) .userSection {
|
|
border-top-color: var(--border-dark, #333);
|
|
}
|
|
|
|
:global(.dark-theme) .userButton:hover {
|
|
background: var(--hover-bg-dark, rgba(255, 255, 255, 0.05));
|
|
}
|
|
|
|
:global(.dark-theme) .userName {
|
|
color: var(--text-primary-dark, #ffffff);
|
|
}
|
|
|
|
:global(.dark-theme) .userEmail {
|
|
color: var(--text-secondary-dark, #aaa);
|
|
}
|
|
|
|
:global(.dark-theme) .chevron {
|
|
color: var(--text-tertiary-dark, #888);
|
|
}
|
|
|
|
:global(.dark-theme) .menu {
|
|
background: var(--surface-dark, #1a1a1a);
|
|
border-color: var(--border-dark, #444);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
:global(.dark-theme) .menuItem {
|
|
color: var(--text-primary-dark, #ffffff);
|
|
}
|
|
|
|
:global(.dark-theme) .menuItem:hover {
|
|
background: var(--hover-bg-dark, rgba(255, 255, 255, 0.1));
|
|
}
|
|
|
|
:global(.dark-theme) .menuDivider {
|
|
background: var(--border-dark, #444);
|
|
}
|
|
|
|
/* Modal Overlay */
|
|
.modalOverlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.modal {
|
|
background: var(--bg-primary, #ffffff);
|
|
border-radius: 12px;
|
|
max-width: 700px;
|
|
width: 100%;
|
|
max-height: 80vh;
|
|
overflow: hidden;
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.modalHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1rem 1.5rem;
|
|
border-bottom: 1px solid var(--border-color, #e0e0e0);
|
|
}
|
|
|
|
.modalHeader h2 {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #1a1a1a);
|
|
}
|
|
|
|
.modalClose {
|
|
background: transparent;
|
|
border: none;
|
|
font-size: 1.25rem;
|
|
cursor: pointer;
|
|
color: var(--text-tertiary, #888);
|
|
padding: 0.25rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.modalClose:hover {
|
|
color: var(--text-primary, #1a1a1a);
|
|
}
|
|
|
|
.modalContent {
|
|
padding: 1.5rem;
|
|
overflow-y: auto;
|
|
max-height: calc(80vh - 60px);
|
|
}
|
|
|
|
.legalSection {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.legalSection h3 {
|
|
color: var(--text-primary, #1a1a1a);
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
margin: 0 0 1rem 0;
|
|
padding-bottom: 0.5rem;
|
|
border-bottom: 2px solid var(--primary-color, #F25843);
|
|
}
|
|
|
|
.legalSection h4 {
|
|
color: var(--text-primary, #1a1a1a);
|
|
font-size: 0.9375rem;
|
|
font-weight: 600;
|
|
margin: 1rem 0 0.5rem 0;
|
|
}
|
|
|
|
.legalSection p {
|
|
color: var(--text-secondary, #666);
|
|
font-size: 0.875rem;
|
|
line-height: 1.6;
|
|
margin: 0 0 0.75rem 0;
|
|
}
|
|
|
|
.legalSection ul {
|
|
margin: 0 0 0.75rem 1.5rem;
|
|
padding: 0;
|
|
}
|
|
|
|
.legalSection li {
|
|
color: var(--text-secondary, #666);
|
|
font-size: 0.875rem;
|
|
line-height: 1.6;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.legalLinks {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid var(--border-color, #e0e0e0);
|
|
}
|
|
|
|
.legalLinks a {
|
|
color: var(--primary-color, #F25843);
|
|
text-decoration: none;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 6px;
|
|
background: var(--primary-dark-bg, rgba(242, 88, 67, 0.1));
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.legalLinks a:hover {
|
|
background: var(--primary-light, rgba(242, 88, 67, 0.2));
|
|
}
|
|
|
|
/* Dark Theme Modal */
|
|
:global(.dark-theme) .modal {
|
|
background: var(--surface-dark, #1a1a1a);
|
|
}
|
|
|
|
:global(.dark-theme) .modalHeader {
|
|
border-bottom-color: var(--border-dark, #333);
|
|
}
|
|
|
|
:global(.dark-theme) .modalHeader h2 {
|
|
color: var(--text-primary-dark, #ffffff);
|
|
}
|
|
|
|
:global(.dark-theme) .modalClose {
|
|
color: var(--text-tertiary-dark, #888);
|
|
}
|
|
|
|
:global(.dark-theme) .modalClose:hover {
|
|
color: var(--text-primary-dark, #ffffff);
|
|
}
|
|
|
|
:global(.dark-theme) .legalSection h3 {
|
|
color: var(--text-primary-dark, #ffffff);
|
|
}
|
|
|
|
:global(.dark-theme) .legalSection h4 {
|
|
color: var(--text-primary-dark, #ffffff);
|
|
}
|
|
|
|
:global(.dark-theme) .legalSection p,
|
|
:global(.dark-theme) .legalSection li {
|
|
color: var(--text-secondary-dark, #aaa);
|
|
}
|
|
|
|
:global(.dark-theme) .legalLinks {
|
|
border-top-color: var(--border-dark, #333);
|
|
}
|
|
|
|
:global(.dark-theme) .legalLinks a {
|
|
color: var(--primary-light, #FF9A8A);
|
|
}
|