PostCSS Trolling
PostCSS plugin to increase the productivity of your co-workers :trollface:.
Usage
postcss([ require('postcss-trolling') ])
See PostCSS docs for examples for your environment.
Options
rotate
Rotate the website
trolling({
rotate: {
deg: 0.2
}
});
blurBlink
Blur the website for a split second
trolling({
blurBlink: {
time: '20s'
}
});
comicSans
The best font ever
trolling({
comicSans: true
});
hideOdd
Hide every odd paragraph element
trolling({
hideOdd: true
});
wait
Permanent cursor wait
trolling({
wait: true
});
hideCursor
Hide cursor
trolling({
hideCursor: true
});
slowlyGrowText
Slowly grow text
trolling({
slowlyGrowText: {
time: '120s',
maxFontSize: '80pt'
}
});
blur
Blur everything!
trolling({
blur: {
time: '120s',
blur: '0.8px'
}
});
ren
rem is a band of course
.selector {
width: 10rem;
}
// -->
.selector {
width: 10ren;
}
trolling({
ren: true
});
ms
microsoft doesn't have a browser...
.selector {
-ms-flex: 1;
}
// -->
.selector {
flex: 1;
}
trolling({
ms: true
});
heigth
Fix typo heigth
.selector {
height: 10px;
}
// -->
.selector {
heigth: 10px;
}
trolling({
heigth: true
});
aling
aling...
.selector {
align-content: center;
}
// -->
.selector {
aling-content: center;
}
trolling({
aling: true
});
clearfix
fix clearfix
.clearfix:after { }
// -->
.clearfix:before { }
trolling({
clearfix: true
});
veryImportant
Makes everything very important...
.selector {
float: left !important;
}
// -->
.selector {
float: left !!important;
}
trolling({
veryImportant: true
});
zIndex
.selector {
z-index: 99999;
}
// -->
.selector {
z-index: 0;
}
trolling({
zIndex: true
});
All defaults
trolling({
aling: true,
blur: {
time: '120s',
blur: '0.8px'
},
blurBlink: {
time: '20s'
},
clearfix: true,
comicSans: true,
heigth: true,
hideCursor: true,
hideOdd: true,
ms: true,
ren: true,
rotate: {
deg: 0.2
},
slowlyGrowText: {
time: '120s',
maxFontSize: '80pt'
},
veryImportant: true,
wait: true,
zIndex: true
});
trolling({
aling: false,
blur: false,
blurBlink: false,
clearfix: false,
comicSans: false,
heigth: false,
hideCursor: false,
hideOdd: false,
ms: false,
ren: false,
rotate: false,
slowlyGrowText: false,
verImportant: false,
wait: false,
zIndex: false
})
Thanks
This plugin is based on aprilFools.css