WGDashboard/src/static/css/dashboard.css

790 lines
13 KiB
CSS
Raw Normal View History

2021-08-14 17:13:16 -04:00
body {
font-size: .875rem;
2022-02-28 13:29:17 -05:00
/*font-family: 'Poppins', sans-serif;*/
2021-08-14 17:13:16 -04:00
}
.codeFont{
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
2021-08-14 17:13:16 -04:00
.feather {
width: 16px;
height: 16px;
vertical-align: text-bottom;
}
2022-03-21 22:33:19 -04:00
.btn-primary {
font-weight: bold;
}
2021-08-14 17:13:16 -04:00
/*
* Sidebar
*/
.sidebar {
position: fixed;
top: 0;
bottom: 0;
left: 0;
2022-03-21 22:33:19 -04:00
z-index: 100;
/* Behind the navbar */
padding: 48px 0 0;
/* Height of navbar */
2021-08-14 17:13:16 -04:00
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}
.sidebar-sticky {
position: relative;
top: 0;
height: calc(100vh - 48px);
padding-top: .5rem;
overflow-x: hidden;
2022-03-21 22:33:19 -04:00
overflow-y: auto;
/* Scrollable contents if viewport is shorter than content. */
2021-08-14 17:13:16 -04:00
}
@supports ((position: -webkit-sticky) or (position: sticky)) {
.sidebar-sticky {
position: -webkit-sticky;
position: sticky;
}
}
.sidebar .nav-link {
font-weight: 500;
color: #333;
transition: 0.2s cubic-bezier(0.82, -0.07, 0, 1.01);
}
.nav-link:hover {
padding-left: 30px;
2022-01-16 20:35:24 -05:00
background-color: #dfdfdf;
2021-08-14 17:13:16 -04:00
}
.sidebar .nav-link .feather {
margin-right: 4px;
color: #999;
}
.sidebar .nav-link.active {
color: #007bff;
}
.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
color: inherit;
}
.sidebar-heading {
font-size: .75rem;
text-transform: uppercase;
}
2022-03-21 22:33:19 -04:00
2021-08-14 17:13:16 -04:00
/*
* Navbar
*/
.navbar-brand {
padding-top: .75rem;
padding-bottom: .75rem;
font-size: 1rem;
background-color: rgba(0, 0, 0, .25);
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}
.navbar .navbar-toggler {
top: .25rem;
right: 1rem;
}
2022-03-21 22:33:19 -04:00
.form-control {
transition: all 0.2s ease-in-out;
}
2022-03-21 22:33:19 -04:00
.form-control:disabled {
cursor: not-allowed;
}
2021-08-14 17:13:16 -04:00
.navbar .form-control {
padding: .75rem 1rem;
border-width: 0;
border-radius: 0;
}
.form-control-dark {
color: #fff;
background-color: rgba(255, 255, 255, .1);
border-color: rgba(255, 255, 255, .1);
}
.form-control-dark:focus {
border-color: transparent;
box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}
2022-03-21 22:33:19 -04:00
.dot {
2021-08-14 17:13:16 -04:00
width: 10px;
height: 10px;
border-radius: 50px;
display: inline-block;
2022-02-28 13:34:46 -05:00
margin-left: auto !important;
2021-08-14 17:13:16 -04:00
}
2022-03-21 22:33:19 -04:00
.dot-running {
2021-08-14 17:13:16 -04:00
background-color: #28a745!important;
box-shadow: 0 0 0 0.2rem #28a74545;
}
2022-03-21 22:33:19 -04:00
.h6-dot-running {
margin-left: 0.3rem;
2021-08-14 17:13:16 -04:00
}
2022-03-21 22:33:19 -04:00
.dot-stopped {
2021-08-14 17:13:16 -04:00
background-color: #6c757d!important;
}
2022-03-21 22:33:19 -04:00
.card-running {
border-color: #28a745;
}
2021-08-14 17:13:16 -04:00
2022-03-21 22:33:19 -04:00
.info h6 {
2021-08-14 17:13:16 -04:00
line-break: anywhere;
2022-03-21 22:33:19 -04:00
transition: all 0.4s cubic-bezier(0.96, -0.07, 0.34, 1.01);
opacity: 1;
2021-08-14 17:13:16 -04:00
}
2022-03-21 22:33:19 -04:00
.info .row .col-sm {
display: flex;
flex-direction: column;
}
2022-03-21 22:33:19 -04:00
.info .row .col-sm small {
display: flex;
}
2022-03-21 22:33:19 -04:00
.info .row .col-sm small strong:last-child(1) {
margin-left: auto !important;
}
2022-03-21 22:33:19 -04:00
.btn-control {
2021-08-14 17:13:16 -04:00
border: none !important;
padding: 0 1rem 0 0;
}
2022-03-21 22:33:19 -04:00
.btn-control:active,
.btn-control:focus {
background-color: transparent !important;
border: none !important;
box-shadow: none;
}
2022-03-21 22:33:19 -04:00
.btn-qrcode-peer {
2022-01-16 20:35:24 -05:00
padding: 0 !important;
}
2022-03-21 22:33:19 -04:00
.btn-qrcode-peer:active,
.btn-qrcode-peer:hover {
2022-01-16 20:35:24 -05:00
transform: scale(0.9) rotate(180deg);
border: 0 !important;
}
2022-03-21 22:33:19 -04:00
.btn-download-peer:active,
.btn-download-peer:hover {
2022-01-16 20:35:24 -05:00
color: #17a2b8 !important;
transform: translateY(5px);
}
2022-03-21 22:33:19 -04:00
.share_peer_btn_group .btn-control {
2022-01-16 20:35:24 -05:00
margin: 0 0 0 1rem;
padding: 0 !important;
transition: all 0.4s cubic-bezier(1, -0.43, 0, 1.37);
2021-08-14 17:13:16 -04:00
}
2022-03-21 22:33:19 -04:00
.btn-control:hover {
2021-08-14 17:13:16 -04:00
background: white;
}
2022-03-21 22:33:19 -04:00
.btn-delete-peer:hover {
2021-08-14 17:13:16 -04:00
color: #dc3545;
}
2022-03-21 22:33:19 -04:00
.btn-lock-peer:hover {
color: #28a745;
}
2022-03-21 22:33:19 -04:00
.btn-lock-peer.lock{
color: #6c757d
2021-08-14 17:13:16 -04:00
}
2022-03-21 22:33:19 -04:00
.btn-lock-peer.lock:hover{
color: #6c757d
}
.btn-setting-peer:hover {
color: #007bff
}
.btn-download-peer:hover {
2021-08-14 17:13:16 -04:00
color: #17a2b8;
}
2022-03-21 22:33:19 -04:00
.login-container {
2021-08-14 17:13:16 -04:00
padding: 2rem;
}
2022-03-21 22:33:19 -04:00
@media (max-width: 992px) {
.card-col {
2021-08-14 17:13:16 -04:00
margin-bottom: 1rem;
}
}
2022-03-21 22:33:19 -04:00
.switch {
2021-08-14 17:13:16 -04:00
font-size: 2rem;
}
2022-03-21 22:33:19 -04:00
.switch:hover {
2021-08-14 17:13:16 -04:00
text-decoration: none
}
2022-03-21 22:33:19 -04:00
.btn-group-label:hover {
2021-08-14 17:13:16 -04:00
color: #007bff;
border-color: #007bff;
background: white;
}
2022-03-21 22:33:19 -04:00
.peer_data_group {
2022-02-28 13:34:46 -05:00
text-align: right;
display: flex;
margin-bottom: 0.5rem
}
2022-03-21 22:33:19 -04:00
.peer_data_group p {
2022-02-28 13:34:46 -05:00
text-transform: uppercase;
margin-bottom: 0;
margin-right: 1rem
}
2021-08-14 17:13:16 -04:00
@media (max-width: 768px) {
2022-03-21 22:33:19 -04:00
.peer_data_group {
2021-08-14 17:13:16 -04:00
text-align: left;
}
}
2022-03-21 22:33:19 -04:00
.index-switch {
2021-08-14 17:13:16 -04:00
text-align: right;
2022-03-21 22:33:19 -04:00
display: flex;
align-items: center;
justify-content: flex-end;
2021-08-14 17:13:16 -04:00
}
2022-03-21 22:33:19 -04:00
main {
2021-08-14 17:13:16 -04:00
margin-bottom: 3rem;
}
2022-03-21 22:33:19 -04:00
.peer_list {
2021-09-08 12:39:25 -04:00
margin-bottom: 7rem
}
@media (max-width: 768px) {
2022-03-21 22:33:19 -04:00
.add_btn {
2021-09-08 12:39:25 -04:00
bottom: 1.5rem !important;
}
2022-03-21 22:33:19 -04:00
.peer_list {
2022-01-08 15:26:17 -05:00
margin-bottom: 7rem !important;
2021-09-08 12:39:25 -04:00
}
}
2022-03-21 22:33:19 -04:00
.btn-manage-group {
2022-01-08 15:26:17 -05:00
z-index: 99;
2021-09-08 12:39:25 -04:00
position: fixed;
bottom: 3rem;
right: 2rem;
2022-01-08 15:26:17 -05:00
display: flex;
}
2022-03-21 22:33:19 -04:00
.btn-manage-group .setting_btn_menu {
2022-01-08 15:26:17 -05:00
position: absolute;
top: -124px;
background-color: white;
padding: 1rem 0;
right: 0;
box-shadow: 0 10px 20px rgb(0 0 0 / 19%), 0 6px 6px rgb(0 0 0 / 23%);
border-radius: 10px;
min-width: 250px;
2022-01-08 15:26:17 -05:00
display: none;
transform: translateY(-30px);
opacity: 0;
transition: all 0.3s cubic-bezier(0.58, 0.03, 0.05, 1.28);
}
2022-03-21 22:33:19 -04:00
.btn-manage-group .setting_btn_menu.show {
2022-01-08 15:26:17 -05:00
display: block;
}
2022-03-21 22:33:19 -04:00
.setting_btn_menu.showing {
2022-01-08 15:26:17 -05:00
transform: translateY(0px);
opacity: 1;
}
2022-03-21 22:33:19 -04:00
.setting_btn_menu a {
2022-01-08 15:26:17 -05:00
display: flex;
padding: 0.5rem 1rem;
transition: all 0.1s ease-in-out;
font-size: 1rem;
align-items: center;
cursor: pointer;
}
2022-03-21 22:33:19 -04:00
.setting_btn_menu a:hover {
2022-01-08 15:26:17 -05:00
background-color: #efefef;
text-decoration: none;
}
2022-03-21 22:33:19 -04:00
.setting_btn_menu a i {
2022-01-08 15:26:17 -05:00
margin-right: auto !important;
}
2022-03-21 22:33:19 -04:00
.add_btn {
2022-01-08 15:26:17 -05:00
height: 54px;
z-index: 99;
border-radius: 100px !important;
padding: 0 14px;
2022-03-21 22:33:19 -04:00
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
2022-01-08 15:26:17 -05:00
margin-right: 1rem;
font-size: 1.5rem;
}
2022-03-21 22:33:19 -04:00
.setting_btn {
2022-01-08 15:26:17 -05:00
height: 54px;
2021-09-08 12:39:25 -04:00
z-index: 99;
border-radius: 100px !important;
2022-01-08 15:26:17 -05:00
padding: 0 14px;
2022-03-21 22:33:19 -04:00
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
2022-01-08 15:26:17 -05:00
font-size: 1.5rem;
2021-09-08 12:39:25 -04:00
}
2022-03-21 22:33:19 -04:00
@-webkit-keyframes rotating
/* Safari and Chrome */
2021-08-14 17:13:16 -04:00
2022-03-21 22:33:19 -04:00
{
2021-08-14 17:13:16 -04:00
from {
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}
2022-03-21 22:33:19 -04:00
2021-08-14 17:13:16 -04:00
@keyframes rotating {
from {
-ms-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-ms-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}
2021-08-14 17:13:16 -04:00
.rotating::before {
-webkit-animation: rotating 0.75s linear infinite;
-moz-animation: rotating 0.75s linear infinite;
-ms-animation: rotating 0.75s linear infinite;
-o-animation: rotating 0.75s linear infinite;
animation: rotating 0.75s linear infinite;
}
2022-03-21 22:33:19 -04:00
.peer_private_key_textbox_switch {
2021-08-14 17:13:16 -04:00
position: absolute;
right: 2rem;
transform: translateY(-28px);
font-size: 1.2rem;
cursor: pointer;
}
2022-03-21 22:33:19 -04:00
#peer_private_key_textbox,
#private_key,
#public_key,
#peer_preshared_key_textbox {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
2022-03-21 22:33:19 -04:00
.progress-bar {
2021-08-14 17:13:16 -04:00
transition: 0.3s ease-in-out;
}
2022-03-21 22:33:19 -04:00
.key {
2021-08-14 17:13:16 -04:00
transition: 0.2s ease-in-out;
cursor: pointer;
}
2022-03-21 22:33:19 -04:00
.key:hover {
2021-08-14 17:13:16 -04:00
color: #007bff;
}
2022-03-21 22:33:19 -04:00
.card {
border-radius: 10px;
}
2022-03-21 22:33:19 -04:00
.peer_list .card .button-group {
height: 22px;
}
2022-03-21 22:33:19 -04:00
.form-control {
border-radius: 10px;
}
2022-03-21 22:33:19 -04:00
.btn {
border-radius: 8px;
2022-02-28 13:29:17 -05:00
/*padding: 0.6rem 0.9em;*/
}
2022-03-21 22:33:19 -04:00
#username,
#password {
padding: 0.6rem calc( 0.9rem + 32px);
2022-02-28 13:29:17 -05:00
height: inherit;
}
2022-03-21 22:33:19 -04:00
label[for="username"],
label[for="password"] {
2022-02-28 13:29:17 -05:00
font-size: 1rem;
margin: 0 !important;
transform: translateY(30px) translateX(16px);
padding: 0;
}
2022-03-21 22:33:19 -04:00
2022-02-28 13:29:17 -05:00
/*label[for="password"]{*/
2022-03-21 22:33:19 -04:00
2022-02-28 13:29:17 -05:00
/* transform: translateY(32px) translateX(16px);*/
2022-03-21 22:33:19 -04:00
/*}*/
.modal-content {
border-radius: 10px;
}
2022-03-21 22:33:19 -04:00
.tooltip-inner {
font-size: 0.8rem;
}
@-webkit-keyframes loading {
2022-03-21 22:33:19 -04:00
0% {
background-color: #dfdfdf;
}
2022-03-21 22:33:19 -04:00
50% {
background-color: #adadad;
}
2022-03-21 22:33:19 -04:00
100% {
background-color: #dfdfdf;
}
}
2022-03-21 22:33:19 -04:00
@-moz-keyframes loading {
2022-03-21 22:33:19 -04:00
0% {
background-color: #dfdfdf;
}
2022-03-21 22:33:19 -04:00
50% {
background-color: #adadad;
}
2022-03-21 22:33:19 -04:00
100% {
background-color: #dfdfdf;
}
}
2022-03-21 22:33:19 -04:00
.conf_card {
transition: 0.2s ease-in-out;
}
2022-03-21 22:33:19 -04:00
.conf_card:hover {
border-color: #007bff;
cursor: pointer;
}
2022-03-21 22:33:19 -04:00
.info_loading {
/* animation: loading 2s infinite ease-in-out;
/* border-radius: 5px; */
height: 19.19px;
/* transition: 0.3s ease-in-out; */
/* transform: translateX(40px); */
opacity: 0 !important;
}
2022-03-21 22:33:19 -04:00
#conf_status_btn {
transition: 0.2s ease-in-out;
}
2022-03-21 22:33:19 -04:00
#conf_status_btn.info_loading {
height: 38px;
border-radius: 5px;
2021-12-30 15:21:25 -05:00
animation: loading 3s infinite ease-in-out;
}
2022-03-21 22:33:19 -04:00
#qrcode_img img {
width: 100%;
}
2022-03-21 22:33:19 -04:00
#selected_ip_list .badge,
#selected_peer_list .badge {
margin: 0.1rem
}
2022-03-21 22:33:19 -04:00
#add_modal.ip_modal_open {
transition: filter 0.2s ease-in-out;
filter: brightness(0.5);
2022-01-08 15:26:17 -05:00
}
2022-03-21 22:33:19 -04:00
#delete_bulk_modal .list-group a.active {
2022-01-08 15:26:17 -05:00
background-color: #dc3545;
border-color: #dc3545;
}
2022-03-21 22:33:19 -04:00
#selected_peer_list {
2022-01-08 15:26:17 -05:00
max-height: 80px;
overflow-y: scroll;
overflow-x: hidden;
2022-01-12 19:53:36 -05:00
}
2022-03-21 22:33:19 -04:00
.no-response {
2022-01-12 19:53:36 -05:00
width: 100%;
height: 100%;
position: fixed;
background: #000000ba;
z-index: 10000;
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
opacity: 0;
transition: all 1s ease-in-out;
}
2022-03-21 22:33:19 -04:00
.no-response.active {
2022-01-12 19:53:36 -05:00
display: flex;
}
2022-03-21 22:33:19 -04:00
.no-response.active.show {
2022-01-12 19:53:36 -05:00
opacity: 100;
}
2022-03-21 22:33:19 -04:00
.no-response .container>* {
2022-01-12 19:53:36 -05:00
text-align: center;
}
2022-03-21 22:33:19 -04:00
.no-responding {
2022-01-12 19:53:36 -05:00
transition: all 1s ease-in-out;
filter: blur(10px);
2022-01-13 09:37:23 -05:00
}
2022-03-21 22:33:19 -04:00
pre.index-alert {
2022-01-13 09:37:23 -05:00
margin-bottom: 0;
padding: 1rem;
background-color: #343a40;
2022-03-21 22:33:19 -04:00
border: 1px solid rgba(0, 0, 0, .125);
2022-01-13 09:37:23 -05:00
border-radius: .25rem;
margin-top: 1rem;
color: white;
2022-02-28 13:34:46 -05:00
}
2022-03-21 22:33:19 -04:00
.peerNameCol {
2022-02-28 13:34:46 -05:00
display: flex;
align-items: center;
margin-bottom: 0.2rem
}
2022-03-21 22:33:19 -04:00
.peerName {
margin: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2022-02-28 13:34:46 -05:00
}
2022-03-21 22:33:19 -04:00
.peerLightContainer {
text-transform: uppercase;
margin: 0;
margin-left: auto !important;
}
2022-03-21 22:33:19 -04:00
.conf_card .dot,
.info .dot {
transform: translateX(10px);
}
2022-03-21 22:33:19 -04:00
#config_body {
transition: 0.3s ease-in-out;
}
2022-03-21 22:33:19 -04:00
#config_body.firstLoading {
opacity: 0.2;
}
2022-03-21 22:33:19 -04:00
.chartTitle {
display: flex;
}
2022-03-21 22:33:19 -04:00
.chartControl {
margin-bottom: 1rem;
display: flex;
align-items: center;
}
2022-03-21 22:33:19 -04:00
.chartTitle h6 {
margin-bottom: 0;
line-height: 1;
margin-right: 0.5rem;
}
2022-03-21 22:33:19 -04:00
.chartContainer.fullScreen {
position: fixed;
z-index: 9999;
background-color: white;
top: 0;
left: 0;
2022-03-21 22:33:19 -04:00
width: calc( 100% + 15px);
height: 100%;
padding: 32px;
}
2022-03-21 22:33:19 -04:00
.chartContainer.fullScreen .col-sm {
padding-right: 0;
height: 100%;
}
2022-03-21 22:33:19 -04:00
.chartContainer.fullScreen .chartCanvasContainer {
width: 100%;
2022-03-21 22:33:19 -04:00
height: calc( 100% - 47px) !important;
max-height: calc( 100% - 47px) !important;
}
#switch{
transition: all 350ms ease-in;
}
2022-03-21 22:33:19 -04:00
.toggle--switch{
display: none;
}
.toggleLabel{
width: 64px;
height: 32px;
background-color: #6c757d17;
display: flex;
position: relative;
border: 2px solid #6c757d8c;
border-radius: 100px;
transition: all 350ms ease-in;
cursor: pointer;
margin: 0;
}
.toggle--switch.waiting + .toggleLabel{
opacity: 0.5;
}
.toggleLabel::before{
background-color: #6c757d;
height: 26px;
width: 26px;
content: "";
border-radius: 100px;
margin: 1px;
position: absolute;
animation-name: off;
animation-duration: 350ms;
animation-fill-mode: forwards;
transition: all 350ms ease-in;
cursor: pointer;
}
.toggle--switch:checked + .toggleLabel{
background-color: #007bff17 !important;
border: 2px solid #007bff8c;
}
.toggle--switch:checked + .toggleLabel::before{
background-color: #007bff;
animation-name: on;
animation-duration: 350ms;
animation-fill-mode: forwards;
}
@keyframes on {
0%{
left: 0px;
}
60%{
left: 0px;
width: 40px;
}
100%{
left: 32px;
width: 26px;
}
}
@keyframes off {
0%{
left: 32px;
}
60%{
left: 18px;
width: 40px;
}
100%{
left: 0px;
width: 26px;
}
}
.toast{
min-width: 300px;
background-color: rgba(255,255,255,1);
}
.toast-header{
background-color: rgba(255,255,255);
}
.toast-progressbar{
width: 100%;
height: 4px;
background-color: #007bff;
border-bottom-left-radius: .25rem;
}
.addConfigurationAvailableIPs{
margin-bottom: 0;
}
.input-feedback{
display: none;
2022-03-24 02:10:52 -04:00
}
#addConfigurationModal label{
display: flex;
width: 100%;
align-items: center;
}
#addConfigurationModal label a{
margin-left: auto !important;
}
#reGeneratePrivateKey{
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
2022-03-21 22:33:19 -04:00
}