Skip to content

Use mixin for border-radiusΒ #93

@C-Lodder

Description

@C-Lodder

I would be better to start using mixins for options styling attributes such as border-radius, like so:

variables.scss

$enable-rounded: true; // or false

Mixin

@mixin border-radius($radius: $border-radius) {
  @if $enable-rounded {
    border-radius: $radius;
  }
}

Meaning you won't have unecessary CSS bloat like border-radius: 0; when it's not needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions