This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Menu component should have the same minimum width than it's trigger
- Loading branch information
Showing
5 changed files
with
37 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,41 @@ | ||
:host { | ||
user-select : none; | ||
user-select: none; | ||
margin-right: .5rem; | ||
display : block; | ||
display: block; | ||
@apply rounded-t-sm; | ||
|
||
&:hover { | ||
.dropdown { | ||
svg { | ||
opacity: 1; | ||
fill : var(--text-primary); | ||
} | ||
} | ||
} | ||
} | ||
|
||
div { | ||
cursor : pointer; | ||
cursor: pointer; | ||
display: flex; | ||
@apply rounded-t; | ||
flex-grow : 0; | ||
width : 1rem; | ||
transition : all .1s ease-in-out; | ||
flex-grow: 0; | ||
transition: all .1s ease-in-out; | ||
justify-content: center; | ||
align-items : center; | ||
align-items: center; | ||
@apply py-1; | ||
@apply px-3; | ||
} | ||
|
||
.dropdown { | ||
margin-left: 1px; | ||
width : 2rem; | ||
height : auto; | ||
padding : 0; | ||
margin : 0; | ||
height: auto; | ||
padding: 0; | ||
margin: 0; | ||
|
||
svg { | ||
opacity : 0.7; | ||
fill : var(--text-primary); | ||
width : 0.51rem; | ||
opacity: 0.7; | ||
fill: var(--text-primary); | ||
width: 0.51rem; | ||
transition: all cubic-bezier(0.175, 0.885, 0.32, 1.275) .2s; | ||
|
||
transform: rotate(90deg); | ||
position : relative; | ||
top : 3px; | ||
position: relative; | ||
top: 3px; | ||
} | ||
} | ||
|
||
:host.active { | ||
@apply bg-buttons-light; | ||
|
||
.dropdown { | ||
cursor: pointer; | ||
|
||
svg { | ||
opacity: 1; | ||
fill : var(--text-primary); | ||
} | ||
} | ||
@apply bg-gray-500; | ||
color: white !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,40 @@ | ||
.item-list { | ||
width : 100%; | ||
display : flex; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
@apply bg-buttons-light; | ||
@apply bg-gray-500; | ||
@apply shadow-xl; | ||
user-select: none; | ||
|
||
app-menu-item, | ||
app-menu-group { | ||
display: block; | ||
width : 100%; | ||
width: 100%; | ||
} | ||
|
||
app-menu-item { | ||
cursor: pointer; | ||
@apply p-2; | ||
@apply px-4; | ||
font-size : 0.7rem; | ||
color : #cacaca; | ||
@apply px-4 text-primary text-xxs; | ||
font-weight: 500; | ||
|
||
&:hover { | ||
@apply bg-buttons-dark; | ||
@apply bg-gray-300; | ||
} | ||
|
||
&.disabled { | ||
cursor : not-allowed; | ||
cursor: not-allowed; | ||
opacity: 0.5; | ||
} | ||
} | ||
|
||
app-menu-group { | ||
@apply p-1; | ||
@apply px-4; | ||
display : block; | ||
display: block; | ||
text-transform: uppercase; | ||
@apply text-secondary; | ||
font-size: 0.7rem; | ||
opacity : .7; | ||
opacity: .7; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters