Skip to content

Commit e22d3ab

Browse files
Misha VinokurMisha Vinokur
authored andcommitted
v.2
1 parent 64f4224 commit e22d3ab

File tree

5 files changed

+27
-30
lines changed

5 files changed

+27
-30
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
A set of CSS designs that include grid functions, responsive font, and basic form styling
33

44
## Get Started
5-
Open the scaffold.scss file and set the values for `$base-font`, `$ratio`, `$max-width`
5+
Open the _scaffold.scss file and set the values for `$base-font`, `$ratio`, `$max-width`
66

77
## Examples
88
To make a button class in your main .scss file create a new class `.button` and add the following ` @extend .button`

_grid.scss

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
// Grid
22
@mixin two-col($gap, $fr1, $fr2 ) {
3-
display: grid;
4-
grid-gap: $gap;
5-
grid-template-columns: $fr1 $fr2;
3+
display: grid;
4+
grid-gap: $gap;
5+
grid-template-columns: $fr1 $fr2;
6+
align-items: center;
67

7-
@media screen and (max-width: $medium-break) {
8-
grid-template-columns: 1fr;
9-
}
8+
@media screen and (max-width: $medium-break) {
9+
grid-template-columns: 1fr;
10+
}
1011
}
1112

1213
@mixin three-col($gap, $fr1, $fr2, $fr3) {
13-
display: grid;
14-
grid-gap: $gap;
15-
grid-template-columns: $fr1 $fr2 $fr3;
14+
display: grid;
15+
grid-gap: $gap;
16+
grid-template-columns: $fr1 $fr2 $fr3;
17+
align-items: center;
1618

17-
@media screen and (max-width: $medium-break) {
18-
grid-template-columns: 1fr;
19-
}
19+
@media screen and (max-width: $medium-break) {
20+
grid-template-columns: 1fr;
21+
}
2022
}

_input.scss

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,4 @@ input {
2121

2222
input[type="text"], select, textarea {
2323
@include form_object;
24-
}
25-
26-
.button {
27-
display: block;
28-
width: 200px;
29-
padding: 10px;
30-
text-align: center;
31-
cursor: pointer;
32-
}
24+
}

_scaffold.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Variables
2-
$base-font: 19px;
2+
$base-font: 18px;
33
$ratio: 1.618;
4-
$max-width: 1200px;
4+
$max-width: 1250px;
55

66
// Individual card scss
77
@import 'breakpoints';
@@ -11,6 +11,12 @@ $max-width: 1200px;
1111
@import 'grid';
1212
@import 'misc';
1313

14-
html, body {
15-
overflow-x: hidden !important;
14+
// html, body {
15+
// overflow-x: hidden !important;
16+
// }
17+
18+
.container {
19+
max-width: $max-width;
20+
display: block;
21+
margin: auto;
1622
}

_text.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,12 @@ body {
3838

3939
p {
4040
max-width: 40em;
41-
margin-right: auto;
42-
margin-left: auto;
43-
margin-top: .4em;
41+
margin-top: 0;
4442
}
4543

4644
h1,h2,h3,h4,h5,h6 {
4745
margin: 0;
4846
line-height: $ratio;
49-
margin-bottom: .4em;
5047
}
5148

5249
h6 {

0 commit comments

Comments
 (0)