Feat: cleaning local css and invert columns

This commit is contained in:
Bertrand Benjamin 2021-08-12 11:44:09 +02:00
parent 8f32f5b1b9
commit 1e2005613b
5 changed files with 14 additions and 44 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="boxed month-presentation">
<div class="month-presentation">
<div class="date">
<div class="month">
{{ theMonth }}

View File

@ -60,27 +60,4 @@ export default {
</script>
<style scoped>
.hightlights {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 20px;
}
.hightlight > ul{
list-style-type: none;
display: flex;
flex-flow: column wrap;
padding-inline-start: 0;
}
.hightlight > ul > li {
margin: 5px;
flex-direction: column-reverse;
}
.hightlight > ul :first-child{
font-size: 3rem;
font-weight: bold;
text-align: center;
}
.hightlight > ul :last-child{
text-align: end;
}
</style>

View File

@ -8,14 +8,14 @@
</div>
<div class="hightlight boxed">
<ul>
<li>{{ notInvoiced }} </li>
<li>Non facturé</li>
<li>{{ retrocession }} </li>
<li>Rétrocession</li>
</ul>
</div>
<div class="hightlight boxed">
<ul>
<li>{{ retrocession }} </li>
<li>Rétrocession</li>
<li>{{ notInvoiced }} </li>
<li>Non facturé</li>
</ul>
</div>
</div>

View File

@ -77,7 +77,7 @@ button:hover {
flex-direction: column-reverse;
}
.hightlight > ul :first-child{
font-size: 3rem;
font-size: 2rem;
font-weight: bold;
text-align: center;
}

View File

@ -1,7 +1,4 @@
<template>
<section id="selector">
<month-selector/>
</section>
<div id="content">
<section id="months">
<create-month/>
@ -18,7 +15,6 @@
import { mapActions } from 'vuex'
import MonthsList from '../components/MonthsUl.vue'
import CreateMonth from '../components/CreateMonth.vue'
import MonthSelector from '../components/monthSelector.vue'
import caOnPeriod from '../components/caOnPeriod.vue'
import caRepartition from '../components/caRepartition.vue'
export default {
@ -26,7 +22,6 @@ export default {
components: {
MonthsList: MonthsList,
CreateMonth: CreateMonth,
MonthSelector: MonthSelector,
caOnPeriod: caOnPeriod,
caRepartition: caRepartition,
},
@ -47,19 +42,17 @@ export default {
</script>
<style scoped>
#selector {
display: none;
background-color: gray;
padding: 10px;
}
#content {
display: grid;
grid-template-columns: 1fr 3fr;
margin: 0;
}
#content > * {
margin: 20px;
grid-template-columns: minmax(580px, 2fr) minmax(450px, 1fr);
grid-template-areas:
"stats months";
gap: 1em;
}
#stats {
grid-area: stats;
}
#months {
grid-area: months;
}
</style>