Skip to content

Commit 3dd959f

Browse files
committed
Review request: using variables instead of rule overrides
Signed-off-by: mrgarris0n <[email protected]>
1 parent 0c950b9 commit 3dd959f

File tree

7 files changed

+14
-110
lines changed

7 files changed

+14
-110
lines changed

_sass/minimal-mistakes/minimal-mistakes/_base.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ h3,
2727
h4,
2828
h5,
2929
h6 {
30+
color: $heading-color;
3031
margin: 2em 0 0.5em;
3132
line-height: 1.2;
3233
font-family: $header-font-family;

_sass/minimal-mistakes/minimal-mistakes/_navigation.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@
901901
}
902902

903903
h4 {
904+
color: $toc-header-color;
904905
margin-top: 0;
905906
margin-bottom: 0; }
906907
}

_sass/minimal-mistakes/minimal-mistakes/_page.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ body {
8989
line-height: 1;
9090

9191
a {
92-
color: $text-color;
92+
color: $page-title-color;
9393
text-decoration: none;
9494
}
9595

_sass/minimal-mistakes/minimal-mistakes/_syntax.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ figure.highlight {
7575
margin: 0;
7676
padding: 0;
7777
outline: none;
78-
color: $link-color;
78+
color: $code-header-text-color;
7979
background-color: transparent;
8080
font-size: 1em;
8181

_sass/minimal-mistakes/minimal-mistakes/_variables.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ $tooltip-color: mix($gray, $text-color, 50%) !default;
106106
$tooltip-box-shadow-color: $box-shadow-color !default; // rgba(mix($black, $background-color, 70%), 0.5) !default;
107107
//$tooltip-border-color: $border-color !default; // rgba(mix($black, $background-color, 80%), 0.9) !default;
108108

109+
$page-title-color: $text-color !default;
110+
$heading-color: $text-color !default;
111+
$toc-header-color: $menuitem-color !default;
112+
109113
/* YIQ color contrast */
110114
$yiq-contrasted-dark-default: $dark-gray !default;
111115
$yiq-contrasted-light-default: $white !default;
@@ -146,6 +150,7 @@ $link-color-selected: $selection-color !default;
146150
$masthead-link-color: $primary-color !default;
147151
$masthead-link-color-hover: mix($black, $primary-color, 25%) !default;
148152
$navicon-link-color-hover: mix($white, $primary-color, 75%) !default;
153+
$code-header-text-color: $link-color !default;
149154

150155
/* notices */
151156
$notice-background-mix: 80% !default;

_sass/minimal-mistakes/minimal-mistakes/skins/_oi-light.scss

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* ==========================================================================
2-
OID skin
2+
OI Light skin
33
========================================================================== */
44

55
/* Colors */
@@ -45,36 +45,13 @@ $masthead-link-color : $primary-color !default;
4545
$masthead-link-color-hover : mix($black, $primary-color, 25%) !default;
4646
$menuitem-hovered-background-color :$oid-blue !default;
4747
$menuitem-selected-background-color: $oid-gray !default;
48+
$heading-color: $link-color !default;
49+
$page-title-color: $link-color !default;
50+
$code-header-text-color: $text-color !default;
51+
$toc-header-color: $text-color !default;
4852

4953
/* notices */
5054
$notice-background-mix: 60% !default;
5155
$code-notice-background-mix: 65% !default;
5256

5357
$base01 : $oid-blue !default;
54-
55-
.page__title {
56-
a {
57-
color: $link-color !important;
58-
}
59-
}
60-
61-
h1,
62-
h2,
63-
h3,
64-
h4,
65-
h5,
66-
h6 {
67-
color: $link-color !important;
68-
}
69-
70-
.toc {
71-
h4 {
72-
color: $text-color !important;
73-
}
74-
}
75-
76-
.highlight-header {
77-
.btn {
78-
color: $text-color !important;
79-
}
80-
}

_sass/minimal-mistakes/minimal-mistakes/skins/_oid.scss

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)