Skip to content

Commit 273daaa

Browse files
committed
Add intro image overlay SCSS variable
To disable intro image color accent overlay add set the following SCSS variable to `false` like so: $intro-image-color-overlay: false; Fixes #55
1 parent d8bf022 commit 273daaa

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,12 @@ author:
603603
comments: false # disable comments on this post
604604
```
605605

606+
**Note:** Hero images are overlaid with a transparent "accent" color to unify them with the theme's palette. To disable [customize the CSS](#customizing-sass-scss) with the following Sass variable override:
607+
608+
```scss
609+
$intro-image-color-overlay: false;
610+
```
611+
606612
### `layout: page`
607613

608614
Visually this layout looks and acts the same as `layout: post`, with two minor

_sass/basically-basic/_intro.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
right: 0;
2020
bottom: 0;
2121
left: 0;
22-
background-color: rgba($accent-color, 0.25);
22+
@if $intro-image-color-overlay == true {
23+
background-color: rgba($accent-color, 0.25);
24+
};
2325
content: '';
2426
}
2527

_sass/basically-basic/_variables.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ $sidebar-width: $small !default;
8484
/* Background color of the sidebar */
8585
$sidebar-background-color: #fff !default;
8686

87+
/* Intro image color overlay */
88+
$intro-image-color-overlay: true !default;
89+
8790
/* Border radius */
8891
$border-radius: 0.25em !default;
8992

0 commit comments

Comments
 (0)