Skip to content

Instantly share code, notes, and snippets.

View mherchel's full-sized avatar

Michael Herchel mherchel

View GitHub Profile
@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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
https://css-tricks.com/theming-with-variables-globals-and-locals/
https://medium.com/eightshapes-llc/tokens-in-design-systems-25dd82d58421
https://bradfrost.com/blog/post/creating-themeable-design-systems/
*/
.root-frontend {
--color-primary: xxx;
--color-neutral: #777;