mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
wip: refactor margin bottom management in caption title
This commit is contained in:
parent
3f6940cd5b
commit
017e407758
3 changed files with 18 additions and 5 deletions
|
@ -60,6 +60,21 @@ kbd {
|
|||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
h4 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
hgroup > * {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
hgroup {
|
||||
margin-bottom: var(--box-space);
|
||||
}
|
||||
hgroup > :not(:first-child):last-child {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/*
|
||||
* List
|
||||
|
|
|
@ -18,8 +18,9 @@ export default class Caption {
|
|||
|
||||
open() {
|
||||
const container = DomUtil.create('div', 'umap-caption')
|
||||
DomUtil.createTitle(container, this.map.options.name, 'icon-caption icon-block')
|
||||
this.map.permissions.addOwnerLink('h5', container)
|
||||
const hgroup = DomUtil.element({tagName: 'hgroup', parent: container})
|
||||
DomUtil.createTitle(hgroup, this.map.options.name, 'icon-caption icon-block')
|
||||
this.map.permissions.addOwnerLink('h4', hgroup)
|
||||
if (this.map.options.description) {
|
||||
const description = DomUtil.element({
|
||||
tagName: 'div',
|
||||
|
|
|
@ -987,9 +987,6 @@ a.umap-control-caption,
|
|||
.datalayer-name {
|
||||
cursor: pointer;
|
||||
}
|
||||
.umap-caption h3 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.umap-caption .umap-map-owner {
|
||||
padding-left: 31px;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue