sh_discord_bot/web/src/styles.scss

890 lines
15 KiB
SCSS
Raw Normal View History

2022-10-16 00:13:03 +02:00
@import "./styles/themes/default-light-theme.scss";
@import "./styles/themes/default-dark-theme.scss";
@import "./styles/themes/sh-edraft-dark-theme.scss";
@import "./styles/themes/sh-edraft-light-theme.scss";
@import "./styles/primeng-fixes.scss";
@import "./styles/constants.scss";
2023-03-08 14:38:08 +01:00
2022-10-16 00:13:03 +02:00
html,
body {
2023-03-08 14:38:08 +01:00
height: 100vh;
padding: 0;
margin: 0;
2022-10-17 18:12:43 +02:00
font-size: 1rem;
2023-03-08 14:38:08 +01:00
$scrollbarColor: #272727;
$scrollbarBackgroundColor: #888;
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background-color: $scrollbarBackgroundColor;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: $scrollbarColor;
border: 3px solid $scrollbarBackgroundColor;
border-radius: 10px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: $scrollbarColor;
}
2022-10-16 00:13:03 +02:00
}
main {
display: flex;
flex-direction: column;
min-height: 100vh;
2022-10-16 00:13:03 +02:00
}
2022-10-17 18:12:43 +02:00
h1 {
margin: 0;
font-size: 1.75rem;
2022-10-16 00:13:03 +02:00
}
h2 {
margin: 0;
font-size: 1.5rem;
2022-10-17 18:12:43 +02:00
}
h3 {
margin: 0;
font-size: 1.25rem;
2022-10-16 00:13:03 +02:00
}
header {
height: $headerHeight;
display: flex;
flex-direction: row;
2022-10-16 00:13:03 +02:00
.logo-button-wrapper {
display: flex;
align-items: center;
justify-content: center;
2022-10-16 00:13:03 +02:00
.p-button.p-button-text {
border: none;
2022-10-16 00:13:03 +02:00
}
}
2022-10-16 00:13:03 +02:00
.logo {
display: flex;
align-items: center;
2023-08-17 22:35:10 +02:00
overflow: hidden;
.app-name {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
2022-10-16 00:13:03 +02:00
.header-menu {
text-align: right;
flex: 1;
justify-content: flex-end;
margin: 0 5px 0 0;
}
2022-10-16 00:13:03 +02:00
.p-menu-overlay {
width: 180px !important;
}
2022-10-16 00:13:03 +02:00
}
.auth-header {
.p-menu-overlay {
width: 180px !important;
}
}
.auth-footer {
}
2022-10-16 00:13:03 +02:00
.app {
height: 100%;
display: flex;
flex: 1;
.sidebar-open {
2022-10-16 00:13:03 +02:00
height: 100%;
width: 175px;
}
.sidebar-closed {
height: 100%;
width: 75px;
}
2022-10-16 00:13:03 +02:00
h1 {
// table views with filters are scrollable with 10 items, when 30px margin
margin-bottom: 20px;
}
2022-10-16 00:13:03 +02:00
.component-wrapper {
width: 100%;
2023-08-17 22:35:10 +02:00
overflow: hidden;
2022-10-16 00:13:03 +02:00
.component {
width: 100%;
height: 100%;
padding: 15px;
.content-wrapper {
margin-bottom: 30px;
border-radius: 5px;
.content-header {
padding: 10px;
h2 {
font-size: 20px;
}
}
2022-10-16 00:13:03 +02:00
.content {
width: 100%;
display: flex;
flex-direction: column;
padding: 15px;
form {
input {
width: 100%;
}
}
2023-11-05 00:38:44 +01:00
td,
th {
p-dropdown,
.p-dropdown {
width: 100%;
}
}
.content-row {
display: flex;
flex-direction: row;
flex: 1;
margin: 5px 0;
gap: 5px;
2023-08-17 23:36:44 +02:00
.content-column {
display: flex;
flex: 1;
gap: 5px;
2023-08-17 23:36:44 +02:00
}
2023-08-17 23:36:44 +02:00
.content-data-name {
display: flex;
align-items: center;
2023-08-17 23:36:44 +02:00
font-size: 18px;
}
2023-08-17 23:36:44 +02:00
.content-data-value {
display: flex;
align-items: center;
2023-08-17 23:36:44 +02:00
font-size: 18px;
2023-08-17 09:56:21 +02:00
2023-08-17 23:36:44 +02:00
input {
width: 100% !important;
}
2023-08-17 09:56:21 +02:00
}
2023-08-17 23:36:44 +02:00
.content-data-value-row {
display: flex;
flex: 1;
flex-direction: column;
2023-08-17 23:36:44 +02:00
font-size: 18px;
}
}
.content-divider {
margin: 10px 0;
}
p-panel {
margin: 5px 0;
}
2023-02-20 21:22:33 +01:00
.dropdown-icon-label-wrapper {
display: flex;
flex-direction: row;
gap: 10px;
}
.content-input-field {
2023-08-17 23:36:44 +02:00
width: 75% !important;
margin: 0 !important;
}
.input-field {
2022-10-16 00:13:03 +02:00
width: 100%;
input,
.p-password {
width: 100%;
}
}
2022-10-16 00:13:03 +02:00
.input-field-info-text {
margin: 15px 0;
width: 100%;
}
2022-10-16 00:13:03 +02:00
.login-form-submit {
.login-form-submit-btn {
width: 100%;
}
}
2022-10-16 00:13:03 +02:00
.login-form-sub-button-wrapper {
display: flex;
flex-direction: column;
2022-10-16 00:13:03 +02:00
.login-form-sub-btn {
margin-top: 15px;
width: 100%;
}
2022-10-17 18:12:43 +02:00
.login-form-sub-btn-wrapper {
width: 100%;
}
}
.table-caption {
display: flex;
2022-10-17 18:12:43 +02:00
.table-caption-table-info {
display: flex;
flex: 1;
flex-direction: row;
gap: 25px;
2023-08-17 23:36:44 +02:00
align-items: center;
.table-caption-text {
display: flex;
align-items: center;
font-weight: 400;
}
.table-caption-column-select {
flex: 1;
}
}
2022-10-17 18:12:43 +02:00
.table-caption-search {
}
}
.table-header-label {
display: flex;
.table-header-text {
flex: 1;
}
.table-header-icon {
}
}
.table-header-small {
width: 75px;
}
.table-header-medium {
width: 150px;
}
.table-header-actions {
width: 100px;
}
.table-header-small-dropdown {
width: 150px;
}
.server-list-wrapper {
display: flex;
flex-direction: column;
gap: 10px;
.server-filter {
}
.server-count {
}
2022-10-17 18:12:43 +02:00
.server-list {
display: flex;
flex-direction: column;
2022-10-17 18:12:43 +02:00
gap: 15px;
.server {
display: flex;
gap: 15px;
padding: 20px;
2023-08-17 22:35:10 +02:00
overflow: hidden;
.logo {
2023-08-17 22:35:10 +02:00
display: flex;
align-items: center;
2023-08-17 23:36:44 +02:00
justify-content: center;
img {
width: 4rem;
height: 4rem;
object-fit: contain;
}
2022-10-16 00:13:03 +02:00
}
.info {
display: flex;
flex-direction: column;
2023-02-19 17:45:50 +01:00
width: 100%;
gap: 10px;
.name {
margin: 0;
justify-content: center;
align-items: center;
2023-08-17 22:35:10 +02:00
word-break: break-word;
}
.data {
}
2023-02-19 17:45:50 +01:00
.client-data {
display: flex;
flex-direction: row;
width: 100%;
.client-component {
width: 100%;
.client {
display: flex;
flex-direction: row;
align-content: stretch !important;
flex-wrap: wrap;
gap: 10px;
.client-info-small {
flex: 0.25 !important;
}
2023-02-19 17:45:50 +01:00
.client-info {
display: flex;
flex-direction: column;
flex: 1;
2023-02-19 17:45:50 +01:00
.client-info-header {
margin-bottom: 5px;
white-space: break-spaces;
2023-02-19 17:45:50 +01:00
font-weight: bold
}
.client-info-value {
word-break: break-word;
2023-02-19 17:45:50 +01:00
}
}
}
}
}
}
}
2022-10-16 00:13:03 +02:00
}
}
2022-10-16 00:13:03 +02:00
}
}
2022-10-16 00:13:03 +02:00
}
}
2022-10-16 00:13:03 +02:00
}
2023-03-08 14:38:08 +01:00
.history {
width: 300px;
.entry-list {
display: flex;
flex-direction: column;
gap: 15px;
.entry {
padding-bottom: 10px;
display: flex;
flex-direction: column;
gap: 5px;
.attribute {
display: flex;
gap: 5px;
.key {
width: 30%;
}
.seperator {
width: 10%;
}
.value {
width: 60%;
}
}
}
}
}
2022-10-16 00:13:03 +02:00
.p-dialog-header {
padding: 20px 20px 20px 20px !important;
2022-10-16 00:13:03 +02:00
}
.p-dialog-content {
padding: 20px !important;
2022-10-16 00:13:03 +02:00
}
.p-dialog-footer {
padding: 0 20px 20px 20px !important;
2022-10-16 00:13:03 +02:00
}
.p-dialog-content {
.content-row {
display: flex;
flex-direction: row;
flex: 1;
margin: 1.5px 0;
}
2022-10-16 00:13:03 +02:00
.content-column {
display: flex;
flex: 1;
}
2022-10-16 00:13:03 +02:00
.content-data-name {
display: flex;
flex: 1;
align-items: center;
2022-10-16 00:13:03 +02:00
font-size: 18px;
}
2022-10-16 00:13:03 +02:00
.content-data-value {
display: flex;
flex: 1;
align-items: center;
2022-10-16 00:13:03 +02:00
font-size: 18px;
2023-08-17 09:56:21 +02:00
input {
width: 100% !important;
}
}
2022-10-16 00:13:03 +02:00
.content-divider {
margin: 10px 0;
}
2022-10-16 00:13:03 +02:00
.content-input-field {
width: 50% !important;
margin: 0 !important;
}
2022-10-16 00:13:03 +02:00
}
footer {
width: 100%;
2023-08-17 22:35:10 +02:00
min-height: $footerHeight;
padding: 0 10px;
2022-10-16 00:13:03 +02:00
display: flex;
align-items: center;
justify-content: center;
2022-10-16 00:13:03 +02:00
.left {
width: 50%;
display: flex;
2023-08-17 22:35:10 +02:00
gap: 10px;
}
.right {
width: 50%;
2023-08-17 22:35:10 +02:00
display: flex;
2023-08-17 23:36:44 +02:00
align-items: flex-end;
text-align: right;
2023-08-17 22:35:10 +02:00
justify-content: right;
gap: 10px;
.p-button-label {
font-weight: unset !important;
}
}
2022-10-16 00:13:03 +02:00
}
.login-wrapper {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 15px;
.login-form-wrapper,
.auth-header,
.auth-footer {
width: 350px;
height: 450px;
2022-10-16 00:13:03 +02:00
display: flex;
justify-content: center;
align-items: center;
border-radius: 25px;
2022-10-16 00:13:03 +02:00
.login-form {
width: 80%;
height: 80%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
2022-10-16 00:13:03 +02:00
h1 {
text-align: center;
}
2022-10-16 00:13:03 +02:00
.input-field-info-text {
margin: 15px 0;
width: 100%;
}
2022-10-16 00:13:03 +02:00
.login-form-submit {
.login-form-submit-btn {
width: 100%;
}
}
2022-10-16 00:13:03 +02:00
.login-form-sub-button-wrapper {
display: flex;
flex-direction: column;
2022-10-16 00:13:03 +02:00
.login-form-sub-btn {
margin-top: 15px;
width: 100%;
}
2022-10-16 00:13:03 +02:00
.login-form-sub-btn-wrapper {
width: 100%;
2022-10-16 00:13:03 +02:00
}
}
2022-10-16 00:13:03 +02:00
}
}
2022-10-16 00:13:03 +02:00
.register-form-wrapper {
height: 600px;
}
2022-10-16 00:13:03 +02:00
.register-confirm-form-wrapper {
height: 250px;
}
.auth-header {
width: 350px;
height: 75px;
}
.auth-footer {
width: 350px;
height: 75px;
}
2022-10-16 00:13:03 +02:00
}
.input-field {
margin: 15px 0;
2022-10-16 00:13:03 +02:00
input,
.p-password {
height: 40px;
width: 100%;
font-size: 18px;
}
2022-10-16 00:13:03 +02:00
}
.btn {
border: 0;
2022-10-16 00:13:03 +02:00
}
2023-11-14 23:45:39 +01:00
.btn,
.icon-btn,
.text-btn,
.danger-btn,
.danger-icon-btn {
span {
transition-duration: unset !important;
}
transition: none !important;
}
2022-10-16 00:13:03 +02:00
.spinner-component-wrapper {
position: absolute;
top: 0;
width: 100vw;
height: 100vh;
2022-10-16 00:13:03 +02:00
display: flex;
flex-direction: row;
justify-content: center;
.spinner-wrapper {
2022-10-16 00:13:03 +02:00
display: flex;
justify-content: center;
align-items: center;
}
2022-10-16 00:13:03 +02:00
}
.hidden-column {
display: none;
}
2023-08-17 09:56:21 +02:00
p-inputNumber {
padding: 0 !important;
border: none !important;
}
2023-08-17 22:35:10 +02:00
2023-11-14 23:45:39 +01:00
.edit-dialog {
.p-dialog-content {
padding: 0 !important;
.p-tabview-nav {
justify-content: space-between;
li {
width: 100%;
a {
width: 100%;
justify-content: center;
}
}
}
2023-11-18 22:15:18 +01:00
}
.form {
display: flex;
flex-direction: column;
gap: 20px;
textarea {
min-height: 101px !important;
2023-11-14 23:45:39 +01:00
2023-11-18 22:15:18 +01:00
&:focus {
box-shadow: none !important;
}
}
.type {
display: flex;
flex-direction: column;
gap: 10px;
.field-checkbox {
display: flex;
gap: 15px;
}
}
input,
.p-dropdown {
width: 100%;
}
}
}
2023-11-14 23:45:39 +01:00
2023-11-18 22:15:18 +01:00
p-calendar {
.p-calendar {
width: 100% !important;
2023-11-14 23:45:39 +01:00
}
}
2023-08-17 22:35:10 +02:00
@media (max-width: 720px) {
footer {
.left,
.right {
flex-direction: column;
.divider {
display: none;
}
}
}
.p-panelmenu {
.p-menuitem-text {
display: none;
}
}
2023-08-17 23:36:44 +02:00
.app {
.sidebar-open {
width: 65px;
}
.sidebar-closed {
display: none;
}
2023-08-17 23:36:44 +02:00
.component-wrapper {
.component {
.content-wrapper {
.content {
2023-08-19 13:06:07 +02:00
.client {
flex-direction: column !important;
}
2023-08-17 23:36:44 +02:00
.server-list-wrapper {
.server-list {
.server {
flex-direction: column;
}
}
}
.table-caption {
flex-direction: column;
.table-caption-btn-wrapper {
.p-button {
padding: 0.75rem 0 !important;
}
}
.table-caption-table-info,
.table-caption-btn-wrapper {
flex-direction: column;
align-items: baseline !important;
.p-multiselect-chip .p-multiselect-label {
flex-direction: column !important;
}
}
}
.content-row {
.content-column {
flex-direction: column;
word-break: break-word;
}
}
}
}
}
}
}
.p-datatable-wrapper {
border-top: 1px solid white;
}
.hidden-column {
display: none !important;
}
app-multi-select-columns {
width: 100%;
}
2023-08-18 16:50:19 +02:00
app-config-list,
app-feature-flag-list {
2023-08-17 23:36:44 +02:00
.content-row {
.content-column {
flex-direction: column;
.content-data-name {
}
.content-data-value-row {
.content-table-row {
flex-direction: column;
2023-08-18 16:50:19 +02:00
p-inputSwitch {
display: flex;
justify-content: center !important;
}
p-cellEditor {
justify-content: center !important;
}
2023-08-17 23:36:44 +02:00
}
}
}
}
}
2023-08-17 22:35:10 +02:00
td {
.btn-wrapper {
width: 100%;
justify-content: center;
}
}
.p-column-title {
min-width: 50%;
font-weight: 600;
word-break: break-word;
}
2023-08-18 00:42:58 +02:00
p-cellEditor {
width: 100%;
display: flex;
justify-content: flex-end;
text-align: end;
word-break: break-word;
2023-08-18 00:42:58 +02:00
}
2023-08-17 23:36:44 +02:00
.p-multiselect {
width: 100% !important;
}
.p-paginator {
flex-direction: column !important;
align-items: center;
justify-content: center;
}
.p-panel-content {
display: flex;
flex-direction: column;
gap: 10px;
.content-row {
flex-direction: column !important;
gap: 5px;
}
}
2023-08-17 22:35:10 +02:00
}