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
histhub
geolinker-widget
Commits
0392a975
Commit
0392a975
authored
Aug 13, 2019
by
Tobias Steiner
Browse files
Configurable of credits
parent
ef5359c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
examlpe/index.html
View file @
0392a975
...
...
@@ -22,10 +22,15 @@
* example with css vars
*/
#vars
{
margin-left
:
150px
;
background-color
:
#e7ecf5
;
margin-top
:
1em
;
--histhub-li-display
:
inline-block
;
--histhub-li-padding
:
0
0.5rem
0
0
;
--histhub-a-hover-color
:
blue
;
--histhub-li-padding
:
0
1rem
0
0
;
--histhub-a-color
:
#009
;
--histhub-a-hover-color
:
#03c
;
--histhub-a-hover-text-decoration
:
none
;
--histhub-ul-margin
:
0
;
}
</style>
</head>
...
...
src/histhub-widget.js
View file @
0392a975
...
...
@@ -18,8 +18,13 @@
/** a **/
--histhub-a-display: inline-block;
--histhub-a-color: black;
--histhub-a-text-decoration: none;
--histhub-a-hover-color: grey;
--histhub-a-hover-text-decoration: underline;
/** credits **/
--histhub-credits-font-size: 75%;
--histhub-credits-margin: 0;
}
ul {
...
...
@@ -38,6 +43,7 @@
a {
color: var(--histhub-a-color);
display: var(--histhub-a-display);
text-decoration: var(--histhub-a-text-decoration);
}
a:hover {
...
...
@@ -51,7 +57,8 @@
color: var(--histhub-h3-color);
}
.credits {
font-size: 75%;
font-size: var(--histhub-credits-font-size);
margin: var(--histhub-credits-margin);
}
</style>
...
...
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