Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Extract Bootstrap Typeahead CSS to its own file.
Tim Abbott56a884e0bee3
diff --git a/web/src/bundles/app.ts b/web/src/bundles/app.tsindex 82fa5c785f3..fbebb5665ae 100644--- a/web/src/bundles/app.ts+++ b/web/src/bundles/app.ts@@ -26,6 +26,7 @@ import "katex/dist/katex.css";import "flatpickr/dist/flatpickr.css";import "flatpickr/dist/plugins/confirmDate/confirmDate.css";import "../../third/bootstrap/css/bootstrap.app.css";+import "../../third/bootstrap-typeahead/typeahead.css";import "../../styles/tooltips.css";import "../../styles/components.css";import "../../styles/app_components.css";diff --git a/web/third/bootstrap-typeahead/typeahead.css b/web/third/bootstrap-typeahead/typeahead.cssnew file mode 100644index 00000000000..6257071a240--- /dev/null+++ b/web/third/bootstrap-typeahead/typeahead.css@@ -0,0 +1,90 @@+/* CSS for Bootstrap typeahead */++.dropdown-menu {+ position: absolute;+ top: 100%;+ left: 0;+ z-index: 1000;+ display: none;+ float: left;+ min-width: 160px;+ padding: 5px 0;+ margin: 2px 0 0;+ list-style: none;+ background-color: #ffffff;+ border: 1px solid #ccc;+ border: 1px solid rgba(0, 0, 0, 0.2);+ -webkit-border-radius: 6px;+ -moz-border-radius: 6px;+ border-radius: 6px;+ -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);+ -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);+ -webkit-background-clip: padding-box;+ -moz-background-clip: padding;+ background-clip: padding-box;+}+.dropdown-menu .divider {+ height: 1px;+ margin: 9px 1px;+ overflow: hidden;+ background-color: #e5e5e5;+ border-bottom: 1px solid #ffffff;+}+.dropdown-menu > li > a {+ display: block;+ padding: 3px 20px;+ clear: both;+ font-weight: normal;+ line-height: 20px;+ color: #333333;+ white-space: nowrap;+}+.dropdown-menu > li > a:hover,+.dropdown-menu > li > a:focus {+ text-decoration: none;+ color: #ffffff;+ background-color: #0081c2;+ background-image: -moz-linear-gradient(top, #0088cc, #0077b3);+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));+ background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);+ background-image: -o-linear-gradient(top, #0088cc, #0077b3);+ background-image: linear-gradient(to bottom, #0088cc, #0077b3);+ background-repeat: repeat-x;+}+.dropdown-menu > .active > a,+.dropdown-menu > .active > a:hover,+.dropdown-menu > .active > a:focus {+ color: #ffffff;+ text-decoration: none;+ outline: 0;+ background-color: #0081c2;+ background-image: -moz-linear-gradient(top, #0088cc, #0077b3);+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));+ background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);+ background-image: -o-linear-gradient(top, #0088cc, #0077b3);+ background-image: linear-gradient(to bottom, #0088cc, #0077b3);+ background-repeat: repeat-x;+}+.dropdown-menu > .disabled > a,+.dropdown-menu > .disabled > a:hover,+.dropdown-menu > .disabled > a:focus {+ color: #999999;+}+.dropdown-menu > .disabled > a:hover,+.dropdown-menu > .disabled > a:focus {+ text-decoration: none;+ background-color: transparent;+ background-image: none;+ cursor: default;+}+.open > .dropdown-menu {+ display: block;+}+.typeahead {+ z-index: 1051;+ margin-top: 2px;+ -webkit-border-radius: 4px;+ -moz-border-radius: 4px;+ border-radius: 4px;+}diff --git a/web/third/bootstrap/css/bootstrap.app.css b/web/third/bootstrap/css/bootstrap.app.cssindex 2b22f4f5b3b..6cdf7c519af 100644--- a/web/third/bootstrap/css/bootstrap.app.css+++ b/web/third/bootstrap/css/bootstrap.app.css@@ -349,94 +349,6 @@ input:focus:invalid:focus {.open .dropdown-toggle {outline: 0;}-.dropdown-menu {- position: absolute;- top: 100%;- left: 0;- z-index: 1000;- display: none;- float: left;- min-width: 160px;- padding: 5px 0;- margin: 2px 0 0;- list-style: none;- background-color: #ffffff;- border: 1px solid #ccc;- border: 1px solid rgba(0, 0, 0, 0.2);- -webkit-border-radius: 6px;- -moz-border-radius: 6px;- border-radius: 6px;- -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);- -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);- -webkit-background-clip: padding-box;- -moz-background-clip: padding;- background-clip: padding-box;-}-.dropdown-menu .divider {- height: 1px;- margin: 9px 1px;- overflow: hidden;- background-color: #e5e5e5;- border-bottom: 1px solid #ffffff;-}-.dropdown-menu > li > a {- display: block;- padding: 3px 20px;- clear: both;- font-weight: normal;- line-height: 20px;- color: #333333;- white-space: nowrap;-}-.dropdown-menu > li > a:hover,-.dropdown-menu > li > a:focus {- text-decoration: none;- color: #ffffff;- background-color: #0081c2;- background-image: -moz-linear-gradient(top, #0088cc, #0077b3);- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));- background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);- background-image: -o-linear-gradient(top, #0088cc, #0077b3);- background-image: linear-gradient(to bottom, #0088cc, #0077b3);- background-repeat: repeat-x;-}-.dropdown-menu > .active > a,-.dropdown-menu > .active > a:hover,-.dropdown-menu > .active > a:focus {- color: #ffffff;- text-decoration: none;- outline: 0;- background-color: #0081c2;- background-image: -moz-linear-gradient(top, #0088cc, #0077b3);- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));- background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);- background-image: -o-linear-gradient(top, #0088cc, #0077b3);- background-image: linear-gradient(to bottom, #0088cc, #0077b3);- background-repeat: repeat-x;-}-.dropdown-menu > .disabled > a,-.dropdown-menu > .disabled > a:hover,-.dropdown-menu > .disabled > a:focus {- color: #999999;-}-.dropdown-menu > .disabled > a:hover,-.dropdown-menu > .disabled > a:focus {- text-decoration: none;- background-color: transparent;- background-image: none;- cursor: default;-}-.open > .dropdown-menu {- display: block;-}-.typeahead {- z-index: 1051;- margin-top: 2px;- -webkit-border-radius: 4px;- -moz-border-radius: 4px;- border-radius: 4px;-}.close {float: right;font-size: 20px;