Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@hundh/contao-bootstrap-theme
Advanced tools
Readme
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.
The npm package @hundh/contao-bootstrap-theme receives a total of 36 weekly downloads. As such, @hundh/contao-bootstrap-theme popularity was classified as not popular.
We found that @hundh/contao-bootstrap-theme demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.