sass-site/source/index.md

104 lines
2.5 KiB
Markdown
Raw Normal View History

2023-01-06 21:35:17 +01:00
---
2023-01-24 23:51:07 +01:00
layout: has_no_sidebars
h1: CSS with superpowers
no_container: true
is_home: true
2023-01-26 21:56:20 +01:00
eleventyComputed:
section_bottom:
- header: CSS Compatible
2023-01-27 19:04:19 +01:00
body: >
2023-01-26 21:56:20 +01:00
Sass is completely compatible with all versions of CSS. We take this
compatibility seriously, so that you can seamlessly use any available
CSS libraries.
- header: Feature Rich
2023-01-27 19:04:19 +01:00
body: >
2023-01-26 21:56:20 +01:00
Sass boasts more features and abilities than any other CSS extension
language out there. The Sass Core Team has worked endlessly to not only
keep up, but stay ahead.
- header: Mature
2023-01-27 19:04:19 +01:00
body: >
2023-01-27 18:25:28 +01:00
Sass has been actively supported for
{{ 'Tue Nov 28 19:43:58 2006 +0000' | formatDistanceToNow }} by its
loving Core Team.
2023-01-26 21:56:20 +01:00
- header: Industry Approved
2023-01-27 19:04:19 +01:00
body: >
2023-01-26 21:56:20 +01:00
Over and over again, the industry is choosing Sass as the premier CSS
extension language.
- header: Large Community
2023-01-27 19:04:19 +01:00
body: >
2023-01-26 21:56:20 +01:00
Sass is actively supported and developed by a consortium of several tech
companies and hundreds of developers.
- header: Frameworks
2023-01-27 19:04:19 +01:00
body: >
2023-01-26 21:56:20 +01:00
There are an endless number of frameworks built with Sass.
[Bootstrap](https://getbootstrap.com/), [Bourbon](http://bourbon.io/),
and [Susy](http://susy.oddbird.net/) just to name a few.
2023-01-06 21:35:17 +01:00
---
2023-01-24 23:51:07 +01:00
<div class="sl-l-grid sl-l-grid--full sl-l-large-grid--fit sl-l-large-grid--center sl-l-large-grid--gutters-large">
<div class="sl-l-grid__column">
<p class="sl-c-introduction">
Sass is the most mature, stable, and powerful professional grade CSS extension language in the world.
</p>
</div>
<p class="sl-l-grid__column">
<img height="160" alt="Glasses" src="/assets/img/illustrations/glasses.svg">
</p>
</div>
<!-- @@@ TODO: remove these sample code examples -->
```scss
// styles.scss
@use 'base';
.inverse {
background-color: base.$primary-color;
color: white;
}
```
```scss
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
.info {
@include theme;
}
```
```css
/* This CSS will print because %message-shared is extended. */
.message,
.success,
.error,
.warning {
border: 1px solid #ccc;
padding: 10px;
color: #333;
}
```
```scss
@use 'sass:math';
.container {
display: flex;
}
article[role='main'] {
width: math.div(600px, 960px) * 100%;
}
```
```scss
@debug math.pow(10, 2); // 100
@debug math.pow(100, math.div(1, 3)); // 4.6415888336
@debug math.pow(5, -2); // 0.04
```