grafic desijn is my pashion
This commit is contained in:
parent
1c9bff704a
commit
81218eb21a
22 changed files with 195 additions and 442 deletions
37
frontend/vju_display/src/components/tabs/Tab.vue
Normal file
37
frontend/vju_display/src/components/tabs/Tab.vue
Normal file
|
@ -0,0 +1,37 @@
|
|||
<script setup lang="ts">
|
||||
const props = defineProps({
|
||||
selected: Boolean
|
||||
})
|
||||
</script>
|
||||
<template>
|
||||
<div class="tab" :class="{selected: props.selected}">
|
||||
<slot/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.tab {
|
||||
background-color: var(--color-brand-ul-medium-grey);
|
||||
border: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
.tab:hover {
|
||||
cursor: pointer;
|
||||
|
||||
}
|
||||
|
||||
.tab.selected {
|
||||
background-color: var(--color-brand-ul-red);
|
||||
}
|
||||
|
||||
.vertical-tabs .tab {
|
||||
width: 100%;
|
||||
padding: 1rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.vertical-tabs .tab:not(:last-child) {
|
||||
margin-bottom: .3rem;
|
||||
}
|
||||
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue