aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Priyansh <[email protected]>2020-08-31 01:43:52 +0530
committerKumar Priyansh <[email protected]>2020-08-31 01:43:52 +0530
commite8b65fb08de04cab501517581c59b76e152ed72c (patch)
tree80097e3bee0ac95e4fa0d7a06267d8d490414412
parent276016cb8582cdee63d10f4e7e6dfe2ba2af6a30 (diff)
downloaddictionary-e8b65fb08de04cab501517581c59b76e152ed72c.tar.xz
dictionary-e8b65fb08de04cab501517581c59b76e152ed72c.zip
Added result divider
-rw-r--r--app/css/style.css7
-rw-r--r--app/scripts/search.js4
2 files changed, 11 insertions, 0 deletions
diff --git a/app/css/style.css b/app/css/style.css
index 1b86840..bb3e5c2 100644
--- a/app/css/style.css
+++ b/app/css/style.css
@@ -87,3 +87,10 @@ body {
.synonymLink:hover {
text-decoration: underline;
}
+
+.divider {
+ background-color: #fff;
+ width: 100%;
+ height: 2px;
+ margin: 30px auto;
+}
diff --git a/app/scripts/search.js b/app/scripts/search.js
index 76dc8f8..c521311 100644
--- a/app/scripts/search.js
+++ b/app/scripts/search.js
@@ -78,6 +78,10 @@ function searchForWord(word) {
currentExample.className = 'example';
results.appendChild(currentExample);
});
+
+ const divider = document.createElement('div');
+ divider.className = 'divider';
+ results.appendChild(divider);
});
});
}