client: tweak style

This commit is contained in:
syuilo 2021-12-10 11:56:23 +09:00
parent 43f2ac56ee
commit 640fc337af
1 changed files with 64 additions and 66 deletions

View File

@ -1,23 +1,25 @@
<template>
<MkSpacer :content-max="900" :margin-min="20" :margin-max="32">
<div ref="el" class="vvcocwet" :class="{ wide: !narrow }">
<div v-if="!narrow || page == null" class="nav">
<MkSpacer :content-max="700" :margin-min="20">
<div class="baaadecd">
<div class="header">
<div class="title">{{ $ts.settings }}</div>
<div v-if="childInfo" class="subtitle">{{ childInfo.title }}</div>
</div>
<div class="body">
<div v-if="!narrow || page == null" class="nav">
<div class="baaadecd">
<MkInfo v-if="emailNotConfigured" warn class="info">{{ $ts.emailNotConfiguredWarning }} <MkA to="/settings/email" class="_link">{{ $ts.configure }}</MkA></MkInfo>
<MkSuperMenu :def="menuDef" :grid="page == null"></MkSuperMenu>
</div>
</MkSpacer>
</div>
<div class="main">
<MkSpacer :content-max="600" :margin-min="20">
<div class="bkzroven">
<div v-if="childInfo" class="title">{{ childInfo.title }}</div>
<component :is="component" :key="page" v-bind="pageProps" @info="onInfo"/>
</div>
</div>
</div>
</div>
</MkSpacer>
</div>
</div>
</template>
<script lang="ts">
@ -292,14 +294,25 @@ export default defineComponent({
<style lang="scss" scoped>
.vvcocwet {
> .nav {
.baaadecd {
> .title {
margin: 16px;
> .header {
display: flex;
margin-bottom: 24px;
font-size: 1.5em;
font-weight: bold;
> .title {
width: 34%;
}
> .subtitle {
flex: 1;
min-width: 0;
}
}
> .body {
> .nav {
.baaadecd {
> .info {
margin: 16px 0;
}
@ -317,41 +330,26 @@ export default defineComponent({
> .main {
.bkzroven {
> .title {
margin: 4px 0 20px 0;
font-size: 1.5em;
font-weight: bold;
}
}
}
&.wide {
> .body {
display: flex;
max-width: 1000px;
margin: 0 auto;
height: 100%;
> .nav {
width: 32%;
width: 34%;
padding-right: 32px;
box-sizing: border-box;
overflow: auto;
.baaadecd {
> .title {
margin: 24px 0;
}
}
}
> .main {
flex: 1;
min-width: 0;
overflow: auto;
.bkzroven {
> .title {
margin: 6px 0 24px 0;
}
}
}
}