Tweaked styling and whatnot for dropdown menus. Still overall nonfunctional, quite possibly will need a large overhaul before it's in working shape.

This commit is contained in:
ajdj100
2023-05-19 00:07:12 -04:00
parent 0cdd98fa99
commit d38e41d90f
4 changed files with 22 additions and 10 deletions

View File

@@ -57,6 +57,7 @@ button {
border-radius: 5px; border-radius: 5px;
font-size: 15px; font-size: 15px;
padding: 10px; padding: 10px;
padding-left: 15px;
color: var(--white); color: var(--white);
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View File

@@ -20,11 +20,13 @@ export default {
<style scoped> <style scoped>
div { div {
display: flex; display: block;
flex-direction: column; /* flex-direction: column; */
width: 10%;
position: absolute; position: absolute;
background-color: var(--background-secondary); background-color: var(--background-secondary);
border-radius: 0px 0px 10px 10px; border-radius: 0px 0px 10px 10px;
padding: 10px; /* padding: 10px; */
} }
</style> </style>

View File

@@ -1,6 +1,6 @@
<script> <script>
export default { export default {
name: 'dropdownItem' name: 'dropdownItem',
} }
</script> </script>
@@ -13,12 +13,19 @@ export default {
<style scoped> <style scoped>
* { * {
color: var(--white); color: var(--white);
padding: 5px; padding: 10px;
}
div {
padding: 15px;
}
div:last-child {
border-radius: 0 0 5px 5px;
} }
div:hover { div:hover {
background-color: var(--accent-primary); background-color: var(--accent-primary);
transition: color 0.5s;
} }
</style> </style>

View File

@@ -54,11 +54,13 @@ export default {
<option>RRC</option> <option>RRC</option>
</select> </select>
<dropdown title="hello"> <dropdown title="All Groups">
<DropdownContent> <DropdownContent>
<DropdownItem>Item 1</DropdownItem> <DropdownItem>All Groups</DropdownItem>
<DropdownItem>Item 2</DropdownItem> <DropdownItem>Echo</DropdownItem>
<DropdownItem>Item 3</DropdownItem> <DropdownItem>HHC</DropdownItem>
<DropdownItem>Recruit</DropdownItem>
<DropdownItem>Discharged</DropdownItem>
</DropdownContent> </DropdownContent>
</dropdown> </dropdown>