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:
Andrew Rynhard 2019-10-20 00:35:10 +00:00
parent d9dd55687b
commit 18f3596767

View File

@ -13,7 +13,7 @@
</svg> </svg>
<span class="mr-1">{{ dropdownTitle() }}</span> <span class="mr-1">{{ dropdownTitle() }}</span>
</button> </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"> <li class="" v-for="option in options" :key="option.version">
<a <a
@click="handleClick(option)" @click="handleClick(option)"
@ -71,8 +71,11 @@ export default {
} }
.dropdown-menu { .dropdown-menu {
width: auto;
display: none;
height: 0px; height: 0px;
background: white; background: white;
border-radius: 10px;
overflow: hidden; overflow: hidden;
-webkit-transition: all 0.3s ease-in-out; -webkit-transition: all 0.3s ease-in-out;
-moz-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 { .dropdown:hover .dropdown-menu {
display: block;
height: 100px; height: 100px;
} }
</style> </style>