Website-Ferienwohnung/app/css/main.css

83 lines
1.4 KiB
CSS
Raw Normal View History

2024-02-19 20:16:52 +00:00
/*#region Colors*/
:root {
--black: black;
--white: white;
--blue: #007ea7;
--navy-blue: #003459;
--ice_blue: #c2eafc;
}
/*#endregion*/
2024-02-19 20:34:04 +00:00
/*#region Base Styling*/
html,
body {
2024-02-10 15:34:23 +00:00
margin: 0;
2024-02-19 19:40:06 +00:00
padding: 0;
2024-02-19 20:16:52 +00:00
}
body {
font-family: Arial, sans-serif;
background-color: var(--ice_blue);
2024-02-19 19:40:06 +00:00
color: #00171f;
}
2024-02-19 20:16:52 +00:00
button {
background-color: var(--blue);
padding: 10px 20px;
border: none;
cursor: pointer;
}
button:hover {
2024-02-19 19:40:06 +00:00
background-color: #003459;
2024-02-19 20:16:52 +00:00
}
/*#endregion*/
header {
background-color: var(--navy-blue);
outline: 5px solid var(--black);
color: var(--white);
2024-02-19 19:40:06 +00:00
padding: 1px;
text-align: center;
}
2024-02-19 20:16:52 +00:00
/*#region Entries*/
ul {
list-style: none;
margin: 0;
padding: 0;
display: grid;
2024-02-19 20:34:04 +00:00
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2px;
2024-02-19 19:40:06 +00:00
}
2024-02-19 20:16:52 +00:00
li {
background-color: var(--white);
2024-02-19 19:40:06 +00:00
padding: 10px;
margin-bottom: 30px;
2024-02-19 20:16:52 +00:00
display: flex;
flex-direction: column;
2024-02-19 19:40:06 +00:00
}
2024-02-19 20:16:52 +00:00
li :nth-child(3) {
flex-grow: 1;
}
li > img {
width: 100%;
aspect-ratio: 5/2;
object-fit: cover;
2024-02-19 20:34:04 +00:00
}
li > img:before {
z-index: 10;
display: block;
content: "hello";
position: absolute;
width: 100px;
height: 100px;
left: 0px;
right: 0px;
background-color: red;
box-shadow: inset 0 0 64px 8px red;
2024-02-19 20:16:52 +00:00
}
/*#endregion*/
2024-02-19 19:40:06 +00:00
footer {
2024-02-19 20:16:52 +00:00
background-color: var(--blue);
outline: 5px solid var(--black);
color: var(--white);
2024-02-19 20:34:04 +00:00
padding: 10px 0;
2024-02-19 19:40:06 +00:00
text-align: center;
width: 100%;
}