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

Clean up base PL styles #236

Merged
merged 3 commits into from
May 29, 2018
Merged

Clean up base PL styles #236

merged 3 commits into from
May 29, 2018

Conversation

ModulesUnraveled
Copy link
Contributor

I might have got a bit overboard. I just wanted to add the wrapper and breakout mixins, but I couldn't help but clean up the mixins, colors, and apply a real basic facelift to the Pattern Lab interface.

All of this is negotiable, but I thought it looked good.

I'd particularly like @amazingrando to take a quick look at the new design*

  • I use the term "design" loosely :)

Copy link
Member

@amazingrando amazingrando left a comment

Choose a reason for hiding this comment

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

A couple of small changes.

@@ -0,0 +1,5 @@
main {
Copy link
Member

Choose a reason for hiding this comment

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

Should use .main instead of hanging this on the element. Could cause issues when main is used elsewhere.

@@ -0,0 +1,82 @@
// These styels are specifically for Pattern Lab.
Copy link
Member

Choose a reason for hiding this comment

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

Typo. Change "styels" to "styles".

@ModulesUnraveled
Copy link
Contributor Author

@amazingrando I've made those changes

Copy link
Contributor

@evanmwillhite evanmwillhite left a comment

Choose a reason for hiding this comment

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

This is awesome! I love all these changes from visual to code. A couple of questions, and that's it!

}
}

/// Use the breakout mixin for elements that should be edge-to-edge
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about separating all the full-width pieces out into a gist? I like the code, but this is really a project-specific need and makes the wrapper mixin a little less approachable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The breakout mixin doesn't affect the wrapper mixin in any way. The wrapper mixin will stay exactly the same, even if we remove the breakout mixin.

I'd like to keep the breakout in here. Maybe I just need to record a quick "Here's how to use this" video, or write a blogpost.

I don't think it's project-specific, it's just "any time you have a broad-context container (like body or main) and you need a way to have a full-width element, this is how you do it.

Copy link
Contributor

Choose a reason for hiding this comment

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

No worries - it was a minor nitpick to begin with. More prescriptive than my taste for Emulsify "core," but you're right about it not simplifying the breakout mixin. I was thinking we could get rid of some of the breakout mixin args, but you're using them all anyway.

I don't think a post/video is necessary for such a small piece of code (although showing off how it was used on a client project might be cool). It might not hurt to add some CSS comments or a link to someone else's post in the code (not necessary but maybe helpful for someone who hadn't come across that technique).

@@ -0,0 +1,9 @@
/// Mixin - With Icon
/// Precede Text with SVG icon
@mixin with-icon {
Copy link
Contributor

Choose a reason for hiding this comment

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

Pretty sure we don't need this anymore. This was harder with SVG in the CSS background and doesn't apply to the new setup using the SVG element.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool. I'll delete this file. I didn't know, so I didn't want to remove code that I wasn't familiar with.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@evanmwillhite Do all of the other icon files stay there? e.g. Am I just deleting this scss file?

Copy link
Contributor

Choose a reason for hiding this comment

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

yep!

Copy link
Contributor

@evanmwillhite evanmwillhite left a comment

Choose a reason for hiding this comment

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

All good, thanks again. Great stuff!

}
}

/// Use the breakout mixin for elements that should be edge-to-edge
Copy link
Contributor

Choose a reason for hiding this comment

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

No worries - it was a minor nitpick to begin with. More prescriptive than my taste for Emulsify "core," but you're right about it not simplifying the breakout mixin. I was thinking we could get rid of some of the breakout mixin args, but you're using them all anyway.

I don't think a post/video is necessary for such a small piece of code (although showing off how it was used on a client project might be cool). It might not hurt to add some CSS comments or a link to someone else's post in the code (not necessary but maybe helpful for someone who hadn't come across that technique).

@ModulesUnraveled ModulesUnraveled merged commit 4ed7f09 into develop May 29, 2018
@ModulesUnraveled ModulesUnraveled deleted the max-width branch May 29, 2018 16:58
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

3 participants