mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 03:40:32 +00:00
76 lines
1.3 KiB
SCSS
76 lines
1.3 KiB
SCSS
/*
|
|
Roll Template
|
|
#rolltemplate
|
|
*/
|
|
|
|
.sheet-rolltemplate-storypath{
|
|
--templateRadius: 1rem;
|
|
--dieSize: 50px;
|
|
--templateBorderW: 2px 5px 2px 5px;
|
|
--fumbleColor: red;
|
|
--critColor: green;
|
|
--innerBorderRadius: 5px;
|
|
--borderSize:1px;
|
|
margin:{//ensures that the template fills the chat window
|
|
left: -40px;
|
|
right: -5px;
|
|
}
|
|
&:not(:first-child){//Moves the template to accomodate the sender tag
|
|
margin-top:10px;
|
|
}
|
|
> .sheet-template{
|
|
overflow:hidden;
|
|
span{
|
|
font-size:13px;
|
|
}
|
|
}
|
|
.inlinerollresult{
|
|
position: relative;
|
|
&[title*="[computed value]"],
|
|
&[original-title*="[computed value]"]{
|
|
pointer-events: none;
|
|
}
|
|
&,
|
|
&.fullcrit,
|
|
&.fullfail,
|
|
&.importantroll{
|
|
border: none;
|
|
background-color: transparent;
|
|
}
|
|
&.fullcrit{
|
|
color: green;
|
|
}
|
|
&.fullfail{
|
|
color: red;
|
|
}
|
|
&.importantroll{
|
|
color: blue;
|
|
}
|
|
}
|
|
.sheet-header{
|
|
padding: 5px;
|
|
display:grid;
|
|
grid-template-columns:1fr 2rem 1fr;
|
|
gap:var(--half-gap);
|
|
.sheet-character_name{
|
|
grid-column:1/-1;
|
|
place-self:center end;
|
|
}
|
|
.sheet-title{
|
|
grid-column:1/-1;
|
|
place-self:center;
|
|
}
|
|
}
|
|
.sheet-template-row{
|
|
padding: 5px;
|
|
@extend %grid;
|
|
grid-template-columns: minmax(6em, 1fr) repeat(auto-fit, minmax(1rem, 1fr));
|
|
place-items: center;
|
|
&:nth-child(odd){
|
|
background-color: lightgrey;
|
|
}
|
|
>*:first-child{
|
|
place-self: center start;
|
|
}
|
|
}
|
|
} |