User:Readyokaygo/per book/Hebrew.css

/* Notes: * * Since this is JavaScript-only, only add styles here that would be difficult to add inline, or which only apply to JavaScript content. * * Add container styles to and text styles to. */

/* tables */ table.hebrew-table > tbody > tr > td { border: solid rgb(237, 235, 232) thin; padding-left: 5px; padding-right: 5px; }

table.hebrew-table > tbody > tr > th { background-color: rgb(247, 245, 242); text-align: center; font-weight: bold; }

table.hebrew-table > tbody > tr > td:first-child, table.hebrew-table > tbody > tr > th { padding-left: 7px; }

table.hebrew-table > tbody > tr > td:last-child, table.hebrew-table > tbody > tr > th { padding-right: 7px; }

table.hebrew-table > tbody > tr > td:empty, table.hebrew-table > tbody > tr > th:empty { padding: 0; border: 0; } /* /tables */

/* translations tables */ table.hebrew-table.hebrew-translations:not(.hebrew-dialogue) > tbody > tr > td:first-child /* Hebrew*/, table.hebrew-table.hebrew-translations > tbody > tr > td:nth-of-type(5) /* Hebrewsample sentence */ { background-color: rgb(247, 245, 242); }

table.hebrew-table.hebrew-translations:not(.hebrew-dialogue) > tbody > tr > td:nth-of-type(2) /* IPA */, table.hebrew-table.hebrew-translations > tbody > tr > td:nth-of-type(4) /* usage notes */ { color: rgb(100, 100, 100); }

table.hebrew-table.hebrew-translations > tbody > tr > td:nth-of-type(1):not(:empty) /* Hebrew */, table.hebrew-table.hebrew-translations > tbody > tr > td:nth-of-type(2):not(:empty) /* IPA */, table.hebrew-table.hebrew-translations > tbody > tr > td:nth-of-type(3):not(:empty) /* English */ { min-width: 100px; }

table.hebrew-table.hebrew-translations > tbody > tr > td:nth-of-type(5) /* Hebrew sample sentence */, table.hebrew-table.hebrew-translations > tbody > tr > td:nth-of-type(6) /* English sentence */ { color: rgb(50, 50, 50); font-style: italic; }

table.hebrew-table.hebrew-translations > tbody > tr > td:nth-of-type(4):not(:empty)::before /* usage notes */ { content: "("; }

table.hebrew-table.hebrew-translations > tbody > tr > td:nth-of-type(4):not(:empty)::after /* usage notes */ { content: ")"; }

table.hebrew-table.hebrew-translations > tbody > tr:hover td:not(.hebrew-english-visibility-toggle-cell) { background-color: rgb(237, 235, 222); } /* /translations tables */

/* dialogues */ table.hebrew-table.hebrew-dialogue:not(.hebrew-translations) > tbody > tr > td:first-child /* either speaker's name, if table does not include translations */, table.hebrew-table.hebrew-dialogue.hebrew-translations > tbody > tr:nth-of-type(even):not(:last-child) > td:first-child /* either speaker's name, if table includes translations */ { text-align: right; min-width: 70px; background-color: rgb(247, 245, 242); }

table.hebrew-table.hebrew-dialogue:not(.hebrew-translations) > tbody > tr > td:first-child::after /* either speaker's name, if table does not include translations */, table.hebrew-table.hebrew-dialogue.hebrew-translations > tbody > tr:nth-of-type(even):not(:last-child) > td:first-child::after /* either speaker's name, if table includes translations */ { content: " : "; }

table.hebrew-table.hebrew-dialogue > tbody > tr:not(:first-child):not(:last-child) > td:nth-of-type(2) /* either speaker's Hebrew line */, table.hebrew-table.hebrew-dialogue:not(.hebrew-translations) > tbody > tr:not(:first-child):last-child > td:nth-of-type(2) /* either speaker's Hebrew line */, table.hebrew-table.hebrew-dialogue.hebrew-translations > tbody > tr:nth-of-type(odd):not(:first-child):not(:last-child) > td:nth-of-type(1) /* either speaker's English line */ { font-style: italic; }

table.hebrew-table.hebrew-dialogue:not(.hebrew-translations) > tbody > tr:nth-of-type(odd) > td:nth-of-type(2) /* second speaker's line, if table does not include translations */, table.hebrew-table.hebrew-dialogue.hebrew-translations > tbody > tr:nth-of-type(odd) > td:nth-of-type(1) /* either speaker's English line, if table includes translations */, table.hebrew-table.hebrew-dialogue.hebrew-translations.hebrew-hidden-english > tbody > tr:nth-of-type(4n+4) > td:nth-of-type(2) /* second speaker's line, if table includes translations and they are hidden */ { color: rgb(100, 100, 100); }

table.hebrew-table.hebrew-dialogue > tbody > tr:hover td:not(.hebrew-english-visibility-toggle-cell), table.hebrew-table.hebrew-dialogue.hebrew-translations > tbody > tr:nth-of-type(even):hover + tr:nth-of-type(odd) { background-color: rgb(237, 235, 222) ! important; } /* /dialogues */

/* hidden sections */ table.hebrew-table.hebrew-translations > tbody > tr > td.hebrew-english-visibility-toggle-cell { text-align: right; color: rgb(100, 100, 100); font-weight: normal; font-size: smaller; line-height: 110%; background-color: rgb(247, 245, 242); }

table.hebrew-table.hebrew-translations > tbody > tr > td.hebrew-english-visibility-toggle-cell span.hebrew-toggle, span.hebrew-hidden-section-toggle-container span.hebrew-hidden-section-toggle { color: #0645AD; }

table.hebrew-table.hebrew-translations > tbody > tr > td.hebrew-english-visibility-toggle-cell span.hebrew-toggle:hover, span.hebrew-hidden-section-toggle-container span.hebrew-hidden-section-toggle:hover { text-decoration: underline; cursor: pointer; }

span.hebrew-hidden-section-toggle-container { color: rgb(100, 100, 100); font-size: small; font-weight: normal; }

table.hebrew-table.hebrew-translations.hebrew-hidden-english > tbody > tr > td:nth-of-type(3) /* English */, table.hebrew-table.hebrew-translations.hebrew-hidden-english > tbody > tr > td:nth-of-type(4) /* usage notes */, table.hebrew-table.hebrew-translations.hebrew-hidden-english > tbody > tr > td:nth-of-type(6) /* English sentence */, table.hebrew-table.hebrew-dialogue.hebrew-translations.hebrew-hidden-english > tbody > tr:nth-of-type(odd) > td:nth-of-type(1) /* either speaker's English line, if table includes translations */, div.hebrew-section.hebrew-hidden { display: none; } /* /hidden sections */

/* exercises */ table.hebrew-table.hebrew-exercise-list tr.hebrew-exercise-list-row td.hebrew-answer::before { content: "→"; color: rgb(200, 200, 200); margin-right: 6px; }

table.hebrew-table.hebrew-exercise-list tr.hebrew-exercise-list-row td.hebrew-question { border-right: 0; }

table.hebrew-table.hebrew-exercise-list tr.hebrew-exercise-list-row td.hebrew-answer { border-left: 0; background-color: White; color: rgb(240, 240, 240); }

table.hebrew-table.hebrew-exercise-list tr.hebrew-exercise-list-row:hover td.hebrew-answer { color: Black; } /* /exercises */