feat: add empty score bar example
This commit is contained in:
@@ -38,6 +38,13 @@
|
|||||||
<div class="sg-score-bar__median-marker sg-score-bar__median-marker--outline" data-component-part="score-median-marker" data-component-variant="outline"></div>
|
<div class="sg-score-bar__median-marker sg-score-bar__median-marker--outline" data-component-part="score-median-marker" data-component-variant="outline"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="sg-score-bar-item" data-component="score-bar">
|
||||||
|
<p class="sg-score-bar-label sg-bar-label" data-component-part="score-label">Kirschen</p>
|
||||||
|
<div class="sg-score-bar sg-score-bar--marker-mid sg-score-bar--no-value" role="img" aria-label="Keine Daten" data-component-part="score-track">
|
||||||
|
<span class="sg-score-bar__empty-state" data-component-part="score-empty-state">keine Daten</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -56,6 +56,10 @@
|
|||||||
--score-marker-position: 50%;
|
--score-marker-position: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sg-score-bar--no-value {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.sg-score-bar__value {
|
.sg-score-bar__value {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border-radius: var(--radius-graph-bar);
|
border-radius: var(--radius-graph-bar);
|
||||||
@@ -85,6 +89,21 @@
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sg-score-bar__empty-state {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
padding-inline-start: var(--spacing-small);
|
||||||
|
color: var(--text-chart-default);
|
||||||
|
font-family: var(--font-family-base);
|
||||||
|
font-size: var(--font-size-small);
|
||||||
|
font-weight: var(--font-weight-regular);
|
||||||
|
line-height: var(--line-height-base);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
.sg-chart-preview-area {
|
.sg-chart-preview-area {
|
||||||
min-width: var(--layout-object-card-min-width);
|
min-width: var(--layout-object-card-min-width);
|
||||||
max-width: var(--layout-object-card-max-width);
|
max-width: var(--layout-object-card-max-width);
|
||||||
|
|||||||
Reference in New Issue
Block a user