Skip to content

Commit

Permalink
Fixed some alignment issues with details
Browse files Browse the repository at this point in the history
  • Loading branch information
SMJSGaming committed Sep 26, 2024
1 parent 9dffcd4 commit 61fb290
Showing 1 changed file with 17 additions and 30 deletions.
47 changes: 17 additions & 30 deletions docs/resources/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,20 @@ a {
text-decoration: none;
}

summary::marker {
content: "";
}

summary::before {
content: "▶";
display: inline-block;
margin-right: 6px;
}

details[open] > summary::before {
transform: rotate(90deg);
}

#nav-bar {
top: 0;
left: 0;
Expand Down Expand Up @@ -147,7 +161,7 @@ a {
}

.list > b > a {
margin-left: 17px;
margin-left: calc(1em + 6px);
}

.object > :not(summary) {
Expand All @@ -156,10 +170,10 @@ a {

.property {
display: inline-grid;
width: calc(100% - 34px);
width: calc(100% - 2em - 12px);
gap: 7px;
padding: 15px;
margin: 10px 17px;
margin: 10px calc(1em + 6px);
margin-bottom: 10px;
background-color: var(--tint);
border-radius: 7px;
Expand Down Expand Up @@ -217,45 +231,18 @@ a {
html {
zoom: 0.4;
}

.list > b > a {
margin-left: 30px;
}

.property {
width: calc(100% - 50px);
margin: 10px 25px;
}
}

@media only screen and (max-width: 700px) and (min-width: 500px) {
html {
zoom: 0.6;
}

.list > b > a {
margin-left: 24px;
}

.property {
width: calc(100% - 40px);
margin: 10px 20px;
}
}

@media only screen and (max-width: 900px) and (min-width: 700px) {
html {
zoom: 0.8;
}

.list > b > a {
margin-left: 20px;
}

.property {
width: calc(100% - 36px);
margin: 10px 18px;
}
}

@media only screen and (max-width: 2000px) {
Expand Down

0 comments on commit 61fb290

Please sign in to comment.