varia.website/themes/varia/static/css/main.css

533 lines
8.5 KiB
CSS
Raw Normal View History

@font-face{
font-family: "header";
2018-04-12 00:09:15 +02:00
src:url('../fonts/cmuntt.ttf');
font-weight: normal;
font-style: normal;
}
@font-face{
font-family: "kop";
src:url('../fonts/cmunssdc.ttf');
2017-10-24 10:50:06 +02:00
font-weight: normal;
font-style: normal;
}
@font-face{
font-family: "main";
2018-04-12 00:09:15 +02:00
src:url('../fonts/cooper-hewitt/CooperHewitt-Medium.otf');
font-weight: normal;
font-style: normal;
}
@font-face{
font-family: "main";
2018-04-12 00:09:15 +02:00
src:url('../fonts/cooper-hewitt/CooperHewitt-Bold.otf');
font-weight: bold;
font-style: normal;
}
2017-10-24 10:50:06 +02:00
@font-face{
font-family: "main";
2018-04-12 00:09:15 +02:00
src:url('../fonts/cooper-hewitt/CooperHewitt-MediumItalic.otf');
2017-10-24 10:50:06 +02:00
font-weight: normal;
font-style: italic;
2017-10-20 15:59:16 +02:00
}
@font-face{
font-family: "main";
2018-04-12 00:09:15 +02:00
src:url('../fonts/cooper-hewitt/CooperHewitt-BoldItalic.otf');
font-weight: bold;
font-style: italic;
}
2017-09-14 23:40:20 +02:00
body{
position: relative;
width: calc(100% - 50px);
2017-09-14 23:40:20 +02:00
min-width: 500px;
top:0px;
left:0px;
2018-04-12 00:09:15 +02:00
margin:0 auto 5em auto;
padding: 14px 15px;
font-family: "main", monospace;
2018-04-12 00:09:15 +02:00
font-size: 22px;
line-height:1.65;
background-color: rgba(238, 238, 238, 0.5);
color:#164515;
}
2017-10-20 15:59:16 +02:00
#content{
margin-top:1em;
}
2017-10-20 15:59:16 +02:00
/****************************/
/* general elements */
a {
color:#7e5211;
2017-07-06 14:28:42 +02:00
}
2017-09-14 23:40:20 +02:00
a:hover{
border:0;
text-decoration: none;
}
2017-09-12 14:56:24 +02:00
h1, h2, h3, h4, h5, h6, #header{
2017-10-20 15:59:16 +02:00
margin:0;
padding:0;
2017-09-12 14:56:24 +02:00
}
h1{
2018-04-12 00:09:15 +02:00
font-family: "kop";
font-size: 100%;
}
h2{
font-size: 100%;
text-decoration: underline;
}
h3{
font-size: 100%;
font-weight: normal;
}
2017-10-20 15:59:16 +02:00
p{
margin:0 0 1em 0;
}
2018-04-12 00:09:15 +02:00
em{
}
small{
display: block;
font-size: 15px;
line-height: 1.2;
margin-top:0.5em;
2018-04-12 00:09:15 +02:00
}
sup{
font-size: 12px;
}
pre{
line-height: 1.0;
2017-09-14 23:40:20 +02:00
font-family: monospace;
}
2018-04-12 00:09:15 +02:00
hr, .separator hr {
border:0;
border-top:1px dotted #7e5211;
color: black;
margin:1em 0 .5em;
}
blockquote {
font-style:italic;
}
ul {
padding-left:0px;
}
2017-07-06 14:28:42 +02:00
.paginator{
float:right;
margin:0px;
2017-07-06 14:28:42 +02:00
}
#post-list {
padding-left:0px;
margin-top:0px;
}
ul li{
list-style: none;
margin: 0 0 0 20px;
}
ul li:before{
content: '* ';
margin: 0 4px 0 -20px;
}
/* article info */
.article-info{
2018-04-12 00:09:15 +02:00
font-size: 12px;
margin:0;
}
/* date */
.article-info .event-details{
color:#7e5211;
}
/* featured image */
.article-info .featured-image img{
width:100%;
margin:0.5em 0;
}
.event-details .article-event-start{
margin-bottom:1em;
}
/* category & translation link */
.post-info{
font-size: 12px;
font-style: italic;
}
2018-04-12 00:09:15 +02:00
.post-info time{
display: block;
}
.post-info sup{
2018-04-12 00:09:15 +02:00
font-size: 80%;
}
.post-info .article-authors{
display: block;
}
.post-info .article-translation{
margin-top:1em;
}
.post-info .categories:before, .post-info .article-translation:before{
content:'↓';
color:#7e5211;
2018-04-12 00:09:15 +02:00
font-family: sans-serif;
padding-right: 5px;
}
.post-info .article-translation:before{
content:'→';
}
2017-07-06 14:28:42 +02:00
2017-09-14 23:40:20 +02:00
/****************************/
/* header & #translation */
header {
width:calc(100% - 50px);
2018-04-12 00:09:15 +02:00
margin-top:26px;
2019-06-03 16:59:10 +02:00
margin-bottom:1em;
padding-bottom:1em;
2018-04-12 00:09:15 +02:00
font-family: "header";
font-size: 17px;
line-height: 1.6;
2018-04-12 00:09:15 +02:00
letter-spacing: -0.03em;
}
header img{
width: 50px;
display: inline;
margin: 0;
vertical-align: calc(-2px);
}
/* custom font size for index */
2019-06-03 16:59:10 +02:00
#banner {
2018-04-12 00:09:15 +02:00
font-size: 24px;
line-height: 1.5;
}
header p{
display: inline;
}
#stream{
2018-03-09 19:57:16 +01:00
position: absolute;
width: 100%;
}
2018-03-09 19:57:16 +01:00
#stream a .container{
2018-03-07 18:59:24 +01:00
background-clip: padding-box;
background-position: center center;
background-size: cover;
height: 600px;
width: 100%;
}
/* reset header img styles */
2018-03-09 19:57:16 +01:00
#stream a .container img{
min-width: none;
min-height: none;
width: none;
height: none;
}
2018-03-09 19:57:16 +01:00
#stream a{
display: block;
}
#stream.overview{
width: 100%;
}
2018-03-09 19:57:16 +01:00
div#stream a:nth-child(odd) {
transform: skew(-2deg);
2018-03-07 18:59:24 +01:00
}
2018-03-09 19:57:16 +01:00
div#stream a:nth-child(even) {
transform: skew(2deg);
2018-03-07 18:59:24 +01:00
}
button.stream-button {
width: 24.5%;
padding: 0.5em 0;
background: #fbfdc6;
font-size: 1em;
border-radius: 25px;
2020-04-18 00:34:32 +02:00
font-family: 'kop';
outline: none;
}
button.stream-button:active {
background: #f6ca59;
border: none;
}
.kiwi-startup-common-section-info-content {
display: none;
}
2018-04-12 00:09:15 +02:00
.buttons{
2017-09-14 23:40:20 +02:00
position: absolute;
2018-04-12 00:09:15 +02:00
font-size: 14px;
2017-09-14 23:40:20 +02:00
margin:0;
padding:0;
}
2018-04-12 00:09:15 +02:00
.buttons.top, .buttons.side{
top:10px;
right:15px;
text-align: right;
}
.buttons.top.left{
top:10px;
2019-11-29 17:47:17 +01:00
left:35px;
text-align: left;
}
2018-04-12 00:09:15 +02:00
.buttons.side{
top:40px;
}
.buttons.side li{
display: block;
}
.buttons li{
2017-09-14 23:40:20 +02:00
list-style: none;
2018-04-12 00:09:15 +02:00
display: inline-block;
padding-left: 3px;
2017-09-14 23:40:20 +02:00
}
2018-04-12 00:09:15 +02:00
.buttons li.active a{
2017-09-14 23:40:20 +02:00
text-decoration: none;
}
2017-07-06 14:28:42 +02:00
2017-09-14 23:40:20 +02:00
/****************************/
/* main/index overview page */
#content #post-list{
width: 100%;
}
2017-10-20 15:59:16 +02:00
.summary p{
display: inline;
}
.summary .read_more:before{
content:'→';
padding: 0 5px;
font-family: sans-serif;
font-size:12px;
color:#7e5211;
}
2018-04-12 00:09:15 +02:00
.article.hentry, /*.documentation.hentry*/{
width:calc(400px + 2em);
}
2017-09-12 14:56:24 +02:00
.hentry{
display: inline-block;
width: 200px;
2018-04-12 00:09:15 +02:00
font-size: 14px;
line-height: 1.65;
margin:0 2em 5em 0;
2017-09-14 23:40:20 +02:00
padding:0;
2017-10-20 15:59:16 +02:00
vertical-align: top;
}
.hentry .article-info{
width: 100%;
2017-10-20 15:59:16 +02:00
}
.hentry .article-info .event-details{
margin:5px 0 2px;
2018-03-20 22:45:05 +01:00
min-height: 1.65em;
2018-04-12 00:09:15 +02:00
font-family: monospace;
}
/* title */
.hentry .article-info .entry-title{
display: block;
width: 100%;
2018-04-12 00:09:15 +02:00
font-family: "kop";
font-size: 185%;
font-weight: bold;
line-height: 1.15;
margin:0;
}
.hentry .article-info .entry-title a{
text-decoration: none;
}
/* ascii art styling */
.hentry pre{
font-size: 14.4px;
font-weight: normal;
2018-02-27 08:26:28 +01:00
clear:both; /*to prevent the ascii to break up*/
2017-09-14 23:40:20 +02:00
}
/* double-blocks for super important categories */
.hentry.current, .hentry.article, .hentry.artikel, .hentry.current .article-info, .hentry.current .featured-image img{
width: calc(400px + 1em);
}
/* color background for articles */
.hentry.article, .hentry.artikel{
padding:1.5em 1em 1em 1em;
border:1px dashed #7e5211;
border-radius:15px;
2017-11-03 13:49:21 +01:00
}
2017-09-14 23:40:20 +02:00
/****************************/
/* article */
#content.body .entry-title{
display:inline-block;
2018-04-12 00:09:15 +02:00
font-family: "kop";
font-size: 250%;
line-height: 1.25;
font-weight: bold;
2018-03-20 22:45:05 +01:00
margin:30px 0 30px 250px;
color:#7e5211;
2018-03-20 22:45:05 +01:00
width: calc(100% - 250px);
2017-11-03 13:49:21 +01:00
}
#content.body .article-info{
width:200px;
float: left;
}
.entry-content-container, #page-content-container{
2018-03-20 22:45:05 +01:00
width: calc(100% - 260px);
float: right;
2018-02-28 13:13:34 +01:00
padding:0 30px;
margin-bottom:25px;
}
.entry-content, #page-content{
position: relative;
2018-03-20 22:45:05 +01:00
max-width: 750px;
margin:-3px auto 0 20px;
2017-09-14 23:40:20 +02:00
}
.entry-content img, #page-content img{
max-height:400px;
}
.entry-content .seperator hr, #page-content hr{
width:100%;
}
2017-09-14 23:40:20 +02:00
/****************************/
/* other */
2017-07-06 14:28:42 +02:00
.highlight{
margin: auto;
max-width:800px;
}
.divider {
font-size:14.8px;
2017-07-06 14:28:42 +02:00
width:100%;
line-height:1em;
background-color:white;
}
#categories {
font-size: 40px;
margin-top: 2em;
text-align: center;
2017-07-06 14:28:42 +02:00
}
.author{
2018-04-12 00:09:15 +02:00
/*display: none;*/
}
iframe{
width: 100%;
height: auto;
2018-06-14 11:59:14 +02:00
min-height: 500px;
margin:0.5em 0 1em 0;
2018-03-20 22:45:05 +01:00
}
/*footnotes*/
sup span{
float: right;
width: 200px;
margin:0.25em -150px 1em 3em;
clear:both;
2018-04-12 00:09:15 +02:00
font-size: 11px;
line-height: 1.5;
2018-03-20 22:45:05 +01:00
display: inline;
}
sup span p{
display: inline;
2020-02-20 13:04:43 +01:00
}
/****************************/
/*mobile style*/
@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px) {
/*home page*/
html, body {
padding: 0;
}
body {
min-width: auto;
width: 100%;
}
.buttons.top {
margin-top: 30px;
text-align: left;
margin-left: 15px;
}
.buttons.top li {
margin: 0;
padding: 0;
}
.buttons.top.left {
margin-top: 0;
right: auto;
left: 0;
}
#banner {
width: calc(100% - 30px);
padding: 100px 15px 0 15px;
font-size: 20px;
margin-top: 0;
}
#content {
padding: 15px;
width: calc(100% - 30px);
}
.hentry.current, .hentry.article, .hentry.artikel, .hentry.current .article-info, .hentry.current .featured-image img {
width: 100%;
}
.hentry {
width: 85%;
margin-right: 0;
}
.hentry.article, .hentry.artikel {
width: 90%;
}
.hentry pre {
font-size: 9px;
}
/*single page*/
#content.body .entry-title {
font-size: 24px;
margin: 0;
width: 100%;
}
#content.body .article-info {
float: none;
width: 100%;
margin-top: 15px;
margin-bottom: 30px;
}
.entry-content-container, #page-content-container {
float: none;
width: 100%;
padding: 0;
font-size: 16px;
}
.entry-content, #page-content {
margin: 0;
}
.entry-content img, #page-content img {
max-width: 100%;
height: auto;
}
/*about*/
.entry-content, #page-content p, .entry-content, #page-content h1 {
font-size: 16px;
padding: 0 15px;
}
}