uptime-kuma/src/assets/app.scss

353 lines
6.5 KiB
SCSS
Raw Normal View History

2021-06-25 09:55:49 -04:00
@import "vars.scss";
@import "node_modules/bootstrap/scss/bootstrap";
#app {
2021-08-24 11:38:25 -04:00
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji;
2021-06-25 09:55:49 -04:00
}
2021-08-08 09:42:37 -04:00
h1 {
font-size: 32px;
2021-08-08 09:42:37 -04:00
}
h2 {
font-size: 26px;
}
2021-08-08 09:03:10 -04:00
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-thumb {
2021-08-24 11:38:25 -04:00
background: #ccc;
2021-08-08 09:03:10 -04:00
border-radius: 20px;
}
.modal {
backdrop-filter: blur(3px);
}
.modal-content {
border-radius: 1rem;
2021-08-24 11:38:25 -04:00
box-shadow: 0 15px 70px rgba(0, 0, 0, 0.1);
.dark & {
box-shadow: 0 15px 70px rgb(0 0 0);
background-color: $dark-bg;
}
}
.VuePagination__count {
font-size: 13px;
text-align: center;
}
2021-06-25 09:55:49 -04:00
.shadow-box {
2021-08-08 09:03:10 -04:00
//overflow: hidden; // Forget why add this, but multiple select hide by this
2021-08-24 11:38:25 -04:00
box-shadow: 0 15px 70px rgba(0, 0, 0, 0.1);
2021-06-25 09:55:49 -04:00
padding: 10px;
2021-07-13 00:16:11 -04:00
border-radius: 10px;
2021-06-25 09:55:49 -04:00
&.big-padding {
padding: 20px;
}
}
.btn {
padding-left: 20px;
padding-right: 20px;
}
.btn-primary {
2021-07-13 00:16:11 -04:00
color: white;
2021-06-25 09:55:49 -04:00
2021-07-13 00:16:11 -04:00
&:hover, &:active, &:focus, &.active {
color: white;
2021-06-25 09:55:49 -04:00
background-color: $highlight;
border-color: $highlight;
}
.dark & {
color: $dark-font-color2;
}
2021-06-29 04:06:20 -04:00
}
2021-06-25 15:03:06 -04:00
.btn-warning {
color: white;
&:hover, &:active, &:focus, &.active {
color: white;
}
}
2021-08-21 07:50:22 -04:00
.btn-info {
color: white;
2021-08-21 07:50:22 -04:00
&:hover, &:active, &:focus, &.active {
color: white;
}
}
@media (max-width: 550px) {
.table-shadow-box {
2021-08-22 19:22:55 -04:00
padding: 10px !important;
thead {
display: none;
}
2021-08-22 19:22:55 -04:00
2021-08-24 11:38:25 -04:00
tbody {
.shadow-box {
background-color: white;
}
}
tr {
margin-top: 0 !important;
2021-08-23 21:14:33 -04:00
padding: 4px 10px !important;
display: block;
2021-08-23 21:14:33 -04:00
margin-bottom: 6px;
2021-08-24 07:24:35 -04:00
td:first-child {
font-weight: bold;
}
2021-08-24 10:27:26 -04:00
2021-08-24 07:24:35 -04:00
td:nth-child(-n+3) {
text-align: center;
}
td:last-child {
text-align: left;
}
td {
border-bottom: 1px solid $dark-font-color;
display: block;
2021-08-23 21:14:33 -04:00
padding: 4px;
.badge {
2021-08-24 07:24:35 -04:00
margin: auto;
2021-08-23 21:14:33 -04:00
display: block;
2021-08-24 07:24:35 -04:00
width: 30%;
2021-08-23 21:14:33 -04:00
}
}
}
2021-08-22 19:22:55 -04:00
}
}
// Dark Theme override here
.dark {
2021-08-24 11:38:25 -04:00
background-color: #090c10;
color: $dark-font-color;
2021-08-29 14:22:49 -04:00
&::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb {
2021-08-08 09:03:10 -04:00
background: $dark-border-color;
}
.shadow-box {
background-color: $dark-bg;
}
.form-check-input {
background-color: $dark-bg2;
}
.form-switch .form-check-input {
background-color: #232f3b;
}
a,
.table,
.nav-link {
color: $dark-font-color;
2021-08-21 07:50:22 -04:00
&.btn-info {
color: white;
}
}
.form-control,
.form-control:focus,
.form-select,
.form-select:focus {
color: $dark-font-color;
background-color: $dark-bg2;
}
.form-control, .form-select {
border-color: $dark-border-color;
}
.table-hover > tbody > tr:hover {
2021-08-24 11:38:25 -04:00
--bs-table-accent-bg: #070a10;
color: $dark-font-color;
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
color: $dark-font-color2;
}
.bg-primary {
color: $dark-font-color2;
}
.btn-secondary {
color: white;
}
.btn-warning {
color: $dark-font-color2;
&:hover, &:active, &:focus, &.active {
color: $dark-font-color2;
}
}
.btn-close {
box-shadow: none;
2021-08-09 11:56:44 -04:00
filter: invert(1);
&:hover {
opacity: 0.6;
}
}
.modal-header {
border-color: $dark-bg;
}
.modal-footer {
border-color: $dark-bg;
}
// Pagination
.page-item.disabled .page-link {
background-color: $dark-bg;
border-color: $dark-border-color;
}
.page-link {
background-color: $dark-bg;
border-color: $dark-border-color;
color: $dark-font-color;
}
2021-08-08 03:02:33 -04:00
// Multiselect
.multiselect__tags {
background-color: $dark-bg2;
border-color: $dark-border-color;
}
.multiselect__input, .multiselect__single {
background-color: $dark-bg2;
color: $dark-font-color;
}
.multiselect__content-wrapper {
background-color: $dark-bg2;
2021-08-08 09:03:10 -04:00
border-color: $dark-border-color;
2021-08-08 03:02:33 -04:00
}
2021-08-08 09:14:29 -04:00
.multiselect--above .multiselect__content-wrapper {
border-color: $dark-border-color;
2021-08-08 03:02:33 -04:00
}
.multiselect__option--selected {
background-color: $dark-bg;
}
2021-09-11 11:43:07 -04:00
.monitor-list {
.item {
&:hover {
background-color: $dark-bg2;
}
&.active {
background-color: $dark-bg2;
}
}
}
@media (max-width: 550px) {
.table-shadow-box {
tbody {
.shadow-box {
background-color: $dark-bg2;
2021-08-24 10:27:26 -04:00
td {
border-bottom: 1px solid $dark-border-color;
}
}
}
}
}
}
2021-08-19 14:37:59 -04:00
/*
* Transitions
*/
// page-change
.slide-fade-enter-active {
2021-08-24 11:38:25 -04:00
transition: all 0.2s $easing-in;
2021-08-19 14:37:59 -04:00
}
2021-08-24 11:38:25 -04:00
2021-08-19 14:37:59 -04:00
.slide-fade-leave-active {
2021-08-24 11:38:25 -04:00
transition: all 0.2s $easing-in;
2021-08-19 14:37:59 -04:00
}
2021-08-24 11:38:25 -04:00
2021-08-19 14:37:59 -04:00
.slide-fade-enter-from,
.slide-fade-leave-to {
transform: translateY(50px);
opacity: 0;
}
2021-09-11 11:43:07 -04:00
2021-09-13 07:21:39 -04:00
.slide-fade-right-enter-active {
transition: all 0.2s $easing-in;
}
.slide-fade-right-leave-active {
transition: all 0.2s $easing-in;
}
.slide-fade-right-enter-from,
.slide-fade-right-leave-to {
transform: translateX(50px);
opacity: 0;
}
2021-09-11 11:43:07 -04:00
.monitor-list {
&.scrollbar {
min-height: calc(100vh - 240px);
max-height: calc(100vh - 30px);
overflow-y: auto;
position: sticky;
top: 10px;
}
.item {
display: block;
text-decoration: none;
padding: 13px 15px 10px 15px;
border-radius: 10px;
transition: all ease-in-out 0.15s;
&.disabled {
opacity: 0.3;
}
.info {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&:hover {
background-color: $highlight-white;
}
&.active {
background-color: #cdf8f4;
}
}
}