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
(Toolbar Redesign - transparency)
Line 19: Line 19:
 
* https://app.roll20.net/forum/post/10695950/wrapping-macro-bar-when-you-have-many-buttons
 
* https://app.roll20.net/forum/post/10695950/wrapping-macro-bar-when-you-have-many-buttons
 
* https://app.roll20.net/forum/post/11479684/stylus-script-for-stacking-names
 
* https://app.roll20.net/forum/post/11479684/stylus-script-for-stacking-names
 +
===Toolbar Redesign===
 +
Minor tweaks for the new toolbar:
  
 +
By Jarren:
 +
 +
this code to make the left toolbar background transparent and not blurry:
 +
<pre>
 +
div.master-toolbar-outer#master-toolbar { background: transparent; backdrop-filter: none; }
 +
</pre>
 +
 +
Or you can adjust the transparency of the entire toolbar (including the buttons)
 +
<pre>
 +
div.master-toolbar-outer#master-toolbar { opacity: 50%; }
 +
</pre>
 +
 +
Maguillage: Transparency with fade-in, fade out:
 +
<pre>
 +
div#master-toolbar {opacity: 0.2; transition: opacity 1s ease-out 0.5s;}
 +
div#master-toolbar:hover {opacity: 1; transition: opacity 0.2s ease-in 0s;}
 +
</pre>
 
===Dark Mode===
 
===Dark Mode===
 
</noinclude>
 
</noinclude>

Revision as of 09:06, 31 December 2023

Main Page: Browser

Stylus is a browser 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

Contents


Stylus Snippets

Toolbar Redesign

Minor tweaks for the new toolbar:

By Jarren:

this code to make the left toolbar background transparent and not blurry:

div.master-toolbar-outer#master-toolbar { background: transparent; backdrop-filter: none; }

Or you can adjust the transparency of the entire toolbar (including the buttons)

div.master-toolbar-outer#master-toolbar { opacity: 50%; }

Maguillage: Transparency with fade-in, fade out:

div#master-toolbar {opacity: 0.2; transition: opacity 1s ease-out 0.5s;}
div#master-toolbar:hover {opacity: 1; transition: opacity 0.2s ease-in 0s;}

Dark Mode

Dark Mode options:


Display filesize/dimensions in Art Library

(by Keith)

Fix for P Art Library

#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);
}