Files

223 lines
3.5 KiB
CSS

/* General styling */
.sheet-charsheet {
background-color: #fff;
min-width: 800px;
}
input {
display: inline-block;
background: rgba(255, 255, 255, 0.85);
text-align: center;
height: 20px !important;
}
textarea {
background: rgba(255, 255, 255, 0.7);
line-height: 22px;
}
textarea,
input {
border: var(--gray-border);
}
textarea {
resize: none;
}
/* hides select input arrows */
select {
-moz-appearance: none;
-webkit-appearance: none;
}
/* hides number input arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
}
/* main pages */
.sheet-main-container {
width: 849px;
height: 600px;
padding: 16px;
background-size: contain;
box-sizing: border-box;
--gray-border: 1px solid lightgray;
}
.sheet-main-container * {
font-size: 12px;
}
.sheet-page-1 {
background-image: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Tesoro-y-Gloria-2E/images/preview-page-1.jpg");
}
.sheet-page-2 {
background-image: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Tesoro-y-Gloria-2E/images/preview-page-2.jpg");
}
.sheet-page-selector > button {
background-color: black;
color: white;
}
.sheet-character,
.sheet-magic {
display: none;
}
.sheet-tabstoggle[value="sheet-character"] ~ div.sheet-character,
.sheet-tabstoggle[value="sheet-magic"] ~ div.sheet-magic {
display: block;
}
/* sheets */
.sheet-section {
position: absolute;
}
.sheet-small {
width: 38px !important;
}
.sheet-medium {
width: 95px !important;
}
.sheet-wide {
width: 80px;
}
.sheet-wider {
width: 160px;
}
.sheet-widest {
width: 200px;
}
.sheet-accent {
width: 40px !important;
height: 40px !important;
text-align: center;
border-radius: 100%;
font-size: 16px;
background: rgba(255, 255, 255, 0.85);
font-weight: bold;
}
.sheet-free-layout > * {
position: absolute;
font-size: 12px;
}
.sheet-list-layout {
display: flex;
flex-direction: column;
}
.sheet-list-layout > * {
margin: 1px 0 !important;
}
.sheet-attribute {
display: flex;
height: 22px;
}
.sheet-attribute > input {
margin-left: 1.4rem;
}
.sheet-attribute > input:first-of-type {
margin-left: 94px;
}
.sheet-attribute > input:last-of-type {
width: 240px;
}
.sheet-equipment {
display: flex;
}
.sheet-equipment > * {
margin: 0 1px;
}
/* Checkbox: https://www.w3schools.com/howto/howto_css_custom_checkbox.asp */
.sheet-checkbox-container {
position: absolute !important;
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 12px;
cursor: pointer;
font-size: 22px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.sheet-checkbox-container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.sheet-checkmark {
position: absolute;
top: 0;
left: 0;
height: 25px;
width: 25px;
background-color: #eee;
border-radius: 50%;
}
.sheet-checkbox-container:hover input ~ .sheet-checkmark {
background-color: #ccc;
}
.sheet-checkbox-container input:checked ~ .sheet-checkmark {
background-color: black;
border: 1px solid white;
}
.sheet-checkmark:after {
content: "";
position: absolute;
display: none;
}
.sheet-checkbox-container input:checked ~ .sheet-checkmark:after {
display: block;
}
.sheet-checkbox-container .sheet-checkmark:after {
top: 9px;
left: 9px;
width: 8px;
height: 8px;
border-radius: 50%;
background: white;
}