chore(refactor): modern UI

This commit is contained in:
Liyas Thomas
2020-12-11 22:24:34 +05:30
parent 773423069b
commit 5a7bcf32ea
55 changed files with 936 additions and 860 deletions

View File

@@ -1,6 +1,6 @@
<template>
<fieldset :id="label.toLowerCase()" :class="{ 'no-colored-frames': !frameColorsEnabled }">
<legend @click.prevent="collapse">
<legend v-if="!noLegend" @click.prevent="collapse">
<span>{{ label }}</span>
<i class="ml-2 align-middle material-icons">
{{ isCollapsed(label) ? "expand_more" : "expand_less" }}
@@ -14,8 +14,7 @@
<style scoped lang="scss">
fieldset {
@apply my-2;
@apply p-2;
@apply my-4;
@apply rounded-lg;
@apply bg-bgDarkColor;
@apply transition;
@@ -23,8 +22,8 @@ fieldset {
@apply duration-200;
legend {
@apply px-4;
@apply text-fgColor;
@apply text-sm;
@apply font-bold;
@apply cursor-pointer;
@apply transition;
@@ -86,6 +85,10 @@ export default {
type: String,
default: "Section",
},
noLegend: {
type: Boolean,
default: false,
},
},
methods: {