CSS code: @layer reset, thirdparty; @import "@acab/reset.css" layer(reset); @import "open-props" layer(thirdparty.op);
https://media.hachyderm.io/media_attachments/files/112/022/824/028/534/977/original/9a6c1830c2962f2f.png
The easiest way to introduce #CSS cascade layers into your existing codebase today:
1. Move your CSS resets into a layer named "reset".
Because the selectors in your reset should already be pretty weak, there should be almost no net effect.
2. Move (some of) your third party styles into a layer named "thirdparty".
Third-party styles should already have lower priority than your own styles, so this again has very little impact.
All the rest of your styles can continue to stay unlayered.
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.