Skip to content

Commit

Permalink
Merge pull request #6 from pepsico-ecommerce/AUTO-2386
Browse files Browse the repository at this point in the history
Auto 2386
  • Loading branch information
ripter authored Jun 15, 2021
2 parents 9262c6f + c91feb8 commit 8436d61
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 7 deletions.
1 change: 1 addition & 0 deletions css/all.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
@import "display.css";
@import "margin.css";
@import "padding.css";
@import "position.css";
@import "size.css";
@import "typography.css";
61 changes: 55 additions & 6 deletions css/margin.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,40 @@
https://frontstuff.io/in-defense-of-utility-first-css
*/

/* 0 */
.margin-0 {
margin: 0;
}
.margin-top-0 {
margin-top: 0;
}
.margin-bottom-0 {
margin-bottom: 0;
}
.margin-top-bottom-0 {
margin-top: 0;
margin-bottom: 0;
}
.margin-left-0 {
margin-left: 0;
}
.margin-right-0 {
margin-right: 0;
}
.margin-left-right-0 {
margin-left: 0;
margin-right: 0;
}

/* 0.25em */
.margin-bottom-0_25em {
margin-bottom: 0.25em;
}

/* 0.5em */
.margin-0_5em {
margin: 0.5em;
}
.margin-top-0_5em {
margin-top: 0.5em;
}
Expand All @@ -33,6 +61,9 @@
}

/* 1em */
.margin-1em {
margin: 1em;
}
.margin-top-1em {
margin-top: 1em;
}
Expand All @@ -56,11 +87,29 @@
margin-right: 1em;
}

/* 0 */
.margin-bottom-0 {
margin-bottom: 0;
/* 2em */
.margin-2em {
margin: 2em;
}

.margin-all-0 {
margin: 0;
.margin-top-2em {
margin-top: 2em;
}
.margin-bottom-2em {
margin-bottom: 2em;
}
.margin-left-2em {
margin-left: 2em;
}
.margin-right-2em {
margin-right: 2em;
}
.margin-top-bottom-2em {
/* padding can be written as one style, so this still counts as one. */
margin-top: 2em;
margin-bottom: 2em;
}
.margin-left-right-2em {
/* padding can be written as one style, so this still counts as one. */
margin-left: 2em;
margin-right: 2em;
}
3 changes: 3 additions & 0 deletions css/padding.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
}

/* 1em */
.padding-1em {
padding: 1em;
}
.padding-top-1em {
padding-top: 1em;
}
Expand Down
10 changes: 10 additions & 0 deletions css/position.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

.position-sticky {
position: -webkit-sticky;
position: sticky;
}


.top-0 {
top: 0;
}
4 changes: 4 additions & 0 deletions css/size.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
height: 16px;
}

.width-100pc {
width: 100%;
}

.width-184px {
width: 184px;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "compopo-design",
"version": "0.0.2",
"version": "0.0.4",
"description": "Core Components for PepsiCo Front End",
"files": "css/*.css",
"repository": {
Expand Down

0 comments on commit 8436d61

Please sign in to comment.