158 lines
4.7 KiB
SCSS
158 lines
4.7 KiB
SCSS
@import "variables";
|
|
|
|
.o_fusion_assets {
|
|
background: $asset-bg-secondary;
|
|
min-height: 100vh;
|
|
|
|
&_header {
|
|
background: $asset-bg-primary;
|
|
border-bottom: 1px solid $asset-border;
|
|
padding: $asset-space-4 $asset-space-6;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
h1 { font-size: $asset-font-size-xl; margin: 0; }
|
|
|
|
.o_fusion_assets_summary {
|
|
display: flex;
|
|
gap: $asset-space-6;
|
|
font-size: $asset-font-size-sm;
|
|
color: $asset-text-secondary;
|
|
|
|
.summary-value {
|
|
font-weight: 600;
|
|
color: $asset-text-primary;
|
|
margin-left: $asset-space-1;
|
|
}
|
|
}
|
|
}
|
|
|
|
&_card {
|
|
background: $asset-bg-primary;
|
|
border: 1px solid $asset-border;
|
|
border-radius: $asset-border-radius-md;
|
|
padding: $asset-space-4;
|
|
margin-bottom: $asset-space-3;
|
|
cursor: pointer;
|
|
transition: all 200ms ease-in-out;
|
|
|
|
&:hover {
|
|
border-color: $asset-accent;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
&.selected {
|
|
border-color: $asset-accent;
|
|
background: $asset-accent-bg;
|
|
}
|
|
|
|
&_header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: $asset-space-2;
|
|
}
|
|
|
|
.asset-name {
|
|
font-weight: 600;
|
|
font-size: $asset-font-size-base;
|
|
}
|
|
|
|
.asset-state-badge {
|
|
padding: $asset-space-1 $asset-space-2;
|
|
border-radius: $asset-border-radius;
|
|
font-size: $asset-font-size-xs;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
|
|
&[data-state="draft"] { background: lighten($asset-state-draft, 40%); color: $asset-state-draft; }
|
|
&[data-state="running"] { background: lighten($asset-state-running, 45%); color: $asset-state-running; }
|
|
&[data-state="paused"] { background: lighten($asset-state-paused, 35%); color: $asset-state-paused; }
|
|
&[data-state="disposed"] { background: lighten($asset-state-disposed, 35%); color: $asset-state-disposed; }
|
|
}
|
|
|
|
.asset-numbers {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: $asset-space-2;
|
|
font-size: $asset-font-size-sm;
|
|
color: $asset-text-secondary;
|
|
|
|
.label {
|
|
font-weight: 500;
|
|
margin-right: $asset-space-2;
|
|
}
|
|
.value {
|
|
color: $asset-text-primary;
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
}
|
|
|
|
&_table {
|
|
background: $asset-bg-primary;
|
|
border-radius: $asset-border-radius-md;
|
|
overflow: hidden;
|
|
font-size: $asset-font-size-sm;
|
|
|
|
table { width: 100%; border-collapse: collapse; }
|
|
|
|
th {
|
|
background: $asset-bg-tertiary;
|
|
padding: $asset-space-3;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: $asset-text-secondary;
|
|
border-bottom: 1px solid $asset-border;
|
|
}
|
|
|
|
td {
|
|
padding: $asset-space-2 $asset-space-3;
|
|
border-bottom: 1px solid lighten($asset-border, 5%);
|
|
}
|
|
|
|
tr.posted { background: $asset-bg-secondary; }
|
|
tr.due-now { background: $asset-severity-medium-bg; }
|
|
.text-end { text-align: right; }
|
|
}
|
|
|
|
.btn_asset {
|
|
padding: $asset-space-2 $asset-space-4;
|
|
border-radius: $asset-border-radius;
|
|
background: $asset-bg-primary;
|
|
border: 1px solid $asset-border;
|
|
color: $asset-text-primary;
|
|
font-size: $asset-font-size-sm;
|
|
cursor: pointer;
|
|
|
|
&:hover { background: $asset-bg-tertiary; }
|
|
|
|
&.primary {
|
|
background: $asset-accent;
|
|
border-color: $asset-accent;
|
|
color: white;
|
|
|
|
&:hover { background: darken($asset-accent, 8%); }
|
|
}
|
|
|
|
&.danger {
|
|
background: $asset-severity-high;
|
|
border-color: $asset-severity-high;
|
|
color: white;
|
|
}
|
|
}
|
|
}
|
|
|
|
.o_fusion_anomaly_strip {
|
|
margin: $asset-space-3 0;
|
|
padding: $asset-space-3;
|
|
border-radius: $asset-border-radius;
|
|
border: 1px solid;
|
|
font-size: $asset-font-size-sm;
|
|
|
|
&[data-severity="high"] { background: $asset-severity-high-bg; border-color: $asset-severity-high; }
|
|
&[data-severity="medium"] { background: $asset-severity-medium-bg; border-color: $asset-severity-medium; }
|
|
&[data-severity="low"] { background: $asset-severity-low-bg; border-color: $asset-severity-low; }
|
|
}
|