Files
cloudron-box/dashboard/src/style.css

254 lines
4.0 KiB
CSS
Raw Normal View History

2025-03-16 11:12:49 +01:00
:root {
--font-family: "Noto Sans",Helvetica,Arial,sans-serif;
--font-family--header: "Noto Sans Light",Helvetica,Arial,sans-serif;
--card-background: #f7f7f8;
--navbar-background: #f3f4f6;
--pankow-text-color: black;
--pankow-color-primary: #0073cf;
--pankow-color-primary-hover: #0d89ec;
--pankow-color-primary-active: #0b7ad1;
2025-03-16 11:12:49 +01:00
}
2025-01-17 12:24:48 +01:00
2025-03-16 11:12:49 +01:00
@media (prefers-color-scheme: dark) {
:root {
--card-background: #15181f;
--navbar-background: #11161f;
--pankow-dialog-background-color: var(--navbar-background);
--pankow-color-background: var(--navbar-background);
--pankow-text-color: white;
}
}
html, body {
font-size: 15px; /* this also defines the overall widget size as all sizes are in rem */
2025-03-16 11:12:49 +01:00
font-family: var(--font-family);
2024-12-14 20:28:34 +01:00
font-weight: 300;
2023-02-19 17:13:33 +01:00
height: 100%;
width: 100%;
padding: 0;
2023-02-22 16:20:07 +01:00
margin: 0;
2024-06-13 12:19:03 +02:00
color: var(--pankow-text-color);
background-color: white;
background-position: center;
background-size: cover;
2023-02-19 17:13:33 +01:00
}
@media (prefers-color-scheme: dark) {
body {
background-color: black;
}
}
2023-02-23 13:16:21 +01:00
.shadow {
box-shadow: 0 2px 5px rgba(0,0,0,.1);
}
#app {
height: 100%;
2023-02-27 00:33:07 +01:00
}
2024-12-14 20:28:34 +01:00
2025-03-16 11:12:49 +01:00
h1, h2, h3, h4, h5 {
font-family: var(--font-family--header);
2024-12-14 20:28:34 +01:00
font-weight: 400;
2025-03-16 11:12:49 +01:00
}
h2 {
2025-01-14 15:52:12 +01:00
font-size: 24px;
2024-12-14 20:28:34 +01:00
}
a {
text-decoration: none;
color: var(--pankow-color-primary);
}
2024-12-14 21:17:51 +01:00
2025-03-16 11:12:49 +01:00
fieldset {
border: none;
margin: 0;
padding: 0;
}
hr {
border: 0;
border-top: 1px solid rgb(238.425,238.425,238.425);
}
2025-01-16 17:31:36 +01:00
.content {
max-width: 1280px;
width: 100%;
position: absolute;
2025-01-16 17:31:36 +01:00
}
2025-01-16 12:24:15 +01:00
.header {
margin-top: 50px;
padding-left: 15px;
padding-right: 15px;
2025-01-16 12:24:15 +01:00
}
2025-01-15 12:31:35 +01:00
.header-with-button {
display: flex;
justify-content: space-between;
align-items: center;
}
.slide-left-enter-active,
.slide-left-leave-active {
transition: all 0.25s ease-out;
}
.slide-left-enter-from {
opacity: 0;
transform: translateY(30px);
}
.slide-left-leave-to {
opacity: 0;
}
.pankow-table-header-column {
border-bottom-color: transparent;
}
.table-actions {
2025-02-16 15:56:33 +01:00
display: flex;
justify-content: end;
gap: 6px;
/* those margins will give table rows in Pankow TableViews some more space */
margin-top: 4px;
margin-bottom: 4px;
text-align: right;
visibility: hidden;
}
@media (hover: none) {
tr .table-actions {
visibility: visible;
}
}
tr:hover .table-actions {
visibility: visible;
}
/* status classes for circle indicators */
.status-active {
color: #27CE65;
}
.status-inactive {
color: #7c7c7c;
}
.status-starting {
color: #f0ad4e;
}
.status-error {
color: #ec534f;
}
/* generic text modifiers */
.text-success {
color: #5CB85C;
}
.text-warning {
color: #8a6d3b;
}
.text-danger {
color: var(--pankow-color-danger);
}
.text-bold {
font-weight: bold;
}
.text-small {
font-size: 12px;
}
2025-01-19 19:53:29 +01:00
.view-header {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
margin: 0;
margin-right: 10px;
2025-03-27 09:43:58 +01:00
margin-left: 10px;
margin-bottom: 10px;
gap: 5px;
}
.view-header > div {
display: flex;
gap: 6px;
2025-02-16 15:56:33 +01:00
}
2025-03-07 10:28:49 +01:00
.button-bar {
display: flex;
2025-03-07 10:28:49 +01:00
gap: 6px;
/* flex-direction: row-reverse;*/
2025-03-17 18:21:27 +01:00
margin-top: 6px;
}
2025-01-19 19:53:29 +01:00
/* info table label:value in Sections */
.info-row {
display: flex;
margin-bottom: 10px;
2025-01-20 16:53:31 +01:00
}
2025-01-19 19:53:29 +01:00
.info-label {
font-weight: bold;
flex-basis: 50%;
}
.info-value {
flex-basis: 50%;
text-align: right;
text-overflow: ellipsis;
overflow: hidden;
text-wrap: nowrap;
2025-01-23 16:19:23 +01:00
}
.actionable {
cursor: pointer;
2025-01-29 12:15:53 +01:00
color: var(--pankow-color-primary);
2025-01-23 16:19:23 +01:00
}
.actionable:hover {
2025-01-29 12:15:53 +01:00
color: var(--pankow-color-primary-hover);
2025-01-23 16:19:23 +01:00
}
2025-03-14 18:48:13 +01:00
fieldset > * {
margin: 6px 0;
2025-03-31 22:28:17 +02:00
}
/* Animations */
.slide-fade-enter-active {
transition: all 0.2s ease-out;
}
.slide-fade-leave-active {
transition: all 0.2s cubic-bezier(1, 0.5, 0.8, 1);
}
.slide-fade-enter-from,
.slide-fade-leave-to {
transform: translateX(20px);
opacity: 0;
}
2025-04-07 17:05:57 +02:00
.slide-up-enter-active,
.slide-up-leave-active {
transition: all 0.15s ease-in-out;
}
.slide-up-enter-from {
opacity: 0;
transform: translateY(30px);
}
.slide-up-leave-to {
opacity: 0;
transform: translateY(-30px);
}