Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Jekyll",
"type": "pwa-chrome",
"request": "launch",
"url": "http://127.0.0.1:4000",
"webRoot": "${workspaceFolder}",
"preLaunchTask": "Run Jekyll"
}
]
}
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Run Jekyll",
"type": "shell",
"command": "mise exec -- bundle exec jekyll serve",
"isBackground": true,
"problemMatcher": []
}
]
}
9 changes: 7 additions & 2 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@use "sass:color";

@use "mixins" as *;
@use "variables" as *;


/**
* Reset some basic elements
*/
Expand All @@ -9,7 +15,6 @@ dl, dd, ol, ul, figure {
}



/**
* Basic styling
*/
Expand Down Expand Up @@ -160,7 +165,7 @@ pre {
margin-left: auto;
padding-right: $spacing-unit;
padding-left: $spacing-unit;
@extend %clearfix;
@extend %clearfix !optional;

@include media-query($on-laptop) {
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
Expand Down
5 changes: 4 additions & 1 deletion _sass/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@use "variables" as *;
@use "mixins" as *;

/**
* Site header
*/
Expand Down Expand Up @@ -111,7 +114,7 @@
font-size: 15px;
color: $grey-color;
margin-left: calc($spacing-unit / 2);
@extend %clearfix;
@extend %clearfix !optional;
}

.footer-col {
Expand Down
6 changes: 6 additions & 0 deletions _sass/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@mixin media-query($device) {
@media screen and (max-width: $device) {
@content;
}
}

3 changes: 2 additions & 1 deletion _sass/_syntax-highlighting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
*/
.highlight {
background: #fff;
@extend %vertical-rhythm;
@extend %vertical-rhythm !optional;


.c { color: #998; font-style: italic } // Comment
.err { color: #a61717; background-color: #e3d2d2 } // Error
Expand Down
22 changes: 22 additions & 0 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@use "sass:color";

$base-font-family: Helvetica, Arial, sans-serif;
$base-font-size: 16px;
$small-font-size: $base-font-size * 0.875;
$base-line-height: 1.5;

$spacing-unit: 30px;

$text-color: #111;
$background-color: #fdfdfd;
$brand-color: #2a7ae2;

$grey-color: #828282;
$grey-color-light: color.scale($grey-color, $lightness: 40%);
$grey-color-dark: color.scale($grey-color, $lightness: -25%);

$content-width: 800px;

$on-palm: 600px;
$on-laptop: 800px;

47 changes: 6 additions & 41 deletions css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,12 @@
sitemap_exclude: true
---


@charset "utf-8";
@use "sass:color";
@use "variables" as *;
@use "mixins" as *;
@use "base" as *;
@use "layout" as *;
@use "syntax-highlighting" as *;

// Variables
$base-font-family: Helvetica, Arial, sans-serif;
$base-font-size: 16px;
$small-font-size: $base-font-size * 0.875;
$base-line-height: 1.5;

$spacing-unit: 30px;

$text-color: #111;
$background-color: #fdfdfd;
$brand-color: #2a7ae2;

$grey-color: #828282;
$grey-color-light: color.scale($grey-color, $lightness: 40%);
$grey-color-dark: color.scale($grey-color, $lightness: -25%);

// Width of the content area
$content-width: 800px;

$on-palm: 600px;
$on-laptop: 800px;

// Media query mixin
// Usage:
// @include media-query($on-palm) {
// .wrapper {
// padding-right: $spacing-unit / 2;
// padding-left: $spacing-unit / 2;
// }
// }
@mixin media-query($device) {
@media screen and (max-width: $device) {
@content;
}
}

// Import partials from `sass_dir` (defaults to `_sass`)
@import
"base",
"layout",
"syntax-highlighting";