odin-flex/07-flex-layout-2/style.css

84 lines
1.2 KiB
CSS
Raw Normal View History

2023-12-29 16:21:21 +00:00
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
margin: 0;
min-height: 100vh;
2023-12-29 17:45:09 +00:00
display: flex;
flex-direction: column;
2023-12-29 16:21:21 +00:00
}
.header {
height: 72px;
background: darkmagenta;
color: white;
2023-12-29 17:45:09 +00:00
font-size: 2.5rem;
font-weight: bold;
display: flex;
align-items: center;
padding: 0 15px;
2023-12-29 16:21:21 +00:00
}
.footer {
height: 72px;
background: #eee;
color: darkmagenta;
}
.sidebar {
width: 300px;
background: royalblue;
box-sizing: border-box;
2023-12-29 17:45:09 +00:00
flex: 0 0 auto;
padding: 16px 10px;
}
.sidebar ul {
list-style: none;
padding: 0;
margin: 0;
font-size: 1.2rem;
display: flex;
flex-direction: column;
gap: 8px;
}
/*
.sidebar li {
} */
.sidebar a {
text-decoration: none;
color: #fff;
}
.content {
display: flex;
flex: 1;
}
.cards {
flex: 1;
display: flex;
flex-wrap: wrap;
flex-direction: row;
padding: 30px;
gap: 20px;
align-items: stretch;
justify-content: flex-start ;
2023-12-29 16:21:21 +00:00
}
.card {
2023-12-29 17:45:09 +00:00
width: 320px;
/* height: ; */
2023-12-29 16:21:21 +00:00
border: 1px solid #eee;
box-shadow: 2px 4px 16px rgba(0,0,0,.06);
border-radius: 4px;
2023-12-29 17:45:09 +00:00
padding: 12px;
font-size: 1rem;
}
.footer {
display: flex;
justify-content: center;
align-items: center;
2023-12-29 16:21:21 +00:00
}