mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 11:52:38 +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;
|
display: inline-block;
|
||||||
white-space: nowrap;
|
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
|
* List
|
||||||
|
|
|
@ -18,8 +18,9 @@ export default class Caption {
|
||||||
|
|
||||||
open() {
|
open() {
|
||||||
const container = DomUtil.create('div', 'umap-caption')
|
const container = DomUtil.create('div', 'umap-caption')
|
||||||
DomUtil.createTitle(container, this.map.options.name, 'icon-caption icon-block')
|
const hgroup = DomUtil.element({tagName: 'hgroup', parent: container})
|
||||||
this.map.permissions.addOwnerLink('h5', container)
|
DomUtil.createTitle(hgroup, this.map.options.name, 'icon-caption icon-block')
|
||||||
|
this.map.permissions.addOwnerLink('h4', hgroup)
|
||||||
if (this.map.options.description) {
|
if (this.map.options.description) {
|
||||||
const description = DomUtil.element({
|
const description = DomUtil.element({
|
||||||
tagName: 'div',
|
tagName: 'div',
|
||||||
|
|
|
@ -987,9 +987,6 @@ a.umap-control-caption,
|
||||||
.datalayer-name {
|
.datalayer-name {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.umap-caption h3 {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
.umap-caption .umap-map-owner {
|
.umap-caption .umap-map-owner {
|
||||||
padding-left: 31px;
|
padding-left: 31px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue