Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mixin for border-radius #93

Open
C-Lodder opened this issue Aug 16, 2018 · 1 comment
Open

Use mixin for border-radius #93

C-Lodder opened this issue Aug 16, 2018 · 1 comment

Comments

@C-Lodder
Copy link
Contributor

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

@hardik-codes
Copy link
Contributor

@C-Lodder in which file you want the above changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants