@@ -3756,18 +3756,32 @@ details[open].thac0-box {
37563756 font-family : var (--font-buttons1 );
37573757 font-size : var (--text-med );
37583758 font-weight : normal;
3759- margin : 0 2 px 2 px 2px ;
3759+ margin : 2px ;
37603760 padding : 0 2px 0 2px ;
37613761 text-shadow : none;
37623762 vertical-align : middle;
37633763 width : auto;
37643764}
37653765
3766+ /* adding backtick removes sheet formatting & roll20 pink for chatmenu buttons */
3767+ .sheet-rolltemplate-attacks a [href ^= '`!' ],
3768+ .sheet-rolltemplate-general a [href ^= '`!' ],
3769+ .sheet-rolltemplate-attacks a [href ^= '`~' ],
3770+ .sheet-rolltemplate-general a [href ^= '`~' ] {
3771+ color : inherit;
3772+ display : inline-block;
3773+ font-weight : normal;
3774+ margin-block : 1px ;
3775+ text-decoration : underline 1px solid # 999 ;
3776+ white-space : normal;
3777+ }
3778+
37663779/*urls*/
37673780.sheet-rolltemplate-attacks a [href ^= 'http' ],
37683781.sheet-rolltemplate-general a [href ^= 'http' ] {
37693782 color : var (--link-hover );
37703783 cursor : pointer;
3784+ display : inline-block;
37713785 font-weight : bold;
37723786 margin : 2px 0 2px ;
37733787 padding : 0 2px 0 2px ;
@@ -3809,6 +3823,15 @@ details[open].thac0-box {
38093823 color : var (--link-hover );
38103824}
38113825
3826+ .sheet-rolltemplate-attacks a [href ^= '`!' ]: hover,
3827+ .sheet-rolltemplate-general a [href ^= '`!' ]: hover,
3828+ .sheet-rolltemplate-attacks a [href ^= '`~' ]: hover,
3829+ .sheet-rolltemplate-general a [href ^= '`~' ]: hover {
3830+ background-position : inherit;
3831+ color : var (--link-hover );
3832+ text-decoration-color : var (--link-hover );
3833+ }
3834+
38123835.charsheet .background .wrapper button [type = 'action' ]: hover span,
38133836.charsheet .background .wrapper button [type = 'roll' ]: hover span,
38143837.charsheet .background .wrapper button [type = 'roll' ].dice-button : hover::before ,
@@ -4219,7 +4242,7 @@ details[open].thac0-box {
42194242 grid-template-columns : 1fr auto;
42204243 outline : 2px solid var (--color-white1 );
42214244 outline-offset : -5px ;
4222- overflow : visible ;
4245+ overflow : hidden ;
42234246 position : relative;
42244247 width : auto;
42254248 z-index : 1 ;
@@ -4253,26 +4276,62 @@ details[open].thac0-box {
42534276 width : auto;
42544277}
42554278
4279+ .sheet-rolltemplate-attacks .sheet-row : has (.sheet-big-text ),
4280+ .sheet-rolltemplate-general .sheet-row : has (.sheet-big-text ) {
4281+ line-height : 1.75em ;
4282+ }
4283+
42564284.sheet-rolltemplate-attacks .sheet-row .sheet-all-props ,
42574285.sheet-rolltemplate-general .sheet-row .sheet-all-props {
42584286 align-items : start;
4259- line-height : 1.65em ;
42604287 text-align : center;
42614288}
42624289
4263- .sheet-rolltemplate-attacks .sheet-row .sheet-all-props span : has (+ span : empty ),
4264- .sheet-rolltemplate-general .sheet-row .sheet-all-props span : has (+ span : empty ) {
4265- display : block;
4290+ /* better all props handling */
4291+
4292+ /* left */
4293+ .sheet-rolltemplate-attacks .sheet-row .sheet-all-props .sheet-tcat : not (: empty ): has (+ span br ),
4294+ .sheet-rolltemplate-general .sheet-row .sheet-all-props .sheet-tcat : not (: empty ): has (+ span br ) {
4295+ display : inline-block;
4296+ grid-column : 1 / -1 ;
4297+ text-align : left;
4298+ white-space : normal;
4299+ }
4300+
4301+ .sheet-rolltemplate-attacks .sheet-row .sheet-all-props span : first-child : not (.sheet-span-two ),
4302+ .sheet-rolltemplate-general .sheet-row .sheet-all-props span : first-child : not (.sheet-span-two ) {
4303+ display : inline-block;
4304+ text-align : left;
4305+ }
4306+
4307+ .sheet-rolltemplate-attacks .sheet-row span : first-child : not (.sheet-span-two ),
4308+ .sheet-rolltemplate-general .sheet-row span : first-child : not (.sheet-span-two ) {
4309+ align-self : center;
4310+ flex-direction : column;
4311+ flex-wrap : wrap;
4312+ margin-inline : auto;
4313+ margin-left : 0 ;
4314+ white-space : nowrap;
4315+ }
4316+
4317+ /* center */
4318+ .sheet-rolltemplate-attacks .sheet-row .sheet-all-props span .sheet-tcat : has (+ span : empty ),
4319+ .sheet-rolltemplate-general .sheet-row .sheet-all-props span .sheet-tcat : has (+ span : empty ) {
4320+ display : inline-block;
4321+ align-items : center;
42664322 grid-column : 1 / -1 ;
42674323 margin-inline : auto;
42684324 text-align : center;
4325+ white-space : normal;
42694326}
42704327
4328+ /* right */
42714329.sheet-rolltemplate-attacks .sheet-row .sheet-all-props span : empty + span ,
42724330.sheet-rolltemplate-general .sheet-row .sheet-all-props span : empty + span {
4273- flex-direction : row;
4274- flex-wrap : wrap;
4331+ display : inline-block;
42754332 grid-column : 1 / -1 ;
4333+ margin-inline : auto;
4334+ margin-right : 0 ;
42764335}
42774336
42784337.sheet-rolltemplate-general .sheet-row : has (.sheet-span-two : empty ): not (: last-child ) {
@@ -4303,6 +4362,7 @@ details[open].thac0-box {
43034362 grid-column : span 2 ;
43044363 justify-content : center;
43054364 position : relative;
4365+ text-align : center;
43064366}
43074367
43084368.sheet-rolltemplate-attacks .sheet-template-header ,
@@ -4346,11 +4406,19 @@ details[open].thac0-box {
43464406 text-shadow : -1px -1px 0 # 000, 1px -1px 0 # 000, -1px 1px 0 # 000, 1px 1px 0 # 000 ;
43474407}
43484408
4409+ /* needed to prevent visible notch when {{bigname}} and {{name}} are used together */
4410+ .sheet-rolltemplate-attacks .sheet-row : has (.sheet-bigger-text ) + .sheet-row : has (.sheet-template-header ) .sheet-template-header ,
4411+ .sheet-rolltemplate-general .sheet-row : has (.sheet-bigger-text ) + .sheet-row : has (.sheet-template-header ) .sheet-template-header ,
4412+ .sheet-rolltemplate-attacks .sheet-row : has (.sheet-bigger-text ) + .sheet-row : has (.sheet-subheader ) .sheet-subheader ,
4413+ .sheet-rolltemplate-general .sheet-row : has (.sheet-bigger-text ) + .sheet-row : has (.sheet-subheader ) .sheet-subheader {
4414+ border-radius : 0 ;
4415+ margin-top : -2px ;
4416+ }
4417+
43494418.sheet-rolltemplate-attacks .sheet-bigger-text ,
43504419.sheet-rolltemplate-general .sheet-row .sheet-bigger-text {
43514420 font-size : calc (var (--text-xxl ) * 1.5 );
43524421 line-height : normal;
4353- margin-bottom : -5px ;
43544422 min-height : 1em ;
43554423 padding : 2px ;
43564424 z-index : 1 ;
@@ -4388,11 +4456,6 @@ details[open].thac0-box {
43884456 display : inline-flex;
43894457}
43904458
4391- .sheet-rolltemplate-general .sheet-row span : first-child : not (.sheet-span-two ) {
4392- text-align : start;
4393- white-space : normal;
4394- }
4395-
43964459.sheet-rolltemplate-attacks span .sheet-text .sheet-text ,
43974460.sheet-rolltemplate-attacks-table span .sheet-text .sheet-text ,
43984461.sheet-rolltemplate-general span .sheet-text .sheet-text {
@@ -4416,8 +4479,10 @@ details[open].thac0-box {
44164479
44174480.sheet-rolltemplate-general .sheet-tcat + span ,
44184481.sheet-rolltemplate-attacks .sheet-tcat + span {
4482+ align-items : center;
4483+ flex-direction : row;
44194484 justify-content : end;
4420- flex-direction : column ;
4485+ text-align : right ;
44214486}
44224487
44234488.sheet-rolltemplate-attacks .sheet-row .sheet-tcat ,
@@ -4444,6 +4509,8 @@ details[open].thac0-box {
44444509.sheet-rolltemplate-general .sheet-right ,
44454510.sheet-rolltemplate-general span span .sheet-right {
44464511 justify-content : right;
4512+ margin-inline : auto;
4513+ margin-right : 0 ;
44474514 text-align : right;
44484515}
44494516
@@ -4526,7 +4593,7 @@ details[open].thac0-box {
45264593.sheet-rolltemplate-general .sheet-success ,
45274594.sheet-rolltemplate-general .sheet-failure {
45284595 font-family : var (--font-headers );
4529- font-size : var (--text-lg );
4596+ font-size : var (--text-xl );
45304597 text-align : center;
45314598}
45324599
@@ -4538,6 +4605,18 @@ details[open].thac0-box {
45384605 color : # 85000a ;
45394606}
45404607
4608+ .sheet-rolltemplate-general .sheet-row : has (.sheet-success ) + .sheet-row : has (.inlinerollresult ) .inlinerollresult : nth-child (2 ) {
4609+ border-color : # 3fb315 ;
4610+ }
4611+
4612+ .sheet-rolltemplate-general .sheet-failure + .sheet-row : has (.inlinerollresult ) .inlinerollresult : nth-child (2 ) {
4613+ border-color : # 85000a ;
4614+ }
4615+
4616+ .sheet-rolltemplate-general div .sheet-row : has (.sheet-tcat .sheet-success ) {
4617+ background-color : initial;
4618+ }
4619+
45414620.sheet-rolltemplate-general span {
45424621 align-content : baseline;
45434622 align-items : end;
@@ -4554,7 +4633,6 @@ details[open].thac0-box {
45544633 display : inline-block;
45554634 font-family : var (--font-inputs );
45564635 line-height : 1em ;
4557- margin : 2px ;
45584636 min-height : 1em ;
45594637 min-width : 1.1em ;
45604638 padding : 0 1px 0 1px ;
0 commit comments