Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Typography: Added basic styles for paragraphs and lists #142

Closed
wants to merge 2 commits into from

Conversation

thejdeep
Copy link
Contributor

@thejdeep thejdeep commented Mar 3, 2016

No description provided.

@jquerybot
Copy link

Thank you for your pull request. It looks like this may be your first contribution to a jQuery Foundation project, if so we need you to sign our Contributor License Agreement (CLA).

📝 Please visit http://contribute.jquery.org/CLA/ to sign.

After you signed, the PR is checked again automatically after a minute. If there's still an issue, please reply here to let us know.


If you've already signed our CLA, it's possible your git author information doesn't match your CLA signature (both your name and email have to match), for more information, check the status of your CLA check.

@geekman-rohit
Copy link
Contributor

@thejdeep please sign our CLA at http://contribute.jquery.org/CLA/

@thejdeep
Copy link
Contributor Author

thejdeep commented Mar 3, 2016

Done. I am waiting for it to re-check.

@thejdeep
Copy link
Contributor Author

thejdeep commented Mar 3, 2016

@geekman-rohit Shouldn't be taking this long ?

@geekman-rohit
Copy link
Contributor

@thejdeep the bot doesn't update automatically, it will update the next time you push a commit .

If its time to pull in ur PR and the label is not updated, I'll confirm with the team that you have signed and update the label manually.

@arschmitz
Copy link
Contributor

@geekman-rohit the CLA does recheck automatically once a minute or so this is an actual failure.

@thejdeep the problem is you need to sign with your full name ( which i see you did at first ) but the name in your git config is just your first name and thats what its matching and checking against. It finds a match but fails on it only having first name. It should say this in the error details but looks like its returning a 404 on the link sorry about that!

@thejdeep thejdeep force-pushed the typo branch 3 times, most recently from c295fac to 14a3d8f Compare March 3, 2016 16:45
@geekman-rohit
Copy link
Contributor

@thejdeep you'll have to pull in latest commits and rebase to resolve conflicts


@mixin paragraph($style) {
text-align: map-get($style,textAlignment);
margin: em(map-get($style,margin)) 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

This mixin is called only once, do we really need it as a mixin?

value: {
margin: "25px",
fontSize: "16px",
textAlignment: "justify"
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure I would go with justify here. for the basic <p> styling.

@thejdeep thejdeep force-pushed the typo branch 2 times, most recently from 8cfb430 to bf6c02a Compare March 4, 2016 18:21
ol ul,
ul ol,
ol ol {
margin: 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

still something wrong with the indentation. No spaces. Single tab. Turn off soft tabs in your text editor.

@thejdeep thejdeep force-pushed the typo branch 2 times, most recently from 6dc25ed to c512ef3 Compare March 4, 2016 19:06
text-align: map-get($p,textAlignment);
margin: em(map-get($p,marginTopBottom)) em(map-get($p,marginLeftRight));
line-height: 1.5;
font-size: map-get($defaultFont, font-size);
Copy link
Contributor

Choose a reason for hiding this comment

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

$defaultFont doesnot exist anymore. Its $font-default now.
check https://github.com/jquery/css-chassis/blob/master/scss/variables/typography.js
Rebase this branch on jquery/master to see. That will also remove conflicts.

capitalization: "uppercase"
}
},
p: {
Copy link
Contributor

Choose a reason for hiding this comment

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

as discussed in meeting on tuesday. Double quotes around scss variables defined in jsass
check my comment on : #135

Typography: Eliminated need of a mixin for p

Typography: Eliminated need of mixin for p

Typography: Shorthand margins

Typography: Eliminated need of mixin for p

Typography: Fixed indentation

Typography: Fixed default fontSize

Typography: Changed to follow naming conventions
@sfrisk
Copy link
Contributor

sfrisk commented Mar 8, 2016

Is there a visual demo of paragraph and list tags?

text-align: map-get($p,text-alignment);
margin: em(map-get($p,margin-top)) em(map-get($p,margin-right)) em(map-get($p,margin-bottom)) em(map-get($p,margin-left));
line-height: 1.5;
font-size: map-get($font-default, font-size);
Copy link
Contributor

Choose a reason for hiding this comment

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

You are assigning the default font size to p directly. That will happen anyways as p will inherit the style.
Instead you should have a font-size variable in $p map which is set to the default font size by default, and user can overwrite if he wants

Copy link
Contributor

Choose a reason for hiding this comment

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

use em function on this so we get value in em

}

ul, ol {
margin: 0 0 10px;
Copy link
Contributor

Choose a reason for hiding this comment

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

margins should probably be put into a variable

Copy link
Contributor

@sfrisk sfrisk Apr 26, 2016

Choose a reason for hiding this comment

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

also just styling for ol/ul and nested ol/ul? no li styling?

@thejdeep
Copy link
Contributor Author

thejdeep commented May 3, 2016

Will work on this over the next few days. Was swamped with finals.

@sfrisk
Copy link
Contributor

sfrisk commented Jun 21, 2016

Any updates?

@sfrisk sfrisk closed this Feb 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants