Skip to content

Commit

Permalink
css module version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobrunia committed Jan 19, 2025
1 parent 1d388c4 commit 4c92630
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions codex-ui/src/vue/layout/page-block/PageBlock.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
<template>
<div
class="page-block"
:class="{
'page-block--stretched': stretched,
}"
:class="[
$style['page-block'],
{ [$style['page-block--stretched']]: stretched }
]"
>
<!-- Left Sidebar -->
<div
v-if="$slots.left"
class="page-block__sidebar"
:class="$style['page-block__sidebar']"
>
<slot name="left" />
</div>

<!-- Center Content -->
<div
class="page-block__content"
:class="{'page-block__content--stretched': stretched}"
:class="[
$style['page-block__content'],
{ [$style['page-block__content--stretched']]: stretched }
]"
>
<slot />
</div>

<!-- Right Sidebar -->
<div
v-if="$slots.right"
class="page-block__sidebar"
:class="$style['page-block__sidebar']"
>
<slot name="right" />
</div>
Expand All @@ -42,7 +44,7 @@ defineProps({
});
</script>

<style scoped lang="postcss">
<style module lang="postcss">
.page-block {
width: 100%;
display: flex;
Expand Down

0 comments on commit 4c92630

Please sign in to comment.