Free stock photo site
Link to a free stock photo site I often use
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);
https://www.drupal.org/project/stage_file_proxy
useful:
Stage File Proxy is a general solution for getting production files on a development server on demand. It saves you time and disk space by sending requests to your development environment's files directory to the production environment and making a copy of the production file in your development site. You should not need to enable this module in production.