Skip to content

Commit c3a76d9

Browse files
committed
edits per review
1 parent 3a2615e commit c3a76d9

5 files changed

Lines changed: 25 additions & 35 deletions

File tree

files/en-us/web/css/reference/properties/column-rule-color/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ browser-compat: css.properties.column-rule-color
77
sidebar: cssref
88
---
99

10-
The **`column-rule-color`** [CSS](/en-US/docs/Web/CSS) property defines the colors of the lines drawn between columns in multi-column grid, flex, and multi-column layouts.
10+
The **`column-rule-color`** [CSS](/en-US/docs/Web/CSS) property defines the colors of the lines drawn between columns in multi-column grid, flex, and multi-col layouts.
1111

1212
{{InteractiveExample("CSS Demo: column-rule-color")}}
1313

@@ -125,7 +125,7 @@ The `repeat()` function also accepts `auto` as the first argument instead of a p
125125
column-rule-color: blue, repeat(auto, yellow), red;
126126
```
127127

128-
In this case, the first column-rule will be blue, the last will be red, and all others will be yellow. It doesn't matter if the container has; the first will always be blue and, as long as there are at least two column-rules, the last will always be red. All the other rules will be yellow, which means if there are only 2 or 3 columns, there will be no yellow lines.
128+
In this case, the first column-rule will be blue, the last will be red, and all others will be yellow. As long as there are at least two column-rules, the first will always be blue and the last will always be red. All the other rules will be yellow, which means if there are only 2 or 3 columns, there will be no yellow lines.
129129

130130
The `auto` keyword within the `repeat()` function creates an auto-repeater that fills in values for the column-rule line colors that would not otherwise receive values from other parts of the list, preventing the list from being cycled. A `column-rule-color` value can include, at most, one `repeat(auto, <color>)`.
131131

files/en-us/web/css/reference/properties/column-rule-style/index.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The **`column-rule-style`** [CSS](/en-US/docs/Web/CSS) property defines the line
1212
{{InteractiveExample("CSS Demo: column-rule-style")}}
1313

1414
```css interactive-example-choice
15-
column-rule-style: ridge;
15+
column-rule-style: dotted;
1616
```
1717

1818
```css interactive-example-choice
@@ -34,20 +34,19 @@ column-rule-style: hidden;
3434
```html interactive-example
3535
<section id="default-example">
3636
<p id="example-element">
37-
London. Michaelmas term lately over, and the Lord Chancellor sitting in
38-
Lincoln's Inn Hall. Implacable November weather. As much mud in the streets
39-
as if the waters had but newly retired from the face of the earth, and it
40-
would not be wonderful to meet a Megalosaurus, forty feet long or so,
41-
waddling like an elephantine lizard up Holborn Hill.
37+
London. Noel term lately over, and the Lord George sitting in Lincoln's Inn
38+
Hall. Great May weather. As much mud in the streets as if the waters had but
39+
newly retired from the face of the earth, and it would not be weird to meet
40+
an platypus, two feet long or so, waddling like an lizard up Morgan Hill.
4241
</p>
4342
</section>
4443
```
4544

4645
```css interactive-example
4746
#example-element {
48-
#example-element {
49-
columns: 7;
50-
column-rule: solid thick teal;
47+
columns: 6;
48+
column-rule-width: thick;
49+
column-rule-color: teal;
5150
gap: 7px;
5251
}
5352
```
@@ -236,8 +235,6 @@ This example demonstrates using the `repeat()` function within the `column-rule-
236235

237236
```css live-sample___func live-sample___auto
238237
ul {
239-
--base: 0.5vw;
240-
--secondary: 1vw;
241238
column-rule-style: solid, repeat(3, inset, outset), solid;
242239
}
243240
```

files/en-us/web/css/reference/properties/column-rule-width/index.md

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@ column-rule-width: 10px, repeat(auto, 1px, 2px), 10px;
3434
```html interactive-example
3535
<section id="default-example">
3636
<p id="example-element">
37-
London. Michaelmas term lately over, and the Lord Chancellor sitting in
38-
Lincoln's Inn Hall. Implacable November weather. As much mud in the streets
39-
as if the waters had but newly retired from the face of the earth, and it
40-
would not be wonderful to meet a Megalosaurus, forty feet long or so,
41-
waddling like an elephantine lizard up Holborn Hill.
37+
London. Noel term lately over, and the Lord George sitting in Lincoln's Inn
38+
Hall. Great May weather. As much mud in the streets as if the waters had but
39+
newly retired from the face of the earth, and it would not be weird to meet
40+
an platypus, two feet long or so, waddling like an lizard up Morgan Hill.
4241
</p>
4342
</section>
4443
```
4544

4645
```css interactive-example
4746
#example-element {
48-
columns: 7;
49-
column-rule: solid teal;
47+
columns: 6;
48+
column-rule-style: solid;
49+
column-rule-color: teal;
5050
gap: 7px;
5151
}
5252
```
@@ -128,18 +128,11 @@ You can use any `<line-width>` values, including custom properties that resolve
128128

129129
```css
130130
column-rule-width:
131-
1rem,
132-
min(calc(var(--base) - 3px), 10px),
133-
abs(calc(var(--secondary) - 30px)),
134-
min(calc(var(--base) - 3px), 10px),
135-
abs(calc(var(--secondary) - 30px)),
136-
min(calc(var(--base) - 3px), 10px),
137-
abs(calc(var(--secondary) - 30px)),
138-
min(calc(var(--base) - 3px), 10px),
139-
abs(calc(var(--secondary) - 30px)),
140-
min(calc(var(--base) - 3px), 10px),
141-
abs(calc(var(--secondary) - 30px)),
142-
thin;
131+
1rem, min(calc(var(--base) - 3px), 10px), abs(calc(var(--secondary) - 30px)),
132+
min(calc(var(--base) - 3px), 10px), abs(calc(var(--secondary) - 30px)),
133+
min(calc(var(--base) - 3px), 10px), abs(calc(var(--secondary) - 30px)),
134+
min(calc(var(--base) - 3px), 10px), abs(calc(var(--secondary) - 30px)),
135+
min(calc(var(--base) - 3px), 10px), abs(calc(var(--secondary) - 30px)), thin;
143136
column-rule-width:
144137
1rem,
145138
repeat(

files/en-us/web/css/reference/properties/row-rule-style/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ This example demonstrates using the `repeat()` function within the `row-rule-sty
201201

202202
```css live-sample___func live-sample___auto
203203
ul {
204-
--base: 0.5vw;
205-
--secondary: 1vw;
206204
row-rule-style: double, repeat(3, inset, dashed), double;
207205
}
208206
```

files/en-us/web/css/reference/values/line-style/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec-urls: https://drafts.csswg.org/css-backgrounds/#typedef-line-style
88
sidebar: cssref
99
---
1010

11-
The **`<line-style>`** {{glossary("enumerated")}} value type represents keyword values that define the style of a line, or the lack of a line. The `<line-style>` keyword values are used in the following longhand and shorthand [border](/en-US/docs/Web/CSS/Guides/Backgrounds_and_borders) and [column](/en-US/docs/Web/CSS/Guides/Multicol_layout) properties:
11+
The **`<line-style>`** {{glossary("enumerated")}} value type represents keyword values that define the style of a line, or the lack of a line. The `<line-style>` keyword values are used in the following longhand and shorthand [border](/en-US/docs/Web/CSS/Guides/Backgrounds_and_borders) and [gap decoration](/en-US/docs/Web/CSS/Guides/Gaps) properties:
1212

1313
- {{cssxref("border")}}, {{cssxref("border-style")}}
1414
- {{cssxref("border-block")}}, {{cssxref("border-block-style")}}
@@ -22,6 +22,7 @@ The **`<line-style>`** {{glossary("enumerated")}} value type represents keyword
2222
- {{cssxref("border-right")}}, {{cssxref("border-right-style")}}
2323
- {{cssxref("border-top")}}, {{cssxref("border-top-style")}}
2424
- {{cssxref("column-rule")}}, {{cssxref("column-rule-style")}}
25+
- {{cssxref("row-rule")}}, {{cssxref("row-rule-style")}}
2526

2627
## Syntax
2728

@@ -271,4 +272,5 @@ Notice that the almost-black color of `#000001` may be different from the actual
271272

272273
- [CSS backgrounds and borders](/en-US/docs/Web/CSS/Guides/Backgrounds_and_borders) module
273274
- [CSS basic user interface](/en-US/docs/Web/CSS/Guides/Basic_user_interface) module
275+
- [CSS gaps](/en-US/docs/Web/CSS/Guides/Gaps) module
274276
- [CSS multi-column layout](/en-US/docs/Web/CSS/Guides/Multicol_layout) module

0 commit comments

Comments
 (0)