Zmiany graficzne: - chat.html: wszystkie #7c3aed → #2E4872 - chat.html: wszystkie #5b21b6 → #1e3050 - fluent-nordabiz.css: zmienne Fluent na NordaBiz blue - Sidebar, header, avatary, input focus, send button - niebieski Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
431 lines
11 KiB
CSS
431 lines
11 KiB
CSS
/* ============================================================
|
|
* NORDABIZ FLUENT EXTENSIONS
|
|
* Extends microsoft-fluent.css with NordaBiz-specific components
|
|
* ============================================================ */
|
|
|
|
/* ============================================================
|
|
* BRAND COLOR OVERRIDES (NordaBiz Blue instead of Microsoft Blue)
|
|
* ============================================================ */
|
|
:root {
|
|
--fluent-primary: #2E4872;
|
|
--fluent-primary-hover: #1e3050;
|
|
--fluent-primary-pressed: #162438;
|
|
--fluent-primary-light: #EDF0F5;
|
|
}
|
|
|
|
/* ============================================================
|
|
* FLUENT DROPDOWN (Custom component for NordaBiz)
|
|
* ============================================================ */
|
|
.fluent-dropdown {
|
|
position: relative;
|
|
}
|
|
|
|
.fluent-dropdown-trigger {
|
|
cursor: pointer;
|
|
background: none;
|
|
border: none;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.fluent-dropdown-menu {
|
|
display: none;
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
right: 0;
|
|
background: var(--fluent-surface-primary, #ffffff);
|
|
border: 1px solid var(--fluent-surface-stroke, #e1dfdd);
|
|
border-radius: var(--fluent-border-radius-large, 6px);
|
|
box-shadow: var(--fluent-shadow-16, 0px 8px 16px rgba(0, 0, 0, 0.14));
|
|
min-width: 200px;
|
|
padding: var(--fluent-spacing-xs, 4px) 0;
|
|
z-index: 200;
|
|
animation: fluent-fade-up 150ms cubic-bezier(0.1, 0.9, 0.2, 1);
|
|
}
|
|
|
|
.fluent-dropdown.open .fluent-dropdown-menu {
|
|
display: block;
|
|
}
|
|
|
|
@keyframes fluent-fade-up {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.fluent-dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--fluent-spacing-s, 8px);
|
|
padding: var(--fluent-spacing-s, 8px) var(--fluent-spacing-l, 16px);
|
|
color: var(--fluent-text-primary, #323130);
|
|
text-decoration: none;
|
|
font-size: var(--fluent-font-size-body, 14px);
|
|
transition: all 150ms cubic-bezier(0.33, 0, 0.67, 1);
|
|
position: relative;
|
|
}
|
|
|
|
.fluent-dropdown-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
width: 3px;
|
|
height: 16px;
|
|
background: var(--fluent-primary);
|
|
transform: translateY(-50%);
|
|
opacity: 0;
|
|
transition: opacity 150ms cubic-bezier(0.33, 0, 0.67, 1);
|
|
border-radius: 0 2px 2px 0;
|
|
}
|
|
|
|
.fluent-dropdown-item:hover {
|
|
background: var(--fluent-bg-secondary, #f3f2f1);
|
|
color: var(--fluent-primary);
|
|
}
|
|
|
|
.fluent-dropdown-item:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.fluent-dropdown-item svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.fluent-dropdown-divider {
|
|
height: 1px;
|
|
background: var(--fluent-surface-stroke, #e1dfdd);
|
|
margin: var(--fluent-spacing-xs, 4px) 0;
|
|
}
|
|
|
|
.fluent-dropdown-header {
|
|
padding: var(--fluent-spacing-s, 8px) var(--fluent-spacing-l, 16px);
|
|
font-size: var(--fluent-font-size-caption, 12px);
|
|
font-weight: var(--fluent-font-weight-semibold, 600);
|
|
color: var(--fluent-text-tertiary, #8a8886);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* ============================================================
|
|
* FLUENT BADGE
|
|
* ============================================================ */
|
|
.fluent-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
padding: 0 5px;
|
|
font-size: 11px;
|
|
font-weight: var(--fluent-font-weight-semibold, 600);
|
|
background: var(--fluent-error, #d13438);
|
|
color: #ffffff;
|
|
border-radius: 9px;
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
}
|
|
|
|
.fluent-badge-inline {
|
|
position: static;
|
|
margin-left: var(--fluent-spacing-xs, 4px);
|
|
}
|
|
|
|
/* ============================================================
|
|
* FLUENT USER PANEL
|
|
* ============================================================ */
|
|
.fluent-user-panel {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--fluent-spacing-s, 8px);
|
|
padding: var(--fluent-spacing-l, 16px);
|
|
border-bottom: 1px solid var(--fluent-surface-stroke, #e1dfdd);
|
|
}
|
|
|
|
.fluent-user-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: var(--fluent-primary-light);
|
|
color: var(--fluent-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: var(--fluent-font-weight-semibold, 600);
|
|
font-size: var(--fluent-font-size-subtitle, 16px);
|
|
}
|
|
|
|
.fluent-user-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.fluent-user-name {
|
|
font-weight: var(--fluent-font-weight-semibold, 600);
|
|
color: var(--fluent-text-primary, #323130);
|
|
font-size: var(--fluent-font-size-body, 14px);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.fluent-user-email {
|
|
font-size: var(--fluent-font-size-caption, 12px);
|
|
color: var(--fluent-text-secondary, #605e5c);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* ============================================================
|
|
* FLUENT NOTIFICATIONS (in dropdown)
|
|
* ============================================================ */
|
|
.fluent-notifications-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: var(--fluent-spacing-m, 12px) var(--fluent-spacing-l, 16px);
|
|
border-bottom: 1px solid var(--fluent-surface-stroke, #e1dfdd);
|
|
}
|
|
|
|
.fluent-notifications-title {
|
|
font-weight: var(--fluent-font-weight-semibold, 600);
|
|
color: var(--fluent-text-primary, #323130);
|
|
}
|
|
|
|
.fluent-notifications-action {
|
|
background: none;
|
|
border: none;
|
|
color: var(--fluent-primary);
|
|
font-size: var(--fluent-font-size-caption, 12px);
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
|
|
.fluent-notifications-action:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.fluent-notification-item {
|
|
display: block;
|
|
padding: var(--fluent-spacing-m, 12px) var(--fluent-spacing-l, 16px);
|
|
text-decoration: none;
|
|
color: var(--fluent-text-primary, #323130);
|
|
border-bottom: 1px solid var(--fluent-surface-stroke, #e1dfdd);
|
|
transition: background 150ms cubic-bezier(0.33, 0, 0.67, 1);
|
|
}
|
|
|
|
.fluent-notification-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.fluent-notification-item:hover {
|
|
background: var(--fluent-bg-secondary, #f3f2f1);
|
|
}
|
|
|
|
.fluent-notification-item.unread {
|
|
background: var(--fluent-primary-light);
|
|
}
|
|
|
|
.fluent-notification-item.unread:hover {
|
|
background: #dbeafe;
|
|
}
|
|
|
|
.fluent-notification-title {
|
|
font-weight: var(--fluent-font-weight-medium, 500);
|
|
font-size: var(--fluent-font-size-body, 14px);
|
|
margin-bottom: 2px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--fluent-spacing-xs, 4px);
|
|
}
|
|
|
|
.fluent-notification-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--fluent-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.fluent-notification-message {
|
|
font-size: var(--fluent-font-size-caption, 12px);
|
|
color: var(--fluent-text-secondary, #605e5c);
|
|
line-height: 1.4;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.fluent-notification-time {
|
|
font-size: 11px;
|
|
color: var(--fluent-text-tertiary, #8a8886);
|
|
}
|
|
|
|
.fluent-notifications-empty {
|
|
padding: var(--fluent-spacing-2xl, 24px);
|
|
text-align: center;
|
|
color: var(--fluent-text-secondary, #605e5c);
|
|
}
|
|
|
|
/* ============================================================
|
|
* MOBILE NAVIGATION
|
|
* ============================================================ */
|
|
.fluent-mobile-toggle {
|
|
display: none;
|
|
background: none;
|
|
border: none;
|
|
padding: var(--fluent-spacing-s, 8px);
|
|
cursor: pointer;
|
|
color: var(--fluent-text-secondary, #605e5c);
|
|
border-radius: var(--fluent-border-radius-medium, 4px);
|
|
transition: all 200ms cubic-bezier(0.33, 0, 0.67, 1);
|
|
}
|
|
|
|
.fluent-mobile-toggle:hover {
|
|
background: var(--fluent-bg-secondary, #f3f2f1);
|
|
color: var(--fluent-text-primary, #323130);
|
|
}
|
|
|
|
.fluent-mobile-toggle svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.fluent-command-bar {
|
|
padding: 0 var(--fluent-spacing-m, 12px);
|
|
}
|
|
|
|
.fluent-command-bar-brand {
|
|
margin-right: auto;
|
|
}
|
|
|
|
.fluent-mobile-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.fluent-command-bar-nav {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--fluent-surface-primary, #ffffff);
|
|
border-bottom: 1px solid var(--fluent-surface-stroke, #e1dfdd);
|
|
box-shadow: var(--fluent-shadow-8, 0px 4px 8px rgba(0, 0, 0, 0.14));
|
|
flex-direction: column;
|
|
padding: var(--fluent-spacing-s, 8px);
|
|
gap: 2px;
|
|
}
|
|
|
|
.fluent-command-bar-nav.open {
|
|
display: flex;
|
|
}
|
|
|
|
.fluent-command-bar-item {
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.fluent-dropdown {
|
|
width: 100%;
|
|
}
|
|
|
|
.fluent-dropdown-menu {
|
|
position: static;
|
|
box-shadow: none;
|
|
border: none;
|
|
background: var(--fluent-bg-secondary, #f3f2f1);
|
|
border-radius: var(--fluent-border-radius-medium, 4px);
|
|
margin-top: 2px;
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.fluent-command-bar {
|
|
height: 44px;
|
|
padding: 0 var(--fluent-spacing-s, 8px);
|
|
}
|
|
|
|
.fluent-command-bar-brand span {
|
|
display: none;
|
|
}
|
|
|
|
.fluent-command-bar-brand svg {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
}
|
|
|
|
/* ============================================================
|
|
* FLUENT BUTTONS (auth buttons)
|
|
* ============================================================ */
|
|
.fluent-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--fluent-spacing-xs, 4px);
|
|
padding: var(--fluent-spacing-s, 8px) var(--fluent-spacing-l, 16px);
|
|
font-family: var(--fluent-font-family, 'Segoe UI', sans-serif);
|
|
font-size: var(--fluent-font-size-body, 14px);
|
|
font-weight: var(--fluent-font-weight-medium, 500);
|
|
border-radius: var(--fluent-border-radius-medium, 4px);
|
|
border: 1px solid transparent;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: all 200ms cubic-bezier(0.33, 0, 0.67, 1);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.fluent-btn-primary {
|
|
background: var(--fluent-primary);
|
|
color: #ffffff;
|
|
border-color: var(--fluent-primary);
|
|
}
|
|
|
|
.fluent-btn-primary:hover {
|
|
background: var(--fluent-primary-hover);
|
|
border-color: var(--fluent-primary-hover);
|
|
}
|
|
|
|
.fluent-btn-outline {
|
|
background: transparent;
|
|
color: var(--fluent-primary);
|
|
border-color: var(--fluent-primary);
|
|
}
|
|
|
|
.fluent-btn-outline:hover {
|
|
background: var(--fluent-primary-light);
|
|
}
|
|
|
|
.fluent-btn-sm {
|
|
padding: var(--fluent-spacing-xs, 4px) var(--fluent-spacing-m, 12px);
|
|
font-size: var(--fluent-font-size-caption, 12px);
|
|
}
|
|
|
|
/* ============================================================
|
|
* ACCESSIBILITY
|
|
* ============================================================ */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* {
|
|
animation-duration: 0.01ms !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|
|
|
|
.fluent-command-bar-item:focus-visible,
|
|
.fluent-dropdown-item:focus-visible,
|
|
.fluent-btn:focus-visible {
|
|
outline: 2px solid var(--fluent-primary);
|
|
outline-offset: 2px;
|
|
}
|