swiftlang / swift-org-website

Swift.org website
https://swift.org
Other
477 stars 187 forks source link

Fix SASS Deprecations #796

Closed federicobucchi closed 2 months ago

federicobucchi commented 2 months ago

Motivation:

Sass's behavior for declarations that appear after nested rules will be changing to match the behavior specified by CSS in an upcoming version. To keep the existing behavior, move the declaration above the nested rule. To opt into the new behavior, wrap the declaration in & {}.

Modifications:

Fixed the deprecations above

Result:

Deprecations are not there anymore

federicobucchi commented 2 months ago

@swift-ci please test

kaishin commented 2 months ago

Thanks for taking care of this!