AiArk-21.2.2025/css/style.css

226 lines
3.1 KiB
CSS
Raw Normal View History

2025-02-27 12:16:01 +00:00
/* RESET I PODSTAWY */
2025-02-26 13:22:01 +00:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
2025-02-21 12:29:52 +00:00
2025-02-26 13:22:01 +00:00
body {
font-family: Arial, sans-serif;
2025-02-27 12:16:01 +00:00
background: #f2f2f2;
2025-02-26 13:22:01 +00:00
color: #333;
2025-02-27 12:16:01 +00:00
line-height: 1.6;
2025-02-26 13:22:01 +00:00
}
/* LAYOUT GŁÓWNY */
header, nav, main, footer {
max-width: 1200px;
2025-02-27 12:16:01 +00:00
margin: 10px auto;
padding: 15px;
background: #fff;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
2025-02-26 13:22:01 +00:00
}
/* NAGŁÓWEK */
header {
text-align: center;
}
header h1 {
2025-02-27 12:16:01 +00:00
font-size: 2.5em;
2025-02-26 13:22:01 +00:00
color: #444;
2025-02-27 12:16:01 +00:00
font-weight: 700;
2025-02-26 13:22:01 +00:00
}
/* NAWIGACJA */
nav {
display: flex;
justify-content: center;
background: #f9f9f9;
}
nav a {
2025-02-27 12:16:01 +00:00
padding: 10px 15px;
margin: 0 5px;
2025-02-26 13:22:01 +00:00
text-decoration: none;
color: #333;
font-weight: bold;
2025-02-27 12:16:01 +00:00
border-radius: 4px;
transition: all 0.3s;
2025-02-26 13:22:01 +00:00
}
nav a:hover {
background: #e0e0e0;
2025-02-27 12:16:01 +00:00
}
nav a.active {
background: #4CAF50;
color: #fff;
2025-02-26 13:22:01 +00:00
}
/* GŁÓWNA SEKCJA */
main {
2025-02-27 12:16:01 +00:00
padding: 20px;
2025-02-26 13:22:01 +00:00
}
2025-02-27 12:16:01 +00:00
/* ZAKŁADKI */
.tab-content {
display: none;
2025-02-26 13:22:01 +00:00
padding: 20px;
background: #fafafa;
2025-02-27 12:16:01 +00:00
border: 1px solid #ddd;
border-radius: 4px;
2025-02-26 13:22:01 +00:00
}
2025-02-27 12:16:01 +00:00
.tab-content.active {
display: block;
}
.tab-content h2 {
2025-02-26 13:22:01 +00:00
margin-bottom: 15px;
2025-02-27 12:16:01 +00:00
font-size: 1.5em;
border-bottom: 2px solid #ccc;
2025-02-26 13:22:01 +00:00
padding-bottom: 5px;
2025-02-27 12:16:01 +00:00
}
/* STRONA GŁÓWNA */
#home ul {
list-style: disc;
margin: 0 0 15px 20px;
}
#home a {
color: #4CAF50;
text-decoration: none;
}
#home a:hover {
text-decoration: underline;
2025-02-26 13:22:01 +00:00
}
/* FORMULARZ */
form {
display: flex;
flex-direction: column;
gap: 15px;
}
form label {
font-weight: bold;
2025-02-27 12:16:01 +00:00
color: #555;
2025-02-26 13:22:01 +00:00
}
2025-02-27 12:16:01 +00:00
form input, form select {
padding: 8px;
2025-02-26 13:22:01 +00:00
border: 1px solid #ddd;
2025-02-27 12:16:01 +00:00
border-radius: 4px;
2025-02-26 13:22:01 +00:00
font-size: 1em;
transition: border-color 0.3s;
}
2025-02-27 12:16:01 +00:00
form input:focus, form select:focus {
border-color: #4CAF50;
2025-02-26 13:22:01 +00:00
outline: none;
}
form button {
2025-02-27 12:16:01 +00:00
padding: 10px 20px;
background: #4CAF50;
2025-02-26 13:22:01 +00:00
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
2025-02-27 12:16:01 +00:00
transition: all 0.3s;
2025-02-26 13:22:01 +00:00
}
form button:hover {
2025-02-27 12:16:01 +00:00
background: #45a049;
}
/* TABELA */
.table-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
2025-02-26 13:22:01 +00:00
}
2025-02-27 12:16:01 +00:00
.table-header button {
padding: 10px 20px;
background: #4CAF50;
2025-02-26 13:22:01 +00:00
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
2025-02-27 12:16:01 +00:00
transition: all 0.3s;
2025-02-26 13:22:01 +00:00
}
2025-02-27 12:16:01 +00:00
.table-header button:hover {
background: #45a049;
2025-02-26 13:22:01 +00:00
}
#ordersTable {
width: 100%;
border-collapse: collapse;
}
#ordersTable th, #ordersTable td {
border: 1px solid #ccc;
2025-02-27 12:16:01 +00:00
padding: 12px;
2025-02-26 13:22:01 +00:00
text-align: left;
}
#ordersTable th {
2025-02-27 12:16:01 +00:00
background: #eee;
2025-02-26 13:22:01 +00:00
font-weight: bold;
}
/* STOPKA */
footer {
text-align: center;
background: #f9f9f9;
}
/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
header h1 {
font-size: 2em;
}
nav {
flex-direction: column;
align-items: center;
}
nav a {
margin: 5px 0;
}
2025-02-27 12:16:01 +00:00
main, .tab-content {
2025-02-26 13:22:01 +00:00
padding: 15px;
}
#ordersTable th, #ordersTable td {
padding: 8px;
}
}
@media (max-width: 480px) {
#ordersTable th, #ordersTable td {
padding: 6px;
2025-02-27 12:16:01 +00:00
font-size: 0.9em;
2025-02-26 13:22:01 +00:00
}
.table-header {
flex-direction: column;
align-items: flex-start;
}
2025-02-27 12:16:01 +00:00
.table-header button {
2025-02-26 13:22:01 +00:00
margin-top: 10px;
}
}
2025-02-27 12:16:01 +00:00