New Style #20

Merged
jakob.scheid merged 15 commits from feature/reworked-style into main 2026-05-06 14:22:47 +02:00
3 changed files with 71 additions and 19 deletions
+9 -5
View File
@@ -27,22 +27,26 @@ limitations under the License.
<nav class="global-nav">
<ul>
<li class="nav-item">
Seekra
<a href="#">Seekra</a>
</li>
</ul>
</nav>
<header>
<div class="content-background">
<header class="global-header">
<h1>Seekra</h1>
<p>
<p class="slogan">
Built to search.
</p>
</header>
<form>
<form id="search-form">
<div class="search-wrapper">
<input type="search" name="search" placeholder="Search..." required />
<button type="submit">Search</button>
<button type="submit" class="search-button">Search</button>
</div>
</form>
</div>
<footer>
<p>&copy; 2026 Seekra.</p>
</footer>
+56 -7
View File
@@ -1,28 +1,77 @@
body {
margin: 0;
background-color: #ffffff;
font-size: 16px;
}
.content-background {
background:
radial-gradient(ellipse at 40% 60%, rgba(255,255,255,0.55) 0%, transparent 75%),
linear-gradient(160deg, #c8d8f0, #7aa0d8, #5077C7, #dce8f8);
height: 300px;
display: flex;
flex-direction: column;
}
header {
.global-header {
text-align: center;
}
header h1 {
.global-header h1 {
display: inline-block;
margin-bottom: 0;
background: linear-gradient(to right, #689BDB, #5F8DDC, #5077C7, #4562BE, #374FA5, #22298F);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.slogan{
margin-top: 0;
font-size: small;
}
form {
display: flex;
justify-content: center;
margin-top: 20px;
margin-top: 60px;
width: 100%;
}
form button{
margin-left: 10px;
.search-wrapper {
--submit-button-padding-y: 8px;
--submit-button-content-height: 18px;
--padding: 4px;
display: flex;
align-items: center;
width: 80%;
border: 1.5px solid #ccc;
border-radius: calc(var(--submit-button-content-height) * 0.5 + var(--submit-button-padding-y) + var(--padding));
padding: var(--padding);
padding-left: calc(var(--submit-button-content-height) + var(--padding));
}
form input{
width: 80%;
.search-wrapper input {
border: none;
outline: none;
width: 100%;
font-size: 1rem;
background: transparent;
}
.search-button {
font-size: 1rem;
height: calc(var(--submit-button-content-height) + 2 * var(--submit-button-padding-y));
border-radius: calc(var(--submit-button-content-height) * 0.5 + var(--submit-button-padding-y));
border: none;
padding: var(--submit-button-padding-y) 20px;
background: #4562BE;
color: white;
cursor: pointer;
white-space: nowrap;
}
.search-button:hover {
background: #374FA5;
}
footer{
-1
View File
@@ -2,7 +2,6 @@
display: flex;
justify-content: center;
padding: 10px 0;
border-bottom: 1px solid #000000;
}
.global-nav ul {