5knots / Custom-CSS-Drupal

0 stars 0 forks source link

Centralize general CSS fixes for shoreditch #6

Closed Matt5K closed 2 years ago

Matt5K commented 2 years ago

To centralize general shoreditch CSS fixes the @import feature of CSS could be used (https://www.w3schools.com/cssref/pr_import_rule.asp). Via @import it is possible to load CSS rules into a CSS file from a web ressource.

Example:

@import url("https://5knoten.de/assets/custom_shoreditch.css"); /* Using a url */

Todo:

For manual CSS updates

To auto update CSS changes

Matt5K commented 2 years ago

I created a webhook for this repository already calling "https://5knoten.de/assets/webhook_custom_css.php" (see "Settings" -> "Webhooks").

This file now has to be created. It could have the content of the example above with changes for the paths and the git account.

lbl-knts commented 2 years ago

Probably better use https://5knoten.de/uploads/webhook_custom_css.php as URL.

Matt5K commented 2 years ago

Changed Webhook-URL to https://5knoten.de/uploads/webhook_custom_css.php

jennirocket commented 2 years ago

Done