1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

Set font-size of webfont icon inside a button (#2046)

This commit is contained in:
BG-Software
2025-01-07 22:44:36 +01:00
committed by GitHub
parent 041f4e453f
commit bc1d1a3066
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@tabler/core": patch
---
Set `font-size` of an `i` element with `icon` class in a `button` element

View File

@@ -23,6 +23,7 @@
width: var(--#{$prefix}btn-icon-size);
height: var(--#{$prefix}btn-icon-size);
min-width: var(--#{$prefix}btn-icon-size);
font-size: var(--#{$prefix}btn-icon-size);
margin: 0 calc(var(--#{$prefix}btn-padding-x) / 2) 0 calc(var(--#{$prefix}btn-padding-x) / -4);
vertical-align: bottom;
color: inherit;