Skip to content

Commit e39d3f2

Browse files
docs: fix divider for rule category (#19264)
* docs: fix divider for fourth rule category * fix alignment of rule category description * apply suggestion * remove flex property
1 parent e0cf53f commit e39d3f2

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

docs/src/assets/scss/components/rules.scss

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,30 @@
2020
border-left: 1px solid var(--divider-color);
2121
left: 0;
2222
}
23+
24+
&:nth-child(2)::after {
25+
height: 70%;
26+
position: absolute;
27+
}
2328
}
2429

2530
@media screen and (min-width: 768px) and (max-width: 799px), screen and (min-width: 854px) and (max-width: 1023px), screen and (min-width: 1256px) {
26-
&:not(:first-child)::after {
31+
&:nth-child(3)::after {
2732
height: 70%;
2833
position: absolute;
2934
}
3035
}
3136

32-
@media screen and (min-width: 800px) and (max-width: 853px), screen and (min-width: 1024px) and (max-width: 1255px) {
33-
&:nth-child(2)::after {
37+
@media screen and (min-width: 800px) and (max-width: 853px), screen and (min-width: 1024px) and (max-width: 1255px), screen and (min-width: 1654px) and (max-width: 1982px) {
38+
&:nth-child(4)::after {
3439
height: 70%;
3540
position: absolute;
3641
}
3742
}
3843
}
3944

4045
.rule-category__description {
41-
flex: 1 1 45ch;
46+
height: 100%;
4247
}
4348
}
4449

@@ -58,10 +63,6 @@
5863
p {
5964
margin: 0;
6065
}
61-
62-
.rule-category__description {
63-
flex: 1 1 30ch;
64-
}
6566
}
6667

6768
.rule:not(.token) {
@@ -80,11 +81,6 @@
8081
}
8182
}
8283

83-
.rule--deprecated,
84-
.rule--removed {
85-
// opacity: .5;
86-
}
87-
8884
.rule__content {
8985
flex: 1 1 35ch;
9086
overflow-x: auto;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy