Skip to content

Commit

Permalink
okay jekyll, sass and github pages.. i'm not playing those games
Browse files Browse the repository at this point in the history
  • Loading branch information
lotas committed Apr 15, 2024
1 parent 91572c5 commit 4cf29f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
10 changes: 4 additions & 6 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@use "sass:math";

/**
* Reset some basic elements
*/
Expand Down Expand Up @@ -35,7 +33,7 @@ body {
p, blockquote, pre,
ul, ol, dl, figure,
%vertical-rhythm {
margin-bottom: math.div($spacing-unit, 2);
margin-bottom: $spacing-unit-half;
}


Expand Down Expand Up @@ -113,7 +111,7 @@ a {
blockquote {
color: $grey-color;
border-left: 4px solid $grey-color-light;
padding-left: math.div($spacing-unit, 2);
padding-left: $spacing-unit-half;
font-size: 14px;
// letter-spacing: -1px;
// font-style: italic;
Expand Down Expand Up @@ -172,8 +170,8 @@ pre {
@include media-query($on-laptop) {
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
max-width: calc(#{$content-width} - (#{$spacing-unit}));
padding-right: math.div($spacing-unit, 2);
padding-left: math.div($spacing-unit, 2);
padding-right: $spacing-unit-half;
padding-left: $spacing-unit-half;
}
}

Expand Down
9 changes: 4 additions & 5 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@use "sass:math";

/**
* Site header
Expand Down Expand Up @@ -107,7 +106,7 @@

.footer-heading {
font-size: 18px;
margin-bottom: math.div($spacing-unit, 2);
margin-bottom: $spacing-unit-half;
}

.contact-list,
Expand All @@ -119,14 +118,14 @@
.footer-col-wrapper {
font-size: 15px;
color: $grey-color;
margin-left: math.div(-$spacing-unit, 2);
margin-left: -$spacing-unit-half;
@extend %clearfix;
}

.footer-col {
float: left;
margin-bottom: math.div($spacing-unit, 2);
padding-left: math.div($spacing-unit, 2);
margin-bottom: $spacing-unit-half;
padding-left: $spacing-unit-half;
}

.footer-col-1 {
Expand Down
5 changes: 3 additions & 2 deletions css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ $small-font-size: $base-font-size * 0.875;
$base-line-height: 1.5;

$spacing-unit: 30px;
$spacing-unit-half:15px;

$text-color: #1b2a3d;
$background-color: #f1f5f7;
Expand All @@ -32,8 +33,8 @@ $on-laptop: 800px;
// Using media queries with like this:
// @include media-query($on-palm) {
// .wrapper {
// padding-right: calc(math.div($spacing-unit, 2));
// padding-left: calc(math.div($spacing-unit, 2));
// padding-right: calc($spacing-unit-half);
// padding-left: calc($spacing-unit-half);
// }
// }
@mixin media-query($device) {
Expand Down

0 comments on commit 4cf29f5

Please sign in to comment.