blog/static/css/common.css

97 lines
1.4 KiB
CSS

html {
height: 100%;
font-size: 20px;
font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif;
font-weight: 400;
text-rendering: optimizeLegibility;
}
body {
margin: 0;
width: 100%;
height: 100%;
}
a, a:visited {
color: #555;
border-bottom: 1px dashed #999;
text-decoration: none;
}
header {
display: flex;
align-items: center;
height: 8%;
padding: 0 .5em;
box-shadow: 1px 3px 3px 0 #bbb;
}
header a {
display: flex;
align-items: center;
border-bottom: none;
}
header .left,
header .left a,
header .right {
display: inline-flex;
align-items: center;
width: 50%;
}
header .right {
display: inline-flex;
justify-content: right;
text-align: right;
opacity: .8;
}
header .icon {
background-size: 40px !important;
width: 40px;
height: 40px;
display: inline-flex;
}
header .left .icon {
background: url(/img/icon.png);
margin-right: 1em;
}
header .right .icon {
background: url(/img/rss.png);
}
header .title {
display: inline-flex;
}
main {
height: 92%;
overflow: auto;
display: flex;
flex-direction: column;
align-items: center;
padding: 0 2em;
}
h1 {
font-size: 2em;
line-height: 1.2em;
}
h2 {
font-size: 1.5em;
line-height: 1.1em;
}
@media screen and (min-width: 768px) {
header {
height: 6%;
}
main {
height: 94%;
}
}