Skip to content

Commit

Permalink
another attempt to fix mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
karsonkalt committed Jul 19, 2024
1 parent 10bbf65 commit fb5b171
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>Karson Kalt</h1>
LinkedIn
</a>
<a href="https://twitter.com/karsonkalt" target="_blank">X</a>
<div class="dropdown-menu">
<div class="dropdown-menu" tabindex="0">
<button
id="contact-button"
aria-haspopup="true"
Expand Down
10 changes: 5 additions & 5 deletions _sass/custom-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ main {

.dropdown-menu {
position: relative;
user-select: none;

button {
all: unset;
Expand Down Expand Up @@ -244,6 +245,10 @@ main {
}
}

&:focus-within .dropdown-content {
display: block;
}

.dropdown-content {
display: none;
position: absolute;
Expand All @@ -256,11 +261,6 @@ main {
z-index: 1;
overflow: hidden;

&:focus-within,
&:active {
display: block;
}

&[data-position="bottom-right"] {
right: 0;
animation: growFromTopRight 200ms;
Expand Down

0 comments on commit fb5b171

Please sign in to comment.