Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gethugothemes/dot-hugo-documentation-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorsomrat <monnaf37@gmail.com>2020-04-05 09:48:34 +0300
committersomrat <monnaf37@gmail.com>2020-04-05 09:48:34 +0300
commit075c31bfbd277a419bd25d4976c9883908f9a91b (patch)
treeb036e242054b04cff4b7390a5e5f72fcb1311488 /assets
parentb74368d4d3c6a3cd8966662519a9931fb78ed713 (diff)
modified search style
Diffstat (limited to 'assets')
-rw-r--r--assets/css/style.css58
-rw-r--r--assets/js/script.js14
2 files changed, 52 insertions, 20 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index 92b56d4..efb7b50 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -105,7 +105,7 @@ h6,
margin-top: -5px;
}
-.overflow-hidden{
+.overflow-hidden {
overflow: hidden !important;
}
@@ -431,6 +431,10 @@ header.sticky-top {
color: var(--text-color-dark);
}
+.banner {
+ overflow: hidden;
+}
+
.banner p {
font-size: 20px;
opacity: .8;
@@ -467,25 +471,15 @@ header.sticky-top {
.ui-menu {
background: var(--white-color);
- padding: 20px;
+ padding: 5px 20px 20px;
right: 0 !important;
max-height: 200px;
overflow: hidden;
- border-radius: 6px;
+ border-radius: 0 0 25px 25px;
z-index: 9999;
- box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
+ box-shadow: 0px 13px 20px 0px rgba(0, 0, 0, .07)
}
-.ui-menu::before {
- position: absolute;
- content: "";
- width: 100%;
- height: 10px;
- background: #fff;
- left: 0;
- bottom: 0;
- z-index: 999;
-}
@media (max-width: 575px) {
.ui-menu {
@@ -507,7 +501,7 @@ header.sticky-top {
@media (min-width: 992px) {
.ui-menu {
- max-width: 605px !important;
+ max-width: 610px !important;
}
}
@@ -517,17 +511,25 @@ header.sticky-top {
}
}
+.ui-menu-item a {
+ color: var(--text-color);
+ padding: 8px 0;
+ font-size: 15px;
+}
+
+.ui-menu-item a:hover{
+ color: var(--primary-color);
+}
+
.ui-menu-item:not(:last-child) {
- margin-bottom: 5px;
- padding-bottom: 5px;
border-bottom: 1px solid #e8e8e8;
}
-.ui-menu-item *{
+.ui-menu-item * {
display: none;
}
-.ui-menu-item .ui-corner-all{
+.ui-menu-item .ui-corner-all {
display: block;
}
@@ -535,7 +537,7 @@ header.sticky-top {
/* /navigation */
.form-control {
height: 50px;
- border-radius: 30px;
+ border-radius: 25px;
border: 0;
padding: 0 20px;
}
@@ -912,3 +914,19 @@ code {
left: -15px;
top: -3px;
}
+
+.ui-autocomplete-input {
+ border-bottom: 1px solid rgb(212, 212, 212) !important;
+}
+
+.ui-autocomplete-input.active {
+ border-bottom-left-radius: 0;
+ border-bottom-right-radius: 0;
+}
+
+.search-icon {
+ position: absolute;
+ right: 20px;
+ top: 18px;
+ font-size: 14px;
+} \ No newline at end of file
diff --git a/assets/js/script.js b/assets/js/script.js
index ca690f7..e8e111e 100644
--- a/assets/js/script.js
+++ b/assets/js/script.js
@@ -113,4 +113,18 @@
tabPane.addClass('active');
});
+
+
+ // search
+ $('#search').keyup(function () {
+ if (this.value) {
+ $(this).addClass('active')
+ } else {
+ $(this).removeClass('active')
+ }
+ })
+ $('#search').focusout(function () {
+ $(this).removeClass('active')
+ })
+
})(jQuery); \ No newline at end of file