INF.03-01-25.01-SG/css/layout.css
2025-09-04 13:09:35 +02:00

84 lines
1.9 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

body {
font-family: Helvetica;
background-color: #EAEAEA;
margin: 0;
padding: 0;
}
header {
position: relative;
text-align: center;
}
header img {
width: 100%;
}
/*
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.
*/
.header-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 48px;
font-weight: bold;
}
/*
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;
}
/* Efekt po najechaniu myszą:
Tło staje się ciemne, tekst jasny → efekt "przełączania"
border: 1px solid dodaje obramowanie */
nav a:hover {
background-color: #625B5B;
color: #EAEAEA;
border: 1px solid #EAEAEA;
}
/* margin-left: 40px wcięcie listy
list-style-type: circle kropki jako kółka */
ul {
margin-left: 40px;
list-style-type: circle;
}