- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Fix some CSS warnings and errors from VS Code #93444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| Some changes occurred in HTML/CSS/JS. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, it's to force other themes to have this rule.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by "force"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the CSS rules in light.css must be present in the other themes, otherwise rustdoc will throw an error.
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
| Looks good, once the diff to  I confirmed  Color is supposed to be the fourth item in the  | 
3c5506e    to
    519cad7      
    Compare
  
    | Actually, maybe the right fix for the box-shadow is to copy the box-shadow rule to each theme so we get the right color? | 
| That would be the right fix. But since it wasn't used, not sure if useful... | 
| Also I was recently reading a design guide that said box shadows should not
be used to indicate height in dark themes, which makes sense. | 
519cad7    to
    f360f67      
    Compare
  
    There's no such CSS rule as `box-shadow-color`, so I instead copied the whole `box-shadow` property to each rule to make it actually apply.
f360f67    to
    f8a013f      
    Compare
  
    | Looks pretty good! I guess here we are not using it to simulate a shadow,
but instead to simulate a keycap, so it works in the dark themes. | 
| border-color: #5c6773; | ||
| border-bottom-color: #5c6773; | ||
| box-shadow-color: #c6cbd1; | ||
| box-shadow: inset 0 -1px 0 #5c6773; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that I intentionally changed it from #c6cbd1 to #5c6773 because the old color was the one used in the dark theme and seemed inconsistent with Ayu.
| Looks good to me! | 
| The job  Click to see the possible cause of the failure (guessed by this bot) | 
| @bors r=GuillaumeGomez,jsha | 
| 📌 Commit f8a013f has been approved by  | 
| @bors rollup | 
| } | ||
| .toggle-line:hover .toggle-line-inner { | ||
| background: ##898989; | ||
| background: #898989; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @willcrichton – this will change the display of scrape-examples
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah this is fixed in my PR.
…askrgr Rollup of 8 pull requests Successful merges: - rust-lang#90277 (Improve terminology around "after typeck") - rust-lang#92918 (Allow eliding GATs in expression position) - rust-lang#93039 (Don't suggest inaccessible fields) - rust-lang#93155 (Switch pretty printer to block-based indentation) - rust-lang#93214 (Respect doc(hidden) when suggesting available fields) - rust-lang#93347 (Make `char::DecodeUtf16::size_hist` more precise) - rust-lang#93392 (Clarify documentation on char::MAX) - rust-lang#93444 (Fix some CSS warnings and errors from VS Code) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup



There's no such CSS rule as
box-shadow-color, so I instead copied thewhole
box-shadowproperty to each rule to make it actually apply.r? @jsha