Skip to content

Instantly share code, notes, and snippets.

View mherchel's full-sized avatar

Michael Herchel mherchel

View GitHub Profile
{% if is_front %}
{{ include('@uno/../components/hero-2/hero-2.example.twig') }}
{{ include('@uno/../components/layout-4-col/layout-4-col.example.twig', { directory }, with_context = false) }}
{{ include('@uno/../components/logo-grid/logo-grid.example.twig', { directory }, with_context = false) }}
{{ include('@uno/../components/accordion/accordion-group/accordion-group.example.twig', with_context = false) }}
{% embed 'uno:layout-4-col' with {
container_size: 'wide',
theme: 'light',
directory,
} only %}
@import "../global/variables";
:root {
--font-sans: "Inter", sans-serif;
/* Drupal administrative toolbar heights and width. */
--toolbar-height: 39px;
--toolbar-tray-height: 40px;
--toolbar-tray-vertical-width: 239px;
@mherchel
mherchel / Gulpfile.js
Created August 27, 2024 13:26
Gulpfile for Drupal Single Directory Components
const gulp = require('gulp');
const sass = require('gulp-dart-sass');
const postcss = require('gulp-postcss');
const autoprefixer = require('autoprefixer');
const pxtorem = require('postcss-pxtorem');
const del = require('del');
function doSassyShit(stream) {
return stream
.pipe(sass()
@mherchel
mherchel / animate-details.html
Last active July 18, 2024 16:14
Animate details HTML element
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Details CSS Only Animation</title>
</head>
<style>
details {
width: min(400px, 94%);
diff --git a/core/modules/ckeditor5/ckeditor5.ckeditor5.yml b/core/modules/ckeditor5/ckeditor5.ckeditor5.yml
index 4396b64ed4..0372fddc89 100644
--- a/core/modules/ckeditor5/ckeditor5.ckeditor5.yml
+++ b/core/modules/ckeditor5/ckeditor5.ckeditor5.yml
@@ -263,6 +263,7 @@ ckeditor5_codeBlock:
label: Code Block
library: ckeditor5/internal.drupal.ckeditor5.codeBlock
admin_library: ckeditor5/internal.admin.codeBlock
+ class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\CodeBlock
toolbar_items:
/* Custom Gin styles here. */
.my-gin-selector {
color: red;
}
/**
* Example use of CSS nesting.
*
* @see https://developer.chrome.com/articles/css-nesting/
*/
.tabs__tab {
display: none;
margin: 0;
margin-block-end: calc(-1 * var(--tabs-border-width));
'use strict';
(function () {
/*
* Fetch more data like views_load_more.
*
* @todos
* Add Quicklink integration when https://github.com/GoogleChromeLabs/quicklink/issues/54 is resolved.
*/
Drupal.behaviors.load_more = {
'attach': function (context) {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
.test-logical-properties {
block-size: 0;
inline-size: 0;
max-block-size: 0;
max-inline-size: 0;
min-block-size: 0;
min-inline-size: 0;
/*
Margins borders padding