![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@hundh/contao-bootstrap-theme
Advanced tools
Brings the most popular front-end framework for developing responsive, mobile first projects on the web to the contao content management system.
Dieses Modul dient als gemeinsame CSS-Code-Basis. Neben diesem Modul sollte dann ein eigenes projektspezifisches Theme erstellt werden (siehe unten).
yarn add @hundh/contao-bootstrap-theme
Hier werden alle SASS-Dateien in ihren zugehörigen Verzeichnissen abgelegt.
Hier werden projektspezifische Web- bzw. Iconfonts abgelegt.
Hier werden projektspezifische Bilder und Grafiken abgelegt.
Hier werden projektspezifische Javascript-Dateien abgelegt. Dafür bitte eine Datei common.js anlegen, die folgenden Aufbau aufweist:
let u = require('umbrellajs');
(function($)
{
window.ContaoBootstrapCommon = {
onReady: function()
{
},
onResize: function()
{
}
};
document.addEventListener("DOMContentLoaded", function() {
window.ContaoBootstrapCommon.onReady();
});
window.addEventListener('resize', function()
{
window.ContaoBootstrapCommon.onResize();
}, false);
})(u);
Es muss die scss/_common.scss
-Datei und scss/_variables
-Datei (optional) im Projekt importiert werden. Diese importiert alle enthaltenen Datein. Für eine spezifische Anpassung muss der Inhalt der _common.scss
kopiert und ungenutzte Einträge entfernt werden.
/vendor/heimrichhannot/contao-project-bundle/src/Resources/assets/scss/project.scss
@import "variables.scss";
@import "~contao-bootstrap-theme/scss/_variables.scss";
@import "~contao-bootstrap-theme/scss/_common.scss";
// mixins
...
fluid-type
Um Überschriften responsive optimal auszuliefern und den Aufwand der Dimensionierung pro Breakpoint so gering wie möglich zu halten gibt es das mixin fluid-type
// _variables.scss
$h1-font-size: 3.75rem; // ~60px
$h2-font-size: 3.315rem; // ~53px
$h3-font-size: 1.935rem; // ~31px
$h4-font-size: 1.315rem; // ~21px
$h5-font-size: 1.625rem; // ~25px
$h6-font-size: $font-size-base; // ~17px
$h1-font-sizes: (
min: $h1-font-size * 0.55,
max: $h1-font-size
);
$h2-font-sizes: (
min: $h2-font-size * 0.5,
max: $h2-font-size
);
$h2-lg-font-sizes: (
min: $h2-font-size * 0.75 * 1.1,
max: $h2-font-size * 1.1
);
$h3-font-sizes: (
min: $h3-font-size * 0.7,
max: $h3-font-size
);
$h4-font-sizes: (
min: $h4-font-size * 0.7,
max: $h4-font-size
);
$h5-font-sizes: (
min: $h5-font-size * 0.7,
max: $h5-font-size
);
$h6-font-sizes: (
min: $h6-font-size,
max: $h6-font-size
);
// _type.scss
h1, .h1 {
@include fluid-type(map_get($container-max-widths, 'sm'),map_get($container-max-widths, 'xl'), map_get($h1-font-sizes, 'min'), map_get($h1-font-sizes, 'max'));
line-height: 1.2;
}
h2, .h2 {
@include fluid-type(map_get($container-max-widths, 'sm'),map_get($container-max-widths, 'xl'), map_get($h2-font-sizes, 'min'), map_get($h2-font-sizes, 'max'));
color: $body-color;
line-height: 1.2;
}
h3, .h3 {
@include fluid-type(map_get($container-max-widths, 'sm'),map_get($container-max-widths, 'xl'), map_get($h3-font-sizes, 'min'), map_get($h3-font-sizes, 'max'));
margin-bottom: 1rem;
}
h4, .h4 {
@include fluid-type(map_get($container-max-widths, 'sm'),map_get($container-max-widths, 'xl'), map_get($h4-font-sizes, 'min'), map_get($h4-font-sizes, 'max'));
font-weight: $font-weight-base;
margin-bottom: 1rem;
}
h5, .h5 {
@include fluid-type(map_get($container-max-widths, 'sm'),map_get($container-max-widths, 'xl'), map_get($h5-font-sizes, 'min'), map_get($h5-font-sizes, 'max'));
color: theme-color('primary');
margin-bottom: 1rem;
}
h6, .h6 {
@include fluid-type(map_get($container-max-widths, 'sm'),map_get($container-max-widths, 'xl'), map_get($h6-font-sizes, 'min'), map_get($h6-font-sizes, 'max'));
margin-bottom: 1rem;
}
FAQs
Brings the most popular front-end framework for developing responsive, mobile first projects on the web to the contao content management system.
We found that @hundh/contao-bootstrap-theme demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.