Browse Source

Update Web APIs documentation

Simon Legner 6 months ago
parent
commit
0b5689ac6f

+ 5 - 0
assets/stylesheets/global/_classes.scss

@@ -133,6 +133,11 @@
   border-color: var(--noteRedBorder);
 }
 
+%note-gray, %label-gray {
+  background: var(--boxBackground);
+  border: 1px solid var(--boxBorder);
+}
+
 //
 // External links
 //

+ 8 - 2
assets/stylesheets/pages/_mdn.scss

@@ -28,12 +28,18 @@
 
   p > code, li > code { @extend %label; }
 
-  details { @extend %box; }
+  details { @extend %note; @extend %box; }
+  details.baseline-indicator.not { @extend %note; @extend %note-gray; }
+  details.baseline-indicator.low { @extend %note; @extend %note-blue; }
+  details.baseline-indicator.high { @extend %note; @extend %note-green; }
   summary > div { display: inline; }
+  summary .status-title { font-weight: bold; }
 
   > .note,
   .notecard, // MDN 2021
-  .notice,
+  .notice {
+    @extend %note; @extend %note-blue;
+  }
   .warning,
   .overheadIndicator,
   .blockIndicator,

+ 1 - 1
lib/docs/scrapers/mdn/dom.rb

@@ -1,6 +1,6 @@
 module Docs
   class Dom < Mdn
-    # release = '2025-01-30'
+    # release = '2025-06-01'
     self.name = 'Web APIs'
     self.slug = 'dom'
     self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/API'