-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbe16be
commit e5d0183
Showing
1 changed file
with
60 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,65 @@ | ||
.tabs .tabs-list { | ||
display: flex; | ||
gap: 0.5ch; | ||
max-width: 100%; | ||
font-size: var(--body-font-size-xs); | ||
overflow-x: auto; | ||
} | ||
|
||
@media (width >= 600px) { | ||
.tabs .tabs-list { | ||
font-size: var(--body-font-size-s); | ||
} | ||
} | ||
|
||
@media (width >= 900px) { | ||
.tabs .tabs-list { | ||
font-size: var(--body-font-size-m); | ||
} | ||
} | ||
|
||
.tabs .tabs-list button { | ||
flex: 0 0 max-content; | ||
margin: 0; | ||
border: 1px solid #dadada; | ||
border-radius: 0; | ||
padding: 0.8rem 1.6rem; | ||
background-color: var(--light-color); | ||
color: initial; | ||
font-weight: 500; | ||
line-height: unset; | ||
text-align: initial; | ||
text-overflow: unset; | ||
overflow: unset; | ||
white-space: unset; | ||
transition: background-color 0.2s; | ||
} | ||
|
||
.tabs .tabs-list button p { | ||
margin: 0; | ||
} | ||
display: flex; | ||
gap: 0.5ch; | ||
max-width: 100%; | ||
font-size: var(--body-font-size-xs); | ||
overflow-x: auto; | ||
} | ||
|
||
|
||
.tabs .tabs-list button[aria-selected='true'] { | ||
border-bottom: 1px solid var(--background-color); | ||
background-color: var(--background-color); | ||
cursor: initial; | ||
@media (width >= 600px) { | ||
.tabs .tabs-list { | ||
font-size: var(--body-font-size-s); | ||
} | ||
|
||
.tabs .tabs-panel { | ||
margin-top: -1px; | ||
padding: 24px; | ||
border: 1px solid #dadada; | ||
overflow: auto; | ||
} | ||
|
||
@media (width >= 900px) { | ||
.tabs .tabs-list { | ||
font-size: var(--body-font-size-m); | ||
} | ||
} | ||
|
||
.tabs .tabs-panel[aria-hidden='true'] { | ||
display: none; | ||
} | ||
.tabs .tabs-list button { | ||
flex: 0 0 max-content; | ||
margin: 0; | ||
border: 0; | ||
border-bottom: 2px solid transparent; | ||
border-radius: 0; | ||
padding: var(--spacing-small) var(--spacing-medium); | ||
background-color: var(--light-color); | ||
color: var(--color-brand-500); | ||
font-size: 1.8rem; | ||
font-weight: 500; | ||
line-height: 1; | ||
text-align: initial; | ||
text-overflow: unset; | ||
overflow: unset; | ||
white-space: unset; | ||
transition: background-color 0.2s; | ||
cursor: pointer; | ||
} | ||
|
||
.tabs .tabs-list button:hover { | ||
color: var(--color-brand-600); | ||
} | ||
|
||
.tabs .tabs-list button p { | ||
margin: 0; | ||
} | ||
|
||
|
||
.tabs .tabs-list button[aria-selected='true'] { | ||
border-bottom: 2px solid var(--color-black); | ||
background-color: var(--background-color); | ||
color: var(--color-black); | ||
cursor: initial; | ||
} | ||
|
||
.tabs .tabs-panel { | ||
margin-top: -2px; | ||
border-top: 2px solid var(--color-neutral-300); | ||
overflow: auto; | ||
} | ||
|
||
.tabs .tabs-panel[aria-hidden='true'] { | ||
display: none; | ||
} |