From 3c2feeb2aa6aad0cff3bc2eeb155e1d752013e73 Mon Sep 17 00:00:00 2001 From: Gazook89 <58999374+Gazook89@users.noreply.github.com> Date: Thu, 29 Jul 2021 20:52:23 -0500 Subject: [PATCH] Update css for classTables v3 - add "- spell slots per spell level -" header to full class tables - add rules for `.classTables.full` which is similar to `wide` but adds the previously mentioned header as well. - add css variable `--row-color` so the odd row colors can be set in the inline moustache syntax easily. --- themes/5ePhb.style.less | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less index ac8fff139..1112ab769 100644 --- a/themes/5ePhb.style.less +++ b/themes/5ePhb.style.less @@ -526,7 +526,25 @@ body { h5{ margin-bottom : 10px; } + &.full{ + column-span : all; + --row-color : ; + &:after{ + content : '— Spell Slots per Spell Level —'; + font-weight : bold; + font-family : ScalySans; + position : absolute; + top : 20px; + right : 43px; + } + } + tbody tr:nth-child(odd) { + background : var(--row-color); + } } + + + //***************************** // * TABLE OF CONTENTS // *****************************/