1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Move common declarations to all.css

This commit is contained in:
billz 2023-03-24 15:09:41 +01:00
parent b01c005596
commit 6df78d125c
3 changed files with 28 additions and 555 deletions

View File

@ -12,46 +12,16 @@ Description: Default theme for RaspAP
License: GNU General Public License v3.0 License: GNU General Public License v3.0
*/ */
@import url('all.css');
body { body {
color: #212529; color: #212529;
} }
.h-underlined {
border-bottom: 1px solid #e3e6f0;
padding-bottom: 0.3rem;
}
.page-header {
margin: 20px 0 20px;
}
.navbar-logo {
margin-top: 0.5em;
margin-left: 0.5em;
}
/* Small devices (portrait phones, up to 576px) */
@media (max-width: 576px) {
.container-fluid, .card-body, .col-md-6 { padding-left: 0.5rem; padding-right: 0.5rem; }
.card .card-header { padding: .75rem .5rem; font-size: 1.0rem; }
.row { margin-left: 0rem; margin-right: 0rem; }
.col-lg-12 { padding-right: 0.25rem; padding-left: 0.25rem; }
.form-group.col-md-6 { margin-left: -0.5rem; }
h4.mt-3 { margin-left: 0.5rem; }
}
.sidebar { .sidebar {
background-color: #f8f9fc; background-color: #f8f9fc;
} }
.sidebar-brand-text {
text-transform: none;
color: #212529;
font-size: 2.0rem;
font-weight: 500;
font-family: Helvetica, Arial, sans-serif;
}
.sidebar .nav-item.active .nav-link { .sidebar .nav-item.active .nav-link {
font-weight: 500; font-weight: 500;
} }
@ -122,87 +92,12 @@ i.fa.fa-bars:hover{
color: #6e707e; color: #6e707e;
} }
.info-item {
text-transform: uppercase;
font-size: 0.7em;
color: #858796;
}
.info-value {
font-size: 0.7rem;
margin-left: 0.7rem;
}
.info-item-xs {
font-size: 0.7rem;
margin-left: 0.3rem;
}
.info-item-wifi {
width: 6rem;
float: left;
}
.service-status {
border-width: 0;
align-items: center;
}
.service-status-up {
color: #a1ec38;
}
.service-status-warn {
color: #f6f044;
}
.service-status-down {
color: #f80107;
animation: flash 1s linear infinite;
}
@keyframes flash {
50% {
opacity: 0;
}
}
.logoutput {
width:100%;
height: 20rem;
border: 1px solid #d1d3e2;
border-radius: .35rem;
}
pre.unstyled { pre.unstyled {
border-width: 0; border-width: 0;
background-color: transparent; background-color: transparent;
padding: 0; padding: 0;
} }
.dhcp-static-leases {
margin-top: 1em;
margin-bottom: 1em;
}
.dhcp-static-lease-row {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.loading-spinner {
background: url("../../app/img/loading-spinner.gif") no-repeat scroll center center transparent;
min-height: 150px;
width: 100%;
}
@media (min-width: 576px) {
.card-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 50%;
grid-gap: 1rem;
}
}
.sidebar.toggled .nav-item .nav-link span { .sidebar.toggled .nav-item .nav-link span {
display: none; display: none;
} .sidebar .nav-item .nav-link i, } .sidebar .nav-item .nav-link i,
@ -214,100 +109,7 @@ pre.unstyled {
color: #000; color: #000;
} }
.toggle-off.btn {
padding-left: 1.2rem;
font-size: 0.9rem!important;
}
.toggle-on.btn {
font-size: 0.9rem!important;
}
canvas#divDBChartBandwidthhourly {
height: 350px!important;
}
.chart-container {
height: 150px;
width: 200px;
}
.table {
margin-bottom: 0rem;
}
.check-hidden {
visibility: hidden;
}
.check-updated {
opacity: 0;
color: #90ee90;
}
.check-progress {
color: #999;
}
.fa-check {
color: #90ee90;
}
.fa-times {
color: #ff4500;
}
.signal-icon {
margin-top: 2px;
height: 16px;
width: 16px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: baseline;
}
.signal-icon .signal-bar { .signal-icon .signal-bar {
width: 4px;
border-radius: 1px;
opacity: 30%;
background: <?php echo $color; ?>; background: <?php echo $color; ?>;
} }
.signal-icon .signal-bar:nth-child(1) { height: 40%; }
.signal-icon .signal-bar:nth-child(2) { height: 70%; }
.signal-icon .signal-bar:nth-child(3) { height: 100%; }
.signal-icon.weak .signal-bar:nth-child(1),
.signal-icon.medium .signal-bar:nth-child(1),
.signal-icon.medium .signal-bar:nth-child(2),
.signal-icon.strong .signal-bar:nth-child(1),
.signal-icon.strong .signal-bar:nth-child(2),
.signal-icon.strong .signal-bar:nth-child(3)
{ opacity: 100%; }.signal-icon {
margin-top: 2px;
height: 16px;
width: 16px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: baseline;
}
.signal-icon .signal-bar {
width: 4px;
border-radius: 1px;
opacity: 30%;
background: <?php echo $color; ?>;
}
.signal-icon .signal-bar:nth-child(1) { height: 40%; }
.signal-icon .signal-bar:nth-child(2) { height: 70%; }
.signal-icon .signal-bar:nth-child(3) { height: 100%; }
.signal-icon.weak .signal-bar:nth-child(1),
.signal-icon.medium .signal-bar:nth-child(1),
.signal-icon.medium .signal-bar:nth-child(2),
.signal-icon.strong .signal-bar:nth-child(1),
.signal-icon.strong .signal-bar:nth-child(2),
.signal-icon.strong .signal-bar:nth-child(3)
{ opacity: 100%; }

View File

@ -6,6 +6,8 @@ Description: A theme inspired by HackerNews for RaspAP
License: GNU General Public License v3.0 License: GNU General Public License v3.0
*/ */
@import url('all.css');
html * { html * {
font-family: Verdana, Geneva, sans-serif; font-family: Verdana, Geneva, sans-serif;
color: #828282; color: #828282;
@ -33,11 +35,6 @@ h5.card-title {
color: #212529; color: #212529;
} }
.h-underlined {
border-bottom: 1px solid #e3e6f0;
padding-bottom: 0.3rem;
}
.card, .modal-dialog { .card, .modal-dialog {
border-radius: 3px; border-radius: 3px;
border-color: #ff6600; border-color: #ff6600;
@ -71,14 +68,6 @@ h5.card-title {
border-radius: 0px; border-radius: 0px;
} }
.sidebar-brand-text {
text-transform: none;
color: #212529;
font-size: 2.0rem;
font-weight: 500;
font-family: Verdana, Geneva, sans-serif;
}
.sidebar-light hr.sidebar-divider { .sidebar-light hr.sidebar-divider {
padding-top: 0.5rem; padding-top: 0.5rem;
} }
@ -90,38 +79,19 @@ ul.nav-tabs, .nav-tabs .nav-link {
.sidebar .nav-item .nav-link { .sidebar .nav-item .nav-link {
padding: 0.6rem; padding: 0.6rem;
margin-left: 0.6rem;
} }
.sidebar-light .nav-item.active .nav-link { .sidebar-light .nav-item.active .nav-link {
font-weight: 300; font-weight: 300;
} }
.page-header {
font-size: 26pt;
margin: 10px 0 20px;
}
.navbar-logo {
margin-top: 0.5em;
margin-left: 0.5em;
}
#wrapper,#page-wrapper, #wrapper,#page-wrapper,
#wrapper #content-wrapper, #wrapper #content-wrapper,
.nav>li>a,.nav { .nav>li>a,.nav {
background-color: #fff; background-color: #fff;
} }
/* Small devices (portrait phones, up to 576px) */
@media (max-width: 576px) {
.container-fluid, .card-body, .col-md-6 { padding-left: 0.5rem; padding-right: 0.5rem; }
.card .card-header { padding: .75rem .5rem; font-size: 1.0rem; }
.row { margin-left: 0rem; margin-right: 0rem; }
.col-lg-12 { padding-right: 0.25rem; padding-left: 0.25rem; }
.form-group.col-md-6 { margin-left: -0.5rem; }
h4.mt-3 { margin-left: 0.5rem; }
}
.card-body { .card-body {
background-color: #f6f6ef; background-color: #f6f6ef;
} }
@ -152,60 +122,8 @@ ul.nav-tabs, .nav-tabs .nav-link {
color: #eee; color: #eee;
} }
.info-item {
text-transform: uppercase;
font-size: 0.7em;
color: #858796;
}
.info-value {
font-size: 0.7rem;
margin-left: 0.7rem;
}
.info-item-xs {
font-size: 0.7rem;
margin-left: 0.3rem;
line-height: 1.5em;
}
.info-item-wifi {
width: 6rem;
float: left;
}
.logoutput {
width: 100%;
height: 20rem;
border: 1px solid #d1d3e2;
border-radius: .35rem;
}
.service-status {
border-width: 0;
align-items: center;
}
.service-status-up {
color: #a1ec38!important;
}
.service-status-warn {
color: #f6f044!important;
}
.service-status-down {
color: #f80107!important;
animation: flash 1s linear infinite;
}
@keyframes flash {
50% {
opacity: 0;
}
}
.fas.fa-circle { .fas.fa-circle {
font-size: 0.5rem; font-size: 0.7rem;
} }
.logoutput { .logoutput {
@ -219,30 +137,6 @@ pre.unstyled {
padding: 0; padding: 0;
} }
.dhcp-static-leases {
margin-top: 1em;
margin-bottom: 1em;
}
.dhcp-static-lease-row {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.loading-spinner {
background: url("../../app/img/loading-spinner.gif") no-repeat scroll center center transparent;
min-height: 150px;
width: 100%;
}
@media (min-width: 576px) {
.card-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 50%;
grid-gap: 1rem;
}
}
.sidebar.toggled .nav-item .nav-link { .sidebar.toggled .nav-item .nav-link {
text-align: center; text-align: center;
padding: .6rem 1rem; padding: .6rem 1rem;
@ -260,72 +154,7 @@ pre.unstyled {
color: #000; color: #000;
} }
.toggle-off.btn {
padding-left: 0.9rem;
font-size: 0.9rem!important;
}
.toggle-on.btn {
font-size: 0.9rem!important;
}
canvas#divDBChartBandwidthhourly {
height: 350px!important;
}
.chart-container {
height: 150px;
width: 200px;
}
.table {
margin-bottom: 0rem;
}
.check-hidden {
visibility: hidden;
}
.check-updated {
opacity: 0;
color: #1cc88a;
}
.check-progress {
color: #999;
}
.fa-check {
color: #90ee90;
}
.fa-times {
color: #ff4500;
}
.signal-icon {
margin-top: 2px;
height: 16px;
width: 16px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: baseline;
}
.signal-icon .signal-bar { .signal-icon .signal-bar {
width: 4px;
border-radius: 1px;
opacity: 30%;
background: #ff6600; background: #ff6600;
} }
.signal-icon .signal-bar:nth-child(1) { height: 40%; }
.signal-icon .signal-bar:nth-child(2) { height: 70%; }
.signal-icon .signal-bar:nth-child(3) { height: 100%; }
.signal-icon.weak .signal-bar:nth-child(1),
.signal-icon.medium .signal-bar:nth-child(1),
.signal-icon.medium .signal-bar:nth-child(2),
.signal-icon.strong .signal-bar:nth-child(1),
.signal-icon.strong .signal-bar:nth-child(2),
.signal-icon.strong .signal-bar:nth-child(3)
{ opacity: 100%; }

View File

@ -6,6 +6,8 @@ Description: A dark mode theme for RaspAP
License: GNU General Public License v3.0 License: GNU General Public License v3.0
*/ */
@import url('all.css');
html * { html * {
font-family: Helvetica,Arial,sans-serif; font-family: Helvetica,Arial,sans-serif;
color: #afafaf; color: #afafaf;
@ -23,20 +25,9 @@ h5.card-title {
font-size: 1.2rem; font-size: 1.2rem;
} }
.h-underlined {
border-bottom: 1px solid #e3e6f0;
padding-bottom: 0.3rem;
}
.page-header { .page-header {
padding: 0 20px;
border-left: .01rem solid #d2d2d2; border-left: .01rem solid #d2d2d2;
} border-bottom: .01rem solid #d2d2d2;
.navbar-logo {
margin-top: 0.5em;
margin-left: 0.5em;
filter: brightness(70%);
} }
.sidebar-light .nav-item.active .nav-link i { .sidebar-light .nav-item.active .nav-link i {
@ -51,16 +42,6 @@ h5.card-title {
background-color: #202020; background-color: #202020;
} }
/* Small devices (portait phones, up to 576px) */
@media (max-width: 576px) {
.container-fluid, .card-body, .col-md-6 { padding-left: 0.5rem; padding-right: 0.5rem; }
.card .card-header { padding: .75rem .5rem; font-size: 1.0rem; }
.row { margin-left: 0rem; margin-right: 0rem; }
.col-lg-12 { padding-right: 0.25rem; padding-left: 0.25rem; }
.form-group.col-md-6 { margin-left: -0.5rem; }
h4.mt-3 { margin-left: 0.5rem; }
}
.topbar { .topbar {
background-color: #202020; background-color: #202020;
} }
@ -95,7 +76,6 @@ h5.card-title {
} }
#content, .navbar, .sidebar, .footer, .sticky-footer { #content, .navbar, .sidebar, .footer, .sticky-footer {
background-image: url('/app/img/bg.png');
background-attachment: scroll; background-attachment: scroll;
background-repeat: repeat; background-repeat: repeat;
background-size: auto; background-size: auto;
@ -159,18 +139,8 @@ hr {
border-top: .01rem solid #d2d2d2; border-top: .01rem solid #d2d2d2;
} }
.page-header {
font-size: 24pt;
margin: 10px 0 20px;
border-bottom: .01rem solid #d2d2d2;
}
.sidebar-brand-text { .sidebar-brand-text {
text-transform: none; color: #2b8080 !important;
color: #ac1b3d;
font-size: 2.0rem;
font-weight: 500;
font-family: inherit;
} }
.ra-raspap:before { .ra-raspap:before {
@ -252,28 +222,6 @@ hr {
border-right: 1px solid #404040; border-right: 1px solid #404040;
} }
.info-item {
text-transform: uppercase;
font-size: 0.7em;
color: #858796;
}
.info-value {
font-size: 0.7rem;
margin-left: 0.7rem;
}
.info-item-xs {
font-size: 0.7rem;
line-height: 1.5em;
margin-left: 0.5rem;
}
.info-item-wifi {
width: 6rem;
float: left;
}
.label-warning { .label-warning {
background-color: #d2d2d2; background-color: #d2d2d2;
} }
@ -367,15 +315,25 @@ color: #d2d2d2 !important
background-color: #d2d2d2; background-color: #d2d2d2;
} }
.logoutput { .figure-img {
width: 100%; filter: opacity(0.7);
height: 300px;
background-color: #202020;
border-color: #404040;
} }
tspan, rect { .ra-wireguard:before {
fill: #d2d2d2; color: #404040 !important;
}
.ra-wireguard:hover:before {
color: #d1d3e2 !important;
}
.sidebar .nav-item.active .nav-link span.ra-wireguard:before {
color: #d2d2d2 !important;
}
.logoutput {
background-color: #202020;
border-color: #404040;
} }
.text-muted { .text-muted {
@ -383,29 +341,7 @@ tspan, rect {
} }
.fas.fa-circle { .fas.fa-circle {
font-size: 0.5rem; font-size: 0.7rem;
}
.service-status {
align-items: center;
}
.service-status-up {
color: #a1ec38 !important;
}
.service-status-warn {
color: #f6f044 !important;
}
.service-status-down {
color: #f80107 !important;
animation: flash 1s linear infinite;
}
@keyframes flash {
50% {
opacity: 0;
}
} }
pre { pre {
@ -413,101 +349,7 @@ pre {
border: #202020; border: #202020;
} }
.dhcp-static-leases {
margin-top: 1em;
margin-bottom: 1em;
}
.dhcp-static-lease-row {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.loading-spinner {
background: url("../../app/img/loading-spinner.gif") no-repeat scroll center center transparent;
min-height: 150px;
width: 100%;
}
@media (min-width: 576px) {
.card-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 50%;
grid-gap: 1rem;
}
}
.toggle-off.btn {
padding-left: 1.2rem;
font-size: 0.9rem!important;
}
.toggle-on.btn {
font-size: 0.9rem!important;
}
canvas#divDBChartBandwidthhourly {
height: 350px!important;
}
.chart-container {
height: 150px;
width: 200px;
}
.table {
margin-bottom: 0rem;
}
.figure, .authors {
filter: brightness(70%) !important;
}
.check-hidden {
visibility: hidden;
}
.check-updated {
opacity: 0;
color: #1cc88a;
}
.check-progress {
color: #999;
}
.fa-check {
color: #90ee90;
}
.fa-times {
color: #ff4500;
}
.signal-icon {
margin-top: 2px;
height: 16px;
width: 16px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: baseline;
}
.signal-icon .signal-bar { .signal-icon .signal-bar {
width: 4px;
border-radius: 1px;
opacity: 30%;
background: #2b8080; background: #2b8080;
} }
.signal-icon .signal-bar:nth-child(1) { height: 40%; }
.signal-icon .signal-bar:nth-child(2) { height: 70%; }
.signal-icon .signal-bar:nth-child(3) { height: 100%; }
.signal-icon.weak .signal-bar:nth-child(1),
.signal-icon.medium .signal-bar:nth-child(1),
.signal-icon.medium .signal-bar:nth-child(2),
.signal-icon.strong .signal-bar:nth-child(1),
.signal-icon.strong .signal-bar:nth-child(2),
.signal-icon.strong .signal-bar:nth-child(3)
{ opacity: 100%; }