Skip to content

Commit

Permalink
Improve docs view
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Mar 23, 2024
1 parent 65dad96 commit cb974a0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"src": "public/img/ui/warning.svg"
},
"resources/css/app.scss": {
"file": "assets/app-DygtKxvk.css",
"file": "assets/app-BeZdPy5l.css",
"src": "resources/css/app.scss",
"isEntry": true
},
Expand Down
6 changes: 6 additions & 0 deletions resources/css/docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ main div {
margin-top: 1.25em;
}

@include media-breakpoint-up(md) {
h2{
margin-left: -2rem;
}
}

p {
font-size: 1em;
line-height: 1.6em;
Expand Down
12 changes: 7 additions & 5 deletions resources/views/docs/docs.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<div class="container container-docs my-4 my-xxl-5 mx-auto">
<div class="row gap-2 justify-content-center align-items-start position-relative mb-5">
<div class="col-3 col-xl-2 order-md-first order-last position-sticky top-0 py-md-3 z-1 d-none d-lg-block doc-navigation">
<div class="col-3 col-xl-3 col-xxl-2 order-md-first order-last position-sticky top-0 py-md-3 z-1 d-none d-lg-block doc-navigation">

<div class="mb-md-4 ms-md-4 d-flex align-items-stretch flex-column offcanvas-md offcanvas-start" id="docs-menu">

Expand Down Expand Up @@ -78,9 +78,10 @@ class="{{ active(url($link['href']), 'active', 'link-body-emphasis') }} d-inline

</div>
</div>
<div class="px-0 px-md-2 px-xl-3 col-md-10 col-lg-8 col-xl-7 col-xxl-6 order-md-1 order-first">
<div class="px-0 px-md-2 px-xl-3 col-md-10 col-lg-8 col-xl-8 col-xxl-6 order-md-1 order-first">

<main class="bg-body-tertiary p-4 p-xl-5 rounded documentations position-relative" data-controller="prism">
<div class="bg-body-tertiary px-4 px-xl-5 rounded">
<main class="p-4 p-xl-5 documentations position-relative" data-controller="prism">
<h1 class="display-6 fw-bold text-body-emphasis">{{ $docs->title() }}</h1>
@if ($docs->isOlderVersion())
<blockquote class="docs-blockquote-note position-relative mt-4" role="alert">
Expand All @@ -95,13 +96,14 @@ class="{{ active(url($link['href']), 'active', 'link-body-emphasis') }} d-inline
</blockquote>
@endif

<div class="d-block d-xl-none mt-3">
<div class="d-block d-xxl-none mt-3">
<x-docs.anchors :content="$content"/>
</div>
<x-docs.content :content="$content"/>
</main>
</div>
</div>
<div class="col-3 col-xl-2 order-last position-sticky top-0 py-md-3 z-1 d-none d-xl-block doc-navigation">
<div class="col-3 col-xl-2 order-last position-sticky top-0 py-md-3 z-1 d-none d-xxl-block doc-navigation">
<div class="mb-md-4 d-flex align-items-stretch flex-column offcanvas-md offcanvas-start" id="docs-menu">
<main>
<x-docs.anchors :content="$content"/>
Expand Down

0 comments on commit cb974a0

Please sign in to comment.