smol tweaks for USw by pabli

Details
Authorpabli
LicenseMIT
Created atMarch 3, 2022 22:57
Updated atMarch 3, 2022 22:57
Applies touserstyles.world
Statistics
Learn how we calculate statistics in the FAQ.
Total views45
Total installs68
Weekly installs8
Description
Some tweaks for userstyles.world
☕ Support me on ko-fi
Notes
Userstyle doesn't have notes.History
Daily snapshots of style statistics.
Source code
/* ==UserStyle==
@name smol tweaks for USw
@namespace https://userstyles.world/user/pabli
@version 1.0.0
@description Some tweaks for userstyles.world
@author Pabli
@preprocessor stylus
@var number imgsize "Screenshot size" ['%', 50, 0, null, 1]
@var checkbox imgh "Enlarge screenshot on hover" 1
@var number imgsizeh "Screenshot size on hover" ['%', 100, 0, null, 1]
@var checkbox linkimg "Hide [🔗] from links" 1
@var checkbox history "Align history charts horizontally" 1
@var checkbox socials "Align socials horizontally" 1
@var checkbox scrhide "Hide scrollbar in Reviews" 1
@var checkbox reviews "Move reviews under a screenshot" 0
==/UserStyle== */
@-moz-document domain("userstyles.world") {
// smaller image
.preview > .card {
width: imgsize;
transition: 0.3s;
}
if imgh {
.preview > .card:hover {
width: imgsizeh;
cursor: zoom-in;
}
}
// history horizontal
if history {
.history {
display: flex;
flex-wrap: wrap;
}
.history > p {
width: 100%;
}
.chart {
width: 50%;
}
}
// socials horizontal
if socials {
.socials {
display: flex;
flex-wrap: wrap;
margin: 0;
}
.socials > h2 {
width: 100%;
margin: 0;
}
.socials > div {
margin-right: 15px;
}
.socials > div > svg {
margin-right: 5px;
}
.styles > h2 {
margin: 0;
}
}
// remove 🔗 from links
if linkimg {
a[href^='/link/']::after, a[href^='http']::after {
content: unset;
}
}
// hide scrollbar in reviews
if scrhide {
.Box-body {
overflow-y: unset;
}
}
// reviews on top
if reviews {
.wrapper {
display: flex;
flex-direction: column;
}
.wrapper > .preview {
order: 0;
}
.wrapper > .reviews {
order: 1;
}
.wrapper > section {
order: 2;
}
}
}