Skip to content

Unused variables in initial-variables.scss #3842

Closed
@theHacker

Description

@theHacker

This is about Bulma.
It seems to be a bug.

Overview of the problem

This is a Sass issue: I'm using version [1.0.1]
I am sure this issue is not a duplicate.

Description

I was looking in the Sass sources what can be configured, and I stumbled on $speed.
Curious what this is controlling, I searched for usages. But there are none.

It seems like some values in themes/light.scss are hard-coded instead of using their values from initial-variables.scss.
Comparing themes/light.scss

      // Other
      "block-spacing": iv.$block-spacing,
      "duration": 294ms,
      "easing": ease-out,
      "radius-small": iv.$radius-small,
      "radius": iv.$radius,
      "radius-medium": iv.$radius-medium,
      "radius-large": iv.$radius-large,
      "radius-rounded": 9999px,
      "speed": 86ms,

with
initial-variables.scss

// Miscellaneous

$easing: ease-out !default;
$radius-small: 0.25rem !default;
$radius: 0.375rem !default;
$radius-medium: 0.5em !default;
$radius-large: 0.75rem !default;
$radius-rounded: 9999px !default;
$speed: 86ms !default;

one notices, $easing, $radius-rounded and $speed are not used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions