INF.03-01-25.01-SG/css/layout.css

84 lines
1.9 KiB
CSS
Raw Normal View History

body {
font-family: Helvetica;
background-color: #EAEAEA;
margin: 0;
padding: 0;
2025-09-04 10:54:12 +00:00
}
header {
position: relative;
text-align: center;
}
header img {
width: 100%;
}
2025-09-04 11:00:25 +00:00
/*
position: absolute wyrzuca tekst z normalnego przepływu strony i umieszcza go nad obrazkiem.
top: 50%; left: 50% zaczyna od środka nagłówka.
transform: translate(-50%, -50%) przesuwa tekst o połowę jego szerokości/wysokości, by był idealnie wyśrodkowany.
color: white biały tekst na ciemnym tle obrazka.
font-size: 48px duży tekst.
*/
2025-09-04 10:54:12 +00:00
.header-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 48px;
font-weight: bold;
2025-09-04 11:00:25 +00:00
}
2025-09-04 11:06:05 +00:00
/*
nav (menu) i footer (stopka) mają ciemnoszare tło (#625B5B), biały tekst i padding.
text-align: center centruje zawartość.
*/
nav, footer {
background-color: #625B5B;
color: white;
padding: 20px;
text-align: center;
}
/*
a w nav to linki:
font-weight: bold pogrubienie
background-color: #EAEAEA jasny tło przycisków
color: #625B5B ciemny kolor tekstu
padding: 10px przestrzeń wewnątrz przycisku
margin: 50px duża przestrzeń między linkami
border-radius: 20px zaokrąglone rogi
text-decoration: none usuwa podkreślenie linków
*/
nav a {
font-weight: bold;
background-color: #EAEAEA;
color: #625B5B;
padding: 10px;
margin: 50px;
border-radius: 20px;
text-decoration: none;
2025-09-04 11:07:01 +00:00
}
2025-09-04 11:08:20 +00:00
/* Efekt po najechaniu myszą:
Tło staje się ciemne, tekst jasny efekt "przełączania"
border: 1px solid dodaje obramowanie */
2025-09-04 11:07:01 +00:00
nav a:hover {
background-color: #625B5B;
color: #EAEAEA;
border: 1px solid #EAEAEA;
2025-09-04 11:08:20 +00:00
}
2025-09-04 11:09:35 +00:00
/* margin-left: 40px wcięcie listy
list-style-type: circle kropki jako kółka */
ul {
margin-left: 40px;
list-style-type: circle;
}