Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

feat(layouts): add @mixin for responsive support for rows #9115

Closed
wants to merge 1 commit into from

Conversation

clshortfuse
Copy link
Contributor

Create @mixin that allows different layout breakpoints

Fixes #9112

@clshortfuse
Copy link
Contributor Author

http://codepen.io/shortfuse/pen/AXyZLX (localhost test)

@@ -326,3 +326,47 @@
}
}
}

// Only use when in row layout
@mixin when-layout-row($element) {
Copy link
Member

@crisbeto crisbeto Jul 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a whole lot of selectors (close 1.5kb), for something as simple as drawing a divider.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I do have some PRs that would use this to fix issues with md-select, md-checkbox, md-input-container and md-datepicker. I had a tough time trying to squish it down though.

@clshortfuse clshortfuse added the in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs label Jul 22, 2016
@clshortfuse
Copy link
Contributor Author

I realized I should expand this to divider-theme.scss and radio-button.scss to make better use of the CSS

Create @mixin that allows different layout breakpoints

Fixes angular#9112
@clshortfuse clshortfuse changed the title fix(md-divider): support responsive layouts feat(layouts): add @mixin for responsive support for rows Jul 22, 2016
@clshortfuse clshortfuse removed the in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs label Jul 22, 2016
@clshortfuse
Copy link
Contributor Author

clshortfuse commented Jul 22, 2016

Yeah, this is looking too bloated. Bumped radio-button from 3KB to 10KB.


// Only use when in row layout
@mixin when-layout-row($element, $parent: '') {
@media (max-width: 599px) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have variables for those breakpoints

@ThomasBurleson
Copy link
Contributor

Mistakenly merged... just now reverted from master.

@ThomasBurleson
Copy link
Contributor

Rejected as invalid PR

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

Successfully merging this pull request may close these issues.

None yet

4 participants