/* static/styles.css / / Import Google Fonts / @import… · The Chat Archive
Explore / Programming /* static/styles.css / / Import Google Fonts / @import… Save Share Download ▾ Report/* static/styles.css */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap ');
/* Reset some basic elements */
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Theme Variables /
:root {
/ Dark Theme Colors /
--background-gradient-start: #0b0d1b;
--background-gradient-end: #03040b;
--text-color: #d1d1d1;
--header-footer-bg: rgba(15, 15, 30, 0.9);
--header-footer-border: #333;
--main-bg: rgba(40, 40, 60, 0.3); / Enhanced glass effect background /
--main-border: rgba(255, 255, 255, 0.2);
--main-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), inset 0 2px 2px rgba(255, 255, 255, 0.1); / Deeper shadow /
--input-bg: rgba(20, 20, 30, 0.8);
--input-border: #666;
--input-placeholder: #a0a0a0;
--button-bg: #343a40; / Darker button /
--button-hover-bg: #1f2326; / Even darker on hover /
--link-color: #b39ddb;
--heading-color: #9e9eff;
--supplier-card-bg: rgba(40, 40, 60, 0.2); / More transparency for glassy effect /
--supplier-card-border: #444;
--supplier-box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.05); / More depth for cards */
--error-color: #ff6b6b;
}
.light-theme {
/* Light Theme Colors */
--background-gradient-start: #ffffff;
--background-gradient-end: #e0e0e0;
--text-color: #303136;
--header-footer-bg: rgba(245, 245, 245, 0.9);
--header-footer-border: #ccc;
--main-bg: rgba(255, 255, 255, 0.9);
--main-border: rgba(0, 0, 0, 0.1);
--input-bg: rgba(255, 255, 255, 0.9);
--input-border: #ccc;
--input-placeholder: #888;
--button-bg: #4a90e2;
--button-hover-bg: #357ab8;
--link-color: #3b5998;
--heading-color: #3b5998;
--supplier-card-bg: rgba(255, 255, 255, 0.9);
--supplier-card-border: #ddd;
--error-color: #d32f2f;
}
/* Body Styling /
body {
font-family: 'Roboto', sans-serif;
background: linear-gradient(120deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
color: var(--text-color);
min-height: 100vh;
margin: 0;
display: flex;
flex-direction: column;
padding-top: 70px; / Height of header /
padding-bottom: 50px; / Height of footer */
transition: background 0.4s ease;
}
/* Header styling */
header {
background-color: var(--header-footer-bg);
padding: 10px 20px;
border-bottom: 1px solid var(--header-footer-border);
position: fixed;
width: 100%;
top: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
}
header h1 {
font-size: 24px;
font-weight: 500;
color: var(--text-color);
}
header nav {
display: flex;
align-items: center;
}
header nav a {
margin: 0 10px;
color: var(--text-color);
text-decoration: none;
font-weight: 500;
}
Assistant2024-09-29 19:22 UTC Copy response
Copy first prompt
Details
Provider OpenAI
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language en
Conversation date Sep 29, 2024
Added to archive Nov 16, 2026
ID 01m7h41vyd2e3xr66qsbt3szaqSource & license Imported from WildChat-4.8M (AI2) (source ). Imported records earn no Research Points.
Upstream record: 480e0d88834cf96e7cb0b291ff08ca0f
Zhao et al., WildChat: 1M ChatGPT Interaction Logs in the Wild (ICLR 2024). Contains information from WildChat-4.8M, made available under the ODC Attribution License.
License: ODC-BY-1.0
header nav a:hover {
color: var(--link-color);
}
/* Theme Switch Button Container */
.checkbox-wrapper-54 {
margin-left: 20px;
}
.checkbox-wrapper-54 input[type="checkbox"] {
visibility: hidden;
display: none;
}
/* The switch */
.checkbox-wrapper-54 .switch {
--width-of-switch: 3.5em;
--height-of-switch: 2em;
--size-of-icon: 1.4em;
--slider-offset: 0.3em;
position: relative;
width: var(--width-of-switch);
height: var(--height-of-switch);
display: inline-block;
}
.checkbox-wrapper-54 .slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--input-bg);
transition: .4s;
border-radius: 30px;
}
.checkbox-wrapper-54 .slider:before {
position: absolute;
content: "";
height: var(--size-of-icon);
width: var(--size-of-icon);
border-radius: 20px;
left: var(--slider-offset);
top: 50%;
transform: translateY(-50%);
background: linear-gradient(40deg, #ff0080, #ff8c00 70%);
transition: .4s;
}
.checkbox-wrapper-54 input:checked + .slider {
background-color: var(--button-bg);
}
.checkbox-wrapper-54 input:checked + .slider:before {
left: calc(100% - (var(--size-of-icon) + var(--slider-offset)));
background: var(--button-hover-bg);
box-shadow: inset -3px -2px 5px -2px rgba(0, 0, 0, 0.2), inset -10px -4px 0 0 rgba(0, 0, 0, 0.1);
}
/* Main content styling /
main {
width: 80%;
max-width: 1200px;
margin: 0 auto;
background: var(--main-bg);
backdrop-filter: blur(25px) saturate(160%); / More glassy and vibrant /
border-radius: 15px;
box-shadow: var(--main-box-shadow); / Enhanced shadow for depth */
border: 1px solid var(--main-border);
padding: 20px;
overflow-y: auto;
flex: 1;
transition: all 0.3s ease-in-out;
}
/* Form styling */
form {
margin: 20px 0;
}
form label {
display: block;
margin-bottom: 5px;
font-weight: 500;
color: var(--text-color);
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="search"] {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid var(--input-border);
background-color: var(--input-bg);
color: var(--text-color);
border-radius: 4px;
}
form input::placeholder {
color: var(--input-placeholder);
}
form button {
background-color: var(--button-bg);
color: #ffffff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
transition: all 0.3s ease;
}
form button:hover {
background-color: var(--button-hover-bg);
transform: scale(1.05); /* Subtle hover effect */
}
/* Supplier card styling /
.supplier-card {
background-color: var(--supplier-card-bg);
padding: 20px;
border: 1px solid var(--supplier-card-border);
border-radius: 6px;
margin-bottom: 20px;
box-shadow: var(--supplier-box-shadow); / Shadow for depth */
transition: all 0.3s ease;
}
.supplier-card:hover {
transform: translateY(-5px); /* Slight hover effect for depth /
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.1); / Emphasize depth */
}
.supplier-card h3 {
margin-bottom: 10px;
color: var(--text-color);
}
.supplier-card p {
margin-bottom: 5px;
}
/* Error messages */
.error-message {
color: var(--error-color);
margin-bottom: 15px;
}
/* Loader Animation */
.loader {
width: 60px;
height: 25px;
border: 2px solid;
box-sizing: border-box;
border-radius: 50%;
display: grid;
animation: l2 2s infinite linear;
margin: 20px auto;
}
.loader:before,
.loader:after {
content: "";
grid-area: 1/1;
border: inherit;
border-radius: 50%;
animation: inherit;
animation-duration: 3s;
}
.loader:after {
--s: -1;
}
@keyframes l2 {
100% {
transform: rotate(calc(var(--s, 1) * 1turn));
}
}
/* Hide loader by default */
.hidden {
display: none;
}
/* Footer styling */
footer {
background-color: var(--header-footer-bg);
padding: 10px 20px;
text-align: center;
border-top: 1px solid var(--header-footer-border);
position: fixed;
width: 100%;
bottom: 0;
color: var(--text-color);
}
/* Responsive design /
@media (max-width: 600px) {
body {
padding-top: 70px;
padding-bottom: 0; / Footer is static on mobile */
}
header {
position: static;
padding: 10px;
text-align: center;
display: block;
}
header h1 {
font-size: 20px;
margin-bottom: 10px;
}
header nav {
display: block;
text-align: center;
}
header nav a {
display: inline-block;
margin: 5px;
font-size: 16px;
}
.checkbox-wrapper-54 {
margin-top: 10px;
}
main {
width: 90%;
height: auto;
margin: 20px auto;
}
form button,
button {
width: 100%;
text-align: center;
}
footer {
position: static;
padding: 10px;
}
/* Links */
a {
color: var(--link-color);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Headings */
h2 {
font-size: 28px;
margin-bottom: 20px;
color: var(--heading-color);
font-weight: 500;
}
/* Checkbox list */
.checkbox-list label {
display: block;
margin-bottom: 10px;
color: var(--text-color);
}
/* Button styling */
button {
background-color: var(--button-bg);
color: #ffffff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
}
button:hover {
background-color: var(--button-hover-bg);
}
ANALYSE THE ABOVE styles.css and below styles.css along with the base.html , THE PROBLEM IS I WANT THE BELOW DESIGN BUT THE ABOVE COMPONENTS ARE PLACED PROPERLY WHILE THE BELOW ONE IS OUT OF PLACE AND NOT PROFESSIONAL , ANALYZE BOTH AND UPDATE THE CODE FOR THE styles.css to make sure that the above code is the same in every sense but has the below background only
/* Reset some basic elements */
{
margin: 0;
padding: 0;
box-sizing: border-box;
transition: all 0.5s ease-out; /* Added transition for smooth changes */
}
/* Theme Variables /
:root {
/ Dark Theme Colors /
--background-color: #071c39;
--text-color: #d1d1d1;
--header-footer-bg: rgba(15, 15, 30, 0.9);
--header-footer-border: #333;
--main-bg: rgba(40, 40, 60, 0.3); / Enhanced glass effect background /
--main-border: rgba(255, 255, 255, 0.2);
--main-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), inset 0 2px 2px rgba(255, 255, 255, 0.1); / Deeper shadow /
--input-bg: rgba(20, 20, 30, 0.8);
--input-border: #666;
--input-placeholder: #a0a0a0;
--button-bg: #343a40; / Darker button /
--button-hover-bg: #1f2326; / Even darker on hover /
--link-color: #b39ddb;
--heading-color: #9e9eff;
--supplier-card-bg: rgba(40, 40, 60, 0.2); / More transparency for glassy effect /
--supplier-card-border: #444;
--supplier-box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.05); / More depth for cards */
--error-color: #ff6b6b;
}
.light-theme {
/* Light Theme Colors */
--background-color: #ffffff;
--text-color: #303136;
--header-footer-bg: rgba(245, 245, 245, 0.9);
--header-footer-border: #ccc;
--main-bg: rgba(255, 255, 255, 0.9);
--main-border: rgba(0, 0, 0, 0.1);
--input-bg: rgba(255, 255, 255, 0.9);
--input-border: #ccc;
--input-placeholder: #888;
--button-bg: #4a90e2;
--button-hover-bg: #357ab8;
--link-color: #3b5998;
--heading-color: #3b5998;
--supplier-card-bg: rgba(255, 255, 255, 0.9);
--supplier-card-border: #ddd;
--error-color: #d32f2f;
}
/* Body Styling /
body {
font-family: 'Roboto', sans-serif;
background-color: var(--background-color);
color: var(--text-color);
min-height: 100vh;
margin: 0;
display: flex;
flex-direction: column;
padding-top: 70px; / Height of header /
padding-bottom: 50px; / Height of footer */
position: relative;
overflow: hidden;
}
/* Gradient Background Animation */
.gradient {
--size: 750px;
--speed: 50s;
--easing: cubic-bezier(0.8, 0.2, 0.2, 0.8);
position: absolute;
top: 50%;
left: 50%;
width: var(--size);
height: var(--size);
transform: translate(-50%, -50%);
filter: blur(calc(var(--size) / 5));
background-image: linear-gradient(hsl(222, 84%, 60%), hsl(164, 79%, 71%));
animation: rotate var(--speed) var(--easing) alternate infinite;
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
z-index: -1;
}
@media (min-width: 720px) {
.gradient {
--size: 500px;
}
}
@keyframes rotate {
0% {
transform: translate(-50%, -50%) rotate(0deg);
}
100% {
transform: translate(-50%, -50%) rotate(360deg);
}
}
/* Header styling */
header {
background-color: var(--header-footer-bg);
padding: 10px 20px;
border-bottom: 1px solid var(--header-footer-border);
position: fixed;
width: 100%;
top: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
}
header h1 {
font-size: 24px;
font-weight: 500;
color: var(--text-color);
}
header nav {
display: flex;
align-items: center;
}
header nav a {
margin: 0 10px;
color: var(--text-color);
text-decoration: none;
font-weight: 500;
}
header nav a:hover {
color: var(--link-color);
}
/* Theme Switch Button Container */
.checkbox-wrapper-54 {
margin-left: 20px;
}
.checkbox-wrapper-54 input[type="checkbox"] {
visibility: hidden;
display: none;
}
/* The switch */
.checkbox-wrapper-54 .switch {
--width-of-switch: 3.5em;
--height-of-switch: 2em;
--size-of-icon: 1.4em;
--slider-offset: 0.3em;
position: relative;
width: var(--width-of-switch);
height: var(--height-of-switch);
display: inline-block;
}
.checkbox-wrapper-54 .slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--input-bg);
transition: .4s;
border-radius: 30px;
}
.checkbox-wrapper-54 .slider:before {
position: absolute;
content: "";
height: var(--size-of-icon);
width: var(--size-of-icon);
border-radius: 20px;
left: var(--slider-offset);
top: 50%;
transform: translateY(-50%);
background: linear-gradient(40deg, #ff0080, #ff8c00 70%);
transition: .4s;
}
.checkbox-wrapper-54 input:checked + .slider {
background-color: var(--button-bg);
}
.checkbox-wrapper-54 input:checked + .slider:before {
left: calc(100% - (var(--size-of-icon) + var(--slider-offset)));
background: var(--button-hover-bg);
box-shadow: inset -3px -2px 5px -2px rgba(0, 0, 0, 0.2), inset -10px -4px 0 0 rgba(0, 0, 0, 0.1);
}
/* Main content styling /
main {
width: 80%;
max-width: 1200px;
margin: 0 auto;
background: var(--main-bg);
backdrop-filter: blur(25px) saturate(160%); / More glassy and vibrant /
border-radius: 15px;
box-shadow: var(--main-box-shadow); / Enhanced shadow for depth /
border: 1px solid var(--main-border);
padding: 20px;
overflow-y: auto;
flex: 1;
transition: all 0.3s ease-in-out;
z-index: 1; / Ensure main content is above the gradient */
}
/* Form styling */
form {
margin: 20px 0;
}
form label {
display: block;
margin-bottom: 5px;
font-weight: 500;
color: var(--text-color);
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="search"] {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid var(--input-border);
background-color: var(--input-bg);
color: var(--text-color);
border-radius: 4px;
}
form input::placeholder {
color: var(--input-placeholder);
}
form button {
background-color: var(--button-bg);
color: #ffffff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
transition: all 0.3s ease;
}
form button:hover {
background-color: var(--button-hover-bg);
transform: scale(1.05); /* Subtle hover effect */
}
/* Supplier card styling /
.supplier-card {
background-color: var(--supplier-card-bg);
padding: 20px;
border: 1px solid var(--supplier-card-border);
border-radius: 6px;
margin-bottom: 20px;
box-shadow: var(--supplier-box-shadow); / Shadow for depth */
transition: all 0.3s ease;
}
.supplier-card:hover {
transform: translateY(-5px); /* Slight hover effect for depth /
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.1); / Emphasize depth */
}
.supplier-card h3 {
margin-bottom: 10px;
color: var(--text-color);
}
.supplier-card p {
margin-bottom: 5px;
}
/* Error messages */
.error-message {
color: var(--error-color);
margin-bottom: 15px;
}
/* Loader Animation */
.loader {
width: 60px;
height: 25px;
border: 2px solid;
box-sizing: border-box;
border-radius: 50%;
display: grid;
animation: l2 2s infinite linear;
margin: 20px auto;
}
.loader:before,
.loader:after {
content: "";
grid-area: 1/1;
border: inherit;
border-radius: 50%;
animation: inherit;
animation-duration: 3s;
}
.loader:after {
--s: -1;
}
@keyframes l2 {
100% {
transform: rotate(calc(var(--s, 1) * 1turn));
}
}
/* Hide loader by default */
.hidden {
display: none;
}
/* Footer styling */
footer {
background-color: var(--header-footer-bg);
padding: 10px 20px;
text-align: center;
border-top: 1px solid var(--header-footer-border);
position: fixed;
width: 100%;
bottom: 0;
color: var(--text-color);
z-index: 100;
}
/* Responsive design /
@media (max-width: 600px) {
body {
padding-top: 70px;
padding-bottom: 0; / Footer is static on mobile */
}
header {
position: static;
padding: 10px;
text-align: center;
display: block;
}
header h1 {
font-size: 20px;
margin-bottom: 10px;
}
header nav {
display: block;
text-align: center;
}
header nav a {
display: inline-block;
margin: 5px;
font-size: 16px;
}
.checkbox-wrapper-54 {
margin-top: 10px;
}
main {
width: 90%;
height: auto;
margin: 20px auto;
}
form button,
button {
width: 100%;
text-align: center;
}
footer {
position: static;
padding: 10px;
}
/* Links */
a {
color: var(--link-color);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Headings */
h2 {
font-size: 28px;
margin-bottom: 20px;
color: var(--heading-color);
font-weight: 500;
}
/* Checkbox list */
.checkbox-list label {
display: block;
margin-bottom: 10px;
color: var(--text-color);
}
/* Button styling */
button {
background-color: var(--button-bg);
color: #ffffff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
}
button:hover {
background-color: var(--button-hover-bg);
}
/* Ensure content is above the background */
header, main, footer {
position: relative;
z-index: 1;
}
<header>
<h1><a href="{{ url_for('main.index') }}">Supplier Search Engine</a></h1>
<nav>
{% if session.get('user_id') %}
<span>Welcome, {{ session.get('username') }}!</span>
<a href="{{ url_for('main.index') }}">Home</a>
<a href="{{ url_for('main.bidding_request') }}">Bidding Request</a>
<a href="{{ url_for('main.logout') }}">Logout</a>
{% else %}
<a href="{{ url_for('main.login') }}">Login</a>
<a href="{{ url_for('main.register') }}">Register</a>
{% endif %}
<!-- Switch Button -->
<div class="checkbox-wrapper-54">
<label class="switch">
<input type="checkbox" id="theme-toggle" aria-label="Toggle light/dark theme">
<span class="slider"></span>
</label>
</div>
</nav>
</header>
<main>
{% block content %}{% endblock %}
</main>
<footer>
<p>© 2024 DLTitans AI Innovations | All Rights Reserved</p>
</footer>
<!-- Include JavaScript File -->
<script src="{{ url_for('static', filename='js/script.js') }}"></script>
Certainly! Based on your request, here's the updated styles.css. It retains all the components and positioning from your original (first) CSS, but adds the gradient background from your second CSS without disrupting the layout.
Updated styles.css:
/* static/styles.css */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
/* Reset some basic elements */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Theme Variables */
:root {
/* Dark Theme Colors */
--background-gradient-start: #0b0d1b;
--background-gradient-end: #03040b;
--text-color: #d1d1d1;
--header-footer-bg: rgba(15, 15, 30, 0.9);
--header-footer-border: #333;
--main-bg: rgba(40, 40, 60, 0.3); /* Enhanced glass effect background */
--main-border: rgba(255, 255, 255, 0.2);
--main-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), inset 0 2px 2px rgba(255, 255, 255, 0.1); /* Deeper shadow */
--input-bg: rgba(20, 20, 30, 0.8);
--input-border: #666;
--input-placeholder: #a0a0a0;
--button-bg: #343a40; /* Darker button */
--button-hover-bg: #1f2326; /* Even darker on hover */
--link-color: #b39ddb;
--heading-color: #9e9eff;
--supplier-card-bg: rgba(40, 40, 60, 0.2); /* More transparency for glassy effect */
--supplier-card-border: #444;
--supplier-box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.05); /* More depth for cards */
--error-color: #ff6b6b;
}
.light-theme {
/* Light Theme Colors */
--background-gradient-start: #ffffff;
--background-gradient-end: #e0e0e0;
--text-color: #303136;
--header-footer-bg: rgba(245, 245, 245, 0.9);
--header-footer-border: #ccc;
--main-bg: rgba(255, 255, 255, 0.9);
--main-border: rgba(0, 0, 0, 0.1);
--input-bg: rgba(255, 255, 255, 0.9);
--input-border: #ccc;
--input-placeholder: #888;
--button-bg: #4a90e2;
--button-hover-bg: #357ab8;
--link-color: #3b5998;
--heading-color: #3b5998;
--supplier-card-bg: rgba(255, 255, 255, 0.9);
--supplier-card-border: #ddd;
--error-color: #d32f2f;
}
/* Body Styling */
body {
font-family: 'Roboto', sans-serif;
background: linear-gradient(120deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
color: var(--text-color);
min-height: 100vh;
margin: 0;
display: flex;
flex-direction: column;
padding-top: 70px; /* Height of header */
padding-bottom: 50px; /* Height of footer */
transition: background 0.4s ease;
position: relative; /* Added to position the gradient correctly */
}
/* Gradient Background Animation */
.gradient {
--size: 750px;
--speed: 50s;
--easing: cubic-bezier(0.8, 0.2, 0.2, 0.8);
position: absolute;
top: 50%;
left: 50%;
width: var(--size);
height: var(--size);
transform: translate(-50%, -50%);
filter: blur(calc(var(--size) / 5));
background-image: linear-gradient(hsl(222, 84%, 60%), hsl(164, 79%, 71%));
animation: rotate var(--speed) var(--easing) alternate infinite;
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
z-index: -1; /* Ensure it's behind other content */
}
@media (min-width: 720px) {
.gradient {
--size: 500px;
}
}
@keyframes rotate {
0% {
transform: translate(-50%, -50%) rotate(0deg);
}
100% {
transform: translate(-50%, -50%) rotate(360deg);
}
}
/* Header styling */
header {
background-color: var(--header-footer-bg);
padding: 10px 20px;
border-bottom: 1px solid var(--header-footer-border);
position: fixed;
width: 100%;
top: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
}
header h1 {
font-size: 24px;
font-weight: 500;
color: var(--text-color);
}
header nav {
display: flex;
align-items: center;
}
header nav a {
margin: 0 10px;
color: var(--text-color);
text-decoration: none;
font-weight: 500;
}
header nav a:hover {
color: var(--link-color);
}
/* Theme Switch Button Container */
.checkbox-wrapper-54 {
margin-left: 20px;
}
.checkbox-wrapper-54 input[type="checkbox"] {
visibility: hidden;
display: none;
}
/* The switch */
.checkbox-wrapper-54 .switch {
--width-of-switch: 3.5em;
--height-of-switch: 2em;
--size-of-icon: 1.4em;
--slider-offset: 0.3em;
position: relative;
width: var(--width-of-switch);
height: var(--height-of-switch);
display: inline-block;
}
.checkbox-wrapper-54 .slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--input-bg);
transition: .4s;
border-radius: 30px;
}
.checkbox-wrapper-54 .slider:before {
position: absolute;
content: "";
height: var(--size-of-icon);
width: var(--size-of-icon);
border-radius: 20px;
left: var(--slider-offset);
top: 50%;
transform: translateY(-50%);
background: linear-gradient(40deg, #ff0080, #ff8c00 70%);
transition: .4s;
}
.checkbox-wrapper-54 input:checked + .slider {
background-color: var(--button-bg);
}
.checkbox-wrapper-54 input:checked + .slider:before {
left: calc(100% - (var(--size-of-icon) + var(--slider-offset)));
background: var(--button-hover-bg);
box-shadow: inset -3px -2px 5px -2px rgba(0, 0, 0, 0.2), inset -10px -4px 0 0 rgba(0, 0, 0, 0.1);
}
/* Main content styling */
main {
width: 80%;
max-width: 1200px;
margin: 0 auto;
background: var(--main-bg);
backdrop-filter: blur(25px) saturate(160%); /* More glassy and vibrant */
border-radius: 15px;
box-shadow: var(--main-box-shadow); /* Enhanced shadow for depth */
border: 1px solid var(--main-border);
padding: 20px;
overflow-y: auto;
flex: 1;
transition: all 0.3s ease-in-out;
}
/* Form styling */
form {
margin: 20px 0;
}
form label {
display: block;
margin-bottom: 5px;
font-weight: 500;
color: var(--text-color);
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="search"] {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid var(--input-border);
background-color: var(--input-bg);
color: var(--text-color);
border-radius: 4px;
}
form input::placeholder {
color: var(--input-placeholder);
}
form button {
background-color: var(--button-bg);
color: #ffffff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
transition: all 0.3s ease;
}
form button:hover {
background-color: var(--button-hover-bg);
transform: scale(1.05); /* Subtle hover effect */
}
/* Supplier card styling */
.supplier-card {
background-color: var(--supplier-card-bg);
padding: 20px;
border: 1px solid var(--supplier-card-border);
border-radius: 6px;
margin-bottom: 20px;
box-shadow: var(--supplier-box-shadow); /* Shadow for depth */
transition: all 0.3s ease;
}
.supplier-card:hover {
transform: translateY(-5px); /* Slight hover effect for depth */
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.1); /* Emphasize depth */
}
.supplier-card h3 {
margin-bottom: 10px;
color: var(--text-color);
}
.supplier-card p {
margin-bottom: 5px;
}
/* Error messages */
.error-message {
color: var(--error-color);
margin-bottom: 15px;
}
/* Loader Animation */
.loader {
width: 60px;
height: 25px;
border: 2px solid;
box-sizing: border-box;
border-radius: 50%;
display: grid;
animation: l2 2s infinite linear;
margin: 20px auto;
}
.loader:before,
.loader:after {
content: "";
grid-area: 1/1;
border: inherit;
border-radius: 50%;
animation: inherit;
animation-duration: 3s;
}
.loader:after {
--s: -1;
}
@keyframes l2 {
100% {
transform: rotate(calc(var(--s, 1) * 1turn));
}
}
/* Hide loader by default */
.hidden {
display: none;
}
/* Footer styling */
footer {
background-color: var(--header-footer-bg);
padding: 10px 20px;
text-align: center;
border-top: 1px solid var(--header-footer-border);
position: fixed;
width: 100%;
bottom: 0;
color: var(--text-color);
}
/* Responsive design */
@media (max-width: 600px) {
body {
padding-top: 70px;
padding-bottom: 0; /* Footer is static on mobile */
}
header {
position: static;
padding: 10px;
text-align: center;
display: block;
}
header h1 {
font-size: 20px;
margin-bottom: 10px;
}
header nav {
display: block;
text-align: center;
}
header nav a {
display: inline-block;
margin: 5px;
font-size: 16px;
}
.checkbox-wrapper-54 {
margin-top: 10px;
}
main {
width: 90%;
height: auto;
margin: 20px auto;
}
form button,
button {
width: 100%;
text-align: center;
}
footer {
position: static;
padding: 10px;
}
}
/* Links */
a {
color: var(--link-color);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Headings */
h2 {
font-size: 28px;
margin-bottom: 20px;
color: var(--heading-color);
font-weight: 500;
}
/* Checkbox list */
.checkbox-list label {
display: block;
margin-bottom: 10px;
color: var(--text-color);
}
/* Button styling */
button {
background-color: var(--button-bg);
color: #ffffff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
}
button:hover {
background-color: var(--button-hover-bg);
}
Explanation of Changes:
Update to base.html:
Ensure you've added the gradient div right after the <body> tag:
<body>
<!-- Add the gradient background div here -->
<div class="gradient"></div>
<!-- Rest of your content -->
</body>
Final Notes:
This updated styles.css provides the rotating gradient background without altering the positioning or styles of your existing components.
By not adding overflow: hidden; or changing the z-index of other elements, we prevent any unintended layout issues.
The gradient is placed behind all content, so it serves purely as a background enhancement.
Recommendation:
Test the updated CSS in your application to ensure everything looks and functions as expected. If any component appears out of place, double-check for any conflicting styles or additional code that might affect positioning.
Copy first response
Not yet included in a published release.