platypush/platypush/backend/http/webapp/src/components/MenuPanel.vue

111 lines
1.8 KiB
Vue
Raw Normal View History

2020-12-03 00:59:35 +01:00
<template>
<div class="menu-panel">
2020-12-09 21:16:07 +01:00
<div class="content">
2020-12-03 00:59:35 +01:00
<slot />
2020-12-09 21:16:07 +01:00
</div>
2020-12-03 00:59:35 +01:00
</div>
</template>
<script>
export default {
name: "MenuPanel",
}
</script>
<style lang="scss">
.menu-panel {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
background: $menu-panel-bg;
padding-top: 2em;
2020-12-09 21:16:07 +01:00
.content {
2020-12-03 00:59:35 +01:00
background: $menu-panel-content-bg;
border-radius: 15px;
box-shadow: $plugin-panel-shadow;
border: 0;
2020-12-09 21:16:07 +01:00
.panel-row {
2020-12-03 00:59:35 +01:00
display: flex;
2020-12-09 21:16:07 +01:00
margin: 0 !important;
padding: 1em;
2020-12-03 00:59:35 +01:00
box-shadow: $plugin-panel-entry-shadow;
cursor: pointer;
border: 0;
letter-spacing: 0.05em;
&:hover {
background: $hover-bg;
}
&:first-child {
border-radius: 15px 15px 0 0;
box-shadow: $plugin-panel-first-entry-shadow;
}
&:last-child {
border-radius: 0 0 15px 15px;
box-shadow: $plugin-panel-last-entry-shadow;
}
2020-12-09 21:16:07 +01:00
}
2020-12-03 00:59:35 +01:00
2020-12-09 21:16:07 +01:00
.header {
background: $menu-header-bg;
font-weight: bold;
box-shadow: $menu-header-shadow;
2020-12-03 00:59:35 +01:00
2020-12-09 21:16:07 +01:00
&:hover {
background: $menu-header-bg;
2020-12-03 00:59:35 +01:00
}
}
}
}
2020-12-16 22:31:04 +01:00
@media screen and (max-width: $desktop) {
2020-12-03 00:59:35 +01:00
.menu-panel {
padding-top: 0;
2020-12-09 21:16:07 +01:00
.content {
2020-12-03 00:59:35 +01:00
min-width: 100%;
2020-12-09 21:16:07 +01:00
.row {
2020-12-03 00:59:35 +01:00
&:first-child {
border-radius: 0;
}
&:last-child {
border-radius: 0;
}
}
}
}
}
@media screen and (min-width: $desktop) {
.menu-panel {
2020-12-09 21:16:07 +01:00
.content {
2020-12-16 22:31:04 +01:00
min-width: 75%;
2020-12-03 00:59:35 +01:00
}
}
}
@media screen and (min-width: $widescreen) {
.menu-panel {
2020-12-09 21:16:07 +01:00
.content {
2020-12-16 22:31:04 +01:00
min-width: 50%;
2020-12-03 00:59:35 +01:00
}
}
}
@media screen and (min-width: $fullhd) {
.menu-panel {
2020-12-09 21:16:07 +01:00
.content {
min-width: 35%;
2020-12-03 00:59:35 +01:00
}
}
}
</style>