mirror of
https://github.com/danog/sass-site.git
synced 2025-01-05 20:48:47 +01:00
2.5 KiB
2.5 KiB
layout | h1 | no_container | is_home | eleventyComputed | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
has_no_sidebars | CSS with superpowers | true | true |
|
Sass is the most mature, stable, and powerful professional grade CSS extension language in the world.
// styles.scss
@use 'base';
.inverse {
background-color: base.$primary-color;
color: white;
}
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
.info {
@include theme;
}
/* This CSS will print because %message-shared is extended. */
.message,
.success,
.error,
.warning {
border: 1px solid #ccc;
padding: 10px;
color: #333;
}
@use 'sass:math';
.container {
display: flex;
}
article[role='main'] {
width: math.div(600px, 960px) * 100%;
}
@debug math.pow(10, 2); // 100
@debug math.pow(100, math.div(1, 3)); // 4.6415888336
@debug math.pow(5, -2); // 0.04