From fb55838f83c2bf632acebf0c60f3ddbf02eceb8b Mon Sep 17 00:00:00 2001 From: Juan-Pablo Scaletti Date: Tue, 2 Jul 2024 16:15:07 -0500 Subject: [PATCH] arrows --- docs/components/Home.jinja | 2 +- docs/content/ui/index.md | 2 +- docs/static/docs.css | 7 +++++++ docs/static/theme.css | 26 ++++++++++---------------- docs/theme/PrevNext.jinja | 4 ++-- 5 files changed, 21 insertions(+), 20 deletions(-) diff --git a/docs/components/Home.jinja b/docs/components/Home.jinja index 9bd9d31..efdf353 100644 --- a/docs/components/Home.jinja +++ b/docs/components/Home.jinja @@ -152,7 +152,7 @@

Ready to get going? Engage!

- Get started ⟶ + Get started 🠚
Millions of people clicked a button in the last week alone!
diff --git a/docs/content/ui/index.md b/docs/content/ui/index.md index 2ffdcdd..73ff223 100644 --- a/docs/content/ui/index.md +++ b/docs/content/ui/index.md @@ -1,5 +1,5 @@ --- -title: JinjaX UI +title: UI components ---
diff --git a/docs/static/docs.css b/docs/static/docs.css index b2d3e8a..19f9f0b 100644 --- a/docs/static/docs.css +++ b/docs/static/docs.css @@ -376,6 +376,9 @@ } & a { + display: flex-inline; + align-items: center; + justify-content: center; margin-left: auto; margin-right: auto; margin-bottom: 1.25rem; @@ -400,6 +403,10 @@ background-image: linear-gradient(to top right, #a3e635, #a3e635); color: rgb(0 0 0); } + & a i { + font-style: normal; + font-size: 1.2rem; + } & .hint { font-size: 0.75rem; diff --git a/docs/static/theme.css b/docs/static/theme.css index 9f46603..d1df399 100644 --- a/docs/static/theme.css +++ b/docs/static/theme.css @@ -1045,7 +1045,7 @@ h6:hover a.headerlink { scroll-behavior: smooth; overflow: hidden; - @media (min-height: 640px) { + @media (min-width: 1024px and min-height: 768px) { & { top: 3rem; height: calc(100vh - 3rem); @@ -1208,8 +1208,7 @@ h6:hover a.headerlink { & a.next { display: flex; align-items: center; - padding-top: 0.75rem; - padding-bottom: 0.75rem; + padding: 0.75rem 0.25rem; text-decoration: none; width: 50%; border: 1px solid var(--cd-border-color); @@ -1218,13 +1217,11 @@ h6:hover a.headerlink { transition: all 0.2s ease-in; } & a.prev { - padding-right: 0.5rem; margin-right: 1.25rem; justify-content: flex-start; text-align: left; } & a.next { - padding-left: 0.5rem; margin-left: auto; justify-content: flex-end; text-align: right; @@ -1247,10 +1244,11 @@ h6:hover a.headerlink { font-size: 0.9rem; line-height: 1.1; } - & .icon { - width: 2rem; - font-size: 1.6rem; - line-height: 1; + & i { + opacity: 0.8; + font-style: normal; + font-size: 1.4rem; + padding: 0 0.5rem; } } @@ -1382,13 +1380,9 @@ h6:hover a.headerlink { transition-delay: 0.3s; } } - & .light-text { - margin-left: 0.5rem; - display: none; - white-space: nowrap; - } - & .dark-text { - padding: 0 0.5rem 0 0.25rem; + & .light-text, + & .dark-text { + padding: 0.5rem; display: none; white-space: nowrap; } diff --git a/docs/theme/PrevNext.jinja b/docs/theme/PrevNext.jinja index 66dbcbf..d39448f 100644 --- a/docs/theme/PrevNext.jinja +++ b/docs/theme/PrevNext.jinja @@ -3,7 +3,7 @@