Files
freeCodeCamp/guide/russian/certifications/front-end-libraries/sass/nest-css-with-sass/index.md
2018-10-16 21:32:40 +05:30

44 lines
775 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Nest CSS with Sass
localeTitle: Nest CSS с Sass
---
## Nest CSS с Sass
* В Sass вложения правил CSS позволяют определять селектора иерархии.
* Вы можете организовать свои таблицы стилей, вставив правила CSS.
## пример
```sass
.title{
strong{}
em{}
}
// This will be compiled into:
.title{}
.title strong{}
.title em{}
```
## Подсказка 1:
* Вы можете изменить положение «}» в строке 4.
## Решение
```sass
<style type='text/sass'>
.blog-post {
h1 {
text-align: center;
color: blue;
}
p {
font-size: 20px;
}
}
</style>
```