yumechi-no-kuni/packages/client/src/components/debobigego/base.vue

66 lines
1.3 KiB
Vue
Raw Normal View History

<template>
2021-11-19 04:36:12 -06:00
<div v-size="{ max: [400] }" class="rbusrurv" :class="{ wide: forceWide }">
<slot></slot>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
props: {
forceWide: {
type: Boolean,
required: false,
default: false,
}
}
});
</script>
<style lang="scss" scoped>
.rbusrurv {
2021-04-11 07:09:35 -05:00
// 他のCSSからも参照されるので消さないように
2021-09-29 10:50:45 -05:00
--debobigegoXPadding: 32px;
--debobigegoYPadding: 32px;
2021-04-11 07:09:35 -05:00
2021-09-29 10:50:45 -05:00
--debobigegoContentHMargin: 16px;
2021-04-16 09:26:01 -05:00
font-size: 95%;
2021-04-12 09:13:58 -05:00
line-height: 1.3em;
background: var(--bg);
2021-09-29 10:50:45 -05:00
padding: var(--debobigegoYPadding) var(--debobigegoXPadding);
2021-04-16 09:26:01 -05:00
max-width: 750px;
margin: 0 auto;
&:not(.wide).max-width_400px {
2021-09-29 10:50:45 -05:00
--debobigegoXPadding: 0px;
> ::v-deep(*) {
2021-09-29 10:50:45 -05:00
._debobigegoPanel {
border: solid 0.5px var(--divider);
border-radius: 0;
border-left: none;
border-right: none;
}
2021-09-29 10:50:45 -05:00
._debobigego_group {
> *:not(._debobigegoNoConcat) {
&:not(:last-child):not(._debobigegoNoConcatPrev) {
&._debobigegoPanel, ._debobigegoPanel {
border-bottom: solid 0.5px var(--divider);
}
}
2021-09-29 10:50:45 -05:00
&:not(:first-child):not(._debobigegoNoConcatNext) {
&._debobigegoPanel, ._debobigegoPanel {
border-top: none;
}
}
}
}
}
}
}
</style>