1
0
Fork 0
mirror of https://github.com/uhIgnacio/igna.rocks.git synced 2024-08-15 02:23:12 +00:00
igna.rocks/assets/js/less/_hacks.less

27 lines
740 B
Text
Raw Normal View History

2021-08-31 15:30:22 +00:00
// As is often the case, some devices/browsers need additional code to get CSS to work
// in the most desired way. These mixins are used to quickly drop in hacks for each element
// Find out more here: https://github.com/IanLunn/Hover/wiki/Hacks-Explained
.hardwareAccel() {
// Improve performance on mobile/tablet devices
// Perspective reduces blurryness of text in Chrome
.prefixed(transform, perspective(1px) translateZ(0));
}
.improveAntiAlias() {
// Improve aliasing on mobile/tablet devices
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.forceBlockLevel() {
// Transforms need to be block-level to work
display: inline-block;
vertical-align: middle;
}
.hacks() {
.forceBlockLevel();
.hardwareAccel();
.improveAntiAlias();
}