Skip to content

Commit

Permalink
materializecss#52 removed remaining function calls from non-variable …
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
bugy committed Oct 3, 2021
1 parent f126d7e commit 53fcd45
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 18 deletions.
10 changes: 0 additions & 10 deletions sass/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -594,18 +594,8 @@ thead {
ul.table-of-contents {
margin-top: 0;
padding-top: 48px;

a {
&.active {
color: rgba(0,0,0,.8);
}
color: rgba(0,0,0,.55);
font-weight: 400;
}
}



// Prism Styling
code, pre {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion sass/components/_badges.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ span.badge {
font-size: 1rem;
line-height: $badge-height;
height: $badge-height;
color: color('grey', 'darken-1');
color: $badge-color;
float: right;
box-sizing: border-box;

Expand Down
2 changes: 1 addition & 1 deletion sass/components/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ a {
.divider {
height: 1px;
overflow: hidden;
background-color: color("grey", "lighten-2");
background-color: $divider-color;
}


Expand Down
11 changes: 6 additions & 5 deletions sass/components/_table_of_contents.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,23 @@
li {
padding: 2px 0;
}

a {
display: inline-block;
font-weight: 300;
color: #757575;
font-weight: 400;
color: $font-color-medium;
padding-left: 16px;
height: 1.5rem;
line-height: 1.5rem;
letter-spacing: .4;
display: inline-block;

&:hover {
color: lighten(#757575, 20%);
color: $font-color-main;
padding-left: 15px;
border-left: 1px solid $primary-color;
}

&.active {
color: $font-color-main;
font-weight: 500;
padding-left: 14px;
border-left: 2px solid $primary-color;
Expand Down
8 changes: 7 additions & 1 deletion sass/components/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ $primary-color-font-disabled-color: rgba($primary-color, 0.4) !default;
$primary-color-hover-opaque: rgba($primary-color, 0.06) !default;
$primary-color-focus-opaque: rgba($primary-color, 0.18) !default;

$font-color-main: rgba(0, 0, 0, 0.87) !default;
$font-color-medium: rgba(0, 0, 0, 0.56) !default;
$font-color-disabled: rgba(0, 0, 0, 0.38) !default;

$secondary-color: color("teal", "lighten-1") !default;
$success-color: color("green", "base") !default;
$error-color: color("red", "base") !default;
Expand All @@ -55,12 +59,14 @@ $secondary-color-when-focused-solid: lighten($secondary-color, 12%) !default;
$secondary-color-hover-opaque: rgba($secondary-color, 0.08) !default;
$secondary-color-focus-opaque: rgba($secondary-color, 0.24) !default;

$divider-color: #DDDDDD;

// 2. Badges
// ==========================================================================

$badge-bg-color: $secondary-color !default;
$badge-height: 22px !default;

$badge-color: $font-color-medium !default;

// 3. Buttons
// ==========================================================================
Expand Down

0 comments on commit 53fcd45

Please sign in to comment.