Skip to content

Commit

Permalink
docs: fix divider for rule category (eslint#19264)
Browse files Browse the repository at this point in the history
* docs: fix divider for fourth rule category

* fix alignment of rule category description

* apply suggestion

* remove flex property
  • Loading branch information
Tanujkanti4441 authored Jan 13, 2025
1 parent e0cf53f commit e39d3f2
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions docs/src/assets/scss/components/rules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,30 @@
border-left: 1px solid var(--divider-color);
left: 0;
}

&:nth-child(2)::after {
height: 70%;
position: absolute;
}
}

@media screen and (min-width: 768px) and (max-width: 799px), screen and (min-width: 854px) and (max-width: 1023px), screen and (min-width: 1256px) {
&:not(:first-child)::after {
&:nth-child(3)::after {
height: 70%;
position: absolute;
}
}

@media screen and (min-width: 800px) and (max-width: 853px), screen and (min-width: 1024px) and (max-width: 1255px) {
&:nth-child(2)::after {
@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) {
&:nth-child(4)::after {
height: 70%;
position: absolute;
}
}
}

.rule-category__description {
flex: 1 1 45ch;
height: 100%;
}
}

Expand All @@ -58,10 +63,6 @@
p {
margin: 0;
}

.rule-category__description {
flex: 1 1 30ch;
}
}

.rule:not(.token) {
Expand All @@ -80,11 +81,6 @@
}
}

.rule--deprecated,
.rule--removed {
// opacity: .5;
}

.rule__content {
flex: 1 1 35ch;
overflow-x: auto;
Expand Down

0 comments on commit e39d3f2

Please sign in to comment.