MediaWiki talk:Perbook/Modern Greek.css

I'm trying to format the tables on the Modern Greek wikibook like those on the French page, therefore copying things over (with French swapped for Modern_Greek). The proposed css file is below. I.e. everything below the line (row of underscores) should be copied verbatim into the interface/source (and copied from the source, not the output, since the output interprets the java as wiki mark-up language and so alters the content). Many thanks, Aphoneyclimber (discuss • contribs) 13:54, 29 April 2015 (UTC)

_____________________________________________________________________________________________

/* 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.modern_greek-table > tbody > tr > td { border: solid rgb(237, 235, 232) thin; padding-left: 5px; padding-right: 5px; }

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

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

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

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

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

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

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

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

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

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

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

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

table.modern_greek-table.modern_greek-dialogue > tbody > tr:not(:first-child):not(:last-child) > td:nth-of-type(2) /* either speaker's Modern_Greek line */, table.modern_greek-table.modern_greek-dialogue:not(.modern_greek-translations) > tbody > tr:not(:first-child):last-child > td:nth-of-type(2) /* either speaker's Modern_Greek line */, table.modern_greek-table.modern_greek-dialogue.modern_greek-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.modern_greek-table.modern_greek-dialogue:not(.modern_greek-translations) > tbody > tr:nth-of-type(odd) > td:nth-of-type(2) /* second speaker's line, if table does not include translations */, table.modern_greek-table.modern_greek-dialogue.modern_greek-translations > tbody > tr:nth-of-type(odd) > td:nth-of-type(1) /* either speaker's English line, if table includes translations */, table.modern_greek-table.modern_greek-dialogue.modern_greek-translations.modern_greek-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.modern_greek-table.modern_greek-dialogue > tbody > tr:hover td:not(.modern_greek-english-visibility-toggle-cell), table.modern_greek-table.modern_greek-dialogue.modern_greek-translations > tbody > tr:nth-of-type(even):hover + tr:nth-of-type(odd) { background-color: rgb(237, 235, 222) ! important; } /* /dialogues */

/* hidden sections */ table.modern_greek-table.modern_greek-translations > tbody > tr > td.modern_greek-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.modern_greek-table.modern_greek-translations > tbody > tr > td.modern_greek-english-visibility-toggle-cell span.modern_greek-toggle, span.modern_greek-hidden-section-toggle-container span.modern_greek-hidden-section-toggle { color: #0645AD; }

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

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

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

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

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

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

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

✅, belatedly. QuiteUnusual (discuss • contribs) 08:45, 22 June 2015 (UTC)