Router-tools/static/css/style.css

642 lines
12 KiB
CSS

:root {
--primary-brand-color: #07AAF9;
--light-bg-primary: #f4f7fa;
--light-bg-secondary: #ffffff;
--light-border-color: #dee2e6;
--text-color-primary: #212529;
--text-color-secondary: #6c757d;
--sidebar-width: 260px;
--sidebar-width-collapsed: 88px;
}
body {
font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: var(--light-bg-primary);
color: var(--text-color-primary);
display: flex;
}
.page-header {
position: relative;
background: url('/static/img/background.webp') no-repeat center center;
background-size: cover;
color: white;
padding: 40px 20px;
text-align: center;
padding: 0.9rem;
border-bottom: 1px solid var(--light-border-color);
}
.page-header::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1;
}
.page-header h1, .page-header p {
position: relative;
z-index: 2;
}
.page-header h1 {
margin: 0;
font-size: 2.5em;
}
.page-header-content {
position: relative;
z-index: 2;
}
.sidebar {
width: var(--sidebar-width);
height: 100vh;
position: fixed;
top: 0;
left: 0;
background-color: var(--light-bg-secondary);
border-right: 1px solid var(--light-border-color);
display: flex;
flex-direction: column;
transition: width 0.3s ease;
}
.sidebar .offcanvas-body {
display: flex;
flex-direction: column;
overflow: hidden;
height: 100%;
}
.sidebar .offcanvas-body > div:first-child {
flex: 1;
overflow-y: auto;
}
.sidebar-header {
padding: 1.5rem;
border-bottom: 1px solid var(--light-border-color);
flex-shrink: 0;
}
.vyos-info {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
margin-bottom: 0.5rem;
}
.vyos-logo {
height: 128px;
width: auto;
}
.sidebar-version {
align-items: center;
justify-content: center;
font-size: 0.9rem;
color: var(--text-color-secondary);
margin: 0;
white-space: nowrap;
overflow: hidden;
text-align: center;
transition: opacity 0.3s ease;
}
.sidebar-hostname {
color: var(--text-color-primary);
font-weight: 500;
margin: 0;
white-space: nowrap;
overflow: hidden;
text-align: center;
transition: opacity 0.3s ease;
}
.sidebar .nav-link {
color: var(--text-color-secondary);
font-weight: 500;
padding: 0.8rem 1.5rem;
margin: 0.25rem 1rem;
border-radius: 0.5rem;
display: flex;
align-items: center;
white-space: nowrap;
overflow: hidden;
transition: background-color 0.2s, color 0.2s;
}
.sidebar .nav-link .fa-fw {
width: 1.5rem;
margin-right: 1rem;
font-size: 1.2rem;
flex-shrink: 0;
}
.sidebar .nav-link:hover {
background-color: #e9ecef;
color: var(--text-color-primary);
}
.sidebar .nav-link.active {
background-color: var(--primary-brand-color);
color: #fff;
}
.nav-icon {
width: 22px;
height: 22px;
margin-right: 1rem;
flex-shrink: 0;
transition: filter 0.2s;
}
.sidebar-footer {
padding: 1rem;
border-top: 1px solid var(--light-border-color);
text-align: center;
flex-shrink: 0;
}
#sidebar-toggle {
width: 100%;
color: var(--text-color-secondary);
}
#sidebar-toggle:hover {
background-color: #e9ecef;
}
body.sidebar-collapsed .sidebar {
width: var(--sidebar-width-collapsed);
}
body.sidebar-collapsed .vyos-logo {
height: 64px;
width: auto;
}
body.sidebar-collapsed .sidebar-hostname {
opacity: 0;
height: 0;
margin-bottom: 0;
}
body.sidebar-collapsed .sidebar-version {
opacity: 0;
height: 0;
margin-bottom: 0;
}
body.sidebar-collapsed .sidebar .nav-link span {
display: none;
}
body.sidebar-collapsed .sidebar .nav-link {
justify-content: center;
padding: 0.8rem 1rem;
}
body.sidebar-collapsed .sidebar .nav-link .fa-fw {
margin-right: 0;
}
body.sidebar-collapsed #sidebar-toggle .fa-chevron-left {
transform: rotate(180deg);
}
.main-content-wrapper {
width: calc(100% - var(--sidebar-width));
margin-left: var(--sidebar-width);
display: flex;
flex-direction: column;
min-height: 100vh;
transition: width 0.3s ease, margin-left 0.3s ease;
}
.main-content-wrapper1 {
max-width: 1200px!important;
margin: 0 auto!important;
}
main {
flex-grow: 1;
}
body.sidebar-collapsed .main-content-wrapper {
width: calc(100% - var(--sidebar-width-collapsed));
margin-left: var(--sidebar-width-collapsed);
}
section {
background: var(--light-bg-secondary);
border: 1px solid var(--light-border-color);
border-radius: 0.5rem;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
section h2 {
color: var(--text-color-primary);
margin-top: 0;
border-bottom: 1px solid var(--light-border-color);
padding-bottom: 10px;
margin-bottom: 20px;
font-size: 1.5rem;
}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
th.sortable {
cursor: pointer;
}
.sort-arrow::after {
content: "⇅";
margin-left: 5px;
opacity: 0.4;
}
th.asc .sort-arrow::after {
content: "▲";
opacity: 1;
}
th.desc .sort-arrow::after {
content: "▼";
opacity: 1;
}
.spinner-border {
width: 4rem;
height: 4rem;
margin-top: 6rem;
margin-bottom: 6rem;
border-width: 0.4em;
}
.spinner-border {
width: 4rem;
height: 4rem;
margin-top: 6rem;
margin-bottom: 6rem;
border-width: 0.4em;
}
#refreshSpinner.spinner-border,
#refreshSpinner2.spinner-border {
width: 0.84rem;
height: 0.84rem;
margin-top: 0rem;
margin-bottom: 0rem;
border-width: 0.15em;
vertical-align: text-bottom;
}
#bgpOutput {
white-space: pre-wrap;
background-color: #1e1e1e;
color: #d4d4d4;
padding: 1rem;
border-radius: 5px;
min-height: 400px;
min-width: 800px;
height: 100%;
overflow-y: auto;
font-family: Consolas, monospace, monospace;
border: 1px solid #444;
}
.asn-highlight {
color: #e67e22;
font-weight: bold;
}
.asn215085-highlight {
color: #07AAF9;
font-weight: bold;
}
strong.best-line {
font-weight: bold;
}
#achart-container {
display: flex;
gap: 4rem;
flex-wrap: wrap;
justify-content: center;
max-width: 100%;
}
.achart-wrapper {
width: 220px;
position: relative;
overflow: visible;
text-align: center;
}
canvas {
max-width: 100%;
height: auto !important;
}
.alegend ul {
display: flex;
flex-wrap: wrap;
padding: 0;
margin-top: 1rem;
gap: 0.5rem 1rem;
list-style: none;
justify-content: center;
}
.alegend li {
display: flex;
align-items: center;
white-space: nowrap;
}
.alegend-color {
display: inline-block;
width: 12px;
height: 12px;
margin-right: 6px;
vertical-align: middle;
border-radius: 2px;
}
.achart-wrapper-chart{
width: 1300px;
height: 600px;
position: relative;
flex-wrap: wrap;
justify-content: center;
max-width: 100%;
}
.achart-wrapper-chart canvas{
width: 100%!important;
height: 100%!important;
}
.stats-overview-container {
display: flex;
justify-content: space-between;
align-items: center;
}
#stats-container {
text-align: right;
display: flex;
gap: 1em;
}
#stats-container p {
margin: 0;
}
#legend1 li.inactive,
#legend2 li.inactive,
#legend3 li.inactive,
#legend4 li.inactive,
#legend5 li.inactive {
opacity: 0.5;
text-decoration: line-through;
}
.bgprtv-container {
max-width: 100%;
margin: 0 auto;
padding: 0px;
}
.bgprtv-h1 {
text-align: center;
color: #212529;
}
.bgprtv-form-container {
background-color: #fff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
.bgprtv-input {
width: calc(100% - 110px);
padding: 12px;
border: 1px solid #ced4da;
border-radius: 4px;
font-size: 16px;
}
.bgprtv-submit {
width: 100px;
padding: 12px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
margin-left: 10px;
}
#bgprtv-mynetwork {
width: 100%;
min-height: 60vh;
border: 1px solid #ddd;
border-radius: 8px;
margin-top: 20px;
}
#bgprtv-mynetwork .vis-network,
#bgprtv-mynetwork canvas {
height: 100% !important;
}
.bgprtv-legend-item {
display: flex;
align-items: center;
font-size: 14px;
}
.bgprtv-legend-symbol {
margin-right: 10px;
flex-shrink: 0;
}
.bgprtv-legend-line {
height: 0;
width: 40px;
}
.bgprtv-legend-line.best-path {
border-top: 3px solid #C0392B;
}
.bgprtv-legend-line.alt-path {
border-top: 2px dashed #2C3E50;
}
.bgprtv-legend-node {
display: inline-block;
width: 25px;
height: 20px;
border: 2px solid #343a40;
border-radius: 3px;
}
.bgprtv-legend-node.best-path-node {
background-color: #FADBD8;
}
.bgprtv-legend-node.alt-path-node {
background-color: #D6DBDF;
}
.bgprtv-legend-line.multipath {
border-top: 2px solid #F39C12;
}
.bgprtv-legend-node.multipath-node {
background-color: #FDEBD0;
}
.bgprtv-filter-title {
margin: 0;
font-size: 14px;
font-weight: bold;
color: #555;
}
.bgprtv-legend-container {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 15px 25px;
padding: 15px;
margin-bottom: 20px;
border: 1px solid #dee2e6;
border-radius: 8px;
background-color: #fff;
}
.bgprtv-filter-container {
flex-basis: 100%;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 15px;
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid #eee;
}
#bgprtv-filter-controls {
display: flex;
flex-wrap: wrap;
gap: 10px 15px;
align-items: center;
}
#bgprtv-filter-controls label {
margin: 0;
font-weight: normal;
display: flex;
align-items: center;
gap: 5px;
cursor: pointer;
}
.bgprtv-filter-separator {
display: inline-block;
border-left: 1px solid #ccc;
height: 16px;
margin: 0 5px;
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 2000;
}
.modal-content {
background: white;
padding: 30px;
border-radius: 8px;
text-align: center;
width: 90%;
max-width: 500px;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-buttons {
margin-top: 20px;
display: flex;
justify-content: center;
gap: 15px;
}
#notificationModal .modal-content.success #notificationTitle {
color: #198754;
}
#notificationModal .modal-content.error #notificationTitle {
color: #dc3545;
}
.modal-content .spinner-border {
width: 3rem;
height: 3rem;
margin: 1.5rem auto;
border-width: 0.3em;
}
.fw-log-output {
background-color: #f8f9fa;
padding: 1rem;
border-radius: 0.25rem;
white-space: pre-wrap;
word-wrap: break-word;
}
.icon-info, .icon-details, .icon-bfd, .icon-gear, .icon-graph {
display: inline-block;
width: clamp(1rem, 1vw + 0.5rem, 1.5625rem);
height: clamp(1rem, 1vw + 0.5rem, 1.5625rem);
vertical-align: middle;
background-repeat: no-repeat;
background-size: contain;
cursor: pointer;
text-indent: -9999px;
overflow: hidden;
filter: none;
}
.icon-info { background-image: url('/static/img/info.png'); }
.icon-details { background-image: url('/static/img/details.png'); }
.icon-bfd { background-image: url('/static/img/fast.png'); }
.icon-gear { background-image: url('/static/img/settings.png'); }
.icon-graph { background-image: url('/static/img/graph.png'); }
footer {
text-align: center;
padding: 20px 0;
color: var(--text-color-secondary);
background-color: var(--light-bg-secondary);
border-top: 1px solid var(--light-border-color);
}
.mobile-header {
background-color: var(--light-bg-secondary);
border-bottom: 1px solid var(--light-border-color);
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.mobile-header .navbar-brand img {
height: 40px;
}
@media (max-width: 991.98px) {
body {
display: block;
padding-top: 60px;
}
.main-content-wrapper {
width: 100%;
margin-left: 0;
}
.offcanvas-header {
border-bottom: 1px solid var(--light-border-color);
}
}