Verified Commit 90f23212 authored by Raphael Fetzer's avatar Raphael Fetzer 👷
Browse files

Überschriften fett machen

parent 8602af86
......@@ -31,11 +31,9 @@
/* Legacy iOS */
}
body,
h2,
h5 {
body {
font-family: 'Nunito', serif;
}
}
#main {
padding: 0;
......@@ -106,6 +104,7 @@ select {
#preview h1, #preview h2 {
color: #4a8591;
text-align: left;
font-weight: 700;
}
#colorcontraststatus {
......
......@@ -39,13 +39,8 @@ function getColorContrast(color1, color2) {
$('#colorcontraststatus').text('');
//TODO Errorhandling?
//$.getJSON( "https://webaim.org/resources/contrastchecker/?fcolor="+color1+"&bcolor="+color2+"&api", function( data ) {
$.get( "https://tools.vcrp.de/web-accessibility/color-contrast/ccc.php?color1="+color1+"&color2="+color2+"&level=AA", function(data) {
//console.log("https://tools.vcrp.de/web-accessibility/color-contrast/ccc.php?color1="+color1+"&color2="+color2);
//console.log(data);
//console.log("Color: " + color1 + ", Ratio: " + data["ratio"] + ", AA: " + data["AA"] + ", AAA: " + data["AAA"]);
if (data == "pass") {
$('#colorcontraststatus').text('Gut gemacht, durch den hohen Farbkontrast ist der Text gut lesbar!');
$('#colorcontraststatus').css({
......@@ -83,7 +78,7 @@ function BuildCSS() {
theme = theme.replace(/\$VERSION/, version);
theme = theme.replace(/\$MAINCOLORHIGHLIGHT/g, MainColor + "c2");
theme = theme.replace(/\$HEADERFONTFAMILY/g, HeaderFont);
theme = theme.replace(/\$HEADERFONTFAMILY/g, HeaderFont + ";\n font-weight: 700");
theme = theme.replace(/\$BODYFONTFAMILY/g, BodyFont);
theme = theme.replace(/\$MAINCOLOR/g, MainColor);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment