added own font and some style changes

This commit is contained in:
Krehan Tim 2018-10-26 12:30:27 +02:00
parent 86e049f9ba
commit 7480e51597
15 changed files with 111 additions and 77 deletions

View file

@ -1,4 +1,5 @@
<link rel="stylesheet" href="/style/recipe.css">
<link rel="stylesheet" href="/style/parsedown.css">
<script src="/bin/recipe.js" charset="utf-8"></script>
<?php
include $_SESSION["docroot"].'/php/classes.recipe.php';

BIN
fonts/Roboto-Black.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Roboto-Bold.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-BoldItalic.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-Italic.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-Light.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Roboto-Medium.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Roboto-Regular.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-Thin.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-ThinItalic.ttf Normal file

Binary file not shown.

View file

@ -1,88 +1,21 @@
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,800');
@font-face {
font-family: Roboto;
src: url("/fonts/Roboto-Regular.ttf");
}
html {
transition: .6s;
font-family: 'Open Sans', sans-serif;
background-color: #c3c3c3;
font-family: 'Roboto';
background-color: #ccc;
}
h1 {
font-size: 3em;
text-align: left;
margin-top: .5em;
padding-bottom: .5em;
border-bottom: 1px solid grey;
text-align: center;
color: #333;
text-transform: uppercase;
}
h2 {
color: #333;
text-transform: uppercase;
}
h3 {
color: #444;
text-transform: capitalize;
}
h4 {
color: #444;
text-transform: capitalize;
}
h5 {
color: #555;
text-transform: lowercase;
font-weight: normal;
}
h6 {
color: #555;
text-transform: lowercase;
font-weight: normal;
}
table {
border-collapse: collapse;
border: 1px solid black;
margin: 1em 0;
}
th {
background-color: #63bf3c;
color: white;
}
td, th {
/* border: 1px solid black; */
padding: .2em .5em;
}
tr:nth-child(even) {
background-color: #f2f2f2;
}
button {
display: block;
border: 1px solid #777777;
padding: .5em 1em;
margin: 1em .25em;
}
pre {
max-height: calc(50vh - 9em);
background: #f4f4f4;
border: 1px solid #ddd;
border-left: 3px solid #a0c391;
color: #666;
page-break-inside: avoid;
font-family: monospace;
font-size: 15px;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1em 1.5em;
display: block;
word-wrap: break-word;
}
.even {

100
style/parsedown.css Normal file
View file

@ -0,0 +1,100 @@
.parsedown-section h1 {
font-size: 1.3em;
text-align: left;
border-bottom: 1px solid grey;
color: #333;
text-transform: uppercase;
max-width: 90%;
}
.parsedown-section h2 {
font-size: 1.2em;
text-align: left;
border-bottom: 1px solid grey;
color: #333;
text-transform: uppercase;
max-width: 85%;
}
.parsedown-section h3 {
font-size: 1.1em;
text-align: left;
border-bottom: 1px solid grey;
color: #444;
text-transform: capitalize;
max-width: 80%;
}
.parsedown-section h4 {
font-size: 1em;
text-align: left;
border-bottom: 1px solid grey;
color: #444;
text-transform: capitalize;
max-width: 75%;
}
.parsedown-section h5 {
font-size: .9em;
text-align: left;
border-bottom: 1px solid grey;
color: #555;
text-transform: lowercase;
font-weight: normal;
max-width: 70%;
}
.parsedown-section h6 {
font-size: .8em;
text-align: left;
border-bottom: 1px solid grey;
color: #555;
text-transform: lowercase;
font-weight: normal;
max-width: 65%;
}
.parsedown-section table {
border-collapse: collapse;
border: 1px solid black;
margin: 1em 0;
}
.parsedown-section th {
background-color: #63bf3c;
color: white;
}
.parsedown-section td, th {
/* border: 1px solid black; */
padding: .2em .5em;
}
.parsedown-section tr:nth-child(even) {
background-color: #f2f2f2;
}
.parsedown-section button {
display: block;
border: 1px solid #777777;
padding: .5em 1em;
margin: 1em .25em;
}
.parsedown-section pre {
max-height: calc(50vh - 9em);
background: #f4f4f4;
border: 1px solid #ddd;
border-left: 3px solid #a0c391;
color: #666;
page-break-inside: avoid;
font-family: monospace;
font-size: 15px;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1em 1.5em;
display: block;
word-wrap: break-word;
}