2023-05-19 00:55:49 +02:00
|
|
|
#searchbox {
|
2023-03-07 00:42:28 +01:00
|
|
|
width: 100%;
|
|
|
|
height: var(--header-height);
|
|
|
|
|
|
|
|
.navbar-search:not(.expanded) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-search.expanded {
|
|
|
|
float: left;
|
|
|
|
overflow: hidden;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
width: calc(100% - 2px);
|
|
|
|
position: absolute;
|
|
|
|
|
2023-03-07 01:37:24 +01:00
|
|
|
@media (width < $md_min) {
|
2023-02-22 22:30:54 +01:00
|
|
|
width: calc(100% - 42px);
|
2023-03-07 01:37:24 +01:00
|
|
|
}
|
|
|
|
|
2023-03-07 01:21:31 +01:00
|
|
|
.search_close_button {
|
2023-03-07 00:42:28 +01:00
|
|
|
display: inline;
|
2022-05-30 02:42:28 +02:00
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.zulip-icon-close {
|
|
|
|
font-size: 15px;
|
2023-03-07 00:42:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-22 22:30:54 +01:00
|
|
|
.typeahead.dropdown-menu {
|
|
|
|
/* Match the typeahead's width to its parent container. */
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
@media (width < $md_min) {
|
|
|
|
margin-left: 40px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-07 00:42:28 +01:00
|
|
|
.input-append {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
width: max-content;
|
|
|
|
min-width: 100%;
|
|
|
|
|
2022-05-30 02:40:21 +02:00
|
|
|
.zulip-icon-search {
|
2023-03-07 00:42:28 +01:00
|
|
|
padding: 0;
|
|
|
|
font-size: 20px;
|
|
|
|
position: absolute;
|
|
|
|
left: 10px;
|
|
|
|
top: 10px;
|
|
|
|
z-index: 5;
|
2023-03-07 00:54:07 +01:00
|
|
|
|
|
|
|
@media (width < $sm_min) {
|
|
|
|
top: 5px;
|
|
|
|
}
|
2023-03-07 00:42:28 +01:00
|
|
|
}
|
|
|
|
|
2022-05-30 02:40:21 +02:00
|
|
|
.zulip-icon-search:not(.deactivated) {
|
2023-03-07 00:42:28 +01:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#search_query {
|
|
|
|
width: 100%;
|
|
|
|
font-size: 16px;
|
2023-05-23 21:41:34 +02:00
|
|
|
height: calc(var(--header-height) - 1px);
|
2023-05-24 18:28:30 +02:00
|
|
|
min-height: 30px;
|
2023-03-07 00:42:28 +01:00
|
|
|
padding: 0;
|
|
|
|
padding-right: 40px;
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
font-family: "Source Sans 3", sans-serif;
|
|
|
|
font-weight: 300;
|
|
|
|
line-height: var(--header-height);
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
2023-05-19 00:55:49 +02:00
|
|
|
padding-left: 35px;
|
2023-03-07 01:37:24 +01:00
|
|
|
|
|
|
|
@media (width < $sm_min) {
|
|
|
|
vertical-align: text-bottom;
|
|
|
|
}
|
2023-03-07 00:42:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#search_arrows:focus {
|
2023-03-20 22:08:47 +01:00
|
|
|
box-shadow: inset 0 0 0 2px hsl(204deg 20% 74%);
|
2023-03-07 00:42:28 +01:00
|
|
|
}
|
|
|
|
|
2023-03-07 01:21:31 +01:00
|
|
|
.search_close_button,
|
|
|
|
.search_close_button:disabled:hover {
|
2023-03-07 00:42:28 +01:00
|
|
|
position: absolute;
|
|
|
|
right: 35px;
|
|
|
|
top: 6px;
|
|
|
|
background: none;
|
|
|
|
border-radius: 0;
|
|
|
|
border: none;
|
|
|
|
height: 30px;
|
|
|
|
text-align: center;
|
|
|
|
padding: 4px;
|
|
|
|
color: inherit;
|
|
|
|
opacity: 0.5;
|
|
|
|
font-size: 18px;
|
|
|
|
box-shadow: none;
|
|
|
|
text-shadow: none;
|
|
|
|
z-index: 5;
|
|
|
|
}
|
|
|
|
|
2023-03-07 01:21:31 +01:00
|
|
|
.search_close_button {
|
2023-05-19 00:55:49 +02:00
|
|
|
right: 0;
|
|
|
|
|
2023-03-07 00:54:07 +01:00
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2023-03-07 00:42:28 +01:00
|
|
|
|
2023-03-07 00:54:07 +01:00
|
|
|
&:disabled {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (width < $sm_min) {
|
|
|
|
top: 0;
|
|
|
|
}
|
2023-03-07 00:42:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.search_icon {
|
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
text-decoration: none;
|
|
|
|
padding: 0 10px;
|
|
|
|
font-size: 20px;
|
|
|
|
z-index: 5;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search_arrows {
|
|
|
|
font-size: 90%;
|
|
|
|
letter-spacing: normal;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2023-03-07 01:03:29 +01:00
|
|
|
|
|
|
|
.typeahead-menu li a {
|
|
|
|
.search_list_item {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search_list_item .pill-container {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
}
|