Skip to content
Snippets Groups Projects
Commit 4d284cd7 authored by Julian's avatar Julian
Browse files

Use css grid for main documentation layout

parent d0df6b63
No related branches found
No related tags found
2 merge requests!352Draft: Resolve "Add dialog with each lesson's students",!350Resolve "Add simple course book list"
...@@ -4,15 +4,12 @@ ...@@ -4,15 +4,12 @@
<lesson-information v-bind="documentationPartProps" /> <lesson-information v-bind="documentationPartProps" />
</v-card-title> </v-card-title>
<!-- flex-md-row zeile ab medium -->
<!-- align-stretch - stretch full-width -->
<v-card-text <v-card-text
class="full-width d-flex flex-column align-stretch pa-2" class="full-width main-body pa-2"
:class="{ 'flex-md-row': compact }" :class="{ 'vertical': !compact || $vuetify.breakpoint.mobile }"
> >
<lesson-information v-if="compact" :class="{ 'flex-110': !$vuetify.breakpoint.mobile }" v-bind="documentationPartProps" /> <lesson-information v-if="compact" v-bind="documentationPartProps" />
<lesson-summary <lesson-summary
:class="{ 'flex-110': compact && !$vuetify.breakpoint.mobile }"
ref="summary" ref="summary"
v-bind="{ ...$attrs, ...documentationPartProps }" v-bind="{ ...$attrs, ...documentationPartProps }"
:is-create="false" :is-create="false"
...@@ -21,7 +18,7 @@ ...@@ -21,7 +18,7 @@
@loading="loading = $event" @loading="loading = $event"
@save="$emit('close')" @save="$emit('close')"
/> />
<lesson-notes :class="{ 'flex-110': compact && !$vuetify.breakpoint.mobile }" v-bind="documentationPartProps" /> <lesson-notes v-bind="documentationPartProps" />
</v-card-text> </v-card-text>
<v-divider /> <v-divider />
<v-card-actions v-if="!compact"> <v-card-actions v-if="!compact">
...@@ -72,8 +69,12 @@ export default { ...@@ -72,8 +69,12 @@ export default {
</script> </script>
<style scoped> <style scoped>
.flex-110 { .main-body {
flex: 1 1 0; display: grid;
width: 0; grid-template-columns: repeat(3, 1fr);
gap: 1em;
}
.vertical {
grid-template-columns: 1fr;
} }
</style> </style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment