IMPROVEMENT: auto-size embed elements
This commit is contained in:
parent
ca678eb090
commit
1c27581896
|
@ -16058,6 +16058,7 @@ h6,
|
||||||
.typography .image iframe,
|
.typography .image iframe,
|
||||||
.typography .ss-htmleditorfield-file iframe {
|
.typography .ss-htmleditorfield-file iframe {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
|
height: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.typography .text-left {
|
.typography .text-left {
|
||||||
|
@ -16102,9 +16103,9 @@ h6,
|
||||||
}
|
}
|
||||||
|
|
||||||
.typography ul li:before {
|
.typography ul li:before {
|
||||||
content: "\2022";
|
content: '\2022';
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: .5em;
|
margin-right: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.typography iframe {
|
.typography iframe {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@ import $ from 'jquery';
|
||||||
import Events from '../_events';
|
import Events from '../_events';
|
||||||
import 'jquery-hoverintent/jquery.hoverIntent.js';
|
import 'jquery-hoverintent/jquery.hoverIntent.js';
|
||||||
|
|
||||||
const HoverUI = ($ => {
|
const HoverUI = (($) => {
|
||||||
// Constants
|
// Constants
|
||||||
const W = window;
|
const W = window;
|
||||||
const D = document;
|
const D = document;
|
||||||
|
@ -36,8 +36,8 @@ const HoverUI = ($ => {
|
||||||
$target = $target
|
$target = $target
|
||||||
? $target
|
? $target
|
||||||
: $parent
|
: $parent
|
||||||
? $parent.find('.dropdown-menu')
|
? $parent.find('.dropdown-menu')
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
if (!$target || !$target.length) {
|
if (!$target || !$target.length) {
|
||||||
console.warn(`${NAME}: Missing target for:`);
|
console.warn(`${NAME}: Missing target for:`);
|
||||||
|
@ -51,7 +51,7 @@ const HoverUI = ($ => {
|
||||||
ui.$triger = $triger;
|
ui.$triger = $triger;
|
||||||
|
|
||||||
// integrate with dropdown-toggle
|
// integrate with dropdown-toggle
|
||||||
$('[data-toggle="dropdown"]').on('click touch', e => {
|
$('[data-toggle="dropdown"]').on('click touch', (e) => {
|
||||||
ui.hide();
|
ui.hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ const HoverUI = ($ => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$el.on('click touch', e => {
|
$el.on('click touch', (e) => {
|
||||||
if (!$el.data('allow-click')) {
|
if (!$el.data('allow-click')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
@ -150,7 +150,7 @@ const HoverUI = ($ => {
|
||||||
});
|
});
|
||||||
|
|
||||||
// rewrite 'bootstrap/js/dist/dropdown'
|
// rewrite 'bootstrap/js/dist/dropdown'
|
||||||
$('[data-toggle="dropdown"]').on('click touch', e => {
|
$('[data-toggle="dropdown"]').on('click touch', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
const $el = $(e.currentTarget);
|
const $el = $(e.currentTarget);
|
||||||
|
|
Loading…
Reference in New Issue