Pathl.Stona/static/style.css

257 lines
4.5 KiB
CSS
Raw Permalink Normal View History

2026-01-30 17:08:36 +00:00
/* =========================
RESET PODSTAWOWY
========================= */
2026-01-30 12:33:51 +00:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
2026-01-30 17:08:36 +00:00
/* =========================
BODY
========================= */
2026-01-30 12:33:51 +00:00
body {
background: #f4f7fc;
color: #333;
padding: 20px;
}
2026-01-30 17:08:36 +00:00
/* =========================
NAGŁÓWEK
========================= */
2026-01-30 12:33:51 +00:00
h2 {
text-align: center;
margin-bottom: 30px;
color: #4a4a4a;
font-size: 2em;
}
2026-01-30 17:08:36 +00:00
/* =========================
KONTENER MODELI
========================= */
2026-01-30 12:33:51 +00:00
#models-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 20px;
}
2026-01-30 17:08:36 +00:00
/* =========================
KARTA MODELU
========================= */
2026-01-30 12:33:51 +00:00
.model-card {
2026-01-30 17:08:36 +00:00
position: relative;
2026-01-30 12:33:51 +00:00
background: #ffffff;
border-radius: 15px;
padding: 20px;
box-shadow: 0 6px 18px rgba(0,0,0,0.08);
transition: transform 0.2s, box-shadow 0.2s;
2026-01-30 17:08:36 +00:00
overflow: hidden;
2026-01-30 12:33:51 +00:00
}
.model-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
2026-01-30 17:08:36 +00:00
/* =========================
3 KROPKI (MENU)
========================= */
.menu-btn {
position: absolute;
top: 12px;
right: 14px;
cursor: pointer;
font-size: 22px;
color: #777;
user-select: none;
}
.menu-btn:hover {
color: #000;
}
/* =========================
BOCZNY PANEL (SLIDE)
========================= */
.side-menu {
position: absolute;
top: 0;
right: -260px;
width: 250px;
height: 100%;
background: #111;
color: #fff;
padding: 20px;
transition: right 0.3s ease;
z-index: 20;
display: flex;
flex-direction: column;
gap: 10px;
}
.side-menu.open {
right: 0;
}
.side-menu h4 {
margin-bottom: 10px;
border-bottom: 1px solid #333;
padding-bottom: 5px;
}
.side-menu input {
padding: 8px;
border-radius: 6px;
border: none;
font-size: 0.9em;
}
.side-menu button {
padding: 8px;
border-radius: 8px;
border: none;
cursor: pointer;
font-weight: bold;
background: #6c63ff;
color: white;
}
.side-menu button:hover {
background: #574fd6;
}
/* =========================
NAZWA MODELU
========================= */
2026-01-30 12:33:51 +00:00
.model-card h3 {
margin-bottom: 15px;
color: #1a1a1a;
font-size: 1.4em;
border-bottom: 1px solid #e0e0e0;
padding-bottom: 5px;
}
2026-01-30 17:08:36 +00:00
/* =========================
OPIS MODELU (Markdown)
========================= */
2026-01-30 12:33:51 +00:00
.description {
font-style: italic;
color: #555;
margin-bottom: 15px;
line-height: 1.5;
}
2026-01-30 17:08:36 +00:00
/* =========================
FORMULARZ
========================= */
2026-01-30 12:33:51 +00:00
form.predict-form {
display: flex;
flex-direction: column;
gap: 10px;
}
form.predict-form label {
font-weight: 600;
}
form.predict-form input {
padding: 8px 12px;
border-radius: 8px;
border: 1px solid #ccc;
font-size: 0.95em;
transition: border 0.2s, box-shadow 0.2s;
}
form.predict-form input:focus {
border-color: #6c63ff;
box-shadow: 0 0 5px rgba(108, 99, 255, 0.4);
outline: none;
}
2026-01-30 17:08:36 +00:00
/* =========================
PRZYCISK
========================= */
2026-01-30 12:33:51 +00:00
form.predict-form button {
padding: 10px 15px;
background: #6c63ff;
color: #fff;
border: none;
border-radius: 10px;
cursor: pointer;
font-weight: bold;
transition: background 0.2s, transform 0.2s;
}
form.predict-form button:hover {
background: #574fd6;
transform: translateY(-2px);
}
2026-01-30 17:08:36 +00:00
/* =========================
OUTPUT
========================= */
2026-01-30 12:33:51 +00:00
.output {
margin-top: 10px;
font-weight: bold;
color: #1a73e8;
}
2026-01-30 17:08:36 +00:00
/* =========================
DOWNLOAD
========================= */
2026-01-30 12:33:51 +00:00
.download {
margin-top: 15px;
font-size: 0.9em;
}
.download a {
text-decoration: none;
color: #6c63ff;
margin-right: 10px;
transition: color 0.2s;
}
.download a:hover {
color: #574fd6;
text-decoration: underline;
}
2026-01-30 17:08:36 +00:00
/* =========================
LINIE
========================= */
2026-01-30 12:33:51 +00:00
hr {
border: none;
height: 1px;
background: #e0e0e0;
margin: 20px 0;
}
2026-01-30 17:08:36 +00:00
/* =========================
RESPONSYWNOŚĆ
========================= */
2026-01-30 12:33:51 +00:00
@media (max-width: 600px) {
h2 {
font-size: 1.5em;
}
.model-card {
padding: 15px;
}
2026-01-30 17:08:36 +00:00
form.predict-form input,
form.predict-form button {
2026-01-30 12:33:51 +00:00
font-size: 0.9em;
}
}
2026-01-30 17:08:36 +00:00
.side-menu {
pointer-events: none;
}
.side-menu.open {
pointer-events: auto;
}
.side-menu {
position: fixed;
}