mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 17:45:42 +00:00
623 lines
12 KiB
CSS
623 lines
12 KiB
CSS
/**
|
|
* BetterDesk Console - Users Page Styles
|
|
*/
|
|
|
|
.users-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: var(--space-lg);
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.users-header .page-title h1 {
|
|
margin: 0 0 var(--space-xs) 0;
|
|
}
|
|
|
|
.users-header .subtitle {
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Security Tips Card */
|
|
.security-tips-card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-lg);
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.security-tips-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.security-tips-header .material-icons {
|
|
color: var(--accent-green);
|
|
font-size: 24px;
|
|
}
|
|
|
|
.security-tips-header h3 {
|
|
margin: 0;
|
|
font-size: var(--font-size-lg);
|
|
}
|
|
|
|
.security-tips-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.security-tips-list li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.security-tips-list li .material-icons {
|
|
color: var(--accent-green);
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* User Groups Manager */
|
|
.user-groups-card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-lg);
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.user-groups-card-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.user-groups-card-header h3 {
|
|
margin: 0 0 var(--space-xs) 0;
|
|
font-size: var(--font-size-lg);
|
|
}
|
|
|
|
.user-groups-card-header p {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.user-groups-manager-list {
|
|
display: grid;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.user-group-manager-item {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
padding: var(--space-sm) var(--space-md);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.user-group-manager-main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-group-manager-main > .material-icons {
|
|
color: var(--accent-blue);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.user-group-manager-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-group-manager-text strong,
|
|
.user-group-manager-text span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.user-group-manager-text span {
|
|
color: var(--text-secondary);
|
|
font-size: var(--font-size-sm);
|
|
}
|
|
|
|
.user-group-member-count {
|
|
color: var(--text-secondary);
|
|
font-size: var(--font-size-sm);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.user-group-manager-actions {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
/* Users Table */
|
|
.users-table-container {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.users-table {
|
|
width: 100%;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--accent-blue-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.user-avatar .material-icons {
|
|
color: var(--accent-blue);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.user-username {
|
|
font-weight: var(--font-weight-medium);
|
|
}
|
|
|
|
.user-name-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-group-badges {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
}
|
|
|
|
.user-group-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
max-width: 150px;
|
|
padding: 2px 6px;
|
|
border-radius: var(--radius-full);
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-secondary, #8b949e);
|
|
border: 1px solid var(--border-color, #30363d);
|
|
font-size: var(--font-size-xs, 0.75rem);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.user-group-badge .material-icons {
|
|
font-size: 13px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Role Badge */
|
|
.role-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px 12px;
|
|
border-radius: var(--radius-full);
|
|
font-size: var(--font-size-sm);
|
|
font-weight: var(--font-weight-medium);
|
|
}
|
|
|
|
.role-badge.admin {
|
|
background: var(--accent-purple-muted);
|
|
color: var(--accent-purple);
|
|
}
|
|
|
|
.role-badge.super_admin {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.role-badge.server_admin {
|
|
background: rgba(14, 165, 233, 0.15);
|
|
color: #0ea5e9;
|
|
}
|
|
|
|
.role-badge.global_admin {
|
|
background: rgba(168, 85, 247, 0.15);
|
|
color: #a855f7;
|
|
}
|
|
|
|
.role-badge.operator {
|
|
background: var(--accent-orange-muted, rgba(249, 115, 22, 0.15));
|
|
color: var(--accent-orange, #f97316);
|
|
}
|
|
|
|
.role-badge.viewer {
|
|
background: var(--accent-blue-muted);
|
|
color: var(--accent-blue);
|
|
}
|
|
|
|
.role-badge.pro {
|
|
background: rgba(234, 179, 8, 0.15);
|
|
color: #eab308;
|
|
}
|
|
|
|
/* Organization role variants (used in org-membership modal) */
|
|
.role-badge.owner {
|
|
background: rgba(217, 70, 239, 0.15);
|
|
color: #d946ef;
|
|
}
|
|
|
|
.role-badge.user {
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
/* Inline org badges in the users table column */
|
|
.user-orgs-cell {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
max-width: 320px;
|
|
}
|
|
|
|
.user-orgs-cell .org-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-full);
|
|
font-size: var(--font-size-sm);
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-secondary, #8b949e);
|
|
border: 1px solid var(--border-color, #30363d);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.user-orgs-cell .org-badge:hover {
|
|
color: var(--text-primary, #e6edf3);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.user-orgs-cell .org-badge .material-icons {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.user-orgs-cell .no-orgs {
|
|
color: var(--text-tertiary, #6e7681);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* User Actions */
|
|
.user-actions {
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.user-actions .action-btn,
|
|
.user-group-manager-actions .action-btn {
|
|
padding: var(--space-xs);
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
transition: all 0.15s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.user-actions .action-btn:hover,
|
|
.user-group-manager-actions .action-btn:hover {
|
|
color: var(--text-primary, #e6edf3);
|
|
background: var(--bg-tertiary, #21262d);
|
|
}
|
|
|
|
.user-actions .action-btn.danger:hover,
|
|
.user-group-manager-actions .action-btn.danger:hover {
|
|
color: var(--accent-red, #f85149);
|
|
background: var(--accent-red-muted, rgba(248, 81, 73, 0.1));
|
|
}
|
|
|
|
/* Empty State */
|
|
.users-empty {
|
|
text-align: center;
|
|
padding: var(--space-3xl);
|
|
}
|
|
|
|
.users-empty-icon {
|
|
font-size: 64px;
|
|
color: var(--text-tertiary);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.users-empty-title {
|
|
margin: 0 0 var(--space-sm) 0;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.users-empty-text {
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
/* User Form */
|
|
.user-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.user-form .form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.user-form label {
|
|
font-weight: var(--font-weight-medium);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.user-form .form-hint {
|
|
font-size: var(--font-size-sm);
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.user-form .form-input.readonly {
|
|
background: var(--bg-tertiary);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.user-groups-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
max-height: 180px;
|
|
overflow-y: auto;
|
|
padding: 4px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.user-group-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 7px 8px;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.user-group-option:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.user-group-option input {
|
|
accent-color: var(--accent-blue);
|
|
}
|
|
|
|
.user-group-option .material-icons {
|
|
font-size: 18px;
|
|
color: var(--accent-blue);
|
|
}
|
|
|
|
/* Password Input */
|
|
.password-input-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
}
|
|
|
|
.password-input-wrapper .form-input {
|
|
flex: 1;
|
|
padding-right: 44px;
|
|
}
|
|
|
|
.password-input-wrapper .toggle-password {
|
|
position: absolute;
|
|
right: 4px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 36px;
|
|
height: 36px;
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
color: var(--text-tertiary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.password-input-wrapper .toggle-password:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Password Strength */
|
|
.password-strength {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
min-height: 20px;
|
|
}
|
|
|
|
.strength-bar {
|
|
flex: 1;
|
|
height: 4px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-full);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.strength-fill {
|
|
height: 100%;
|
|
border-radius: var(--radius-full);
|
|
transition: width 0.3s ease, background 0.3s ease;
|
|
}
|
|
|
|
.strength-fill.weak {
|
|
background: var(--accent-red);
|
|
}
|
|
|
|
.strength-fill.medium {
|
|
background: var(--accent-orange, #ff9800);
|
|
}
|
|
|
|
.strength-fill.strong {
|
|
background: var(--accent-green);
|
|
}
|
|
|
|
.strength-label {
|
|
font-size: var(--font-size-sm);
|
|
font-weight: var(--font-weight-medium);
|
|
}
|
|
|
|
.strength-label.weak {
|
|
color: var(--accent-red);
|
|
}
|
|
|
|
.strength-label.medium {
|
|
color: var(--accent-orange, #ff9800);
|
|
}
|
|
|
|
.strength-label.strong {
|
|
color: var(--accent-green);
|
|
}
|
|
|
|
/* Organization Assignments */
|
|
.org-assignments {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.org-assignments-section {
|
|
margin: 0;
|
|
font-size: var(--font-size-md);
|
|
font-weight: var(--font-weight-semibold);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.org-assignments-hint {
|
|
margin: -4px 0 0 0;
|
|
color: var(--text-secondary);
|
|
font-size: var(--font-size-sm);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.org-assignments-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.org-assignment-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-sm) var(--space-md);
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.org-assignment-item:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.org-assignment-item .org-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.org-assignment-item .org-info .material-icons {
|
|
color: var(--accent-blue);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.org-assignment-item .org-name {
|
|
font-weight: var(--font-weight-medium);
|
|
}
|
|
|
|
.add-org-row {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
padding-top: var(--space-md);
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.add-org-row .form-input {
|
|
flex: 1;
|
|
}
|
|
|
|
.add-org-row .btn-sm {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: var(--space-xs) var(--space-md);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.add-org-row .btn-sm .material-icons {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.empty-state-inline {
|
|
color: var(--text-secondary);
|
|
text-align: center;
|
|
padding: var(--space-lg);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.users-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.security-tips-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.user-actions {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|