Website-Ferienwohnung/app/css/main.css
2024-02-19 21:34:04 +01:00

82 lines
1.4 KiB
CSS

/*#region Colors*/
:root {
--black: black;
--white: white;
--blue: #007ea7;
--navy-blue: #003459;
--ice_blue: #c2eafc;
}
/*#endregion*/
/*#region Base Styling*/
html,
body {
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
background-color: var(--ice_blue);
color: #00171f;
}
button {
background-color: var(--blue);
padding: 10px 20px;
border: none;
cursor: pointer;
}
button:hover {
background-color: #003459;
}
/*#endregion*/
header {
background-color: var(--navy-blue);
outline: 5px solid var(--black);
color: var(--white);
padding: 1px;
text-align: center;
}
/*#region Entries*/
ul {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2px;
}
li {
background-color: var(--white);
padding: 10px;
margin-bottom: 30px;
display: flex;
flex-direction: column;
}
li :nth-child(3) {
flex-grow: 1;
}
li > img {
width: 100%;
aspect-ratio: 5/2;
object-fit: cover;
}
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;
}
/*#endregion*/
footer {
background-color: var(--blue);
outline: 5px solid var(--black);
color: var(--white);
padding: 10px 0;
text-align: center;
width: 100%;
}