lab-2/static/css/styles.css

268 lines
4.1 KiB
CSS

:root {
--bg: #f8f4ec;
--surface: #fffdf7;
--ink: #212121;
--muted: #626262;
--accent: #ea580c;
--accent-2: #fb923c;
--line: #f0dfc9;
--shadow: 0 14px 36px rgba(112, 71, 29, 0.14);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Manrope", "Trebuchet MS", sans-serif;
color: var(--ink);
background:
radial-gradient(circle at 80% 5%, #ffe2bf 0, #f8f4ec 38%),
radial-gradient(circle at 15% 20%, #fff6e7 0, #f8f4ec 35%);
min-height: 100vh;
}
.layout {
width: min(1100px, 94%);
margin: 0 auto;
padding: 22px 0 34px;
}
.nav {
background: rgba(255, 253, 247, 0.9);
border: 1px solid var(--line);
border-radius: 18px;
padding: 14px 18px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
box-shadow: var(--shadow);
backdrop-filter: blur(4px);
}
.brand {
margin: 0;
font-family: "Unbounded", sans-serif;
font-size: 20px;
}
.nav-links {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.nav a {
color: var(--ink);
text-decoration: none;
font-weight: 700;
padding: 8px 12px;
border-radius: 999px;
border: 1px solid transparent;
transition: all 0.2s ease;
}
.nav a:hover {
border-color: var(--line);
background: #fff2de;
color: var(--accent);
}
.content {
margin-top: 18px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 22px;
padding: 20px;
box-shadow: var(--shadow);
}
h1 {
margin: 6px 0 16px;
font-family: "Unbounded", sans-serif;
font-size: clamp(22px, 4vw, 34px);
}
h2,
h3 {
margin: 0 0 8px;
}
.title-reset {
margin: 0;
}
.subtitle {
color: var(--muted);
margin: -6px 0 18px;
}
.btn {
display: inline-block;
border: none;
background: linear-gradient(135deg, var(--accent), var(--accent-2));
color: #fff;
text-decoration: none;
padding: 10px 14px;
border-radius: 12px;
font-weight: 800;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
box-shadow: 0 10px 20px rgba(234, 88, 12, 0.25);
}
.btn:hover {
transform: translateY(-1px);
}
.btn-ghost {
background: #fff;
color: var(--ink);
border: 1px solid var(--line);
box-shadow: none;
}
input,
textarea,
select {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: 10px;
font: inherit;
margin: 0 0 10px;
background: #fff;
}
textarea {
min-height: 88px;
resize: vertical;
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
border-bottom: 1px solid var(--line);
text-align: left;
vertical-align: top;
padding: 10px 8px;
}
th {
font-size: 13px;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--muted);
}
.grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
}
.card {
border: 1px solid var(--line);
border-radius: 16px;
padding: 14px;
background: linear-gradient(180deg, #fffefb, #fff7ec);
}
.card-image {
width: 100%;
height: 160px;
object-fit: cover;
border-radius: 12px;
border: 1px solid var(--line);
margin-bottom: 12px;
background: #fff;
}
.meta {
color: var(--muted);
font-size: 14px;
margin-bottom: 12px;
}
.list {
display: grid;
gap: 12px;
padding: 0;
margin: 0 0 14px;
list-style: none;
}
.list li {
display: flex;
gap: 12px;
justify-content: space-between;
border: 1px solid var(--line);
border-radius: 12px;
padding: 12px;
background: #fff;
}
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 12px;
}
.status-form {
display: flex;
gap: 8px;
align-items: center;
}
.message {
font-weight: 700;
}
.message-error {
color: #b42318;
}
.message-success {
color: #067647;
}
@media (max-width: 900px) {
.grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 640px) {
.layout {
width: min(96%, 960px);
padding: 14px 0 24px;
}
.content {
padding: 14px;
}
.grid {
grid-template-columns: 1fr;
}
.list li {
flex-direction: column;
align-items: flex-start;
}
.status-form {
flex-direction: column;
align-items: stretch;
}
}