myPSD / frontend /src /styles.css
snesbitt's picture
Responsive layout: wrap header and scale plot fonts on phones
0374f2b
Raw
History Blame Contribute Delete
898 Bytes
:root {
--climas-blue: #1f4e79;
--climas-accent: #4ea8dc;
}
* { box-sizing: border-box; }
body { margin: 0; }
.header {
display: flex;
align-items: center;
gap: 20px;
padding: 14px 24px;
background: #eef2f8;
border-bottom: 3px solid var(--climas-accent);
flex-wrap: wrap;
}
.header .brand { height: 52px; width: auto; }
.header .book { height: 64px; width: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.header .subtitle {
flex: 1;
min-width: 200px;
border-left: 1px solid #cfd6e2;
padding-left: 16px;
}
.header .climas { height: 42px; width: auto; }
@media (max-width: 600px) {
.header {
gap: 10px;
padding: 8px 12px;
}
.header .brand { height: 36px; }
.header .book { height: 44px; }
.header .climas { height: 28px; }
.header .subtitle {
order: 99;
flex-basis: 100%;
border-left: none;
padding-left: 0;
}
}