Corban-Lee 049beb778f
All checks were successful
Build and Push Docker Image / build (push) Successful in 17s
yellow dot - mobile friendly
2024-09-18 14:13:00 +01:00

164 lines
2.8 KiB
CSS

@keyframes bump {
0% {
transform: translateY(0);
}
50% {
transform: translateY(5px); /* Adjust the height of the bump */
}
100% {
transform: translateY(0);
}
}
.bump {
animation: bump .2s ease-out;
}
/*
.server-item.active img {
border-radius: .75rem !important;
}
.server-item-selector:hover img, .server-item-selector:focus img, .server-item-selector:focus-visible img {
border-radius: .75rem !important;
}
.server-item-selector:active, .server-item-selector:focus, .server-item-selector:focus-visible {
animation: bump .2s ease-out;
}
.server-item-selector img {
transition: border-radius .15s ease-in;
} */
.server-sidebar {
width: 16rem;
}
@media (max-width: 992px) {
.server-sidebar {
width: 4.5rem;
}
.server-item > button {
padding: 0.25rem !important;
}
.server-item > button > div {
justify-content: center !important;
}
.server-item .server-item-labels {
display: none !important;
}
.server-sidebar > ul > li:has(> #newServerBtn) {
display: flex;
justify-content: center !important;
}
#newServerBtn {
width: 45px !important;
height: 45px !important;
padding: 0 !important;
}
}
.server-item {
max-width: calc(16rem - 1rem);
}
.server-item-selector {
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: nowrap;
background-color: var(--bg-tertiary-bg);
transition: 0.3s;
}
.server-item-selector:hover {
background-color: var(--bs-secondary-bg);
}
.server-item-selector:active, .server-item-selector.active {
background-color: var(--bs-secondary-bg) !important;
}
/* widths */
.mw-10rem {
max-width: 10rem;
}
.col-switch-width {
width: 3.5rem;
min-width: 3.5rem;
max-width: 3.5rem;
}
/* tables */
.table {
color: var(--bs-body-color) !important;
}
.table tbody tr.selected > * {
box-shadow: inset 0 0 0 9999px rgba(var(--bs-secondary-bg-rgb), 0.9) !important;
color: var(--bs-body-color) !important;
}
.table.dataTable > tbody > tr.selected a {
color: var(--bs-link-color) !important;
}
/* Fuck ugly <td> height fix */
td {
height: 1px;
text-wrap: nowrap;
}
td > .btn-link {
padding-left: 0;
}
@-moz-document url-prefix() {
tr {
height: 100%;
}
td {
height: 100%;
}
}
#serverTabs .nav-link {
border-radius: 0;
}
#serverTabs .nav-link:not(.active) {
color: var(--bs-text-body);
}
/* Yellow Dot Indicator for the server sidebar */
.dot-container {
width: .75rem;
height: .75rem;
display: flex;
position: absolute;
top: 0;
right: 0;
}
@media (max-width: 992px) {
.dot-container {
transform: translate(25%, -25%);
}
}
.dot-icon {
height: .75rem;
width: .75rem;
background-color: var(--bs-primary);
border-radius: 50%;
display: inline-block;
}