2018-06-05 21:36:21 +09:00
|
|
|
<template>
|
2018-06-08 11:17:22 +09:00
|
|
|
<div class="dnpfarvgbnfmyzbdquhhzyxcmstpdqzs" :class="{ naked, narrow, active, isStacked, draghover, dragging, dropready }"
|
2018-11-01 10:00:15 +09:00
|
|
|
@dragover.prevent.stop="onDragover"
|
2018-06-08 11:17:22 +09:00
|
|
|
@dragleave="onDragleave"
|
2018-10-21 16:18:02 +09:00
|
|
|
@drop.prevent.stop="onDrop"
|
|
|
|
v-hotkey="keymap">
|
2018-06-08 08:38:32 +09:00
|
|
|
<header :class="{ indicate: count > 0 }"
|
|
|
|
draggable="true"
|
2018-09-01 08:09:21 +09:00
|
|
|
@click="goTop"
|
2018-06-08 08:38:32 +09:00
|
|
|
@dragstart="onDragstart"
|
|
|
|
@dragend="onDragend"
|
2018-09-01 08:09:21 +09:00
|
|
|
@contextmenu.prevent.stop="onContextmenu">
|
|
|
|
<button class="toggleActive" @click="toggleActive" v-if="isStacked">
|
2018-11-06 01:40:11 +09:00
|
|
|
<template v-if="active"><fa icon="angle-up"/></template>
|
|
|
|
<template v-else><fa icon="angle-down"/></template>
|
2018-09-01 08:09:21 +09:00
|
|
|
</button>
|
2019-02-18 09:48:00 +09:00
|
|
|
<span><slot name="header"></slot></span>
|
2018-06-08 05:04:21 +09:00
|
|
|
<span class="count" v-if="count > 0">({{ count }})</span>
|
2018-11-06 01:40:11 +09:00
|
|
|
<button v-if="!isTemporaryColumn" class="menu" ref="menu" @click.stop="showMenu"><fa icon="caret-down"/></button>
|
|
|
|
<button v-else class="close" @click.stop="close"><fa icon="times"/></button>
|
2018-06-05 21:36:21 +09:00
|
|
|
</header>
|
2018-06-08 05:48:27 +09:00
|
|
|
<div ref="body" v-show="active">
|
2018-06-05 22:54:03 +09:00
|
|
|
<slot></slot>
|
2018-06-05 21:36:21 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2019-02-15 05:08:59 +09:00
|
|
|
import i18n from '../../../i18n';
|
|
|
|
import Menu from '../../../common/views/components/menu.vue';
|
|
|
|
import { countIf } from '../../../../../prelude/array';
|
2019-02-25 19:45:00 +09:00
|
|
|
import { faArrowUp, faArrowDown } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
import { faWindowMaximize } from '@fortawesome/free-regular-svg-icons';
|
2018-06-05 21:36:21 +09:00
|
|
|
|
|
|
|
export default Vue.extend({
|
2018-11-09 03:44:35 +09:00
|
|
|
i18n: i18n('deck'),
|
2018-06-06 05:18:08 +09:00
|
|
|
props: {
|
2018-06-08 05:48:27 +09:00
|
|
|
column: {
|
|
|
|
type: Object,
|
2018-10-19 06:18:33 +09:00
|
|
|
required: false,
|
|
|
|
default: null
|
2018-06-08 05:48:27 +09:00
|
|
|
},
|
|
|
|
isStacked: {
|
|
|
|
type: Boolean,
|
2018-10-19 06:18:33 +09:00
|
|
|
required: false,
|
|
|
|
default: false
|
2018-06-08 05:48:27 +09:00
|
|
|
},
|
2018-06-07 06:13:57 +09:00
|
|
|
name: {
|
|
|
|
type: String,
|
|
|
|
required: false
|
|
|
|
},
|
2018-06-06 19:22:45 +09:00
|
|
|
menu: {
|
|
|
|
type: Array,
|
2018-06-08 04:21:06 +09:00
|
|
|
required: false,
|
|
|
|
default: null
|
2018-06-06 19:22:45 +09:00
|
|
|
},
|
|
|
|
naked: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
narrow: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false
|
2018-06-06 05:18:08 +09:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2019-02-15 15:12:23 +09:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
count: 0,
|
|
|
|
active: true,
|
|
|
|
dragging: false,
|
|
|
|
draghover: false,
|
2019-02-25 19:45:00 +09:00
|
|
|
dropready: false,
|
|
|
|
faArrowUp, faArrowDown
|
2019-02-15 15:12:23 +09:00
|
|
|
};
|
|
|
|
},
|
|
|
|
|
2018-10-19 06:18:33 +09:00
|
|
|
computed: {
|
|
|
|
isTemporaryColumn(): boolean {
|
|
|
|
return this.column == null;
|
2018-10-21 16:18:02 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
keymap(): any {
|
|
|
|
return {
|
|
|
|
'shift+up': () => this.$parent.$emit('parentFocus', 'up'),
|
|
|
|
'shift+down': () => this.$parent.$emit('parentFocus', 'down'),
|
|
|
|
'shift+left': () => this.$parent.$emit('parentFocus', 'left'),
|
|
|
|
'shift+right': () => this.$parent.$emit('parentFocus', 'right'),
|
|
|
|
};
|
2018-10-19 06:18:33 +09:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-06-08 04:21:06 +09:00
|
|
|
inject: {
|
|
|
|
getColumnVm: { from: 'getColumnVm' }
|
|
|
|
},
|
|
|
|
|
2018-06-08 05:04:21 +09:00
|
|
|
watch: {
|
2018-06-08 05:48:27 +09:00
|
|
|
active(v) {
|
2018-06-08 05:04:21 +09:00
|
|
|
if (v && this.isScrollTop()) {
|
|
|
|
this.$emit('top');
|
|
|
|
}
|
2018-06-08 11:17:22 +09:00
|
|
|
},
|
|
|
|
dragging(v) {
|
|
|
|
this.$root.$emit(v ? 'deck.column.dragStart' : 'deck.column.dragEnd');
|
2018-06-08 05:04:21 +09:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-06-05 22:54:03 +09:00
|
|
|
provide() {
|
|
|
|
return {
|
2018-06-06 01:54:24 +09:00
|
|
|
column: this,
|
|
|
|
isScrollTop: this.isScrollTop,
|
2019-02-16 06:50:58 +09:00
|
|
|
count: v => this.count = v,
|
|
|
|
inDeck: !this.naked
|
2018-06-05 22:54:03 +09:00
|
|
|
};
|
|
|
|
},
|
2018-06-06 01:54:24 +09:00
|
|
|
|
2018-06-05 21:36:21 +09:00
|
|
|
mounted() {
|
2018-06-07 01:52:03 +09:00
|
|
|
this.$refs.body.addEventListener('scroll', this.onScroll, { passive: true });
|
2018-10-19 06:18:33 +09:00
|
|
|
|
|
|
|
if (!this.isTemporaryColumn) {
|
|
|
|
this.$root.$on('deck.column.dragStart', this.onOtherDragStart);
|
|
|
|
this.$root.$on('deck.column.dragEnd', this.onOtherDragEnd);
|
|
|
|
}
|
2018-06-06 01:54:24 +09:00
|
|
|
},
|
2018-06-08 11:17:22 +09:00
|
|
|
|
2018-06-06 01:54:24 +09:00
|
|
|
beforeDestroy() {
|
|
|
|
this.$refs.body.removeEventListener('scroll', this.onScroll);
|
2018-10-19 06:18:33 +09:00
|
|
|
|
|
|
|
if (!this.isTemporaryColumn) {
|
|
|
|
this.$root.$off('deck.column.dragStart', this.onOtherDragStart);
|
|
|
|
this.$root.$off('deck.column.dragEnd', this.onOtherDragEnd);
|
|
|
|
}
|
2018-06-06 01:54:24 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
2018-06-08 11:17:22 +09:00
|
|
|
onOtherDragStart() {
|
|
|
|
this.dropready = true;
|
|
|
|
},
|
|
|
|
|
|
|
|
onOtherDragEnd() {
|
|
|
|
this.dropready = false;
|
|
|
|
},
|
|
|
|
|
2018-06-08 04:21:06 +09:00
|
|
|
toggleActive() {
|
|
|
|
if (!this.isStacked) return;
|
2019-02-25 19:45:00 +09:00
|
|
|
const vms = this.$store.state.device.deck.layout.find(ids => ids.indexOf(this.column.id) != -1).map(id => this.getColumnVm(id));
|
2018-09-06 02:16:08 +09:00
|
|
|
if (this.active && countIf(vm => vm.$el.classList.contains('active'), vms) == 1) return;
|
2018-06-08 05:48:27 +09:00
|
|
|
this.active = !this.active;
|
2018-06-08 04:21:06 +09:00
|
|
|
},
|
|
|
|
|
2018-06-06 01:54:24 +09:00
|
|
|
isScrollTop() {
|
2018-06-08 05:48:27 +09:00
|
|
|
return this.active && this.$refs.body.scrollTop == 0;
|
2018-06-06 01:54:24 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
onScroll() {
|
|
|
|
if (this.isScrollTop()) {
|
|
|
|
this.$emit('top');
|
|
|
|
}
|
2018-06-05 22:54:03 +09:00
|
|
|
|
2018-06-06 01:54:24 +09:00
|
|
|
if (this.$store.state.settings.fetchOnScroll !== false) {
|
|
|
|
const current = this.$refs.body.scrollTop + this.$refs.body.clientHeight;
|
|
|
|
if (current > this.$refs.body.scrollHeight - 1) this.$emit('bottom');
|
|
|
|
}
|
2018-06-06 05:18:08 +09:00
|
|
|
},
|
|
|
|
|
2018-06-08 11:46:45 +09:00
|
|
|
getMenu() {
|
2018-06-06 19:22:45 +09:00
|
|
|
const items = [{
|
2018-11-06 01:40:11 +09:00
|
|
|
icon: 'pencil-alt',
|
2018-11-09 03:44:35 +09:00
|
|
|
text: this.$t('rename'),
|
2018-06-08 11:46:45 +09:00
|
|
|
action: () => {
|
2018-12-02 20:10:53 +09:00
|
|
|
this.$root.dialog({
|
2018-11-09 03:44:35 +09:00
|
|
|
title: this.$t('rename'),
|
2018-12-02 20:10:53 +09:00
|
|
|
input: {
|
|
|
|
default: this.name,
|
|
|
|
allowEmpty: false
|
|
|
|
}
|
|
|
|
}).then(({ canceled, result: name }) => {
|
|
|
|
if (canceled) return;
|
2019-02-25 19:45:00 +09:00
|
|
|
this.$store.commit('device/renameDeckColumn', { id: this.column.id, name });
|
2018-06-07 06:13:57 +09:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}, null, {
|
2018-11-06 01:40:11 +09:00
|
|
|
icon: 'arrow-left',
|
2018-11-09 03:44:35 +09:00
|
|
|
text: this.$t('swap-left'),
|
2018-06-08 11:46:45 +09:00
|
|
|
action: () => {
|
2019-02-25 19:45:00 +09:00
|
|
|
this.$store.commit('device/swapLeftDeckColumn', this.column.id);
|
2018-06-06 19:22:45 +09:00
|
|
|
}
|
|
|
|
}, {
|
2018-11-06 01:40:11 +09:00
|
|
|
icon: 'arrow-right',
|
2018-11-09 03:44:35 +09:00
|
|
|
text: this.$t('swap-right'),
|
2018-06-08 11:46:45 +09:00
|
|
|
action: () => {
|
2019-02-25 19:45:00 +09:00
|
|
|
this.$store.commit('device/swapRightDeckColumn', this.column.id);
|
2018-06-08 04:21:06 +09:00
|
|
|
}
|
2018-06-08 04:34:15 +09:00
|
|
|
}, this.isStacked ? {
|
2019-02-25 19:45:00 +09:00
|
|
|
icon: faArrowUp,
|
2018-11-09 03:44:35 +09:00
|
|
|
text: this.$t('swap-up'),
|
2018-06-08 11:46:45 +09:00
|
|
|
action: () => {
|
2019-02-25 19:45:00 +09:00
|
|
|
this.$store.commit('device/swapUpDeckColumn', this.column.id);
|
2018-06-08 04:34:15 +09:00
|
|
|
}
|
|
|
|
} : undefined, this.isStacked ? {
|
2019-02-25 19:45:00 +09:00
|
|
|
icon: faArrowDown,
|
2018-11-09 03:44:35 +09:00
|
|
|
text: this.$t('swap-down'),
|
2018-06-08 11:46:45 +09:00
|
|
|
action: () => {
|
2019-02-25 19:45:00 +09:00
|
|
|
this.$store.commit('device/swapDownDeckColumn', this.column.id);
|
2018-06-08 04:34:15 +09:00
|
|
|
}
|
|
|
|
} : undefined, null, {
|
2018-11-06 01:40:11 +09:00
|
|
|
icon: ['far', 'window-restore'],
|
2018-11-09 03:44:35 +09:00
|
|
|
text: this.$t('stack-left'),
|
2018-06-08 11:46:45 +09:00
|
|
|
action: () => {
|
2019-02-25 19:45:00 +09:00
|
|
|
this.$store.commit('device/stackLeftDeckColumn', this.column.id);
|
2018-06-08 04:21:06 +09:00
|
|
|
}
|
2018-06-08 04:34:15 +09:00
|
|
|
}, this.isStacked ? {
|
2019-02-25 19:45:00 +09:00
|
|
|
icon: faWindowMaximize,
|
2018-11-09 03:44:35 +09:00
|
|
|
text: this.$t('pop-right'),
|
2018-06-08 11:46:45 +09:00
|
|
|
action: () => {
|
2019-02-25 19:45:00 +09:00
|
|
|
this.$store.commit('device/popRightDeckColumn', this.column.id);
|
2018-06-06 19:22:45 +09:00
|
|
|
}
|
2018-06-08 04:34:15 +09:00
|
|
|
} : undefined, null, {
|
2018-11-06 01:40:11 +09:00
|
|
|
icon: ['far', 'trash-alt'],
|
2018-11-09 03:44:35 +09:00
|
|
|
text: this.$t('remove'),
|
2018-06-08 11:46:45 +09:00
|
|
|
action: () => {
|
2019-02-25 19:45:00 +09:00
|
|
|
this.$store.commit('device/removeDeckColumn', this.column.id);
|
2018-06-06 19:22:45 +09:00
|
|
|
}
|
|
|
|
}];
|
|
|
|
|
|
|
|
if (this.menu) {
|
|
|
|
items.unshift(null);
|
2018-12-11 20:36:55 +09:00
|
|
|
for (const i of this.menu.reverse()) {
|
|
|
|
items.unshift(i);
|
|
|
|
}
|
2018-06-06 19:22:45 +09:00
|
|
|
}
|
|
|
|
|
2018-06-08 11:46:45 +09:00
|
|
|
return items;
|
|
|
|
},
|
|
|
|
|
|
|
|
onContextmenu(e) {
|
2018-10-19 06:18:33 +09:00
|
|
|
if (this.isTemporaryColumn) return;
|
2018-11-09 16:00:29 +09:00
|
|
|
this.$contextmenu(e, this.getMenu());
|
2018-06-08 11:46:45 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
showMenu() {
|
2018-11-09 08:13:34 +09:00
|
|
|
this.$root.new(Menu, {
|
2018-06-06 05:18:08 +09:00
|
|
|
source: this.$refs.menu,
|
2018-06-08 11:46:45 +09:00
|
|
|
items: this.getMenu()
|
2018-06-06 05:18:08 +09:00
|
|
|
});
|
2018-06-08 08:38:32 +09:00
|
|
|
},
|
|
|
|
|
2018-10-19 06:18:33 +09:00
|
|
|
close() {
|
2019-02-15 05:08:59 +09:00
|
|
|
this.$router.push('/');
|
2018-10-19 06:18:33 +09:00
|
|
|
},
|
|
|
|
|
2018-09-01 08:09:21 +09:00
|
|
|
goTop() {
|
|
|
|
this.$refs.body.scrollTo({
|
|
|
|
top: 0,
|
|
|
|
behavior: 'smooth'
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
2018-06-08 08:38:32 +09:00
|
|
|
onDragstart(e) {
|
2018-10-19 06:18:33 +09:00
|
|
|
// テンポラリカラムはドラッグさせない
|
|
|
|
if (this.isTemporaryColumn) {
|
|
|
|
e.preventDefault();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2018-06-08 08:38:32 +09:00
|
|
|
e.dataTransfer.effectAllowed = 'move';
|
|
|
|
e.dataTransfer.setData('mk-deck-column', this.column.id);
|
|
|
|
this.dragging = true;
|
|
|
|
},
|
|
|
|
|
|
|
|
onDragend(e) {
|
|
|
|
this.dragging = false;
|
|
|
|
},
|
|
|
|
|
2018-11-01 10:00:15 +09:00
|
|
|
onDragover(e) {
|
2018-10-19 06:18:33 +09:00
|
|
|
// テンポラリカラムにはドロップさせない
|
|
|
|
if (this.isTemporaryColumn) {
|
|
|
|
e.dataTransfer.dropEffect = 'none';
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2018-06-08 08:38:32 +09:00
|
|
|
// 自分自身がドラッグされている場合
|
|
|
|
if (this.dragging) {
|
|
|
|
// 自分自身にはドロップさせない
|
|
|
|
e.dataTransfer.dropEffect = 'none';
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const isDeckColumn = e.dataTransfer.types[0] == 'mk-deck-column';
|
|
|
|
|
|
|
|
e.dataTransfer.dropEffect = isDeckColumn ? 'move' : 'none';
|
|
|
|
|
2018-10-30 09:27:57 +09:00
|
|
|
if (!this.dragging && isDeckColumn) this.draghover = true;
|
2018-06-08 08:38:32 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
onDragleave() {
|
|
|
|
this.draghover = false;
|
|
|
|
},
|
|
|
|
|
|
|
|
onDrop(e) {
|
|
|
|
this.draghover = false;
|
2018-06-08 11:17:22 +09:00
|
|
|
this.$root.$emit('deck.column.dragEnd');
|
2018-06-08 08:38:32 +09:00
|
|
|
|
|
|
|
const id = e.dataTransfer.getData('mk-deck-column');
|
|
|
|
if (id != null && id != '') {
|
2019-02-25 19:45:00 +09:00
|
|
|
this.$store.commit('device/swapDeckColumn', {
|
2018-06-08 08:38:32 +09:00
|
|
|
a: this.column.id,
|
|
|
|
b: id
|
|
|
|
});
|
|
|
|
}
|
2018-06-06 01:54:24 +09:00
|
|
|
}
|
2018-06-05 21:36:21 +09:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
2018-09-28 15:34:34 +09:00
|
|
|
.dnpfarvgbnfmyzbdquhhzyxcmstpdqzs
|
2018-06-06 05:18:08 +09:00
|
|
|
$header-height = 42px
|
|
|
|
|
2018-06-05 21:36:21 +09:00
|
|
|
height 100%
|
2018-09-26 20:28:13 +09:00
|
|
|
background var(--face)
|
2018-10-15 17:55:59 +09:00
|
|
|
border-radius var(--round)
|
|
|
|
box-shadow var(--shadow)
|
2018-06-05 21:36:21 +09:00
|
|
|
overflow hidden
|
|
|
|
|
2018-06-08 08:38:32 +09:00
|
|
|
&.draghover
|
2018-09-26 20:19:35 +09:00
|
|
|
box-shadow 0 0 0 2px var(--primaryAlpha08)
|
2018-06-08 11:17:22 +09:00
|
|
|
|
2018-10-15 17:55:59 +09:00
|
|
|
&:after
|
|
|
|
content ""
|
|
|
|
display block
|
|
|
|
position absolute
|
|
|
|
z-index 1000
|
|
|
|
top 0
|
|
|
|
left 0
|
|
|
|
width 100%
|
|
|
|
height 100%
|
|
|
|
background var(--primaryAlpha02)
|
|
|
|
|
2018-06-08 08:38:32 +09:00
|
|
|
&.dragging
|
2018-09-26 20:19:35 +09:00
|
|
|
box-shadow 0 0 0 2px var(--primaryAlpha04)
|
2018-06-08 11:17:22 +09:00
|
|
|
|
|
|
|
&.dropready
|
|
|
|
*
|
|
|
|
pointer-events none
|
2018-06-08 08:38:32 +09:00
|
|
|
|
2018-06-08 05:48:27 +09:00
|
|
|
&:not(.active)
|
2018-06-08 04:21:06 +09:00
|
|
|
flex-basis $header-height
|
|
|
|
min-height $header-height
|
|
|
|
|
|
|
|
&:not(.isStacked).narrow
|
2018-06-07 08:41:58 +09:00
|
|
|
width 285px
|
2018-06-08 04:21:06 +09:00
|
|
|
min-width 285px
|
2018-12-06 11:11:46 +09:00
|
|
|
flex-grow 0 !important
|
2018-06-06 19:22:45 +09:00
|
|
|
|
|
|
|
&.naked
|
2018-09-28 15:34:34 +09:00
|
|
|
background var(--deckAcrylicColumnBg)
|
2018-06-06 19:22:45 +09:00
|
|
|
|
|
|
|
> header
|
|
|
|
background transparent
|
|
|
|
box-shadow none
|
|
|
|
|
2018-09-28 19:59:19 +09:00
|
|
|
> button
|
|
|
|
color var(--text)
|
2018-06-06 19:22:45 +09:00
|
|
|
|
2018-06-05 21:36:21 +09:00
|
|
|
> header
|
2018-09-01 08:09:21 +09:00
|
|
|
display flex
|
2018-10-12 03:28:37 +09:00
|
|
|
z-index 2
|
2018-06-06 05:18:08 +09:00
|
|
|
line-height $header-height
|
2018-06-05 21:36:21 +09:00
|
|
|
padding 0 16px
|
2018-06-07 05:14:37 +09:00
|
|
|
font-size 14px
|
2018-09-27 14:52:10 +09:00
|
|
|
color var(--faceHeaderText)
|
2018-09-26 20:28:13 +09:00
|
|
|
background var(--faceHeader)
|
2018-12-30 14:00:57 +09:00
|
|
|
box-shadow 0 var(--lineWidth) rgba(#000, 0.15)
|
2018-06-08 08:05:25 +09:00
|
|
|
cursor pointer
|
2018-06-05 21:36:21 +09:00
|
|
|
|
2018-06-08 04:21:06 +09:00
|
|
|
&, *
|
|
|
|
user-select none
|
|
|
|
|
2018-06-08 08:38:32 +09:00
|
|
|
*:not(button)
|
|
|
|
pointer-events none
|
|
|
|
|
2018-06-06 01:54:24 +09:00
|
|
|
&.indicate
|
2018-09-26 20:19:35 +09:00
|
|
|
box-shadow 0 3px 0 0 var(--primary)
|
2018-06-06 01:54:24 +09:00
|
|
|
|
2018-06-06 05:18:08 +09:00
|
|
|
> span
|
2018-11-06 01:40:11 +09:00
|
|
|
[data-icon]
|
2018-06-06 05:18:08 +09:00
|
|
|
margin-right 8px
|
|
|
|
|
2018-06-08 05:04:21 +09:00
|
|
|
> .count
|
|
|
|
margin-left 4px
|
|
|
|
opacity 0.5
|
|
|
|
|
2018-09-01 08:09:21 +09:00
|
|
|
> .toggleActive
|
|
|
|
> .menu
|
2018-10-19 06:18:33 +09:00
|
|
|
> .close
|
2018-10-15 17:55:59 +09:00
|
|
|
padding 0
|
2018-06-06 05:18:08 +09:00
|
|
|
width $header-height
|
|
|
|
line-height $header-height
|
2018-06-08 08:05:25 +09:00
|
|
|
font-size 16px
|
2018-09-27 14:32:48 +09:00
|
|
|
color var(--faceTextButton)
|
2018-06-06 05:18:08 +09:00
|
|
|
|
|
|
|
&:hover
|
2018-09-27 14:32:48 +09:00
|
|
|
color var(--faceTextButtonHover)
|
2018-06-06 05:18:08 +09:00
|
|
|
|
|
|
|
&:active
|
2018-09-28 15:34:34 +09:00
|
|
|
color var(--faceTextButtonActive)
|
2018-06-06 05:18:08 +09:00
|
|
|
|
2018-09-01 08:09:21 +09:00
|
|
|
> .toggleActive
|
|
|
|
margin-left -16px
|
|
|
|
|
|
|
|
> .menu
|
2018-10-19 06:18:33 +09:00
|
|
|
> .close
|
2018-09-01 08:09:21 +09:00
|
|
|
margin-left auto
|
|
|
|
margin-right -16px
|
|
|
|
|
2018-06-05 21:36:21 +09:00
|
|
|
> div
|
2018-06-06 05:29:31 +09:00
|
|
|
height "calc(100% - %s)" % $header-height
|
2018-06-05 21:36:21 +09:00
|
|
|
overflow auto
|
2018-06-05 21:44:02 +09:00
|
|
|
overflow-x hidden
|
2019-02-25 19:45:00 +09:00
|
|
|
-webkit-overflow-scrolling touch
|
2018-06-05 21:36:21 +09:00
|
|
|
|
|
|
|
</style>
|