Stylistyka informacji o składzie

This commit is contained in:
2022-09-05 23:44:36 +02:00
parent b0a9939446
commit 0821fd708e
@@ -95,9 +95,20 @@
<hr /> <hr />
<div> <div>
{{ `${$t('journal.stock-max-speed')}: ${timetable.maxSpeed}km/h` }} &bull; <span class="badge info-badge">
{{ `${$t('journal.stock-length')}: ${timetable.stockLength}m` }} &bull; <span>{{ $t('journal.stock-max-speed') }}</span>
{{ `${$t('journal.stock-mass')}: ${Math.floor(timetable.stockMass! / 1000)}t` }} <span>{{ timetable.maxSpeed }}km/h</span>
</span>
<span class="badge info-badge">
<span>{{ $t('journal.stock-length') }}</span>
<span>{{ timetable.stockLength }}m</span>
</span>
<span class="badge info-badge">
<span>{{ $t('journal.stock-mass') }}</span>
<span>{{ Math.floor(timetable.stockMass! / 1000) }}t</span>
</span>
</div> </div>
<ul class="stock-list"> <ul class="stock-list">
@@ -193,7 +204,9 @@ export default defineComponent({
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '../../styles/variables.scss';
@import '../../styles/responsive.scss'; @import '../../styles/responsive.scss';
@import '../../styles/badge.scss';
@import '../../styles/JournalSection.scss'; @import '../../styles/JournalSection.scss';
hr { hr {
@@ -269,6 +282,13 @@ ul.stock-list {
} }
} }
.info-badge {
span:last-child {
color: black;
background-color: $accentCol;
}
}
@include smallScreen { @include smallScreen {
.info-top { .info-top {
flex-direction: column; flex-direction: column;