mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-26 17:56:43 -06:00
246693b848
* wip * wip * wip * wip
65 lines
1.2 KiB
Vue
65 lines
1.2 KiB
Vue
<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 {
|
|
// 他のCSSからも参照されるので消さないように
|
|
--formXPadding: 32px;
|
|
--formYPadding: 32px;
|
|
|
|
--formContentHMargin: 16px;
|
|
|
|
font-size: 95%;
|
|
line-height: 1.3em;
|
|
background: var(--bg);
|
|
padding: var(--formYPadding) var(--formXPadding);
|
|
max-width: 750px;
|
|
margin: 0 auto;
|
|
|
|
&:not(.wide).max-width_400px {
|
|
--formXPadding: 0px;
|
|
|
|
> ::v-deep(*) {
|
|
._formPanel {
|
|
border: solid 0.5px var(--divider);
|
|
border-radius: 0;
|
|
border-left: none;
|
|
border-right: none;
|
|
}
|
|
|
|
._form_group {
|
|
> *:not(._formNoConcat) {
|
|
&:not(:last-child):not(._formNoConcatPrev) {
|
|
&._formPanel, ._formPanel {
|
|
border-bottom: solid 0.5px var(--divider);
|
|
}
|
|
}
|
|
|
|
&:not(:first-child):not(._formNoConcatNext) {
|
|
&._formPanel, ._formPanel {
|
|
border-top: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|