Skip to content

Commit 8f2360f

Browse files
committed
fixed aside-bg
1 parent 0949bbc commit 8f2360f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

_sass/jekyll-theme-cs50.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
$font-family-sans-serif: "PT Sans" !default;
33

44
// Crimson colors
5-
$aside-bg: #a51c30 !default; // Custom variable
65
$link-color: #a51c30 !default;
76
$link-color-dark: #ef9aa4 !default; // Passing lightness of #a51c30 foreground, against #212529 background, per https://webaim.org/resources/contrastchecker/
87
$link-hover-color: $link-color !default;
@@ -270,8 +269,8 @@ pre code span {
270269

271270
//// alert
272271

273-
// Box shadows
274-
#alert, aside {
272+
// Box shadow
273+
#alert {
275274
box-shadow: .5rem .5rem 1rem rgba($black, .20); // https://github.com/twbs/bootstrap/blob/master/scss/_variables.scss
276275
}
277276

_sass/page.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
@import "jekyll-theme-cs50";
22

3+
// Custom variable
4+
$aside-bg: #a51c30 !default;
5+
36
// Root em
47
html {
58
font-size: 16px;
@@ -12,7 +15,7 @@ body > div.container-fluid > div.row {
1215

1316
// Crimson background, transparent text
1417
aside {
15-
background-color: $link-color;
18+
background-color: $aside-bg;
1619
color: rgba($body-bg, 0.5);
1720
font-size: 1.125rem;
1821
}
@@ -41,6 +44,11 @@ aside.col-lg {
4144
padding: 2rem 2rem;
4245
}
4346

47+
// Box shadow
48+
aside {
49+
box-shadow: .5rem .5rem 1rem rgba($black, .20); // https://github.com/twbs/bootstrap/blob/master/scss/_variables.scss
50+
}
51+
4452
// Fixed width, scroll on larger devices
4553
@include media-breakpoint-up(lg) {
4654
@media screen {

0 commit comments

Comments
 (0)