freeCodeCamp/guide/russian/certifications/front-end-libraries/sass/nest-css-with-sass/index.md

44 lines
775 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
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>
```