Skip to content

Commit

Permalink
finetuning segmented buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaHarambasic committed Mar 4, 2024
1 parent e219a5d commit cfbd5d4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lib/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
border-radius: var(--border-radius-small);
background: var(--c-surface);
overflow: hidden;
@media screen and (max-width:30rem) {
width: 100%;
flex-direction: column;
}
.button {
transition: var(--transition);
margin: 0;
Expand All @@ -54,6 +58,7 @@
font-family: var(--font-family);
letter-spacing: var(--font-letter-spacing-headline);
text-decoration: none;
text-align: center;
&:hover {
cursor: pointer;
background: var(--c-surface-accent);
Expand All @@ -62,6 +67,13 @@
&:last-child {
border-right: none;
}
@media screen and (max-width:30rem) {
width: 100%;
border-right: none;
&:not(:last-child) {
border-bottom: 1px solid var(--c-surface-accent);
}
}
}
}

Expand Down

0 comments on commit cfbd5d4

Please sign in to comment.