docker-compose.yml drupal connecting to a mysql instance
Connecting to your docker based mysql instance.
Connecting to your docker based mysql instance.
Link to a free stock photo site I often use
Drupal entity validation and constraints, a good example
Some key docker commands used most often
Example problem: Configuration bootstrap_sass_starterkit.settings depends on the bootstrap_sass_starterkit extension that will not be installed after import.
Solution: delete the bootstrap_sass_starterkit.settings.yml file from the config/sync directory
https://medium.com/@ChandeepKhosa/my-experiences-with-drupal-8-configur…
and if that doesn't work just delete the files from the config directory.
CSS media queries lower px below higher or it doesn't catch it correctly in the cascade.
h1 {
font-size: 5.9vw;
}
h2 {
font-size: 3.0vh;
}
p {
font-size: 2vmin;
}
For a document that looks like this:
This paragraph…
the style sheet looks like this:
div.container3 {
height: 10em;
position: relative } /* 1 */
div.container3 p {
margin: 0;
position: absolute; /* 2 */
top: 50%; /* 3 */
transform: translate(0, -50%) } /* 4 */
The essential rules are:
(function ($, Drupal) {
Drupal.behaviors.myModuleBehavior = {
attach: function (context, settings) {
$(window).once().on('load scroll', function () {
// ...
$('.your-class').slick({
dots: true,
infinite: true,
speed: 500,
fade: true,
cssEase: 'linear'
});
});
}
};
})(jQuery, Drupal);