mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-18 04:27:06 +02:00
docs: improve dropdown menu
The adds shadow and border radius to dropdown menu. Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
This commit is contained in:
parent
d9dd55687b
commit
18f3596767
@ -13,7 +13,7 @@
|
||||
</svg>
|
||||
<span class="mr-1">{{ dropdownTitle() }}</span>
|
||||
</button>
|
||||
<ul class="dropdown-menu absolute pt-1 w-full">
|
||||
<ul class="dropdown-menu absolute pt-1 w-full shadow-md">
|
||||
<li class="" v-for="option in options" :key="option.version">
|
||||
<a
|
||||
@click="handleClick(option)"
|
||||
@ -71,8 +71,11 @@ export default {
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
width: auto;
|
||||
display: none;
|
||||
height: 0px;
|
||||
background: white;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
-webkit-transition: all 0.3s ease-in-out;
|
||||
-moz-transition: all 0.3s ease-in-out;
|
||||
@ -91,6 +94,7 @@ export default {
|
||||
}
|
||||
|
||||
.dropdown:hover .dropdown-menu {
|
||||
display: block;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user