Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Stylus"

From Roll20 Wiki

Jump to: navigation, search
m
m
Line 16: Line 16:
 
<noinclude>
 
<noinclude>
 
==Stylus Snippets==
 
==Stylus Snippets==
 
+
* https://app.roll20.net/forum/post/10695950/wrapping-macro-bar-when-you-have-many-buttons
'''Display filesize/dimensions in {{Art Library}}''' (by Keith)
+
===Display filesize/dimensions in {{Art Library}}===
 +
(by Keith)
 
<pre data-language="css">#marketplaceresults li::after,
 
<pre data-language="css">#marketplaceresults li::after,
 
#recentuploads li::after{
 
#recentuploads li::after{
Line 30: Line 31:
 
</pre>
 
</pre>
  
* https://app.roll20.net/forum/post/10695950/wrapping-macro-bar-when-you-have-many-buttons
+
===5E Sheet Dark Mode Red to purple===
 +
by keith
 +
 
 +
Stylus can use the CSS variable names. This code will change all {{5E}} red to purple, when you have [[Dark Mode]] on:
 +
<pre data-language="css">
 +
.sheet-darkmode .npc .display .red span {
 +
    color: var(--dark-primary);
 +
}
 +
</pre>
  
 
[[Category:Web Browser]][[Category:Web Browser Extensions]] [[Category:Dark Mode]]</noinclude>
 
[[Category:Web Browser]][[Category:Web Browser Extensions]] [[Category:Dark Mode]]</noinclude>

Revision as of 23:56, 4 March 2022

Main Page: Browser

Stylus is a plugin that can change how webpages look, and many roll20 users have created their own tricks and minor adjustments to Roll20 for personal use. Things like changing how certain tools look in Roll20, making a Dark Mode, adjusting looks on character sheets, or how things look in the q Text Chat.

Note: there is a similarly named extension "Stylish", but it's stealing your browser history "Stylish" is back, and you still shouldn't use it

Dark Mode options:


Stylus Snippets

Display filesize/dimensions in P Art Library

(by Keith)

#marketplaceresults li::after,
#recentuploads li::after{
    background-color: white;
    content: attr(data-grid-width)"x"attr(data-grid-height);
    display: inline-block;
    font-size: 1em;
    padding-left: 30px;
    position: absolute;
    right: 0;
}

5E Sheet Dark Mode Red to purple

by keith

Stylus can use the CSS variable names. This code will change all D&D 5E by Roll20
Character   Sheet
red to purple, when you have Dark Mode on:
.sheet-darkmode .npc .display .red span {
    color: var(--dark-primary);
}