Files
roll20-character-sheets-tester/D&D_4E/D&D_4E.css
T
2014-04-18 09:29:06 +01:00

265 lines
6.1 KiB
CSS

/*
Full CSS Reset
http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
.charsheet .sheet-wrapper div, .charsheet .sheet-wrapper span, .charsheet .sheet-wrapper label,
.charsheet .sheet-wrapper h1, .charsheet .sheet-wrapper h2, .charsheet .sheet-wrapper h3, .charsheet .sheet-wrapper h4, .charsheet .sheet-wrapper h5, .charsheet .sheet-wrapper h6, .charsheet .sheet-wrapper p,
.charsheet .sheet-wrapper table, .charsheet .sheet-wrapper caption, .charsheet .sheet-wrapper tbody, .charsheet .sheet-wrapper tfoot, .charsheet .sheet-wrapper thead, .charsheet .sheet-wrapper tr, .charsheet .sheet-wrapper th, .charsheet .sheet-wrapper td {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
color: #404040;
vertical-align: baseline;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
.charsheet .sheet-wrapper table {
border-collapse: collapse;
border-spacing: 0;
}
.charsheet .sheet-wrapper input::-webkit-outer-spin-button,
.charsheet .sheet-wrapper input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.charsheet .sheet-wrapper textarea {
resize: none;
}
/*
Define our own styles for everything we will be using.
More work but it ensures the sheet is in total control of itself.
*/
.charsheet {
}
.charsheet {
background-color: white;
}
.charsheet .sheet-wrapper h2 {
margin: 1px 0;
font-weight:bold;
font-size: 15px;
}
.charsheet .sheet-wrapper input, .charsheet .sheet-wrapper textarea, .charsheet .sheet-wrapper select, .charsheet .sheet-wrapper input[type="number"] {
display: inline-block;
border: 1px solid #ccc;
padding: 2px;
height: 28px;
width: 100%;
font-size: 12px;
line-height: 16px;
font-weight: normal;
margin: 0;
color: #555;
background-color: white;
vertical-align: middle;
cursor: auto;
letter-spacing: normal;
word-spacing: normal;
text-transform: none;
text-indent: 0px;
text-shadow: none;
text-align: start;
-webkit-rtl-ordering: logical;
-webkit-user-select: text;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
-webkit-transition: border linear .2s,box-shadow linear .2s;
-moz-transition: border linear .2s,box-shadow linear .2s;
-ms-transition: border linear .2s,box-shadow linear .2s;
-o-transition: border linear .2s,box-shadow linear .2s;
transition: border linear .2s,box-shadow linear .2s;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-writing-mode: horizontal-tb;
}
.charsheet .sheet-wrapper input {
-webkit-appearance: textfield;
}
.charsheet .sheet-wrapper input[type="checkbox"] {
margin-top: 7px;
height: 13px;
width: 13px;
color: #555;
border: 1px solid #ccc;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
-webkit-transition: border linear .2s,box-shadow linear .2s;
-moz-transition: border linear .2s,box-shadow linear .2s;
-ms-transition: border linear .2s,box-shadow linear .2s;
-o-transition: border linear .2s,box-shadow linear .2s;
transition: border linear .2s,box-shadow linear .2s;
}
.charsheet .sheet-wrapper textarea {
width: 98%;
height: 50px;
font-size: 13px;
line-height: 18px;
}
.charsheet .sheet-wrapper label {
display: inline-block;
width: 100%;
font-size: 12px;
text-align: left;
height: 28px;
line-height: 28px;
vertical-align: middle;
}
.charsheet .sheet-wrapper .sheet-3colrow .sheet-col {
width: calc(33% - 3px) !important;
margin-right: 2px !important;
}
.charsheet .sheet-wrapper .sheet-3colrow .sheet-col:last-child {
margin-right: 0 !important;
}
.charsheet .sheet-wrapper .sheet-2colrow .sheet-col {
width: calc(50% - 3px) !important;
margin-right: 2px !important;
}
.charsheet .sheet-wrapper .sheet-2colrow .sheet-col:last-child {
margin-right: 0 !important;
}
/* Main */
.charsheet .sheet-wrapper .sheet-row {
height: 34px;
margin: 0 0 2px;
}
.charsheet .sheet-wrapper .sheet-alternative:nth-child(2n) {
background-color: #E3E3E3;
}
.charsheet .sheet-wrapper .sheet-header {
height: 20px;
margin: 0;
}
.charsheet .sheet-wrapper .sheet-header label {
padding: 0;
font-size: 9px;
height: 20px;
line-height: 20px;
font-weight: normal;
word-wrap:break-word;
}
.charsheet .sheet-wrapper .sheet-item {
display: inline-block;
width: 100%;
height: 34px;
vertical-align: middle;
margin: 0 -2px;
text-align: left;
padding: 3px 2px;
}
.charsheet .sheet-wrapper .sheet-item.sheet-multiline label {
line-height: 9px;
padding-top: 1px;
}
.charsheet .sheet-wrapper .sheet-item.sheet-tiny {
width: calc(15% - 3%);
}
.charsheet .sheet-wrapper .sheet-item.sheet-small {
width: calc(20% - 0.5%);
}
.charsheet .sheet-wrapper textarea.sheet-small {
height: 32px;
}
.charsheet .sheet-wrapper .sheet-item.sheet-med {
width: calc(30% - 0.5%);
}
.charsheet .sheet-wrapper .sheet-item.sheet-large {
width: calc(40% - 5%);
}
.charsheet .sheet-wrapper .sheet-item.sheet-huge {
width: calc(80% - 3%);
}
/* baseinfo - Top section with name, class, etc */
.sheet-baseinfo {
display: inline-block;
width: 145px;
margin-right: 3px;
}
.sheet-baseinfo.sheet-number {
width: 39px;
margin-right: 10px;
}
.sheet-baseinfo.sheet-short {
width: 60px;
}
.sheet-baseinfo.sheet-medium {
width: 100px;
}
/* statblock */
.charsheet .sheet-wrapper .sheet-statblock {
margin-bottom: 5px;
}
.charsheet .sheet-wrapper .sheet-statblock:last-child {
margin-bottom: 0!important;
}
.charsheet .sheet-wrapper .sheet-statblock .sheet-black label {
color: white;
}
.charsheet .sheet-wrapper .sheet-statblock h2 {
width: 100%;
background-color: black;
color: white;
text-align: center;
}
.charsheet .sheet-wrapper .sheet-statblock .sheet-halfblack {
background: linear-gradient(to right, white 50%, black 50%);
}
.charsheet .sheet-wrapper .sheet-statblock .sheet-black {
background: black;
color: white;
}