Skip to content

Commit 7291910

Browse files
committed
styles
1 parent 2705eff commit 7291910

2 files changed

Lines changed: 28 additions & 5 deletions

File tree

mecab-web/src/index.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,20 +342,25 @@ const Definition = connect('termResults,kanjidic2Lookup', actions)(
342342

343343
const term = getSearchTerm(termResults.key);
344344

345+
346+
// <h3>EDICT2<//>
347+
345348
return html`
346349
<div>
347-
<h2>Dictionary results for
350+
<div class="results-header">
351+
Dictionary results for
348352
'<${Word} classList="" mecabToken=${termResults.key} />'
349353
${termResults.key.dictionaryForm
350354
&& termResults.key.dictionaryForm !== termResults.key.token
351355
&& ` (dictionary form: '${termResults.key.dictionaryForm}')`}
352356
<//>
357+
<div class="jisho-lookup">
353358
Look up <a href=${
354-
`https://jisho.org/search/${encodeURIComponent(term)}`
355-
}>${term}<//> on Jisho.org
356-
<h3>EDICT2<//>
359+
`https://jisho.org/search/${encodeURIComponent(term)}`
360+
} target="_blank">${term}<//> on Jisho.org
361+
<//>
357362
${termResults.value.edict2.map(renderEdictResult)}
358-
<h3>ENAMDICT<//>
363+
<h4 class="names-section">Names<//>
359364
${termResults.value.enamdict.map(renderEnamdictResult)}
360365
<//>
361366
`;

mecab-web/style.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,22 @@ nav a, nav a:visited, nav a:hover, nav a:active {
228228

229229
.hidden {
230230
display: none;
231+
}
232+
233+
.results-header {
234+
font-weight: bold;
235+
display: block;
236+
}
237+
238+
.jisho-lookup {
239+
font-size: 0.8em;
240+
display: block;
241+
margin-bottom: 1em;
242+
}
243+
244+
.names-section {
245+
margin-top: 2em;
246+
margin-bottom: 1em;
247+
font-weight: bold;
248+
display: block;
231249
}

0 commit comments

Comments
 (0)