Skip to content

Commit

Permalink
Abstract side paddings
Browse files Browse the repository at this point in the history
Abstract side paddings
  • Loading branch information
Vadim Makeev committed Mar 28, 2019
1 parent 2cb0fee commit fd85f5d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions styles/shower/shower.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
--slide-height: calc(
var(--slide-width) / var(--slide-ratio)
);
--slide-side: 100px;

--color-blue: #4b86c2;
--color-blue-lighter: #6799cb;
Expand Down
10 changes: 7 additions & 3 deletions styles/slide/content/code.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@

.slide pre code {
display: block;
margin-left: -100px;
padding: 0 0 0 100px;
width: calc(100% + 100px + 100px);
margin-left: calc(
var(--slide-side) * -1
);
padding: 0 0 0 var(--slide-side);
width: calc(
100% + var(--slide-side) * 2
);
border-radius: 0;
background-color: transparent;
line-height: 2;
Expand Down
2 changes: 1 addition & 1 deletion styles/slide/content/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
bottom: 0;
left: 0;
z-index: 1;
padding: 50px 100px 25px;
padding: 50px var(--slide-side) 25px;
background-color: var(--color-yellow);
transition: transform 0.3s linear;
}
Expand Down
4 changes: 2 additions & 2 deletions styles/slide/content/table.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* Table */

.slide table {
margin-left: -100px;
margin-left: calc(var(--slide-side) * -1);
margin-bottom: 1em;
width: calc(
100% + 100px + 100px
100% + var(--slide-side) * 2
);
border-collapse: collapse;
border-spacing: 0;
Expand Down
2 changes: 1 addition & 1 deletion styles/slide/slide.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
z-index: 0;
overflow: hidden;
box-sizing: border-box;
padding: 75px 100px 0;
padding: 75px var(--slide-side) 0;
width: var(--slide-width);
height: var(--slide-height);
background-color: white;
Expand Down

0 comments on commit fd85f5d

Please sign in to comment.