249 lines
19 KiB
CSS
249 lines
19 KiB
CSS
/* ===== Radius Module Styles ===== */
|
|
/* General utilities moved to tt-core.css - this file contains ONLY Radius-specific styles */
|
|
|
|
/* CSS Variables for backwards compatibility */
|
|
:root {
|
|
--brand-blue: #005384;
|
|
--bg: #ffffff;
|
|
--card: #ffffff;
|
|
--card-2: #f8fafc;
|
|
--muted: #667085;
|
|
--text: #0b1320;
|
|
--accent: var(--brand-blue);
|
|
--accent-2: #1e88c9;
|
|
--ok: #0f9d58;
|
|
--bad: #e03131;
|
|
--ring: rgba(0,83,132,.20);
|
|
--border: #e6e9ef;
|
|
--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
--radius: 10px;
|
|
--radius-pill: 999px;
|
|
--shadow: 0 8px 24px rgba(0, 83, 132, .08);
|
|
--line-offset: 32px;
|
|
}
|
|
|
|
/* Radius-specific layouts */
|
|
.tt-scope .free-users-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
|
|
@media (max-width: 1100px) { .tt-scope .free-users-grid { grid-template-columns: 1fr; } }
|
|
.tt-scope .free-users-column { display: flex; flex-direction: column; gap: 12px; }
|
|
.tt-scope .badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef6fb; color: #0b3a57; font-size: 12px; border: 1px solid #d6e8f5; }
|
|
.tt-scope.radius-container { background: transparent; color: var(--text); display: grid; gap: 16px; max-width: 90vw; margin: 24px auto 0; padding: 20px 0; }
|
|
.tt-scope .subcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
|
|
.tt-scope .pane-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: linear-gradient(135deg, #f8fbff 0%, #f0f7fd 100%); padding: 16px 20px; margin: -14px -14px 14px -14px; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 2px solid #e3f0f8; }
|
|
.tt-scope .pane-header .title { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .4px; font-size: 22px; user-select: none; color: var(--accent); text-shadow: 0 1px 2px rgba(0,83,132,.1); }
|
|
.tt-scope .logo-dot { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #37d26b, #0f9d58 70%); box-shadow: 0 0 0 3px rgba(15,157,88,.15); display: inline-block; }
|
|
.tt-scope .content-divider { border: none; height: 1px; background-color: var(--border); margin: 16px 0; }
|
|
|
|
/* Switch Field */
|
|
.tt-scope .switch-field { display: flex; flex-direction: column; gap: 6px; align-items: center; }
|
|
.tt-scope .switch { display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
|
|
.tt-scope .switch input { display: none; }
|
|
.tt-scope .switch .switch-track { position: relative; width: 58px; height: 32px; border-radius: 999px; background: #e8edf3; border: 1px solid #d7e1ea; display: inline-flex; align-items: center; justify-content: space-between; padding: 0 8px; color: #7b8a98; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
|
|
.tt-scope .switch .on { opacity: 0; transition: opacity .18s ease; }
|
|
.tt-scope .switch .off { opacity: 1; transition: opacity .18s ease; }
|
|
.tt-scope .switch .switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.08); transition: transform .18s ease, box-shadow .18s ease; }
|
|
.tt-scope .switch input:checked + .switch-track { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: #a9d0ea; color: #fff; }
|
|
.tt-scope .switch input:focus-visible + .switch-track { box-shadow: 0 0 0 5px var(--ring); }
|
|
.tt-scope .switch input:checked + .switch-track::after { transform: translateX(26px); }
|
|
.tt-scope .switch input:checked + .switch-track .on { opacity: 1; }
|
|
.tt-scope .switch input:checked + .switch-track .off { opacity: 0; }
|
|
|
|
/* Filters Layout */
|
|
.tt-scope .filters-layout { display: grid; gap: 12px; align-items: flex-end; grid-template-columns: 1.5fr 210px 190px 1fr auto; margin-bottom: 16px; }
|
|
@media (max-width: 1400px) { .tt-scope .filters-layout { grid-template-columns: 1fr 1fr 1fr; } .tt-scope .filters-layout .field:nth-child(1) { grid-column: 1 / -1; } }
|
|
@media (max-width: 900px) { .tt-scope .filters-layout { grid-template-columns: 1fr 1fr; } .tt-scope .filters-layout .field:nth-child(1), .tt-scope .filters-layout .field:nth-child(4) { grid-column: 1 / -1; } }
|
|
@media (max-width: 600px) { .tt-scope .filters-layout { grid-template-columns: 1fr; } .tt-scope .filters-layout .field { grid-column: auto !important; } }
|
|
.tt-scope .field label { display: block; margin: 0 0 6px; color: var(--muted); font-size: 12px; }
|
|
.tt-scope .results-container .table-wrap { border-radius: 12px 12px 0 0; border-bottom: none; }
|
|
.tt-scope .inline-copy { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
|
|
.tt-scope .clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.tt-scope .clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
|
|
|
|
/* KV Layouts */
|
|
.tt-scope .kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; }
|
|
.tt-scope .kv > div { display: contents; }
|
|
.tt-scope .kv > div > span { color: var(--muted); }
|
|
|
|
/* Key-Value Redesign Layout - moved to tt-core.css */
|
|
|
|
/* Radius Online Status Chip */
|
|
.tt-scope .ros-wrap { min-height: 28px; display: flex; align-items: center; justify-content: flex-start; width: 170px; }
|
|
.tt-scope .ros-chip { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: var(--radius); font-size: 12px; font-family: var(--mono); border: 1px solid var(--border); background: #fff; width: 100%; height: 28px; box-sizing: border-box; }
|
|
.tt-scope .ros-chip.is-clickable { cursor: pointer; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
|
|
.tt-scope .ros-chip.is-clickable:hover { background-color: #f3f8fc; }
|
|
.tt-scope [data-tooltip="Kopieren"], .tt-scope .ros-chip.is-clickable { user-select: none; -webkit-user-select: none; }
|
|
.tt-scope .ros-chip.on { box-shadow: 0 0 0 3px rgba(15,157,88,.08); }
|
|
.tt-scope .ros-chip.off { box-shadow: 0 0 0 3px rgba(224,49,49,.08); }
|
|
.tt-scope .ros-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; color: inherit; flex-shrink: 0; }
|
|
.tt-scope .ros-chip.on .dot { background: var(--ok); }
|
|
.tt-scope .ros-chip.off .dot { background: var(--bad); }
|
|
.tt-scope .ros-chip .ip { flex-grow: 1; text-align: center; }
|
|
.tt-scope .ros-chip.skeleton { background: #f8fafc; color: #d1d9e4; align-items: center; }
|
|
.tt-scope .ros-chip.is-copied { background-color: #eaf7ef; border-color: #c9e6d8; box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.25); animation: copy-feedback-pop 0.3s ease-in-out; }
|
|
|
|
/* ONT Card Styles */
|
|
.tt-scope .ont-card .block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
|
|
.tt-scope .ont-card .block + .block { margin-top: 12px; }
|
|
.tt-scope .block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
|
|
|
|
/* Radius-Specific Tooltips */
|
|
.tt-scope .ip-field-wrapper, .tt-scope .ac-root { position: relative; }
|
|
.tt-scope .ip-focus-tooltip, .tt-scope .ac-focus-tooltip { position: absolute; bottom: calc(100% + 8px); left: 0; background: linear-gradient(135deg, #e3f0f8 0%, #d6e8f5 100%); border: 1px solid #b8d9f0; padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; color: #0b3a57; white-space: nowrap; opacity: 0; transform: translateY(6px); pointer-events: none; transition: all .22s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 50; box-shadow: 0 4px 12px rgba(0, 83, 132, .15), 0 0 0 1px rgba(255, 255, 255, .8) inset; }
|
|
.tt-scope .ip-focus-tooltip::before, .tt-scope .ac-focus-tooltip::before { content: ''; position: absolute; top: 100%; left: 16px; border: 6px solid transparent; border-top-color: #d6e8f5; transform: translateY(-1px); }
|
|
.tt-scope .ip-focus-tooltip::after, .tt-scope .ac-focus-tooltip::after { content: ''; position: absolute; top: 100%; left: 17px; border: 5px solid transparent; border-top-color: #e3f0f8; }
|
|
.tt-scope .ip-field-wrapper:focus-within .ip-focus-tooltip, .tt-scope .ac-root:focus-within .ac-focus-tooltip { opacity: 1; transform: translateY(0); }
|
|
|
|
/* Modal & Misc */
|
|
.tt-scope .modal-body-scrollable { max-height: calc(90vh - 120px); overflow-y: auto; padding-right: 8px; overflow-x: hidden; }
|
|
.tt-scope .unselectable { user-select: none; }
|
|
|
|
/* Custom Dropdown */
|
|
.tt-scope .custom-dropdown { position: relative; width: 120px; }
|
|
.tt-scope .dropdown-toggle { appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; cursor: pointer; font-weight: 700; transition: all .2s ease; height: 38px; box-sizing: border-box; }
|
|
.tt-scope .dropdown-toggle:hover { border-color: #c4d1de; }
|
|
.tt-scope .dropdown-toggle:focus, .tt-scope .dropdown-toggle.is-open { border-color: #bcd9ee; box-shadow: 0 0 0 5px var(--ring); outline: none; }
|
|
.tt-scope .dropdown-toggle .fa-chevron-down { font-size: 12px; transition: transform .2s ease; }
|
|
.tt-scope .dropdown-toggle.is-open .fa-chevron-down { transform: rotate(180deg); }
|
|
.tt-scope .dropdown-panel { position: absolute; top: calc(100% + 6px); left: 0; width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); z-index: 25; padding: 6px; max-height: 200px; overflow-y: auto; }
|
|
.tt-scope .dropdown-item { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-weight: 500; }
|
|
.tt-scope .dropdown-item:hover, .tt-scope .dropdown-item.is-active { background-color: #f3f8fc; }
|
|
|
|
/* Stat Cards V2 */
|
|
.tt-scope .stat-card-v2 { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 16px; background-color: var(--card-2); }
|
|
.tt-scope .stat-card-v2 .stat-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
|
|
.tt-scope .stat-card-v2 .stat-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
|
|
.tt-scope .stat-card-v2 .stat-value { font-size: 18px; font-weight: 700; line-height: 1.2; font-family: var(--mono); }
|
|
.tt-scope .stat-card-v2.stat-total .stat-icon { background-color: #eef2f6; color: #334155; }
|
|
.tt-scope .stat-card-v2.stat-total .stat-value { color: var(--text); }
|
|
.tt-scope .stat-card-v2.stat-download .stat-icon { background-color: #dcfce7; color: #16a34a; }
|
|
.tt-scope .stat-card-v2.stat-download .stat-value { color: #15803d; }
|
|
.tt-scope .stat-card-v2.stat-upload .stat-icon { background-color: #e0f2fe; color: #0284c7; }
|
|
.tt-scope .stat-card-v2.stat-upload .stat-value { color: var(--accent); }
|
|
.tt-scope .stat-card-v2.stat-duration .stat-icon { background-color: #eef2f6; color: #334155; }
|
|
.tt-scope .stat-card-v2.stat-duration .stat-value { color: var(--text); }
|
|
|
|
/* Chart Card */
|
|
.tt-scope .chart-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--card-2); position: relative; }
|
|
.tt-scope .chart-card canvas { max-height: calc(250px - 32px); }
|
|
.tt-scope .chart-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
|
|
.tt-scope .chart-placeholder i { font-size: 32px; color: #bdc8d8; }
|
|
.tt-scope .table-placeholder-fixed-height { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 12px; color: var(--muted); text-align: center; padding: 20px; background-color: var(--card-2); user-select: none; }
|
|
.tt-scope .table-placeholder-fixed-height i { font-size: 32px; color: #bdc8d8; }
|
|
.tt-scope .overlay { position: fixed; inset: 0; background: rgba(255,255,255,.8); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 50; text-align: center; }
|
|
.tt-scope .ont-loading-card { background: transparent; border: none; box-shadow: none; width: min(520px, 90vw); padding: 16px; color: var(--text); }
|
|
.tt-scope .spinner-lg { width: 42px; height: 42px; border: 4px solid #dbe9f5; border-top-color: var(--brand-blue); border-radius: 50%; animation: spin .9s linear infinite; margin: 0 auto 10px; }
|
|
.tt-scope .alert.error { padding: 10px 12px; border-radius: 10px; border: 1px solid #ffd6d6; background: #fff3f3; color: #8a1d1d; }
|
|
.tt-scope .card-in { animation: cardIn .18s ease; }
|
|
@keyframes cardIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
|
|
|
|
/* Network Mesh Visualization */
|
|
.tt-scope .network-tree-container { overflow: auto; padding: 40px; display: inline-flex; justify-content: flex-start; align-items: flex-start; }
|
|
.tt-scope .mesh-node { display: flex; flex-direction: row; align-items: flex-start; position: relative; }
|
|
.tt-scope .mesh-content { border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px; width: 240px; background: white; box-shadow: 0 2px 4px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 10px; z-index: 2; position: relative; transition: all 0.2s ease; margin: 5px 0; }
|
|
.tt-scope .mesh-content:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.1); border-color: #ccc; }
|
|
.tt-scope .mesh-content.is-router { border-color: #005384; background-color: #f0f7fa; }
|
|
.tt-scope .mesh-content.is-repeater { border-color: #0f9d58; background-color: #f0fbf5; }
|
|
.tt-scope .mesh-content.is-offline { opacity: 0.7; filter: grayscale(100%); }
|
|
.tt-scope .mesh-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #555; position: relative; flex-shrink: 0; }
|
|
.tt-scope .conn-badge { position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
|
|
.tt-scope .conn-badge.wlan { color: #005384; }
|
|
.tt-scope .conn-badge.eth { color: #0f9d58; }
|
|
.tt-scope .mesh-info { flex-grow: 1; min-width: 0; }
|
|
.tt-scope .mesh-name { font-weight: 600; font-size: 13px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.tt-scope .mesh-meta { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
|
|
.tt-scope .mesh-ip, .tt-scope .mesh-mac { font-size: 10px; color: #777; font-family: var(--mono); }
|
|
.tt-scope .mesh-vendor { font-size: 10px; color: var(--accent); font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.tt-scope .mesh-details { font-size: 10px; color: #555; margin-top: 4px; background: #eee; padding: 1px 4px; border-radius: 4px; display: inline-block; }
|
|
.tt-scope .mesh-children { display: flex; flex-direction: column; margin-left: 80px; position: relative; justify-content: center; }
|
|
.tt-scope .mesh-branch { display: flex; align-items: center; position: relative; padding-left: 40px; }
|
|
.tt-scope .mesh-branch::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px solid #ccc; display: block; }
|
|
.tt-scope .mesh-branch::after { content: ''; position: absolute; left: 0; top: var(--line-offset); width: 40px; border-top: 2px solid #ccc; }
|
|
.tt-scope .mesh-branch:first-child::before { top: var(--line-offset); }
|
|
.tt-scope .mesh-branch:last-child::before { bottom: auto; height: var(--line-offset); }
|
|
.tt-scope .mesh-branch:only-child::before { display: none; }
|
|
.tt-scope .mesh-content::before { content: ''; position: absolute; left: -40px; top: var(--line-offset); width: 40px; border-top: 2px solid #ccc; }
|
|
.tt-scope .network-tree-container > .mesh-node > .mesh-content::before { display: none; }
|
|
.tt-scope .mesh-node > .mesh-content:not(:last-child)::after { content: ''; position: absolute; right: -80px; top: var(--line-offset); width: 80px; border-top: 2px solid #ccc; }
|
|
|
|
/* Tooltip Fixes for Table Actions */
|
|
.tt-scope .table-wrap [data-tooltip]::before,
|
|
.tt-scope .table-wrap [data-tooltip]::after {
|
|
position: fixed;
|
|
z-index: 10002;
|
|
}
|
|
|
|
.tt-scope .table-wrap [data-tooltip][data-tooltip-align="left"]::before,
|
|
.tt-scope .table-wrap [data-tooltip][data-tooltip-align="left"]::after {
|
|
left: auto;
|
|
right: 100%;
|
|
transform: translateX(0) translateY(-50%);
|
|
}
|
|
|
|
.tt-scope .table-wrap [data-tooltip][data-tooltip-align="left"]::before {
|
|
top: 50%;
|
|
bottom: auto;
|
|
border: 5px solid transparent;
|
|
border-left-color: #0b1320;
|
|
border-top-color: transparent;
|
|
margin-right: -10px;
|
|
}
|
|
|
|
.tt-scope .table-wrap [data-tooltip][data-tooltip-align="left"]::after {
|
|
top: 50%;
|
|
bottom: auto;
|
|
margin-right: -5px;
|
|
}
|
|
|
|
.tt-scope .table-wrap [data-tooltip][data-tooltip-align="left"]:hover::before,
|
|
.tt-scope .table-wrap [data-tooltip][data-tooltip-align="left"]:hover::after {
|
|
transform: translateX(-4px) translateY(-50%);
|
|
}
|
|
|
|
.tt-scope .table-wrap [data-tooltip][data-tooltip-align="right"]::before,
|
|
.tt-scope .table-wrap [data-tooltip][data-tooltip-align="right"]::after {
|
|
left: 100%;
|
|
right: auto;
|
|
transform: translateX(0) translateY(-50%);
|
|
}
|
|
|
|
.tt-scope .table-wrap [data-tooltip][data-tooltip-align="right"]::before {
|
|
top: 50%;
|
|
bottom: auto;
|
|
border: 5px solid transparent;
|
|
border-right-color: #0b1320;
|
|
border-top-color: transparent;
|
|
margin-left: -10px;
|
|
}
|
|
|
|
.tt-scope .table-wrap [data-tooltip][data-tooltip-align="right"]::after {
|
|
top: 50%;
|
|
bottom: auto;
|
|
margin-left: -5px;
|
|
}
|
|
|
|
.tt-scope .table-wrap [data-tooltip][data-tooltip-align="right"]:hover::before,
|
|
.tt-scope .table-wrap [data-tooltip][data-tooltip-align="right"]:hover::after {
|
|
transform: translateX(4px) translateY(-50%);
|
|
}
|
|
|
|
/* Router Management Modal */
|
|
.tt-scope .router-info-header { display: flex; align-items: center; gap: 12px; padding: 20px 24px; margin: -14px -24px 12px -16px; background: linear-gradient(135deg, #e3f0f8 0%, #cce4f5 100%); border-bottom: 2px solid #b8d9f0; }
|
|
.tt-scope .router-info-header > i { font-size: 28px; color: var(--accent); flex-shrink: 0; }
|
|
.tt-scope .router-header-text { flex-grow: 1; min-height: 39px; }
|
|
.tt-scope .refresh-btn { padding: 8px; border-radius: 6px; flex-shrink: 0; }
|
|
.tt-scope .refresh-btn i { font-size: 16px; margin: 0; }
|
|
.tt-scope .router-title { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: 0.3px; line-height: 1.375; }
|
|
.tt-scope .router-subtitle { font-size: 12px; color: var(--muted); font-family: var(--mono); margin-top: 2px; line-height: 1.25; }
|
|
.tt-scope .router-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; margin-right: -8px; }
|
|
@media (max-width: 700px) { .tt-scope .router-info-grid { grid-template-columns: 1fr; } }
|
|
|
|
/* Info Card Styles - moved to tt-core.css (TtInfoCard component) */
|
|
|
|
.tt-scope .router-actions-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); margin-right: -8px; }
|
|
.tt-scope .router-actions-header { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 12px; letter-spacing: 0.3px; text-transform: uppercase; user-select: none; }
|
|
.tt-scope .router-actions-header i { font-size: 14px; color: var(--accent); }
|
|
.tt-scope .router-actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
|
|
@media (max-width: 700px) { .tt-scope .router-actions-grid { grid-template-columns: 1fr; } }
|
|
.tt-scope .action-btn { display: flex; align-items: center; padding: 8px 16px; }
|
|
.tt-scope .action-btn i { width: 20px; flex-shrink: 0; text-align: center; margin-right: 10px; }
|