-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update token and token base to css modules
- Loading branch information
1 parent
536d7ab
commit 16e847e
Showing
4 changed files
with
129 additions
and
43 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.Token { | ||
max-width: 100%; | ||
color: var(--fgColor-muted); | ||
background-color: var(--bgColor-neutral-muted); | ||
border-color: var(--borderColor-muted); | ||
border-style: 'solid'; | ||
} | ||
|
||
.Token[data-interactive='true']:hover { | ||
color: var(--fgColor-default); | ||
background-color: var(--bgColor-neutral-muted); | ||
box-shadow: var(--shadow-resting-medium); | ||
} | ||
|
||
.Token[data-is-selected='true'] { | ||
color: var(--fgColor-default); | ||
} | ||
|
||
.Token[data-is-remove-btn='true'] { | ||
padding-right: 0; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
.TokenBase { | ||
position: relative; | ||
display: inline-flex; | ||
font-family: inherit; | ||
font-weight: var(--base-text-weight-semibold); | ||
text-decoration: none; | ||
white-space: nowrap; | ||
border-radius: var(--borderRadius-full); | ||
align-items: center; | ||
} | ||
|
||
.TokenBase[data-cursor-is-interactive='true'] { | ||
cursor: pointer; | ||
} | ||
|
||
.TokenBase[data-cursor-is-interactive='false'] { | ||
cursor: auto; | ||
} | ||
|
||
.TokenBase[data-size='small'] { | ||
width: auto; | ||
height: 16px; | ||
padding-right: var(--base-size-4); | ||
padding-left: var(--base-size-4); | ||
font-size: var(--text-body-size-small); | ||
/* stylelint-disable-next-line primer/typography */ | ||
line-height: 16px; | ||
} | ||
|
||
.TokenBase[data-size='medium'] { | ||
width: auto; | ||
height: 20px; | ||
padding-right: var(--base-size-8); | ||
padding-left: var(--base-size-8); | ||
font-size: var(--text-body-size-small); | ||
/* stylelint-disable-next-line primer/typography */ | ||
line-height: 20px; | ||
} | ||
|
||
.TokenBase[data-size='large'] { | ||
width: auto; | ||
height: 24px; | ||
padding-right: var(--base-size-8); | ||
padding-left: var(--base-size-8); | ||
font-size: var(--text-body-size-small); | ||
/* stylelint-disable-next-line primer/typography */ | ||
line-height: 24px; | ||
} | ||
|
||
.TokenBase[data-size='xlarge'] { | ||
width: auto; | ||
height: 32px; | ||
padding-top: 0; | ||
padding-right: var(--base-size-16); | ||
padding-bottom: 0; | ||
padding-left: var(--base-size-16); | ||
font-size: var(--text-body-size-medium); | ||
/* stylelint-disable-next-line primer/typography */ | ||
line-height: 32px; | ||
} |
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