Skip to content

Commit

Permalink
feat: added font and icon sizes to Style Settings support
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgurney committed Apr 23, 2024
1 parent a2d4bdb commit df36ab9
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions styles.css
Expand Up @@ -146,12 +146,6 @@ settings:
format: hex
default-light: '#'
default-dark: '#'
-
id: cg-nt-item-border-radius
title: Border radius (in px units)
type: variable-number
default: 5
format: px
-
id: cg-nt-item-text-color
title: Text color
Expand All @@ -168,6 +162,24 @@ settings:
format: hex
default-light: '#'
default-dark: '#'
-
id: cg-nt-item-border-radius
title: Border radius (in px units)
type: variable-number
default: 5
format: px
-
id: cg-nt-item-font-size
title: Font size (in em units)
type: variable-number
default: 0.875
format: em
-
id: cg-nt-item-icon-size
title: Icon size (in px units)
type: variable-number
default: 18
format: px
-
id: titlebar-heading
title: Toolbar Items (button style)
Expand All @@ -194,6 +206,8 @@ body {
--cg-nt-item-bg-color-hover: var(--background-modifier-hover);
--cg-nt-item-border-radius: var(--button-radius);
--cg-nt-item-button-bg-color: var(--interactive-normal);
--cg-nt-item-font-size: var(--metadata-label-font-size);
--cg-nt-item-icon-size: var(--icon-size);
--cg-nt-item-text-color: var(--metadata-label-text-color);
--cg-nt-item-text-color-hover: var(--text-normal);
}
Expand Down Expand Up @@ -298,9 +312,13 @@ body {
padding: 0.5em 0.75em 0.5em 0.75em;
display: block;
text-decoration: none;
font-size: var(--metadata-label-font-size);
font-size: var(--cg-nt-item-font-size);
border-radius: var(--cg-nt-item-border-radius);
height: 100%;
& svg {
height: var(--cg-nt-item-icon-size);
width: var(--cg-nt-item-icon-size);
}
}

& a:focus-within, span.external-link:focus-within {
Expand Down

0 comments on commit df36ab9

Please sign in to comment.