summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/less/Search.less
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-plugin-theme-default/less/Search.less')
-rw-r--r--packages/gitbook-plugin-theme-default/less/Search.less38
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-theme-default/less/Search.less b/packages/gitbook-plugin-theme-default/less/Search.less
new file mode 100644
index 0000000..faa871f
--- /dev/null
+++ b/packages/gitbook-plugin-theme-default/less/Search.less
@@ -0,0 +1,38 @@
+.Search-Input {
+ padding: 6px;
+ background: transparent;
+ transition: top 0.5s ease;
+ background: #fff;
+ border-bottom: 1px solid @sidebar-border-color;
+ border-top: 1px solid @sidebar-border-color;
+ margin-bottom: 10px;
+
+ // Move top to hide top border
+ margin-top: -1px;
+
+ input, input:focus, input:hover {
+ width: 90%; // 10% room for clear input X
+ background: transparent;
+ border: 1px solid transparent;
+ box-shadow: none;
+ outline: none;
+ line-height: 22px;
+ padding: 7px 7px;
+ color: inherit;
+ }
+}
+
+.Search-Clear {
+ width: 10%;
+ display: inline-block;
+ text-align: center;
+ font-size: 14px;
+ line-height: 22px;
+ color: @search-clear-color;
+ cursor: pointer;
+}
+
+
+.Search-MatchSpan {
+ background: @search-highlight-color;
+}