diff --git a/src/js/render/details.js b/src/js/render/details.js
index 2aa05f0..606558b 100644
--- a/src/js/render/details.js
+++ b/src/js/render/details.js
@@ -54,14 +54,14 @@ export function renderDetails() {
const alphabeticalOrderHTML = `
${consonantHTML}
${vowelHTML}
@@ -75,7 +75,7 @@ export function renderDetails() {
const codaHTML = `
Coda
${coda.map(letter => `${letter}`).join(' ')}
`;
const phonotacticsNotesHTML = phonotactics.notes.trim().length > 0 ? '
Notes
' + md(removeTags(phonotactics.notes)) + '
' : '';
const phonotacticsHTML = onset.length + nucleus.length + coda.length + phonotacticsNotesHTML.length > 0
- ? `
Phonotactics
+ ? `
Phonotactics
${onset.length > 0 || nucleus.length > 0 || coda.length > 0
? `
${onsetHTML}
@@ -95,11 +95,11 @@ export function renderDetails() {
}).filter(html => html !== false).join(' ')}` : '';
const orthographyNotesHTML = orthography.notes.trim().length > 0 ? '
Notes
' + md(removeTags(orthography.notes)) + '
' : '';
const orthographyHTML = translations.length + orthographyNotesHTML.length > 0
- ? `
Orthography
+ ? `
Orthography
${translationsHTML}
${orthographyNotesHTML}`
: '';
- const grammarHTML = grammar.notes.trim().length > 0 ? '
Grammar
'
+ const grammarHTML = grammar.notes.trim().length > 0 ? '
Grammar
'
+ (grammar.notes.trim().length > 0 ? md(removeTags(grammar.notes)) : '')
+ '
' : '';
diff --git a/src/scss/_elements.scss b/src/scss/_elements.scss
index c2addc9..b310cdb 100644
--- a/src/scss/_elements.scss
+++ b/src/scss/_elements.scss
@@ -8,6 +8,10 @@ p, span {
}
}
+h2 {
+ margin-bottom: 5px;
+}
+
input:not([type="checkbox"]),
select,
textarea {
@@ -19,10 +23,7 @@ label {
font-weight: bold;
line-height: 120%;
cursor: pointer;
-
- &:not(:last-child) {
- margin-bottom: $general-padding;
- }
+ margin-bottom: $general-padding;
small {
font-weight: normal;