Skip to content

Commit b922687

Browse files
committed
Adding home button; transform for icons
1 parent caec0e0 commit b922687

2 files changed

Lines changed: 29 additions & 5 deletions

File tree

wiktionary_pron/css/style.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ span.ipa {
111111
margin-right: 5px;
112112
}
113113

114-
115114
.error {
116115
color: red;
117116
}
@@ -215,10 +214,18 @@ body.dark_mode i.icon-sun {
215214
color: #fefeac;
216215
}
217216

217+
body.dark_mode i.icon-home {
218+
color: #ffffff;
219+
}
220+
218221
body i.icon-moon {
219222
color: black;
220223
}
221224

225+
body i.icon-home {
226+
color: black;
227+
}
228+
222229
#help_button {
223230
color: black;
224231
padding: 3px 15px 5px 15px;
@@ -474,6 +481,7 @@ i svg {
474481
--sun-icon: url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!--%20Uploaded%20to%3A%20SVG%20Repo%2C%20www.svgrepo.com%2C%20Generator%3A%20SVG%20Repo%20Mixer%20Tools%20--%3E%0A%3Csvg%20fill%3D%22%23000000%22%20width%3D%22800px%22%20height%3D%22800px%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m24%2014.358-3.04-2.965%202.608-3.348-4.114-1.051.584-4.204-4.088%201.142-1.6-3.932-2.965%203.04-3.348-2.608-1.051%204.114-4.204-.584%201.142%204.087-3.932%201.596%203.04%202.966-2.608%203.348%204.114%201.051-.59%204.204%204.087-1.142%201.6%203.932%202.965-3.04%203.348%202.608%201.051-4.114%204.205.59-1.142-4.087zm-9.719%204.302c-.677.238-1.457.376-2.269.376-3.888%200-7.04-3.152-7.04-7.04s3.152-7.04%207.04-7.04c3.073%200%205.686%201.969%206.647%204.714l.015.049c.24.679.378%201.461.378%202.276%200%203.076-1.973%205.691-4.722%206.649l-.049.015z%22%2F%3E%3C%2Fsvg%3E");
475482
--icon-spinner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M304 48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zm0 416c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM48 304c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48zm464-48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM142.9 437A48 48 0 1 0 75 369.1a48 48 0 1 0 67.9 67.9zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1a48 48 0 1 0-67.9 67.9z'/%3E%3C/svg%3E");
476483
--volume-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20384%20512%22%3E%3C!--!Font%20Awesome%20Free%206.7.2%20by%20%40fontawesome%20-%20https%3A%2F%2Ffontawesome.com%20License%20-%20https%3A%2F%2Ffontawesome.com%2Flicense%2Ffree%20Copyright%202025%20Fonticons%2C%20Inc.--%3E%3Cpath%20d%3D%22M215%2072L126.1%20161H24c-13.3%200-24%2010.7-24%2024v144c0%2013.3%2010.7%2024%2024%2024h102.1l89%2089c15%2015%2041%204.5%2041-17V89c0-21.5-26-32-41-17zm123.2%20108.1c-11.6-6.3-26.2-2.2-32.6%209.5-6.4%2011.6-2.2%2026.2%209.5%2032.6C328%20229.3%20336%20242.6%20336%20257c0%2014.4-8%2027.7-20.9%2034.8-11.6%206.4-15.8%2021-9.5%2032.6%206.4%2011.7%2021.1%2015.8%2032.6%209.5%2028.2-15.6%2045.8-45%2045.8-76.9s-17.5-61.3-45.8-76.9z%22%2F%3E%3C%2Fsvg%3E");
484+
--home-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%3E%3C!--!Font%20Awesome%20Free%20v7.2.0%20by%20%40fontawesome%20-%20https%3A%2F%2Ffontawesome.com%20License%20-%20https%3A%2F%2Ffontawesome.com%2Flicense%2Ffree%20Copyright%202026%20Fonticons%2C%20Inc.--%3E%3Cpath%20d%3D%22M240%206.1c9.1-8.2%2022.9-8.2%2032%200l232%20208c9.9%208.8%2010.7%2024%201.8%2033.9s-24%2010.7-33.9%201.8l-8-7.2%200%20205.3c0%2035.3-28.7%2064-64%2064l-288%200c-35.3%200-64-28.7-64-64l0-205.3-8%207.2c-9.9%208.8-25%208-33.9-1.8s-8-25%201.8-33.9L240%206.1zm16%2050.1L96%20199.7%2096%20448c0%208.8%207.2%2016%2016%2016l48%200%200-104c0-39.8%2032.2-72%2072-72l48%200c39.8%200%2072%2032.2%2072%2072l0%20104%2048%200c8.8%200%2016-7.2%2016-16l0-248.3-160-143.4zM208%20464l96%200%200-104c0-13.3-10.7-24-24-24l-48%200c-13.3%200-24%2010.7-24%2024l0%20104z%22%2F%3E%3C%2Fsvg%3E")
477485
}
478486

479487
/* Base icon class with common styles */
@@ -490,8 +498,16 @@ i svg {
490498
mask-size: contain;
491499
background-color: currentColor;
492500
margin-left: 0.2em;
501+
transition: transform 0.3s ease, opacity 0.3s ease;
502+
opacity: 0.8;
493503
}
494504

505+
a .icon:hover {
506+
transform: scale(1.1);
507+
opacity: 1;
508+
}
509+
510+
495511
/* Individual icon classes */
496512
.icon-pdf {
497513
-webkit-mask-image: var(--pdf-icon);
@@ -505,6 +521,12 @@ i svg {
505521

506522
}
507523

524+
.icon-home {
525+
-webkit-mask-image: var(--home-icon);
526+
mask-image: var(--home-icon);
527+
528+
}
529+
508530

509531
button[disabled] .icon {
510532
opacity: 0.7;

wiktionary_pron/index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
<meta content="Online IPA Latin German French Spanish Portuguese Czech Ancient Greek Polish Armenian Phonetics Transcription"
2222
name="Keywords"/>
2323
<meta content="Free Online Rule-based IPA phonetic/phonemic transcription engine, which uses Wiktionary Lua pronunciation modules.
24-
Latin, German, French, Spanish, Ancient Greek, Polish, Armenian, Czech, Russian, Belorussian, Ukrainian, Bulgarian, Icelandic, Lithuanian languages are fully supported. Portuguese require vowels' stressing for proper functioning."
24+
Latin, German, French, Spanish, Ancient Greek, Polish, Armenian, Czech, Russian, Belorussian, Ukrainian, Bulgarian, Icelandic, Lithuanian, Mongolian languages are fully supported. Portuguese require vowels' stressing for proper functioning."
2525
name="description">
2626

27+
2728
<script src="scripts/lib/localforage.min.js"></script>
2829

2930
<link href="https://fonts.googleapis.com" rel="preconnect"/>
@@ -40,9 +41,9 @@
4041
<div id="content">
4142
<br/>
4243
<div id="header">
43-
<p style="visibility: hidden">
44-
<i class="icon icon-moon"></i>
45-
</p>
44+
<a href="../" id="home">
45+
<i class="icon icon-home"></i>
46+
</a>
4647
<h1 style="flex: 1;">Online IPA Converter</h1>
4748
<a href="#" id="dark_mode">
4849
<i class="icon icon-moon"></i>
@@ -176,6 +177,7 @@ <h1 style="flex: 1;">Online IPA Converter</h1>
176177
</div>
177178
</form>
178179
<hr>
180+
179181
<table>
180182
<tbody id="result"></tbody>
181183

0 commit comments

Comments
 (0)