Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ru: Format /web/css using Prettier (part 1) #14799

Merged
merged 3 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions files/ru/web/css/--_star_/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ slug: Web/CSS/--*
### HTML

```html
<p id="firstParagraph">
Этот параграф должен иметь синий фон и жёлтый текст.
</p>
<p id="secondParagraph">
Этот параграф должен иметь жёлтый фон и синий текст.
</p>
<p id="firstParagraph">Этот параграф должен иметь синий фон и жёлтый текст.</p>
<p id="secondParagraph">Этот параграф должен иметь жёлтый фон и синий текст.</p>
<div id="container">
<p id="thirdParagraph">
Этот параграф должен иметь зелёный фон и жёлтый текст.
Expand Down
18 changes: 11 additions & 7 deletions files/ru/web/css/@counter-style/additive-symbols/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ slug: Web/CSS/@counter-style/additive-symbols

```css
additive-symbols: 3 "0";
additive-symbols: 3 "0", 2 "\2E\20";
additive-symbols: 3 "0", 2 url(symbol.png);
additive-symbols:
3 "0",
2 "\2E\20";
additive-symbols:
3 "0",
2 url(symbol.png);
```

### Формальный синтаксис
Expand All @@ -29,11 +33,11 @@ additive-symbols: 3 "0", 2 url(symbol.png);

```html
<ul class="list">
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
<li>Five</li>
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
<li>Five</li>
</ul>
```

Expand Down
6 changes: 3 additions & 3 deletions files/ru/web/css/@counter-style/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ The above counter style rule can be applied to lists like this:

```css
.items {
list-style: circled-alpha;
list-style: circled-alpha;
}
```

Expand All @@ -119,8 +119,8 @@ Checkout more examples on the [demo page](https://mdn.github.io/css-counter-styl

## Спецификации

| Спецификация | Статус | Комментарий |
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------- | -------------------------- |
| Спецификация | Статус | Комментарий |
| ------------------------------------------------------------------------------- | -------------------------------- | -------------------------- |
| {{SpecName('CSS3 Counter Styles', '#the-counter-style-rule', 'counter-style')}} | {{Spec2('CSS3 Counter Styles')}} | Первоначальное определение |

## Совместимость с браузерами
Expand Down
4 changes: 3 additions & 1 deletion files/ru/web/css/@document/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
title: "@document"
slug: Web/CSS/@document
---

{{SeeCompatTable}}

**`@document`** [CSS](/ru/docs/Web/CSS) [at-rule](/ru/docs/Web/CSS/At-rule) ограничивает правила стиля, содержащиеся в нем, на основе URL-адреса документа. Он разработан в основном для пользовательских таблиц стилей, хотя он также может использоваться в авторских таблицах стилей.

```css
@document url("https://www.example.com/") {
@document url("https://www.example.com/")
{
h1 {
color: green;
}
Expand Down
6 changes: 4 additions & 2 deletions files/ru/web/css/@font-face/font-display/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: font-display
slug: Web/CSS/@font-face/font-display
---

{{CSSRef}}

## Описание
Expand Down Expand Up @@ -54,8 +55,9 @@ font-display: optional;
```css
@font-face {
font-family: ExampleFont;
src: url(/path/to/fonts/examplefont.woff) format('woff'),
url(/path/to/fonts/examplefont.eot) format('eot');
src:
url(/path/to/fonts/examplefont.woff) format("woff"),
url(/path/to/fonts/examplefont.eot) format("eot");
font-weight: 400;
font-style: normal;
font-display: fallback;
Expand Down
5 changes: 3 additions & 2 deletions files/ru/web/css/@font-face/font-family/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: font-family
slug: Web/CSS/@font-face/font-family
---

{{CSSRef}}

CSS дескриптор **`font-family`** позволяет авторам указывать font family для шрифта, указанного в правиле {{cssxref("@font-face")}}.
Expand All @@ -13,7 +14,7 @@ CSS дескриптор **`font-family`** позволяет авторам у
```css
/* <string> значения */
font-family: "font family";
font-family: 'another font family';
font-family: "another font family";

/* <custom-ident> значение */
font-family: examplefont;
Expand All @@ -33,7 +34,7 @@ font-family: examplefont;
```css
@font-face {
font-family: examplefont;
src: url('examplefont.ttf');
src: url("examplefont.ttf");
}
```

Expand Down
44 changes: 23 additions & 21 deletions files/ru/web/css/@font-face/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ slug: Web/CSS/@font-face

```css
@font-face {
font-family: "Open Sans";
src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
font-family: "Open Sans";
src:
url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
}
```

Expand Down Expand Up @@ -61,20 +62,22 @@ slug: Web/CSS/@font-face

```html
<html>
<head>
<title>Web Font Sample</title>
<style type="text/css" media="screen, print">
@font-face {
font-family: "Bitstream Vera Serif Bold";
src: url("https://mdn.github.io/css-examples/web-fonts/VeraSeBd.ttf");
}

body { font-family: "Bitstream Vera Serif Bold", serif }
</style>
</head>
<body>
This is Bitstream Vera Serif Bold.
</body>
<head>
<title>Web Font Sample</title>
<style type="text/css" media="screen, print">
@font-face {
font-family: "Bitstream Vera Serif Bold";
src: url("https://mdn.github.io/css-examples/web-fonts/VeraSeBd.ttf");
}

body {
font-family: "Bitstream Vera Serif Bold", serif;
}
</style>
</head>
<body>
This is Bitstream Vera Serif Bold.
</body>
</html>
```

Expand All @@ -83,9 +86,8 @@ slug: Web/CSS/@font-face
```css
@font-face {
font-family: MyHelvetica;
src: local("Helvetica Neue Bold"),
local("HelveticaNeue-Bold"),
url(MgOpenModernaBold.ttf);
src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
url(MgOpenModernaBold.ttf);
font-weight: bold;
}
```
Expand All @@ -109,7 +111,7 @@ slug: Web/CSS/@font-face
@font-face {
font-family: MyHelvetica;
src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
url(MgOpenModernaBold.ttf);
url(MgOpenModernaBold.ttf);
font-weight: bold;
}
}
Expand Down
1 change: 1 addition & 0 deletions files/ru/web/css/@font-feature-values/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "@font-feature-values"
slug: Web/CSS/@font-feature-values
---

{{CSSRef}}

[CSS](/ru/docs/Web/CSS) [правило](/ru/docs/Web/CSS/At-rule) **`@font-feature-values`** позволяет использовать общее имя в свойстве {{cssxref("font-variant-alternates")}} для функций, которые по разному активируются в OpenType. Это может помочь упростить ваш CSS при использовании нескольких шрифтов.
Expand Down
Loading