webapp: optimize spacing on bottom of cards
if the last child in a card (div.card > div.card-body) adds bottom marging, we don't want the card to add more space through its padding-bottom. most cards have children that add sufficient space at the bottom anyways.
This commit is contained in:
parent
ba304b2871
commit
eecd7f7c28
@ -48,3 +48,7 @@ div.accordion-item.accordion-table div.accordion-body {
|
|||||||
div.card.card-table div.card-body {
|
div.card.card-table div.card-body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.card div.card-body > :last-child {
|
||||||
|
margin-bottom: auto !important;
|
||||||
|
}
|
||||||
|
|||||||
@ -44,7 +44,7 @@
|
|||||||
<BIconInfoCircle v-tooltip :title="$t('dtuadmin.CmtPaLevelHint')" />
|
<BIconInfoCircle v-tooltip :title="$t('dtuadmin.CmtPaLevelHint')" />
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<div class="input-group mb-3">
|
<div class="input-group">
|
||||||
<input
|
<input
|
||||||
type="range"
|
type="range"
|
||||||
class="form-control form-range"
|
class="form-control form-range"
|
||||||
@ -85,7 +85,7 @@
|
|||||||
<BIconInfoCircle v-tooltip :title="$t('dtuadmin.CmtFrequencyHint')" />
|
<BIconInfoCircle v-tooltip :title="$t('dtuadmin.CmtFrequencyHint')" />
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<div class="input-group mb-3">
|
<div class="input-group">
|
||||||
<input
|
<input
|
||||||
type="range"
|
type="range"
|
||||||
class="form-control form-range"
|
class="form-control form-range"
|
||||||
|
|||||||
@ -25,8 +25,8 @@
|
|||||||
{{ $t('inverteradmin.Add') }}
|
{{ $t('inverteradmin.Add') }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="alert alert-secondary" role="alert" v-html="$t('inverteradmin.AddHint')"></div>
|
|
||||||
</form>
|
</form>
|
||||||
|
<div class="alert alert-secondary" role="alert" v-html="$t('inverteradmin.AddHint')"></div>
|
||||||
</CardElement>
|
</CardElement>
|
||||||
|
|
||||||
<CardElement :text="$t('inverteradmin.InverterList')" textVariant="text-bg-primary" add-space>
|
<CardElement :text="$t('inverteradmin.InverterList')" textVariant="text-bg-primary" add-space>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user