2020-11-25 06:31:34 -06:00
|
|
|
<template>
|
|
|
|
<div class="rbusrurv" :class="{ wide: forceWide }" v-size="{ max: [400] }">
|
|
|
|
<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からも参照されるので消さないように
|
|
|
|
--formXPadding: 32px;
|
|
|
|
--formYPadding: 32px;
|
|
|
|
|
2021-04-16 09:26:01 -05:00
|
|
|
font-size: 95%;
|
2021-04-12 09:13:58 -05:00
|
|
|
line-height: 1.3em;
|
2020-11-25 06:31:34 -06:00
|
|
|
background: var(--bg);
|
2021-04-11 07:09:35 -05:00
|
|
|
padding: var(--formYPadding) var(--formXPadding);
|
2021-04-16 09:26:01 -05:00
|
|
|
max-width: 750px;
|
|
|
|
margin: 0 auto;
|
2020-11-25 06:31:34 -06:00
|
|
|
|
|
|
|
&:not(.wide).max-width_400px {
|
2021-04-11 07:09:35 -05:00
|
|
|
--formXPadding: 0px;
|
2020-11-25 06:31:34 -06:00
|
|
|
|
|
|
|
> ::v-deep(*) {
|
|
|
|
._formPanel {
|
|
|
|
border: solid 0.5px var(--divider);
|
|
|
|
border-radius: 0;
|
|
|
|
border-left: none;
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
._form_group {
|
2021-04-16 03:34:06 -05:00
|
|
|
> *:not(._formNoConcat) {
|
|
|
|
&:not(:last-child):not(._formNoConcatPrev) {
|
2020-11-25 06:31:34 -06:00
|
|
|
&._formPanel, ._formPanel {
|
2021-04-16 03:34:06 -05:00
|
|
|
border-bottom: solid 0.5px var(--divider);
|
2020-11-25 06:31:34 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-16 03:34:06 -05:00
|
|
|
&:not(:first-child):not(._formNoConcatNext) {
|
2020-11-25 06:31:34 -06:00
|
|
|
&._formPanel, ._formPanel {
|
2021-04-16 03:34:06 -05:00
|
|
|
border-top: none;
|
2020-11-25 06:31:34 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|