/* Set the min-width so that when the window is resized the look will stay consistant */ .charsheet { background-color: #ddd; min-width: 1220px; } /* Universal styling applied to all elements of these types */ h2 { font-size: 2em; margin-bottom: 10px; text-align: center; } label { display: inline-block; width: 31%; } input { display: inline-block; width: 165px; } img { max-height: 100px; } textarea { resize: vertical; height: 300px; } /* Targetted styling that only effects elements with these classes */ input.sheet-short { width: 17%; } input.sheet-checkbox { width: 14px; height: 14px; } select.sheet-ziel { vertical-align: top; width: 100px; } select.sheet-art { vertical-align: top; width: 100px; } select.sheet-prozess { vertical-align: top; width: 130px; } select.sheet-dtype { vertical-align: top; width: 60px; } span.sheet-dee { font-size: 1.4em; font-weight: bold; left: -36%; padding-right: 4px; position: relative; top: 3px; } /* Targetted styling that only effects elements contained within the stated class */ .sheet-stats h3 { display: inline-block; text-align: left; } .sheet-stats h3:first-child { margin-left: 35%; margin-right: 15%; } .sheet-stats input { margin-right: 8%; width: 17%; } .sheet-columns { display: flex; justify-content: space-between; width: 400px; } .sheet-hidden { visibility: hidden; } /*Configure the tab buttons*/ .sheet-Datenblatt, .sheet-Fertigkeiten, .sheet-Sprachen, .sheet-Zauber, .sheet-KampfK, .sheet-KampfZ, .sheet-Ausrustung, .sheet-Notizen, .sheet-NSC, .sheet-Config { display: none; } /* show the selected tab */ .sheet-tabstoggle[value="Datenblatt"]~div.sheet-Datenblatt, .sheet-tabstoggle[value="Fertigkeiten"]~div.sheet-Fertigkeiten, .sheet-tabstoggle[value="Sprachen"]~div.sheet-Sprachen, .sheet-tabstoggle[value="Zauber"]~div.sheet-Zauber, .sheet-tabstoggle[value="KampfK"]~div.sheet-KampfK, .sheet-tabstoggle[value="KampfZ"]~div.sheet-KampfZ, .sheet-tabstoggle[value="Ausrustung"]~div.sheet-Ausrustung, .sheet-tabstoggle[value="Notizen"]~div.sheet-Notizen, .sheet-tabstoggle[value="NSC"]~div.sheet-NSC, .sheet-tabstoggle[value="Config"]~div.sheet-Config { display: block; } /* Configure a container for the toggle */ .sheet-toggle-container { display: inline-flex; flex-wrap: nowrap; align-content: space-between; align-items: center; } /* Configure the button styling. This example makes it look like a checkbox. */ button.sheet-toggle { padding: 0; border: solid 1px #a8a8a8; cursor: pointer; width: 16px; height: 16px; border-radius: 3px; display: flex; justify-content: center; align-items: center; font-size: 12px; } /* Hide the "checked" section of the toggle if the attribute value is not "1". */ input.sheet-toggle:not([value="1"]) ~ button.sheet-toggle > span.sheet-checked { display: none; } /* CSS für Textareas bei Zaubern und Fertigkeiten (einklappen/ausklappen) */ div.sheet-section-hide { display: none; } input.sheet-section-toggle[value='1']~div.sheet-section-hide { display: inline; } /* CSS für Zauber und Fertigkeiten auf Kampfblättern */ div.sheet-repeating-display { display:none; } input.sheet-repeating-show[value="1"] ~ div.sheet-repeating-display { display: inline-block; }