Update styling

This commit is contained in:
Korbs 2024-10-25 14:52:40 -04:00
parent 88be8aab63
commit be1ae93f35
10 changed files with 103 additions and 19 deletions

View file

@ -27,9 +27,11 @@ if (Image === null) {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 6px; gap: 6px;
background: white; background: var(--box-background);
transition: 0.6s background, 0.6s color;
border-radius: 6px; border-radius: 6px;
padding: 12px; padding: 12px;
color: var(--text);
* { * {
margin: 0px; margin: 0px;
} }

View file

@ -13,7 +13,7 @@ const {
<style lang="scss"> <style lang="scss">
.search-correction { .search-correction {
border: 2px #ddd solid; border: 2px #4c4f69 solid;
padding: 6px 24px; padding: 6px 24px;
font-size: 14px; font-size: 14px;
margin-bottom: 6px; margin-bottom: 6px;

View file

@ -9,12 +9,13 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
a { a {
background: white; background: var(--box-background);
transition: 0.6s background, 0.6s color;
border-radius: 3rem; border-radius: 3rem;
text-decoration: none; text-decoration: none;
font-size: 14px; font-size: 14px;
padding: 6px 8px; padding: 6px 8px;
color: black; color: var(--text);
text-wrap: nowrap; text-wrap: nowrap;
margin-bottom: 6px; margin-bottom: 6px;
margin-right: 4px; margin-right: 4px;

View file

@ -23,14 +23,14 @@ const {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 6px; gap: 6px;
background: white; background: var(--box-background);
margin-bottom: 12px; margin-bottom: 12px;
border-radius: 6px; border-radius: 6px;
padding: 6px 12px; padding: 12px;
box-shadow: 0px 4px 10px 0px #0000000a; box-shadow: 0px 4px 10px 0px #0000000a;
transition: 0.3s box-shadow; transition: 0.6s background, 0.3s box-shadow;
&:hover { &:hover {
box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.04); box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.2);
transition: 0.3s box-shadow; transition: 0.3s box-shadow;
} }
* { * {
@ -43,12 +43,13 @@ const {
text-decoration: none; text-decoration: none;
h2 { h2 {
font-size: 20px; font-size: 20px;
color: black; color: var(--text);
} }
p { p {
font-size: 12px; font-size: 12px;
text-decoration: underline; text-decoration: underline;
color: rgb(82, 82, 82); color: var(--link);
transition: 0.6s color;
} }
} }
.search-result-web-sublinks { .search-result-web-sublinks {
@ -57,7 +58,6 @@ const {
grid-template-columns: auto auto; grid-template-columns: auto auto;
a { a {
font-size: 18px; font-size: 18px;
color: black;
} }
} }
} }

View file

@ -24,8 +24,10 @@ import SearchMenu from "@components/global/SearchMenu.astro"
<style> <style>
.search-results { .search-results {
margin-top: 16px; margin-top: 16px;
display: grid; display: flex;
grid-template-columns: 64% 34%;
gap: 24px; gap: 24px;
.search-results-end {
max-width: 400px;
}
} }
</style> </style>

View file

@ -1,17 +1,33 @@
--- ---
// Layout // Layout
import Base from "@layouts/Base.astro"; import Base from "@layouts/Base.astro";
// Components
import SearchBox from "@components/global/SearchBox.astro";
--- ---
<Base> <Base>
<a href="http://localhost:1550/web?=Queen%20Band">Example Search</a> <div class="home-center">
<br class="full"/> <SearchBox/>
</div>
</Base> </Base>
<style is:global> <style is:global>
/* Don't show header search */
header form {
display: none !important;
}
/* Home CSS */
.home-center {
position: absolute;
top: 42%;
left: 50%;
transform: translate(-50%, -50%);
}
footer { footer {
position: absolute; position: absolute;
bottom: 0px; bottom: 0px;
width: 100%; width: 100%;
max-width: 1200px; max-width: 1200px;
} }
</style> </style>
<script is:inline>FocusSearch()</script>

View file

@ -1,17 +1,66 @@
// Preferred Themes
:root {
.light {
--body-background: #dce0e8;
--box-background: #eff1f5;
--link: #1e66f5;
--text: black;
}
.dark {
--body-background: #232634;
--box-background: #303446;
--link: #8caaee;
--text: white;
}
}
.light {
.theme-light {
display: inherit;
}
.theme-dark {
display: none;
}
}
.dark {
.theme-light {
display: none;
}
.theme-dark {
display: inherit;
}
}
// Fonts
@font-face {
font-family: 'Mona Sans';
src:
url('/fonts/Mona-Sans/Mona-Sans.woff2') format('woff2 supports variations'),
url('/fonts/Mona-Sans/Mona-Sans.woff2') format('woff2-variations');
font-weight: 200 900;
font-stretch: 75% 125%;
}
// Master
html, body { html, body {
height: 100%; height: 100%;
font-family: 'Mona Sans';
} }
body { body {
background: #e5e5e5; background: var(--body-background);
transition: 0.6s background, 0.6s color;
margin: auto; margin: auto;
max-width: 1200px; max-width: 1200px;
font-family: arial;
padding: 0px 12px; padding: 0px 12px;
color: var(--text);
.disabled-items { .disabled-items {
opacity: 0.3; opacity: 0.3;
pointer-events: none; pointer-events: none;
} }
a {
color: var(--link);
transition: 0.6s color;
}
::selection { ::selection {
background: gray; background: gray;
color: white; color: white;

View file

@ -1,5 +1,19 @@
@media screen and (max-width: 860px){ @media screen and (max-width: 860px){
.search-results { .search-results {
grid-template-columns: auto !important; flex-direction: column-reverse;
}
.search-results-end {
max-width: 100% !important;
}
.related-search-tags {
flex-wrap: nowrap !important;
overflow: scroll !important;
}
.related-search-tags a {
padding: 12px 24px !important;
}
footer {
flex-direction: column;
padding-bottom: 24px;
} }
} }

View file

View file