mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-09-04 14:12:28 +00:00
Major overhaul of the coding behind layout.
This commit is contained in:
+167
-31
@@ -12,11 +12,20 @@
|
||||
font-size: 12px;
|
||||
float: left;
|
||||
margin: 0.2em;
|
||||
overflow: auto;
|
||||
overflow: auto;
|
||||
outline: 1px solid gray;
|
||||
}
|
||||
|
||||
/* ===== MODULE SUPPRT ===== */
|
||||
.sheet-label {
|
||||
font-weight: bold;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sheet-hr * {
|
||||
box-shadow: 0 -1px 0 #000;
|
||||
}
|
||||
|
||||
/* ===== MODULE SUPPORT ===== */
|
||||
input.sheet-module-roll:checked ~ .sheet-wrapper .sheet-module-on-roll,
|
||||
.sheet-wrapper .sheet-module-off-roll {
|
||||
display: inline-block;
|
||||
@@ -27,10 +36,49 @@ input.sheet-module-roll:checked ~ .sheet-wrapper .sheet-module-off-roll,
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ===== TABLES ===== */
|
||||
/* ===== CUSTOM TABLES ===== */
|
||||
.sheet-table {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sheet-row:nth-child(even) {
|
||||
background: #EFEFF5;
|
||||
}
|
||||
|
||||
.sheet-row:nth-child(odd) {
|
||||
background: #F5FFFF;
|
||||
}
|
||||
|
||||
.sheet-header {
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
text-transform: lowercase;
|
||||
font-variant: small-caps;
|
||||
letter-spacing: 1px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sheet-row {
|
||||
height: 22px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sheet-cell {
|
||||
box-sizing: border-box;
|
||||
float: left;
|
||||
height: 22px;
|
||||
line-height: 22px;
|
||||
padding: 0px 1px;
|
||||
}
|
||||
|
||||
.sheet-cell > * {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* ===== TABLES ===== */
|
||||
/*
|
||||
.sheet-box table.sheet-table {
|
||||
border-collapse: collapse;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -53,12 +101,12 @@ input.sheet-module-roll:checked ~ .sheet-wrapper .sheet-module-off-roll,
|
||||
font-variant: small-caps;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
/*
|
||||
|
||||
.sheet-box table th:first-child {
|
||||
font-size: 110%;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
*/
|
||||
|
||||
.sheet-box th,
|
||||
.sheet-box td {
|
||||
padding: 0;
|
||||
@@ -68,16 +116,7 @@ input.sheet-module-roll:checked ~ .sheet-wrapper .sheet-module-off-roll,
|
||||
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,
|
||||
@@ -86,6 +125,15 @@ input[type=number]::-webkit-outer-spin-button {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.btn[type="roll"] {
|
||||
width: 22px;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.btn {
|
||||
height: 22px;
|
||||
border-radius: 0;
|
||||
@@ -96,6 +144,7 @@ input[type=number]::-webkit-outer-spin-button {
|
||||
|
||||
.sheet-box select {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -110,9 +159,12 @@ input[type=number]::-webkit-outer-spin-button {
|
||||
}
|
||||
|
||||
.sheet-box input:not(:disabled) {
|
||||
border-bottom: 1px solid black;
|
||||
background: #FAFAF0;
|
||||
border-radius: 2px;
|
||||
|
||||
-webkit-box-shadow: inset 0px 0px 1px 0px rgba(98, 98, 94, 0.75);
|
||||
-moz-box-shadow: inset 0px 0px 1px 0px rgba(98, 98, 94, 0.75);
|
||||
box-shadow: inset 0px 0px 1px 0px rgba(98, 98, 94, 0.75);
|
||||
}
|
||||
|
||||
.sheet-box tbody tr:nth-child(odd) input:not(:disabled) {
|
||||
@@ -152,7 +204,6 @@ input[type=number]::-webkit-outer-spin-button {
|
||||
z-index: 10;
|
||||
display: none;
|
||||
padding: 4px;
|
||||
margin-left: 4px;
|
||||
text-align: left;
|
||||
margin-left: -40px;
|
||||
font-weight: normal;
|
||||
@@ -161,11 +212,13 @@ input[type=number]::-webkit-outer-spin-button {
|
||||
}
|
||||
|
||||
.sheet-popup:hover + .sheet-tooltip {
|
||||
width: auto;
|
||||
display: inline;
|
||||
position: absolute;
|
||||
color: #111;
|
||||
border: 1px solid #DCA;
|
||||
background: #fffAF0;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
.sheet-popup + .sheet-tooltip {
|
||||
@@ -179,6 +232,7 @@ input[type=number]::-webkit-outer-spin-button {
|
||||
|
||||
.sheet-tooltip table {
|
||||
float: left;
|
||||
line-height: 2em;
|
||||
font-size: 11px;
|
||||
border-collapse: collapse;
|
||||
text-align: center;
|
||||
@@ -192,28 +246,110 @@ input[type=number]::-webkit-outer-spin-button {
|
||||
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-attribute { width: 130px; }
|
||||
.sheet-attribute .sheet-header .sheet-col0 { width: 78px; }
|
||||
.sheet-attribute .sheet-header .sheet-col1 { width: 52px; }
|
||||
.sheet-attribute .sheet-row .sheet-col0 { width: 48px; }
|
||||
.sheet-attribute .sheet-row .sheet-col1 { width: 30px; }
|
||||
.sheet-attribute .sheet-row .sheet-col2 { width: 30px; }
|
||||
.sheet-attribute .sheet-row .sheet-col3 { width: 22px; }
|
||||
.sheet-attribute .sheet-row-basic-move .sheet-col2 { width: 52px; }
|
||||
.sheet-attribute .sheet-row-basic-lift .sheet-col1 { width: 82px; }
|
||||
.sheet-attribute .sheet-row-dodge .sheet-col1 { width: 82px; }
|
||||
.sheet-attribute .sheet-row-thrust-damage .sheet-col1 { width: 60px; }
|
||||
.sheet-attribute .sheet-row-swing-damage .sheet-col1 { width: 60px; }
|
||||
|
||||
.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-miscelleneous .sheet-header .sheet-col0 { width: calc(100% - 30px); }
|
||||
.sheet-miscelleneous .sheet-header .sheet-col1 { width: 30px; }
|
||||
.sheet-miscelleneous .sheet-row .sheet-col0 { width: 80px; }
|
||||
.sheet-miscelleneous .sheet-row .sheet-col1 { width: calc(100% - 110px); }
|
||||
.sheet-miscelleneous .sheet-row .sheet-col2 { width: 30px; }
|
||||
.sheet-miscelleneous .sheet-row-race .sheet-col1,
|
||||
.sheet-miscelleneous .sheet-row-gender .sheet-col1,
|
||||
.sheet-miscelleneous .sheet-row-size .sheet-col1,
|
||||
.sheet-miscelleneous .sheet-row-hand .sheet-col1 { width: calc(100% - 80px); }
|
||||
|
||||
.sheet-points { width: 100px; }
|
||||
.sheet-points .sheet-header .sheet-col0 { width: 100%; }
|
||||
.sheet-points .sheet-row .sheet-col0 { width: 60px; }
|
||||
.sheet-points .sheet-row .sheet-col1 { width: 40px; }
|
||||
|
||||
.sheet-lift { width: calc(100% - 130px - 140px - 1.2em); }
|
||||
.sheet-lift .sheet-col0 { width: 170px; }
|
||||
.sheet-lift .sheet-col1 { width: calc(100% - 170px); }
|
||||
|
||||
.sheet-encumberance { width: calc(100% - 140px - 0.8em); }
|
||||
.sheet-encumberance .sheet-col0 { width: 100px; }
|
||||
.sheet-encumberance .sheet-col1 { width: calc((100% - 100px) * 0.4); }
|
||||
.sheet-encumberance .sheet-col2 { width: calc((100% - 100px) * 0.3); }
|
||||
.sheet-encumberance .sheet-col3 { width: calc((100% - 100px) * 0.3); }
|
||||
.sheet-encumberance .sheet-row-load .sheet-col0 { width: 100px; }
|
||||
.sheet-encumberance .sheet-row-load .sheet-col1 { width: calc(100% - 100px); }
|
||||
|
||||
.sheet-damage-reduction { float: right; width: 140px; }
|
||||
.sheet-damage-reduction .sheet-col0 { width: 45px; }
|
||||
.sheet-damage-reduction .sheet-col1 { width: 35px; }
|
||||
.sheet-damage-reduction .sheet-col2 { width: calc(100% - 80px); }
|
||||
.sheet-damage-reduction .sheet-row-title .sheet-col0 { width: 100%; }
|
||||
|
||||
.sheet-language { width: calc(60% - 0.4em); }
|
||||
.sheet-language .sheet-col0 { width: calc(100% - 210px); }
|
||||
.sheet-language .sheet-col1 { width: 90px; }
|
||||
.sheet-language .sheet-col2 { width: 90px; }
|
||||
.sheet-language .sheet-col3 { width: 30px; }
|
||||
|
||||
.sheet-culture { width: calc(40% - 0.4em); }
|
||||
.sheet-culture .sheet-col0 { width: calc(100% - 30px); }
|
||||
.sheet-culture .sheet-col1 { width: 30px; }
|
||||
|
||||
.sheet-traits { width: calc(100% - 0.4em); }
|
||||
.sheet-traits .sheet-col0 { width: calc(100% - 100px); }
|
||||
.sheet-traits .sheet-col1 { width: 30px; }
|
||||
.sheet-traits .sheet-col2 { width: 30px; }
|
||||
.sheet-traits .sheet-col3 { width: 40px; }
|
||||
.sheet-traits .sheet-row-desc .sheet-col0 { width: 100%; }
|
||||
|
||||
.sheet-skills { width: calc(100% - 0.4em); }
|
||||
.sheet-skills .sheet-col0 { width: calc(100% - 280px); }
|
||||
.sheet-skills .sheet-col1 { width: 30px; }
|
||||
.sheet-skills .sheet-col2 { width: 40px; }
|
||||
.sheet-skills .sheet-col3 { width: 50px; }
|
||||
.sheet-skills .sheet-col4 { width: 50px; }
|
||||
.sheet-skills .sheet-col5 { width: 40px; }
|
||||
.sheet-skills .sheet-col6 { width: 30px; }
|
||||
.sheet-skills .sheet-col7 { width: 40px; }
|
||||
|
||||
.sheet-melee-attacks { width: calc(100% - 0.4em); }
|
||||
.sheet-melee-attacks .sheet-col0 { width: 100px; }
|
||||
.sheet-melee-attacks .sheet-col1 { width: 60px; }
|
||||
.sheet-melee-attacks .sheet-col2 { width: 40px; }
|
||||
.sheet-melee-attacks .sheet-col3 { width: 40px; }
|
||||
.sheet-melee-attacks .sheet-col4 { width: 40px; }
|
||||
.sheet-melee-attacks .sheet-col5 { width: calc(100% - 280px); }
|
||||
|
||||
.sheet-ranged-attacks { width: calc(100% - 0.4em); }
|
||||
.sheet-ranged-attacks .sheet-col0 { width: 100px; }
|
||||
.sheet-ranged-attacks .sheet-col1 { width: 60px; }
|
||||
.sheet-ranged-attacks .sheet-col2 { width: 40px; }
|
||||
.sheet-ranged-attacks .sheet-col3 { width: 30px; }
|
||||
.sheet-ranged-attacks .sheet-col4 { width: 30px; }
|
||||
.sheet-ranged-attacks .sheet-col5 { width: 40px; }
|
||||
.sheet-ranged-attacks .sheet-col6 { width: 30px; }
|
||||
.sheet-ranged-attacks .sheet-col7 { width: 40px; }
|
||||
.sheet-ranged-attacks .sheet-col8 { width: calc(100% - 370px); }
|
||||
|
||||
.sheet-items { width: calc(100% - 0.4em); }
|
||||
.sheet-items .sheet-col0 { width: 100px; }
|
||||
.sheet-items .sheet-col1 { width: 20px; }
|
||||
.sheet-items .sheet-col2 { width: 20px; }
|
||||
.sheet-items .sheet-col3 { width: 20px; }
|
||||
.sheet-items .sheet-col4 { width: 30px; }
|
||||
.sheet-items .sheet-col5 { width: calc(100% - 250px); }
|
||||
.sheet-items .sheet-col6 { width: 30px; }
|
||||
.sheet-items .sheet-col7 { width: 30px; }
|
||||
.sheet-items .sheet-row-totals .sheet-col0 { width: calc(100% - 200px); }
|
||||
.sheet-items .sheet-row-totals .sheet-col1 { width: 50px; }
|
||||
.sheet-items .sheet-row-totals .sheet-col2 { width: 100px; }
|
||||
.sheet-items .sheet-row-totals .sheet-col3 { width: 50px; }
|
||||
|
||||
+1249
-854
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user