Skip to content
Snippets Groups Projects
Commit ba41c0b8 authored by Gaus Surahman's avatar Gaus Surahman
Browse files

Issue #3308524 by balintpekker, nkoporec, mglaman: Drupal 10 compatibility - off canvas.

parent eb2c86f9
No related branches found
No related tags found
No related merge requests found
Blazy 8.x-2.0-dev, 2022-09-30
-----------------------------
- Issue #3308524 by balintpekker, nkoporec, mglaman: Drupal 10
compatibility - off canvas.
Blazy 8.x-2.0-dev, 2022-07-15
-----------------------------
- Issue #3285374 by vinitk, djsagar: Blazy module hiding media gallery image
......
......@@ -55,98 +55,6 @@
display: block !important; /* csslint allow: known-properties, important */
}
/* Off-canvas. */
/* csslint ignore:start */
#drupal-off-canvas .form--slick.form--half,
#drupal-off-canvas .form--slick .form-item { /* csslint allow: ids */
height: auto;
min-width: 100%;
max-width: 100%;
width: 100%;
}
#drupal-off-canvas .form--slick.form--half { /* csslint allow: ids */
padding: 1rem;
}
#drupal-off-canvas .form--slick .form-item { /* csslint allow: ids */
border: 0;
float: none;
margin: 10px 0;
min-height: 22px;
padding: 0;
}
#drupal-off-canvas .form--slick .form-item.is-hovered,
#drupal-off-canvas .form--slick .form-item.is-selected { /* csslint allow: ids */
z-index: 9;
}
#drupal-off-canvas .form--slick .form-item div[class*=description] { /* csslint allow: ids */
display: none;
}
#drupal-off-canvas .form--slick .form-item.is-hovered div[class*=description],
#drupal-off-canvas .form--slick .form-item.is-selected div[class*=description] { /* csslint allow: ids */
display: block;
}
#drupal-off-canvas .form--slick select:not([multiple]) { /* csslint allow: ids */
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
}
#drupal-off-canvas .form-item .b-hint { /* csslint allow: ids */
background: #828282;
border-radius: 50%;
color: #fff;
content: '?';
font-family: sans-serif;
font-size: 12px;
font-weight: 600;
line-height: 16px;
margin: 0;
width: 16px;
height: 16px;
position: absolute;
right: 5px;
text-align: center;
top: 5px;
z-index: 8;
}
#drupal-off-canvas .has-tooltip .form-item > .description,
#drupal-off-canvas .has-tooltip .form-composite > .fieldset-wrapper > .description { /* csslint allow: ids */
background: #000;
}
#drupal-off-canvas .form--slick .form-item--style { /* csslint allow: ids */
position: relative;
top: 0;
}
#drupal-off-canvas .form--slick .form-checkboxes { /* csslint allow: ids */
display: flex;
flex-wrap: wrap;
}
#drupal-off-canvas .form--slick .form-checkboxes .form-item { /* csslint allow: ids */
margin-bottom: 0;
min-width: 48.999%;
width: 48.999%;
}
#drupal-off-canvas .form--vanilla div[class*="-vanilla"] { /* csslint allow: ids */
position: relative;
}
#drupal-off-canvas .form--slick input[type="checkbox"] { /* csslint allow: ids */
float: left;
margin-top: 10px;
}
/* csslint ignore:end */
/* Views UI. */
.ui-dialog-content .form--slick .form-item {
margin: 0;
......@@ -244,10 +152,6 @@
}
/* csslint ignore:start */
#drupal-off-canvas .form--vanilla div[class*="-vanilla"] { /* csslint allow: ids */
top: 0;
}
.views-ui-dialog .form--vanilla div[class*="-vanilla"] label {
margin-left: 15px;
width: auto;
......
......@@ -594,14 +594,13 @@ abstract class BlazyAdminBase implements BlazyAdminInterface {
$excludes = ['details', 'fieldset', 'hidden', 'markup', 'item', 'table'];
$selects = ['cache', 'optionset', 'view_mode'];
// Disable the admin css in the layout builder, to avoid conflicts with
// Disable the admin css in the off canvas menu, to avoid conflicts with
// the active frontend theme.
// @todo recheck str_starts_with for PHP7. No errors at PHP7.4, last time.
if ($admin_css && $router = Path::routeMatch()) {
$route_name = $router->getRouteName();
if ($admin_css && $router = Path::requestStack()) {
$wrapper_format = $router->getCurrentRequest()->query->get('_wrapper_format');
if (!empty($route_name)) {
$admin_css = mb_strpos($route_name, 'layout_builder.') === FALSE;
if (!empty($wrapper_format) && $wrapper_format === "drupal_dialog.off_canvas") {
$admin_css = FALSE;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment