~xdavidwu/xdavidwu.link

14d501377fd16a4a511aaad48ef15c06226b8321 — xdavidwu 4 years ago 719597a
tweak primary color, enhance disabled pagination a11y
2 files changed, 9 insertions(+), 14 deletions(-)

M _sass/minimal-mistakes/_navigation.scss
M _sass/minimal-mistakes/skins/_custom.scss
M _sass/minimal-mistakes/_navigation.scss => _sass/minimal-mistakes/_navigation.scss +7 -2
@@ 127,9 127,13 @@
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: $muted-text-color;
    border: 1px solid mix(#000, $border-color, 25%);
    border-radius: $border-radius;
    color: $text-color;
    background-color: $primary-color;

    &:visited {
      color: $text-color;
    }

    &:hover {
      @include yiq-contrasted($muted-text-color);


@@ 150,6 154,7 @@
      color: rgba($muted-text-color, 0.5);
      pointer-events: none;
      cursor: not-allowed;
      background-color: $primary-color-disabled;
    }
  }
}

M _sass/minimal-mistakes/skins/_custom.scss => _sass/minimal-mistakes/skins/_custom.scss +2 -12
@@ 5,7 5,8 @@
/* Colors */
$background-color: #181818 !default;
$text-color: #fff6fb !default;
$primary-color: #00adb5 !default;
$primary-color: #00acc1 !default;
$primary-color-disabled: #00838f !default;
$border-color: mix(#fff, $background-color, 20%) !default;
$code-background-color: #202124 !default;
$code-background-color-dark: mix(#000, $background-color, 20%) !default;


@@ 23,17 24,6 @@ $navicon-link-color-hover: mix(#000, $background-color, 30%) !default;
  color: inherit;
}

/* next/previous buttons */
.pagination--pager {
  color: $text-color;
  background-color: $primary-color;
  border-color: transparent;

  &:visited {
    color: $text-color;
  }
}

.ais-search-box .ais-search-box--input {
  background-color: $form-background-color;
}