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

absolute center fix #29

Closed
dbox opened this issue Jun 22, 2016 · 0 comments
Closed

absolute center fix #29

dbox opened this issue Jun 22, 2016 · 0 comments

Comments

@dbox
Copy link
Contributor

dbox commented Jun 22, 2016

Current:

@mixin absolute-center($width: 50%) {
  left: 0;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  right: 0;
  width: $width;
}

proposed:

@mixin absolute-center($width: 50%) {
  left: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: $width;  // better for responsive
  position: absolute;
  right: 0;
  width: 100%;  // better for responsive

}
dbox added a commit that referenced this issue Jul 15, 2016
@dbox dbox closed this as completed Jul 15, 2016
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

1 participant