Search form
Configuration import issues: Configuration depends on
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.
Order of media queries
CSS media queries lower px below higher or it doesn't catch it correctly in the cascade.
font size as a percent of the view port
h1 {
font-size: 5.9vw;
}
h2 {
font-size: 3.0vh;
}
p {
font-size: 2vmin;
}
Positioning text within a parent div
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:
Jquery in Drupal 8 and creating your own paragraph slideshow component
(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);
Stage file proxy
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.
Useful docker commands
docker system prune --all
Unity game in 10 minutes
Good game in 10 minutes tutorial https://assetstore.unity.com/3rd-person-prototype