Files
rengine/web/static/custom/custom.css
T
2024-09-04 09:05:08 +05:30

851 lines
15 KiB
CSS

/* make container 100% */
body[data-layout-mode=horizontal] .container-fluid {
max-width: 100% !important;
}
#topnav-menu-content .navbar-nav .nav-link {
font-size: .90rem !important;
padding: calc(33px / 2) 0.7rem !important;
}
.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .show>.nav-link{
color: #3283f6;
}
.text-sm-logo{
color:#fff;
font-size: 21px;
margin-left: 5px !important;
}
.text-lg-logo{
color:#fff;
font-size: 30px;
}
.vertical-center{
margin: 0;
position: absolute;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.text-low {
color: #FDD835;
}
.text-critical {
color: #E53935;
}
.badge-critical {
color: #E53935;
background-color: #FFCDD2;
}
.badge-low {
color: #FFB300;
background-color: #FFE082;
}
.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus {
border-color: rgba(33, 150, 243, 0.8);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(126, 239, 104, 0.6);
outline: 0 none;
}
input[type="text"][disabled] {
background-color: #E0E0E0;
color: #6C6C6C;
border-color: #BDBDBD;
}
.form-control:disabled, .form-control[readonly] {
background-color: #E0E0E0;
color: #6C6C6C;
border-color: #BDBDBD;
}
.accordion-item{
margin-top: -10px;
}
/* jquery steps for scan engine */
.wizard > .content > .body{
padding: 1% !important;
}
/* select2 badges */
.select2-container--default .select2-selection--multiple .select2-selection__rendered li{
list-style: none;
}
.select2-container .select2-selection--multiple .select2-selection__choice{
background-color: #3283f6 !important;
border: none !important;
color: #fff !important;
border-radius: 3px !important;
padding: 0 7px !important;
margin-top: 6px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
color: #fff !important;
}
.select2-selection__rendered {
line-height: 31px !important;
}
.select2-container .select2-selection--single {
height: 35px !important;
}
.select2-selection__arrow {
height: 34px !important;
}
.badge {
font-weight: 600 !important;
line-height: 1.4 !important;
padding: 3px 6px !important;
font-size: 13px !important;
font-weight: 600 !important;
transition: all 0.3s ease-out !important;
-webkit-transition: all 0.3s ease-out !important;
}
/* grow datatables search section */
div.dataTables_wrapper div.dataTables_filter input {
width: 100%;
float: left;
transition: all .2s ease-in-out;
}
div.dataTables_wrapper div.dataTables_filter input:focus {
width: 300%;
transform: scale(1);
}
.badge-link {
cursor: pointer;
}
.right-bar{
width: 460px;
right: -470px;
}
/* theme toggle theme-switch */
.toggle-theme-switch {
vertical-align: middle;
margin-top: 3px;
}
/* fe icon sizes */
.icon-sml {
width: 15px;
height: 15px;
}
.icon-med {
font-size: 25px;
}
.icon-lrg {
width: 35px;
height: 35px;
}
/* domain details table */
.domain_details_table{
padding: 3px;
}
table.domain_details_table{
width: 100%;
}
table.domain_details_table tr {
width: 465px;
padding-top: 5px;
}
table.domain_details_table td {
border-radius: 2px;
padding: 4px;
}
table.domain_details_table td:nth-child(1) {
width: 125px;
font-weight: bold;
}
/* for autocom dropdown suggestion */
/* Source https://www.codingnepalweb.com/search-bar-autocomplete-search-suggestions-javascript/ */
.wrapper{
margin-bottom: 20px;
}
.wrapper .search-input{
background: #fff;
width: 100%;
border-radius: 6px;
position: relative;
box-shadow: 0px 1px 5px 3px rgba(0,0,0,0.12);
}
.search-input input{
height: 55px;
width: 100%;
outline: none;
border: none;
border-radius: 4px;
padding: 0 60px 0 20px;
font-size: 16px;
box-shadow: 0px 1px 5px rgba(0,0,0,0.1);
}
.search-input button{
height: 55px;
font-size: 16px;
}
.search-input.active input{
border-radius: 5px 5px 0 0;
}
.search-input .autocom-box{
max-height: 250px;
position: absolute;
z-index: 1000000;
background: #fff;
opacity: 0;
width: 100%;
box-shadow: 0px 1px 5px rgba(0,0,0,0.1);
}
.search-input.active .autocom-box{
padding: 10px 8px;
opacity: 1;
pointer-events: auto;
box-shadow: 0px 1px 5px rgba(0,0,0,0.1);
}
.autocom-box li{
list-style: none;
padding: 8px 12px;
display: none;
width: 100%;
cursor: default;
border-radius: 3px;
}
.search-input.active .autocom-box li{
display: block;
}
.autocom-box li:hover{
background: #efefef;
}
.search-input .icon{
position: absolute;
right: 0px;
top: 0px;
height: 55px;
width: 55px;
text-align: center;
line-height: 55px;
font-size: 20px;
color: #644bff;
cursor: pointer;
}
div.dataTables_wrapper div.dataTables_processing {
top: 5%;
}
/* border radius for input */
.br-30{
border-radius: 30px !important;
}
/* no padding tab content */
.no-padding-tab{
padding: 0px !important;
}
/* visualisation */
.node {
cursor: pointer;
}
.node circle {
fill: #fff;
stroke: steelblue;
stroke-width: 1.5px;
}
.node text {
font-size:14px;
font-family:sans-serif;
}
.link {
fill: none;
stroke: #ccc;
stroke-width: 1.5px;
}
.templink {
fill: none;
stroke: red;
stroke-width: 3px;
}
#visualisation-svg{
background-color: #fff;
}
.svg-text-primary {
fill: #0d6efd;
}
.svg-text-success {
fill: #198754;
}
.svg-text-danger {
fill: #dc3545;
}
.svg-text-critical {
fill: #dc3545;
}
.svg-text-warning {
fill: #ffc107;
}
.svg-text-low {
fill: #ffc107;
}
.alert-text-fit {
display:inline-block;
}
div.dataTables_wrapper div.dataTables_processing {
top: 5%;
}
.mini-card-body{
flex: 1 1 auto;
padding: 0.5rem 1.5rem;
}
.mini-card-header{
padding: 0.3rem 1rem;
}
.mini-card{
margin-bottom: 10px;
}
tr.group,
tr.group:hover {
background-color: #ddd !important;
}
.navbar-custom .app-search{
max-width: 300px !important;
}
mark{
background-color: #FFEB3B;
color: #000;
}
.offcanvas-size-lg {
width: min(95vw, 700px) !important;
}
.tab-content .card-body {
padding-left: 0.8rem !important;
padding-right: 0.8rem !important;
}
.scan-config-modal .config-list {
max-height: 300px;
overflow-y: auto;
padding-left: 20px;
}
.scan-config-modal .config-list li {
padding: 5px 0;
}
.scan-config-modal .badge {
margin-left: 5px;
}
/*.notification-a-icon {
}*/
.badge-notif-count {
font-size: 10px !important;
}
.notif-counter {
top: 9px !important;
right: 5px !important;
}
.notification-panel-dropdown {
width: 400px;
border: none;
border-radius: 8px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
padding: 0;
overflow: hidden;
}
.notification-panel-header {
background-color: #f8f9fa;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.notification-panel-clear-link {
color: #6c757d;
text-decoration: none;
font-size: 0.875rem;
transition: color 0.2s ease;
}
.notification-panel-clear-link:hover {
color: #495057;
}
.notification-panel-body {
max-height: 400px;
/* overflow-y: auto; */
}
.notification-panel-item {
border-left: 4px solid transparent;
transition: all 0.3s ease;
margin-bottom: 2px;
}
.notification-panel-item:last-child {
border-bottom: none;
}
.notification-panel-item:hover {
transform: translateY(-2px);
box-shadow: 0 2px 0px rgba(0, 0, 0, 0.10);
}
/* status */
.notification-panel-status-success {
border-left-color: #10B981;
}
.notification-panel-status-info {
border-left-color: #3B82F6;
}
.notification-panel-status-warning {
border-left-color: #F59E0B;
}
.notification-panel-status-error {
border-left-color: #EF4444;
}
.notification-panel-unread {
background-color: #F3F4F6;
}
.notification-panel-unread:hover {
background-color: #E5E7EB;
}
.notification-panel-icon {
font-size: 1.25rem;
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 50%;
background-color: #E5E7EB;
}
.notification-panel-title {
font-size: 0.95rem;
font-weight: 600;
}
.notification-panel-status-success .notification-panel-title {
color: #10B981;
}
.notification-panel-status-info .notification-panel-title {
color: #3B82F6;
}
.notification-panel-status-warning .notification-panel-title {
color: #F59E0B;
}
.notification-panel-status-error .notification-panel-title {
color: #EF4444;
}
.notification-panel-description {
color: #4B5563;
font-size: 0.875rem;
margin-bottom: 0.25rem;
line-height: 1.4;
}
.notification-panel-time {
color: #6B7280;
font-size: 0.8rem;
}
.notification-panel-footer {
background-color: #f8f9fa;
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.notification-panel-view-all {
color: #007bff;
text-decoration: none;
font-size: 0.875rem;
font-weight: 600;
transition: color 0.2s ease;
}
.notification-panel-view-all:hover {
color: #0056b3;
}
.notification-panel-status-success .notification-panel-icon {
color: #10B981;
}
.notification-panel-status-info .notification-panel-icon {
color: #3B82F6;
}
.notification-panel-status-warning .notification-panel-icon {
color: #F59E0B;
}
.notification-panel-status-error .notification-panel-icon {
color: #EF4444;
}
@keyframes notification-buzz {
0% { transform: translateX(0) rotate(0); }
15% { transform: translateX(-5px) rotate(-5deg); }
30% { transform: translateX(5px) rotate(5deg); }
45% { transform: translateX(-4px) rotate(-4deg); }
60% { transform: translateX(4px) rotate(4deg); }
75% { transform: translateX(-2px) rotate(-2deg); }
90% { transform: translateX(2px) rotate(2deg); }
100% { transform: translateX(0) rotate(0); }
}
.notification-bell-icon.buzz {
animation: notification-buzz 0.8s ease-out;
}
.card-selectable {
transition: all 0.3s ease;
cursor: pointer;
}
.card-selectable:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card-selected {
border: 2px solid #007bff;
background-color: rgba(0,123,255,0.05);
}
.bbp-bookmark-label {
cursor: pointer;
transition: color 0.3s ease;
}
.bbp-bookmark-label:hover {
color: #ffc107;
}
.bbp-bookmark-checkbox:checked + .bbp-bookmark-label {
color: #ffc107;
}
.floating-action-container {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 15px;
}
.import-programs-btn {
padding: 12px 24px;
font-size: 14px;
color: #fff;
background-color: #007bff;
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
opacity: 0.7;
pointer-events: none;
}
.import-programs-btn:not(:disabled) {
opacity: 1;
pointer-events: auto;
}
.import-programs-btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.import-programs-btn:active {
transform: translateY(-1px);
box-shadow: 0 5px 7px rgba(0, 0, 0, 0.1);
}
.import-programs-btn i {
margin-right: 8px;
}
.clear-selections-link {
font-size: 14px;
color: #6c757d;
text-decoration: none;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 5px;
padding: 8px 12px;
border-radius: 20px;
background-color: rgba(255, 255, 255, 0.9);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.clear-selections-link:hover {
color: #495057;
background-color: #fff;
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.clear-selections-link i {
font-size: 16px;
}
.program-card-wrapper {
transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.filtering-hide {
opacity: 0;
transform: scale(0.8);
}
@keyframes enableButton {
0% {
transform: translateX(-50%) scale(0.9);
opacity: 0.7;
}
50% {
transform: translateX(-50%) scale(1.05);
}
100% {
transform: translateX(-50%) scale(1);
opacity: 1;
}
}
@keyframes disableButton {
0% {
transform: translateX(-50%) scale(1);
opacity: 1;
}
100% {
transform: translateX(-50%) scale(0.9);
opacity: 0.7;
}
}
.import-programs-btn:disabled {
animation: disableButton 0.3s ease forwards;
}
/* update on counter increase */
@keyframes gentlePulse {
0% {
box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
}
}
@keyframes colorTransition {
0% {
background-color: #007bff;
}
100% {
background-color: #007bff;
}
}
.import-programs-btn {
transition: all 0.3s ease;
}
.import-programs-btn:not(:disabled) {
animation: gentlePulse 1.5s infinite;
}
.import-programs-btn.button-updated {
animation: gentlePulse 1.5s infinite, colorTransition 0.5s ease;
}
.program-profile-picture {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 50%;
border: 2px solid #e9ecef;
}
.program-stat-card {
background-color: #f8f9fa;
border-radius: 8px;
padding: 1.25rem;
transition: all 0.2s ease;
}
.program-stat-card:hover {
background-color: #e9ecef;
}
.custom-program-accordion .accordion-button {
background-color: #f8f9fa;
color: #333;
font-weight: 500;
padding: 0.75rem 1rem;
border-radius: 4px;
margin-bottom: 0.5rem;
}
.custom-program-accordion .accordion-button:not(.collapsed) {
background-color: #e9ecef;
color: #0d6efd;
}
.custom-program-accordion .accordion-body {
background-color: #ffffff;
border-radius: 0 0 4px 4px;
border: 1px solid #e9ecef;
padding: 0.75rem;
}
.custom-program-accordion .accordion-body ul {
list-style-type: none;
padding-left: 0;
margin-bottom: 0;
}
.custom-program-accordion .accordion-body li {
padding: 0.25rem 0;
}
.program-modal-asset-card {
transition: all 0.3s ease;
cursor: pointer;
}
.program-modal-asset-card:hover {
transform: translateY(-5px);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.program-modal-asset-card:active {
transform: translateY(-2px);
}
.accordion-button:not(.collapsed) {
color: #0d6efd;
background-color: #e7f1ff;
}
.accordion-button:focus {
box-shadow: none;
border-color: rgba(0,0,0,.125);
}
.program-asset-name {
line-height: 1.2;
max-height: 2.4em;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
}
.program-asset-name-text {
word-break: break-word;
font-size: small;
}
.program-modal-body {
max-height: 500px;
overflow-y: auto;
}
.program-modal-body::-webkit-scrollbar {
display: none; /* replace with data scrollbar */
}
.program-modal-body {
scrollbar-width: none; /* firefox */
}