Skip to content

Commit

Permalink
Mobile-friendly changes [docs]
Browse files Browse the repository at this point in the history
  • Loading branch information
bboonstra committed Oct 22, 2024
1 parent a191af7 commit de974b0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
12 changes: 12 additions & 0 deletions docs/docs/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ p {
width: auto;
max-width: 100%;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
scrollbar-width: thin;
scrollbar-color: var(--tertiary-color) transparent;
}

.command-container::-webkit-scrollbar {
height: 8px;
width: 8px;
}

.command-container::-webkit-scrollbar-thumb {
background-color: var(--tertiary-color);
border-radius: 4px;
}

.command-container pre,
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/technical/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ <h4 class="method-subheader" method-parameters="">_validate</h4>
</div>
</div>
<div class="button-container">
<a href="effortlessdb.html" class="tab tab-back">EffortlessDB</a>
<a href="db.html" class="tab tab-back">EffortlessDB</a>
<a href="fields.html" class="tab tab-forward">Fields</a>
</div>
</main>
Expand Down
10 changes: 6 additions & 4 deletions docs/docs/technical/technical.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
font-size: 1.4rem;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: fit-content;
}
Expand Down Expand Up @@ -70,8 +68,8 @@
box-sizing: border-box;
}

.property > *,
.method > * {
.property > *:not(.example-usage),
.method > *:not(.example-usage) {
flex: 1 0 auto;
min-width: 0;
}
Expand Down Expand Up @@ -136,6 +134,10 @@
}
}

.command-container {
max-width: 80vw !important;
}

.property:hover,
.method:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
Expand Down

0 comments on commit de974b0

Please sign in to comment.