mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-09-03 13:42:33 +00:00
194 lines
3.5 KiB
CSS
194 lines
3.5 KiB
CSS
.charsheet {
|
|
background: white;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.sheet-wrapper {
|
|
min-width: 490px;
|
|
}
|
|
|
|
/* ===== TABLES ===== */
|
|
.sheet-box {
|
|
box-sizing: border-box;
|
|
border-collapse: collapse;
|
|
font-size: 12px;
|
|
float: left;
|
|
margin: 0.2em;
|
|
overflow: auto;
|
|
table-layout: fixed;
|
|
outline: 1px solid gray;
|
|
}
|
|
|
|
.sheet-box tr *:not(.sheet-tooltip) {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
min-height: 22px;
|
|
max-height: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.sheet-box tbody tr:nth-child(odd) {
|
|
background: #EFEFF5;
|
|
}
|
|
|
|
.sheet-box th {
|
|
font-weight: bold;
|
|
text-transform: lowercase;
|
|
font-variant: small-caps;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.sheet-box th:first-child {
|
|
font-size: 110%;
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
.sheet-box th,
|
|
.sheet-box td {
|
|
padding: 0;
|
|
}
|
|
|
|
.sheet-box td {
|
|
padding-right: 2px;
|
|
text-align: center;
|
|
}
|
|
|
|
.sheet-box .sheet-label {
|
|
font-weight: bold;
|
|
padding-left: 2px;
|
|
text-align: right;
|
|
}
|
|
|
|
.sheet-hr * {
|
|
box-shadow: 0 -1px 0 #000;
|
|
}
|
|
|
|
/* ===== INPUTS ===== */
|
|
input[type=number]::-webkit-inner-spin-button,
|
|
input[type=number]::-webkit-outer-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.sheet-box select {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.sheet-box input {
|
|
background: transparent;
|
|
border: none;
|
|
width: 100% !important;
|
|
box-shadow: none;
|
|
padding: 0 4px;
|
|
cursor: initial;
|
|
}
|
|
|
|
.sheet-box input:not(:disabled) {
|
|
border-bottom: 1px solid black;
|
|
background: #FAFAF0;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.sheet-box tbody tr:nth-child(odd) input:not(:disabled) {
|
|
background: #E0E0FA;
|
|
}
|
|
|
|
/* ===== UTILITY ==== */
|
|
.sheet-right {
|
|
float: right;
|
|
}
|
|
|
|
.sheet-left {
|
|
float: left;
|
|
}
|
|
|
|
.sheet-clearfix:before,
|
|
.sheet-clearfix:after {
|
|
content: "";
|
|
display: table;
|
|
}
|
|
|
|
.sheet-clearfix:after {
|
|
clear: both;
|
|
}
|
|
|
|
.sheet-hover {
|
|
position: relative;
|
|
z-index: 0;
|
|
}
|
|
|
|
/* ===== CSS TOOLTIP ===== */
|
|
.sheet-popup {
|
|
color: darkred;
|
|
}
|
|
|
|
.sheet-popup + .sheet-tooltip {
|
|
z-index: 10;
|
|
display: none;
|
|
padding: 4px;
|
|
margin-left: 4px;
|
|
text-align: left;
|
|
font-weight: normal;
|
|
margin-left: -40px;
|
|
}
|
|
|
|
.sheet-popup:hover + .sheet-tooltip {
|
|
display: inline;
|
|
position: absolute;
|
|
color: #111;
|
|
border: 1px solid #DCA;
|
|
background: #fffAF0;
|
|
}
|
|
|
|
.sheet-popup + .sheet-tooltip {
|
|
border-radius: 2px;
|
|
-moz-border-radius: 2px;
|
|
-webkit-border-radius: 2px;
|
|
-moz-box-shadow: 5px #CCC;
|
|
-webkit-box-shadow: 5px #CCC;
|
|
box-shadow: 5px #CCC;
|
|
}
|
|
|
|
.sheet-tooltip table {
|
|
float: left;
|
|
font-size: 11px;
|
|
border-collapse: collapse;
|
|
text-align: center;
|
|
}
|
|
|
|
.sheet-tooltip td {
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.sheet-tooltip tbody tr:nth-child(odd) {
|
|
background: #FFF;
|
|
}
|
|
|
|
/* ===== SIZES ===== */
|
|
.sheet-mini { width: 2.5em; }
|
|
.sheet-short { width: 4em; }
|
|
.sheet-small { width: 15ex; }
|
|
.sheet-medium { width: 20ex; }
|
|
.sheet-flex { width: 20%; min-width: 4em }
|
|
.sheet-long { width: 70%; min-width: 15ex; }
|
|
.sheet-full { width: 100%; min-width: 20ex; }
|
|
|
|
/* ===== LAYOUT ===== */
|
|
.sheet-attribute { width: 130px; }
|
|
.sheet-miscelleneous { width: calc(100% - 130px - 100px - 1.2em); }
|
|
.sheet-points { width: 100px; }
|
|
.sheet-lift { width: calc(100% - 130px - 140px - 1.2em); }
|
|
.sheet-encumberance { width: calc(100% - 140px - 0.8em); }
|
|
.sheet-damage-reduction { float: right; width: 140px; }
|
|
|
|
.sheet-language { width: calc(60% - 0.4em); }
|
|
.sheet-culture { width: calc(40% - 0.4em); }
|
|
|
|
.sheet-traits { width: calc(100% - 0.4em); }
|
|
.sheet-skills { width: calc(100% - 0.4em); }
|
|
.sheet-melee-attacks { width: calc(100% - 0.4em); }
|
|
.sheet-ranged-attacks { width: calc(100% - 0.4em); }
|
|
.sheet-items { width: calc(100% - 0.4em); }
|