Skip to content

Commit c5f6864

Browse files
committed
Pridan osklivy mixin fs()
1 parent 18cedea commit c5f6864

File tree

5 files changed

+36
-25
lines changed

5 files changed

+36
-25
lines changed

css/style.css

Lines changed: 19 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scss/components/_list-item.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Napr. seznamy ubytovatelu, pobytu, last-minute atd.
6060
}
6161

6262
h2 {
63-
font-size: 120%;
63+
@include fs(22px);
6464
margin-bottom: 0;
6565
}
6666
}

scss/lib/_mixins.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,18 @@
1616
}
1717
}
1818

19+
// Font-size mixin
20+
// ---------------
21+
22+
@mixin fs($font-size) {
23+
font-size: $font-size;
24+
line-height: 1.4 * $font-size;
25+
}
26+
1927

2028
// Webkit-style focus
2129
// ------------------
30+
2231
@mixin tab-focus() {
2332
// Default
2433
outline: thin dotted #333;
@@ -29,6 +38,7 @@
2938

3039
// Center-align a block level element
3140
// ----------------------------------
41+
3242
@mixin center-block() {
3343
display: block;
3444
margin-left: auto;

scss/variables/_variables.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// -----
44

55
$base-font-size: 16px;
6-
$base-line-height: 24px;
7-
$smaller-font-size: 11px;
8-
$smaller-line-height: 13px;
9-
$larger-font-size: 14px;
10-
$larger-line-height: 20px;
6+
$base-line-height: 22px;
7+
$smaller-font-size: 12px;
8+
$smaller-line-height: 17px;
9+
$larger-font-size: 20px;
10+
$larger-line-height: 28px;
1111

1212
// Barvy
1313
// -----

0 commit comments

Comments
 (0)