Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
7c2b0e86
Commit
7c2b0e86
authored
Oct 23, 2017
by
Dominik Hebeler
Browse files
Merge branch '605' into 'MetaGer-Redesign'
Fixed H1 Styling for Quicktips See merge request
!1074
parents
c717d469
a9750e53
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/assets/js/scriptResultPage.js
View file @
7c2b0e86
...
@@ -678,15 +678,16 @@ function createQuicktips (quicktips, sprueche) {
...
@@ -678,15 +678,16 @@ function createQuicktips (quicktips, sprueche) {
});
});
}
else
{
}
else
{
mainElem
=
$
(
'
<div class="quicktip-summary">
'
);
mainElem
=
$
(
'
<div class="quicktip-summary">
'
);
var
headlineElem
=
$
(
'
<h1>
'
);
if
(
quicktip
.
title
.
length
>
0
)
{
if
(
quicktip
.
url
.
length
>
0
)
{
var
headlineElem
=
$
(
'
<h1>
'
);
headlineElem
.
append
(
'
<a href=
'
+
quicktip
.
url
+
'
>
'
+
quicktip
.
title
+
'
</a>
'
);
if
(
quicktip
.
url
.
length
>
0
)
{
}
else
{
headlineElem
.
append
(
'
<a href=
'
+
quicktip
.
url
+
'
>
'
+
quicktip
.
title
+
'
</a>
'
);
headlineElem
.
text
(
quicktip
.
title
);
}
else
{
headlineElem
.
text
(
quicktip
.
title
);
}
mainElem
.
append
(
headlineElem
);
}
}
mainElem
mainElem
.
append
(
'
<p>
'
+
quicktip
.
summary
+
'
</p>
'
);
.
append
(
headlineElem
)
.
append
(
'
<p>
'
+
quicktip
.
summary
+
'
</p>
'
);
}
}
var
quicktipDiv
=
$
(
'
<div class="quicktip" type="
'
+
quicktip
.
type
+
'
">
'
);
var
quicktipDiv
=
$
(
'
<div class="quicktip" type="
'
+
quicktip
.
type
+
'
">
'
);
quicktipDiv
quicktipDiv
...
...
resources/assets/less/metager/result-page.less
View file @
7c2b0e86
...
@@ -673,6 +673,15 @@ a {
...
@@ -673,6 +673,15 @@ a {
}
}
}
}
@keyframes quicktip-extender-turn {
from {
transform: rotate(0deg);
}
to {
transform: rotate(180deg);
}
}
/*
/*
* <div id="quicktips">
* <div id="quicktips">
...
@@ -688,15 +697,6 @@ a {
...
@@ -688,15 +697,6 @@ a {
* </...>
* </...>
*/
*/
@keyframes quicktip-extender-turn {
from {
transform: rotate(0deg);
}
to {
transform: rotate(180deg);
}
}
#quicktips {
#quicktips {
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
...
@@ -706,7 +706,7 @@ a {
...
@@ -706,7 +706,7 @@ a {
}
}
.quicktip {
.quicktip {
margin: 10px 0px;
margin: 10px 0px;
padding
-left:
10px;
padding
: 10px 0px 10px
10px;
border-left: 3px solid #fb0;
border-left: 3px solid #fb0;
details:not([open=""]) {
details:not([open=""]) {
.quicktip-summary p {
.quicktip-summary p {
...
@@ -717,6 +717,7 @@ a {
...
@@ -717,6 +717,7 @@ a {
}
}
.quicktip-summary {
.quicktip-summary {
h1 {
h1 {
margin: 0px 0px 5px 0px;
font-size: 18px;
font-size: 18px;
font-weight: bold;
font-weight: bold;
display: flex;
display: flex;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment