You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wanijo/resources/public/css/app.css

108 lines
1.5 KiB

body {
font-family: sans-serif;
}
a:link,
a:visited {
color: #555;
text-decoration: none;
}
a:hover,
a:active {
text-decoration: underline;
}
.grid {
display: grid;
grid-template-columns: 20% 70% 10%;
grid-template-areas:
"header header header"
"nav main sidebar"
"footer footer footer";
margin: auto;
max-width: 70%;
border-top: 1px solid #ccc;
}
nav {
grid-area: nav;
}
main {
grid-area: main;
}
aside {
grid-area: sidebar;
}
header, footer, main, nav, aside {
border-bottom: 1px solid #ccc;
padding: .2rem 1rem .2rem 1rem;
}
header {
grid-area: header;
display: grid;
grid-template-columns: 20% 80%;
align-items: center;
border-left: 1rem solid #ccc;
}
.app-title {
grid-column: 1;
font-size: 1.5rem;
}
.app-title__hello {
font-size: 1rem;
margin-left: 1rem;
font-weight: normal;
font-style: italic;
}
.header-content {
grid-column: 2;
}
.header-content__link {
display: inline-block;
padding: .2rem .5rem;
}
footer {
grid-area: footer;
}
form {
display: grid;
grid-template-columns: 30% 70%;
grid-auto-flow: row;
}
form label,
form input,
form select,
form textarea,
form section.flash {
margin-bottom: .7rem;
padding: .2rem .5rem;
}
form section.flash {
grid-column: 1/3;
border: 1px solid #ccc;
border-left-width: 1rem;
padding: .7rem;
}
form label {
grid-column: 1;
}
form input,
form select {
grid-column: 2;
}