Initial module scaffold
This commit is contained in:
287
styles/audit.css
Normal file
287
styles/audit.css
Normal file
@@ -0,0 +1,287 @@
|
||||
.kosmos-storage-audit .window-content {
|
||||
padding: 0;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.storage-audit {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
padding: 1.1rem;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.storage-audit code {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.storage-audit__hero,
|
||||
.storage-audit__summary,
|
||||
.storage-audit__progress,
|
||||
.storage-audit__group,
|
||||
.storage-audit__finding,
|
||||
.storage-audit__list {
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.storage-audit__hero,
|
||||
.storage-audit__summary {
|
||||
padding: 1.1rem 1.2rem;
|
||||
}
|
||||
|
||||
.storage-audit__grouped {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.storage-audit__progress {
|
||||
padding: 1rem 1.1rem;
|
||||
}
|
||||
|
||||
.storage-audit__progress-bar {
|
||||
height: 10px;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, currentColor 12%, transparent);
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.storage-audit__progress-fill {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, currentColor, transparent, currentColor);
|
||||
background-size: 200% 100%;
|
||||
opacity: 0.35;
|
||||
animation: storage-audit-progress 1.6s linear infinite;
|
||||
}
|
||||
|
||||
.storage-audit__progress-meta {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
.storage-audit__progress-source {
|
||||
margin-top: 0.5rem;
|
||||
opacity: 0.8;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.storage-audit__group-header {
|
||||
padding: 1rem 1.1rem 0;
|
||||
}
|
||||
|
||||
.storage-audit__group-header h3 {
|
||||
margin: 0 0 0.25rem;
|
||||
}
|
||||
|
||||
.storage-audit__group-header p {
|
||||
margin: 0;
|
||||
opacity: 0.82;
|
||||
}
|
||||
|
||||
.storage-audit__hero {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.storage-audit__hero h2,
|
||||
.storage-audit__summary h3 {
|
||||
margin: 0 0 0.45rem;
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
.storage-audit__hero h2 {
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.storage-audit__hero p,
|
||||
.storage-audit__finding p,
|
||||
.storage-audit__list p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.storage-audit__hero p {
|
||||
max-width: 52rem;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.storage-audit__hero > div:first-child {
|
||||
display: grid;
|
||||
gap: 0.45rem;
|
||||
}
|
||||
|
||||
.storage-audit__actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
align-items: stretch;
|
||||
min-width: 12rem;
|
||||
}
|
||||
|
||||
.storage-audit__actions .button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
border-radius: 999px;
|
||||
padding: 0.62rem 0.95rem;
|
||||
font-weight: 700;
|
||||
min-height: 2.55rem;
|
||||
}
|
||||
|
||||
.storage-audit__actions .button[disabled] {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.storage-audit__stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.storage-audit__stats article {
|
||||
background: color-mix(in srgb, currentColor 4%, transparent);
|
||||
border-radius: 12px;
|
||||
padding: 0.9rem;
|
||||
border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
|
||||
}
|
||||
|
||||
.storage-audit__stats span {
|
||||
display: block;
|
||||
opacity: 0.8;
|
||||
margin-bottom: 0.18rem;
|
||||
}
|
||||
|
||||
.storage-audit__stats strong { line-height: 1; }
|
||||
|
||||
.storage-audit__kinds ul,
|
||||
.storage-audit__list {
|
||||
display: grid;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.storage-audit__kinds ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.storage-audit__kinds li {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 0.35rem 0;
|
||||
border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
|
||||
}
|
||||
|
||||
.storage-audit__kinds li:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.storage-audit__list {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.storage-audit__list--raw h3 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.storage-audit__finding {
|
||||
padding: 0.9rem 1rem;
|
||||
}
|
||||
|
||||
.storage-audit__finding header {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
align-items: center;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.storage-audit__finding header strong { opacity: 0.9; }
|
||||
|
||||
.storage-audit__severity {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 4.75rem;
|
||||
border-radius: 999px;
|
||||
padding: 0.2rem 0.6rem;
|
||||
text-transform: uppercase;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.severity-high .storage-audit__severity {
|
||||
background: color-mix(in srgb, #b03e29 80%, transparent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.severity-warning .storage-audit__severity {
|
||||
background: color-mix(in srgb, #b8902b 80%, transparent);
|
||||
color: black;
|
||||
}
|
||||
|
||||
.severity-info .storage-audit__severity {
|
||||
background: color-mix(in srgb, #466d7a 80%, transparent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.storage-audit__finding dl {
|
||||
display: grid;
|
||||
gap: 0.35rem;
|
||||
margin: 0.75rem 0 0;
|
||||
}
|
||||
|
||||
.storage-audit__finding dl div {
|
||||
display: grid;
|
||||
gap: 0.2rem;
|
||||
}
|
||||
|
||||
.storage-audit__finding dt {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.storage-audit__finding dd { margin: 0; }
|
||||
|
||||
.storage-audit__recommendation {
|
||||
margin-top: 0.75rem;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.storage-audit__samples {
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.storage-audit__samples span {
|
||||
display: block;
|
||||
opacity: 0.75;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.storage-audit__samples ul {
|
||||
margin: 0;
|
||||
padding-left: 1.25rem;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.storage-audit__hero {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.storage-audit__actions {
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes storage-audit-progress {
|
||||
0% { background-position: 0% 0; }
|
||||
100% { background-position: 200% 0; }
|
||||
}
|
||||
Reference in New Issue
Block a user