blog/static/css/common.css

98 lines
1.4 KiB
CSS
Raw Normal View History

2021-01-24 23:24:49 +01:00
html {
2021-01-26 01:49:49 +01:00
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;
2021-01-24 23:24:49 +01:00
}
body {
2021-01-26 01:49:49 +01:00
margin: 0;
width: 100%;
height: 100%;
2021-01-24 23:24:49 +01:00
}
a, a:visited {
2021-01-26 01:49:49 +01:00
color: #555;
border-bottom: 1px dashed #999;
text-decoration: none;
2021-01-24 23:24:49 +01:00
}
header {
2021-01-26 01:49:49 +01:00
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;
2021-01-24 23:24:49 +01:00
}
2021-01-26 01:49:49 +01:00
header .left,
header .left a,
header .right {
display: inline-flex;
align-items: center;
width: 50%;
2021-01-24 23:24:49 +01:00
}
2021-01-26 01:49:49 +01:00
header .right {
display: inline-flex;
justify-content: right;
text-align: right;
opacity: .8;
2021-01-24 23:24:49 +01:00
}
header .icon {
2021-01-26 01:49:49 +01:00
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);
2021-01-24 23:24:49 +01:00
}
header .title {
2021-01-26 01:49:49 +01:00
display: inline-flex;
2021-01-24 23:24:49 +01:00
}
main {
2021-01-26 01:49:49 +01:00
height: 92%;
overflow: auto;
display: flex;
flex-direction: column;
align-items: center;
padding: 0 2em;
2021-01-24 23:24:49 +01:00
}
h1 {
2021-01-26 01:49:49 +01:00
font-size: 2em;
line-height: 1.2em;
2021-01-24 23:24:49 +01:00
}
h2 {
2021-01-26 01:49:49 +01:00
font-size: 1.5em;
line-height: 1.1em;
}
@media screen and (min-width: 768px) {
header {
height: 6%;
}
main {
height: 94%;
}
2021-01-24 23:24:49 +01:00
}