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

EM-1237: Why CareerBuilder Layout and Placeholders #123

Merged

Conversation

arelia
Copy link
Contributor

@arelia arelia commented Aug 22, 2017

Purpose

As a potential buyer or high-level decision maker, I want to visit Hiring Dot and know what CareerBuilder can offer me as a vendor/partner.

  • Adds new mixins
    • container-edge-calc (buy box)
    • item-bar__container (homepage stats)
    • text-image-panels--full-bleed-image (small biz cta)
    • quad-layout (small biz benefits)
    • header--extra-large
  • Updates heading--hero--xl mixin, which had been a draft
  • I've started prefixing variables with underscore when they are specific to one thing, per https://github.com/airbnb/css#variables
  • Updates Pattern Library

JIRA
https://cb-content-enablement.atlassian.net/browse/EM-1237

Changes

  • Improvements and fixes, Changes to developer setup/environment, Architectural changes, Migrations or Steps to Take on Production, Side effects

    • n/a
  • Library changes

    • bump style base

Feature Server
Employer: http://web.employer-1.development.c66.me/company/why-careerbuilder
Pattern Library: http://cb-talent-development.github.io/employer-style-base/index.html

How to Verify These Changes

Relevant PRs/Dependencies

Additional Information

@arelia arelia changed the base branch from master to topic/EM-644-fractal-pattern-library--more-docs August 22, 2017 06:03
@arelia arelia self-assigned this Aug 22, 2017
package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "employer-style-base",
"version": "2.2.18",
"version": "2.2.18-alpha.3",
Copy link
Member

Choose a reason for hiding this comment

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

Nice use of semver!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@toastercup let's talk about how we want to do this. When should we use alpha vs beta?

@@ -90,6 +90,21 @@

// Item Bar

$_item-bar-breakpoint: 750px;
Copy link
Member

Choose a reason for hiding this comment

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

For the team's edification - we should come up with a rule for when to use _ as a prefix to signify something special in our Sass. What's your rule for deciding whether or not to use this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I mentioned in the PR description

I've started prefixing variables with underscore when they are specific to one thing, per https://github.com/airbnb/css#variables

Copy link
Member

Choose a reason for hiding this comment

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

ooooooooooooooooooooooooooooooooooooooooooooo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😃 😃 😃 😃 😃 😃 😃 😃 😃

Airbnb actually uses that when the variable is specific to the file. I tried that but there were still times when I needed the variable in both Style Base and Employer

arelia added 23 commits August 23, 2017 10:39
…al-pattern-library--more-docs

EM-644: Fractal Pattern Library Documentation
to adjust for the padding that the rest of the content lives within

this fixes the buy box being 20px outside of the area that the rest of the content is in

see https://trello.com/c/OzxNjQma/34-buy-box-is-out-of-alignment-with-content-area and https://cb-content-enablement.atlassian.net/browse/EM-1480
b/c flag needs to not quite be on the edge
arelia added 9 commits August 23, 2017 11:06
…anels--full-bleed-image

update text-image-panels--full-bleed-image mixin so that text stays within .container
after setting max width for headline text it was no longer centered, this fixes that
mobile safari was scaling up font size on one paragraph on new why cb page in about section
this paragraph wasn't styled any differently from other paragraphs on the page. it was using .employer-scope styles
Safari has a bug where media queries and rems don't work together: https://stackoverflow.com/questions/13237782/safari-doesnt-calculate-rem-units-correct-when-scaling-with-media-width-heigh
 and https://stackoverflow.com/questions/25960783/why-does-safari-calculate-rems-in-media-queries-differently-than-other-browsers
Added this property to fix it: http://www.456bereastreet.com/archive/201011/beware_of_-webkit-text-size-adjustnone/ and https://developer.mozilla.org/en-US/docs/Web/CSS/text-size-adjust
But only for Safari, I didn't see the issue on ios Chrome or Firefox
@arelia arelia force-pushed the topic/EM-1237-why-cb branch from 3510aea to 9b9ce45 Compare August 23, 2017 19:14
@arelia arelia merged commit fb3c9c4 into topic/EM-644-fractal-pattern-library--more-docs Aug 24, 2017
@arelia arelia mentioned this pull request Aug 24, 2017
@arelia arelia deleted the topic/EM-1237-why-cb branch September 14, 2017 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants