blob: a77dc249388d74e71f56c279825728d73fa7bcfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
<template>
<div :class="{fullscreen}">
<div class="layout top">header</div>
<div class="layout left">panel</div>
<router-view class="layout content" />
<fa-icon
icon="expand-arrows-alt"
class="layout button-fullscreen"
@click="fullscreen=!fullscreen"
/>
</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
@Component
export default class LdGallery extends Vue {
fullscreen: boolean = false;
}
</script>
<style lang="scss">
body,
html {
height: 100%;
overflow: hidden;
--layout-left: 250px;
--layout-top: 30px;
}
.layout {
position: fixed;
transition: all 0.1s linear;
&.top {
top: 0;
left: 0;
right: 0;
height: var(--layout-top);
}
&.left {
top: var(--layout-top);
bottom: 0;
left: 0;
width: var(--layout-left);
}
&.content {
top: var(--layout-top);
left: var(--layout-left);
right: 0;
bottom: 0;
}
&.button-fullscreen {
top: 0;
right: 0;
margin: 3px 10px;
opacity: 50%;
font-size: 1.5em;
color: white;
mix-blend-mode: difference;
cursor: pointer;
}
}
.fullscreen {
--layout-left: 0px;
--layout-top: 0px;
}
// temp colors
.layout {
&.top {
background-color: darkslategray;
color: white;
}
&.left {
background-color: darkblue;
color: white;
}
&.content {
background-color: lightcyan;
}
}
</style>
|