Files
roll20-character-sheets/Liminal/liminal.css
T

498 lines
8.9 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Ysabeau&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Metamorphous&display=swap');
/* Set the min-width so that when the window is resized the look will stay consistant */
.charsheet {
background-color:#9EBFBB;
background-size: cover;
width:825px;
min-width:825px;
min-height:400px;
margin:0;
}
.charsheet button.sheet-tabbutton {
border:1px solid #277F84;
}
/* Universal styling applied to all elements of these types */
.charsheet h1 {
font-size: 4em;
margin-bottom: 10px;
margin-top:-15px;
text-align: center;
font-family: 'Ysabeau', Georgia, serif;
}
.charsheet h2 {
font-size: 2em;
margin-bottom: 10px;
text-align: center;
width:100%;
/*background:#195154;*/
background: #277F84;
color:white;
font-family: 'Metamorphous', sans-serif;
}
.charsheet h3 {
margin-bottom: 10px;
text-align: center;
font-family: 'Metamorphous', sans-serif;
}
.charsheet input, .charsheet textarea, .charsheet select {
background-color:#DAE7E5;
}
.charsheet textarea{
resize: none;
box-sizing: border-box;
}
/* Expandable textboxes */
.charsheet .sheet-auto-expand {
position: relative;
display: inline-block;
cursor: text;
word-wrap: break-word;
}
.charsheet .sheet-auto-expand span {
visibility: hidden;
white-space: pre-wrap;
min-height:28px;
display: inline-block;
width: 300px;
padding:5px;
box-sizing: border-box;
border:1px solid rgb(204, 204, 204);
}
.charsheet .sheet-auto-expand textarea {
position: absolute;
z-index: 1;
top: 0;
left: 0;
margin: 0;
overflow: hidden;
resize: none;
height: 100%;
display: inline-block;
width: 300px;
display: block;
box-sizing: border-box;
box-shadow: none;
padding:5px;
border:1px solid rgb(204, 204, 204);
}
/* LAYOUT */
.sheet-character {
display: grid;
grid-template-columns: 133px 133px 133px 133px 133px 133px;
grid-template-rows: auto;
gap: 5px;
grid-template-areas:
"basic basic basic attributes attributes attributes"
"physical physical mental mental social social"
"explain explain explain explain explain explain"
"unspent unspent cap cap totalskill totalskill"
"traits traits traits other other other"
}
.charsheet .sheet-character label {
color:#333;
}
/* BASIC INFO */
.sheet-basicinfo {
grid-area: basic;
}
.sheet-basicinfo label {
display: inline-block;
width: 80px;
vertical-align:top;
}
.sheet-basicinfo input {
display: inline-block;
width: 300px;
}
.sheet-basicinfo select {
display: inline-block;
width: 300px;
margin-bottom:0;
}
.charsheet .sheet-basicinfo .sheet-auto-expand textarea {
width: 300px;
}
/* ATTRIBUTES */
.sheet-attributes {
grid-area: attributes;
}
.sheet-attributes h4 {
display: inline-block;
text-align: left;
}
.sheet-attributes h4.sheet-first {
margin-left: 115px;
margin-right: 10px;
}
.sheet-attributes input {
display: inline-block;
}
.sheet-attributes label {
display: inline-block;
width: 110px;
}
.sheet-attributes label.sheet-driveused {
display: inline-block;
width: 190px;
}
.sheet-attributes button[type=roll].sheet-2d6-dice::before {
font-family: 'dicefontd6';
content: 'ff ';
}
.sheet-attributes button[type=roll].sheet-d6-dice::before {
font-family: 'dicefontd6';
content: 'f ';
}
/* SKILLS */
.sheet-physical {
grid-area: physical;
}
.sheet-mental {
grid-area: mental;
}
.sheet-social {
grid-area: social;
}
.sheet-skills label {
margin-left:153px;
margin-bottom:0;
margin-top:-5px;
font-weight: bold;
font-size:1em;
max-width: 105px;
}
.sheet-skills input {
display: inline-block;
width: 115px;
}
.charsheet .sheet-skills button[type=roll].sheet-skill-button {
width:100px;
margin:0;
height:22px;
text-align:left;
}
.sheet-skills button[type=roll].sheet-skill-button::before {
content: '';
}
p.sheet-skill-explain {
grid-area:explain;
margin-top:10px;
}
.sheet-unspent {
grid-area: unspent;
margin-bottom:10px;
}
.sheet-cap {
grid-area: cap;
margin-bottom:10px;
}
.sheet-totalskill {
grid-area: totalskill;
margin-bottom:10px;
}
.sheet-skillpoints label {
display: inline-block;
width: 100%;
}
/* TRAITS */
.sheet-traits {
grid-area:traits;
}
.sheet-traits input {
display: inline-block;
width: 340px;
font-weight:bold;
}
.charsheet .sheet-traits .sheet-auto-expand textarea, .charsheet .sheet-traits .sheet-auto-expand span {
width:390px;
}
.sheet-traits div.repitem {
margin-bottom:10px;
}
.sheet-other {
grid-area: other;
display: flex;
flex-direction: column;
}
/* COMBAT */
.sheet-combat {
/*margin-top:20px;*/
}
.sheet-combat label {
display: inline-block;
width: 200px;
}
.sheet-combat label.sheet-damagebonus {
display: inline-block;
width: 200px;
}
.sheet-combat input {
display: inline-block;
width: 170px;
}
.sheet-combat select {
display: inline-block;
width: 80px;
margin-bottom:0;
}
.sheet-combat button[type=roll].sheet-2d6-dice::before {
font-family: 'dicefontd6';
content: 'ff ';
}
.sheet-combat button[type=roll].sheet-d6-dice::before {
font-family: 'dicefontd6';
content: 'f ';
}
/* ADVANCEMENT */
.sheet-advancement {
margin-top:20px;
}
.sheet-advancement input {
display: inline-block;
}
.sheet-advancement label {
display: inline-block;
width: 180px;
}
/* TABS */
/*Configure the tab buttons*/
.charsheet .sheet-character,
.charsheet .sheet-crew ,
.charsheet .sheet-mods {
display: none;
}
/* show the selected tab */
.charsheet .sheet-tabstoggle[value="character"] ~ div.sheet-character,
.charsheet .sheet-tabstoggle[value="crew"] ~ div.sheet-crew ,
.charsheet .sheet-tabstoggle[value="mods"] ~ div.sheet-mods {
display: grid;
}
/* CREW AREA */
.sheet-crew {
display: grid;
grid-template-columns: 409px 409px;
grid-template-rows: auto;
gap: 5px;
grid-template-areas:
"crewinfo crewinfo"
"crewname crewgoal"
"assets assets"
"factions factions"
}
.sheet-crew .sheet-crewinfo {
grid-area:crewinfo;
}
.sheet-crew .sheet-crewname {
grid-area:crewname;
}
.sheet-crew .sheet-crewgoal {
grid-area:crewgoal;
}
.sheet-crew .sheet-assets {
grid-area:assets;
}
.sheet-crew .sheet-crew-relationships {
grid-area:factions;
}
.sheet-crew textarea {
height:110px;
width:360px;
}
.charsheet .sheet-crew .sheet-auto-expand textarea, .charsheet .sheet-crew .sheet-auto-expand span {
width: 300px;
}
.charsheet .sheet-crew label {
color:#333;
display: inline-block;
width: 95px;
vertical-align:top;
}
.sheet-crew .sheet-assets select {
width:160px;
font-weight:bold;
}
.charsheet .repcontainer[data-groupname="repeating_assets"] > .repitem {
display: inline-block;
margin-right:10px;
}
.charsheet .repcontainer[data-groupname="repeating_assets"] > .repitem input{
width:237px;
font-weight:bold;
}
.charsheet .repcontainer[data-groupname="repeating_assets"] > .repitem textarea{
width:400px;
display:block;
}
.sheet-crew-relationships h3.sheet-factionname, .sheet-crew-relationships h3.sheet-factionmodifiers, .sheet-crew-relationships textarea {
display:inline-block;
width:40%;
}
.sheet-crew-relationships h3.sheet-factiontotal {
display:inline-block;
}
.sheet-crew-relationships input {
display:inline-block;
vertical-align:top !important;
}
.sheet-crew-relationships textarea {
height:60px;
}
/* Modifications */
.charsheet .sheet-mods label {
color:#333;
width:160px;
display:inline-block;
}
.charsheet .sheet-mods input {
display:inline-block;
}
/* ROLL TEMPLATE */
.sheet-rolltemplate-liminal {
margin-left: -37px;
}
.withoutavatars .sheet-rolltemplate-liminal {
margin-left: -7px;
}
.sheet-rolltemplate-liminal .sheet-container {
border: 1px solid;
border-color: #277F84;
}
/* Header formatting - title and subtitle */
.sheet-rolltemplate-liminal .sheet-header {
background-color: #277F84;
text-align: left;
color: white;
padding: 5px;
}
.sheet-rolltemplate-liminal .sheet-title {
font-size:1.1em;
}
.sheet-rolltemplate-liminal .sheet-subtitle {
font-size:.9em;
}
/* Allprops part */
.sheet-rolltemplate-liminal div.sheet-content {
display: grid;
background: #FFF;
color: #404040;
/* Header formatting - modify the column layout below */
grid-template-columns: auto auto;
/* Line height to match default roll template */
line-height:1.4em;
}
.sheet-rolltemplate-liminal .sheet-content > div {
padding: 5px;
}
/* Left column */
.sheet-rolltemplate-liminal .sheet-content .sheet-key {
font-weight: bold;
padding-right: 10px;
text-align: right;
}
/* Empty rule, use this if you want to change the right column
.sheet-rolltemplate-liminal .sheet-value {
}
*/
/* Make even-numbered rows grey */
.sheet-rolltemplate-liminal .sheet-content :nth-child(4n+3),
.sheet-rolltemplate-liminal .sheet-content :nth-child(4n) {
background:#EEE;
}
/* Description field */
.sheet-rolltemplate-liminal .sheet-desc {
grid-column: span 2;
padding: 5px;
text-align: center;
}
/* set the inline roll result so it doesn't look awful in dark mode */
.sheet-rolltemplate-liminal .sheet-container .inlinerollresult {
background-color:#DAE7E5;
border: 1px solid #333;
color:#black;
}