Debian Codegraph @

js-packages/@fortawesome/fontawesome-free/scss/_bordered.scss

raw
1 // bordered icons
2 // -------------------------
3 @use 'variables' as v;
4
5 /* Heads Up: Bordered Icons will not be supported in the future!
6 - This feature will be deprecated in the next major release of Font Awesome (v8)!
7 - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
8 */
9
10 /* Notes:
11 * --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
12 * --@{v.$css-prefix}-border-padding =
13 ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
14 ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
15 */
16
17 .#{v.$css-prefix}-border {
18 border-color: var(--#{v.$css-prefix}-border-color, #{v.$border-color});
19 border-radius: var(--#{v.$css-prefix}-border-radius, #{v.$border-radius});
20 border-style: var(--#{v.$css-prefix}-border-style, #{v.$border-style});
21 border-width: var(--#{v.$css-prefix}-border-width, #{v.$border-width});
22 box-sizing: var(--#{v.$css-prefix}-border-box-sizing, #{v.$border-box-sizing});
23 padding: var(--#{v.$css-prefix}-border-padding, #{v.$border-padding});
24 }