2021-01-05 12:30:39 +01:00

282 lines
4.5 KiB
SCSS

// This file is part of the Indico plugins.
// Copyright (C) 2002 - 2021 CERN
//
// The Indico plugins are free software; you can redistribute
// them and/or modify them under the terms of the MIT License;
// see the LICENSE file for more details.
#search-advanced-help-tooltip {
display: none;
code {
font-size: 1.1em;
}
.field {
color: #8a8a45;
}
.negation {
color: #b00;
}
}
.search-container {
.search-public-warning {
float: right;
padding: 10px;
color: #f44;
}
.search-banner {
float: right;
margin-top: 10px;
& > span {
color: #777;
}
img {
vertical-align: middle;
border: 0;
}
}
.content {
form {
width: 400px;
#search-phrase {
width: 300px;
height: 20px;
font-size: 17px;
vertical-align: middle;
}
input[type='submit'] {
vertical-align: middle;
}
.toggle-advanced-options-container {
padding-top: 4px;
}
.advanced-options > table {
text-align: right;
}
}
}
h1 {
font-size: 2em;
color: #b14300;
font-weight: normal;
margin: 0;
padding: 0;
}
}
#category-search-form {
.search-box {
position: absolute;
right: 1.5em;
top: 50px;
border: none;
font-size: 13px;
}
.search-button {
float: right;
border-left: 1px solid #003042;
width: 28px;
height: 21px;
line-height: 21px;
cursor: pointer;
background: #444;
text-align: center;
color: #fafafa;
}
.search-controls {
width: auto;
border: 1px solid #003042;
height: 21px;
overflow: hidden;
background-color: white;
input {
border: 0;
font-weight: normal;
color: #333;
}
}
.search-field {
margin-left: 3px;
min-width: 150px;
width: auto;
height: 19px;
}
.extra-options {
border: 1px solid #888;
border-radius: 6px;
min-width: 275px;
white-space: nowrap;
width: 100%;
display: none;
position: absolute;
top: 23px;
right: 0;
background-color: white;
overflow: visible;
table {
width: auto;
}
table td:first-child {
padding-left: 10px;
}
input {
margin-left: 8px;
font-size: 12px;
width: 148px;
}
select {
margin-left: 8px;
font-size: 12px;
width: 148px;
}
td {
font-size: 12px;
color: #444;
}
.label {
text-align: center;
padding: 5px;
border-radius: 6px 6px 0 0;
background-color: #ececec;
font-style: italic;
border-bottom: 1px solid #aaa;
}
}
}
.search-tag {
max-width: 112px;
display: flex;
line-height: 13px;
vertical-align: middle;
padding: 2px 5px;
float: left;
-ms-user-select: none;
-o-user-select: none;
-webkit-user-select: none;
-moz-user-select: -moz-none;
user-select: none;
font-size: 11px;
overflow: hidden;
opacity: 0.6;
color: #000;
.where {
max-width: 100px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
float: left;
}
.cross {
font-weight: bold;
color: #566e89;
float: right;
cursor: pointer;
font-size: 10px;
margin-left: 4px;
line-height: 12px;
}
&.everywhere {
border: 1px solid #566e89;
text-shadow: 0 1px 0 #666;
background-color: #aaa;
cursor: default;
}
&.in-category {
border: 1px solid #566e89;
background-color: #8ea1b7;
text-shadow: 0 1px 0 #666;
cursor: default;
}
&.in-category-over {
border: 1px solid #566e89;
background-color: #8ea1b7;
cursor: pointer;
}
}
.suggestion-box {
border: 1px solid #888;
width: 220px;
overflow: hidden;
background-color: white;
.help {
background-color: #fff;
color: #555;
font-size: 12px;
font-style: italic;
margin: 0 0 0;
padding: 5px;
}
.other-results {
background-color: #fff;
color: #777;
font-size: 12px;
font-style: italic;
text-align: center;
margin-top: 5px;
margin-bottom: 3px;
}
ul {
background-color: #fff;
padding: 3px;
margin: 0 0 0 0;
li {
list-style-type: none;
padding: 3px;
border-top: 1px solid #ddd;
cursor: pointer;
&.selected {
background-color: #ececec;
}
.title {
color: #0b63a5;
font-size: 12px;
}
.highlight {
font-weight: bold;
}
.path {
color: #444;
font-size: 9px;
}
}
}
}