|
@@ -1,7 +1,10 @@
|
|
<template>
|
|
<template>
|
|
<div
|
|
<div
|
|
ref="box"
|
|
ref="box"
|
|
- class="box"
|
|
|
|
|
|
+ :class="{
|
|
|
|
+ 'floating-box': true,
|
|
|
|
+ column
|
|
|
|
+ }"
|
|
:id="id"
|
|
:id="id"
|
|
v-if="shown"
|
|
v-if="shown"
|
|
:style="{
|
|
:style="{
|
|
@@ -24,7 +27,8 @@
|
|
<script>
|
|
<script>
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
- id: { type: String, default: null }
|
|
|
|
|
|
+ id: { type: String, default: null },
|
|
|
|
+ column: { type: Boolean, default: true }
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -129,9 +133,18 @@ export default {
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
|
-.box {
|
|
|
|
|
|
+<style lang="scss">
|
|
|
|
+.night-mode .floating-box {
|
|
|
|
+ background-color: var(--dark-grey-2) !important;
|
|
|
|
+ border: 0 !important;
|
|
|
|
+ .box-body b {
|
|
|
|
+ color: var(--light-grey-2) !important;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.floating-box {
|
|
background-color: var(--white);
|
|
background-color: var(--white);
|
|
|
|
+ color: var(--black);
|
|
position: fixed;
|
|
position: fixed;
|
|
z-index: 10000000;
|
|
z-index: 10000000;
|
|
resize: both;
|
|
resize: both;
|
|
@@ -158,5 +171,13 @@ export default {
|
|
padding: 3px 6px;
|
|
padding: 3px 6px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ &.column .box-body {
|
|
|
|
+ flex-flow: column;
|
|
|
|
+ span {
|
|
|
|
+ flex: 1;
|
|
|
|
+ display: block;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|