~xdavidwu/xdavidwu.link

e5f3d5e6406056dcc8535de4a2ca33a1770d4545 — xdavidwu 2 years ago ef19e51
mobile: follow: bring back click-outside-to-close
1 files changed, 20 insertions(+), 0 deletions(-)

M _sass/minimal-mistakes/_noscript.scss
M _sass/minimal-mistakes/_noscript.scss => _sass/minimal-mistakes/_noscript.scss +20 -0
@@ 21,6 21,26 @@ input#darkmode, input#lightmode {
  display: none;
}

input#follow-button + label {
  &:before {
    @supports (pointer-events: none) {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }
  }
}

input#follow-button:checked + label {
  &:before {
    pointer-events: auto;
  }
}

label[for="darkmode"], label[for="lightmode"] {
  position: absolute;
  z-index: 1000;