Advertisement
KodingKid

CSS vs SASS

Apr 17th, 2021
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.47 KB | None | 0 0
  1. $bgcolor: lightblue;
  2. $textcolor: darkblue;
  3. $fontsize: 18px;
  4. body {
  5.   background-color: $bgcolor;
  6.   color: $textcolor;
  7.   font-size: $fontsize;
  8. }
  9. /*SASS*/
  10. body {
  11.   background-color: lightblue;
  12. }
  13. h1 {
  14.   color: white;
  15.   text-align: center;
  16. }
  17. p {
  18.   font-family: verdana;
  19.   font-size: 20px;
  20. }
  21. /*Modern CSS*/
  22. /*These examples of SASS and CSS are found off W3Schools - I only did this because I hardly know SASS and I figured I might as well just save time on the CSS/*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement