Browse Source

Fix focus outline

spikecodes 4 năm trước cách đây
mục cha
commit
0cb7031c36
2 tập tin đã thay đổi với 6 bổ sung7 xóa
  1. 5 5
      Cargo.lock
  2. 1 2
      static/style.css

+ 5 - 5
Cargo.lock

@@ -851,9 +851,9 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "funty"
 name = "funty"
-version = "1.1.0"
+version = "1.2.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fed34cd105917e91daa4da6b3728c47b068749d6a62c59811f06ed2ac71d9da7"
+checksum = "1847abb9cb65d566acd5942e94aea9c8f547ad02c98e1649326fc0e8910b8b1e"
 
 
 [[package]]
 [[package]]
 name = "futures"
 name = "futures"
@@ -1200,13 +1200,13 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
 
 
 [[package]]
 [[package]]
 name = "lexical-core"
 name = "lexical-core"
-version = "0.7.4"
+version = "0.7.5"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "db65c6da02e61f55dae90a0ae427b2a5f6b3e8db09f58d10efab23af92592616"
+checksum = "21f866863575d0e1d654fbeeabdc927292fdf862873dc3c96c6f753357e13374"
 dependencies = [
 dependencies = [
  "arrayvec",
  "arrayvec",
  "bitflags",
  "bitflags",
- "cfg-if 0.1.10",
+ "cfg-if 1.0.0",
  "ryu",
  "ryu",
  "static_assertions",
  "static_assertions",
 ]
 ]

+ 1 - 2
static/style.css

@@ -73,9 +73,8 @@
 	background: var(--accent);
 	background: var(--accent);
 }
 }
 
 
-:focus {
+:focus-visible {
 	outline: 2px solid var(--accent);
 	outline: 2px solid var(--accent);
-	outline-offset: 2px;
 }
 }
 
 
 html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote,
 html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote,