Browse Source

Update CSS documentation

Simon Legner 2 years ago
parent
commit
2ae4c9085b
2 changed files with 11 additions and 3 deletions
  1. 10 2
      assets/stylesheets/components/_page.scss
  2. 1 1
      lib/docs/scrapers/mdn/css.rb

+ 10 - 2
assets/stylesheets/components/_page.scss

@@ -8,8 +8,16 @@
 
   &._page-error { position: static; }
 
-  > h1, > section > h1 { @extend ._lined-heading; }
-  > h1:first-child, > section:first-of-type > h1 { margin-top: 0; }
+  > h1,
+  > header > h1,
+  > section > h1 {
+    @extend ._lined-heading;
+  }
+  > h1:first-child,
+  > header:first-of-type > h1,
+  > section:first-of-type > h1 {
+    margin-top: 0;
+  }
 
   a[href^="http:"], a[href^="https:"] { @extend %external-link; }
 

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

@@ -1,6 +1,6 @@
 module Docs
   class Css < Mdn
-    # release = '2023-04-24'
+    # release = '2023-10-24'
     self.name = 'CSS'
     self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/CSS'
     self.root_path = '/Reference'