Commit b0d6cd06 authored by Karl Hasselbring's avatar Karl Hasselbring
Browse files

Fixed H1 Styling for Quicktips

parent b313bb0e
......@@ -678,15 +678,16 @@ function createQuicktips (quicktips, sprueche) {
});
} else {
mainElem = $('<div class="quicktip-summary">');
var headlineElem = $('<h1>');
if (quicktip.url.length > 0) {
headlineElem.append('<a href=' + quicktip.url + '>' + quicktip.title + '</a>');
} else {
headlineElem.text(quicktip.title);
if (quicktip.title.length > 0) {
var headlineElem = $('<h1>');
if (quicktip.url.length > 0) {
headlineElem.append('<a href=' + quicktip.url + '>' + quicktip.title + '</a>');
} else {
headlineElem.text(quicktip.title);
}
mainElem.append(headlineElem);
}
mainElem
.append(headlineElem)
.append('<p>' + quicktip.summary + '</p>');
mainElem.append('<p>' + quicktip.summary + '</p>');
}
var quicktipDiv = $('<div class="quicktip" type="' + quicktip.type + '">');
quicktipDiv
......
......@@ -666,6 +666,15 @@ a {
}
}
@keyframes quicktip-extender-turn {
from {
transform: rotate(0deg);
}
to {
transform: rotate(180deg);
}
}
/*
* <div id="quicktips">
......@@ -681,15 +690,6 @@ a {
* </...>
*/
@keyframes quicktip-extender-turn {
from {
transform: rotate(0deg);
}
to {
transform: rotate(180deg);
}
}
#quicktips {
display: flex;
flex-direction: column;
......@@ -699,7 +699,7 @@ a {
}
.quicktip {
margin: 10px 0px;
padding-left: 10px;
padding: 10px 0px 10px 10px;
border-left: 3px solid #fb0;
details:not([open=""]) {
.quicktip-summary p {
......@@ -710,6 +710,7 @@ a {
}
.quicktip-summary {
h1 {
margin: 0px 0px 5px 0px;
font-size: 18px;
font-weight: bold;
display: flex;
......
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