mirror of
https://github.com/wekan/wekan.git
synced 2026-11-08 11:25:19 -05:00
The global-search button hardcoded belize #216694 (inline !important styles + .board-color-belize CSS), ignoring the theme. Make it a .primary type="submit" button (safe: the search form has onsubmit="return false") so it uses the theme override colour via the existing button[type=submit].primary rules (default blue, or the board/global theme), and remove the hardcoded belize styles.
144 lines
2.9 KiB
CSS
144 lines
2.9 KiB
CSS
.global-search-board-wrapper {
|
|
border-radius: 8px;
|
|
min-width: 400px;
|
|
border-width: 8px;
|
|
border-color: #808080;
|
|
border-style: solid;
|
|
margin-bottom: 2rem;
|
|
margin-inline-end: auto;
|
|
margin-inline-start: auto;
|
|
}
|
|
.global-search-board-title {
|
|
font-size: 1.4rem;
|
|
font-weight: bold;
|
|
padding: 0.5rem;
|
|
background-color: #808080;
|
|
color: #fff;
|
|
}
|
|
.global-search-swimlane-title {
|
|
font-size: 1.1rem;
|
|
font-weight: bold;
|
|
padding: 0.5rem;
|
|
padding-bottom: 0.4rem;
|
|
margin-top: 0;
|
|
margin-bottom: 0.5rem;
|
|
text-align: center;
|
|
}
|
|
.swimlane-default-color {
|
|
background-color: #d3d3d3;
|
|
}
|
|
.global-search-list-title {
|
|
font-weight: bold;
|
|
font-size: 1.1rem;
|
|
text-align: center;
|
|
margin-bottom: 0.7rem;
|
|
}
|
|
.global-search-list-wrapper {
|
|
margin: 1rem;
|
|
border-radius: 5px;
|
|
padding: 1.5rem;
|
|
padding-top: 0.75rem;
|
|
display: inline-block;
|
|
min-width: 250px;
|
|
max-width: 350px;
|
|
}
|
|
.global-search-card-wrapper {
|
|
margin-top: 0;
|
|
margin-bottom: 10px;
|
|
}
|
|
.global-search-results-list-wrapper {
|
|
max-width: 500px;
|
|
margin-inline-end: auto;
|
|
margin-inline-start: auto;
|
|
}
|
|
.global-search-field-name {
|
|
font-weight: bold;
|
|
}
|
|
.global-search-context {
|
|
display: inline-block;
|
|
}
|
|
.global-search-context-separator {
|
|
font-weight: bold;
|
|
}
|
|
.global-search-context-list {
|
|
margin-bottom: 0.7rem;
|
|
}
|
|
.global-search-error-messages {
|
|
color: #8b0000;
|
|
}
|
|
.global-search-page {
|
|
width: 40%;
|
|
min-width: 400px;
|
|
margin-inline-end: auto;
|
|
margin-inline-start: auto;
|
|
line-height: 150%;
|
|
}
|
|
.global-search-page h1 {
|
|
margin-top: 2rem;
|
|
}
|
|
.global-search-page h2 {
|
|
margin-top: 1rem;
|
|
}
|
|
.global-search-query-input {
|
|
width: 90% !important;
|
|
margin-inline-end: auto;
|
|
margin-inline-start: auto;
|
|
}
|
|
.js-new-search {
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
/* The new-search button uses the .primary button style, so it follows the theme
|
|
override colour (default blue #005377, or the board/global theme). The old
|
|
hardcoded belize (#216694) rules were removed. */
|
|
.global-search-operator {
|
|
font-family: Courier;
|
|
}
|
|
.global-search-value {
|
|
font-family: Courier;
|
|
font-style: italic;
|
|
}
|
|
code {
|
|
color: #000;
|
|
background-color: #d3d3d3;
|
|
padding: 0.1rem !important;
|
|
font-size: 0.8rem !important;
|
|
}
|
|
.list-title {
|
|
background-color: #a9a9a9;
|
|
}
|
|
.global-search-footer {
|
|
border: none;
|
|
width: 100%;
|
|
}
|
|
.global-search-next-page {
|
|
border: none;
|
|
text-align: end;
|
|
}
|
|
.global-search-previous-page {
|
|
border: none;
|
|
text-align: start;
|
|
}
|
|
.global-search-instructions li {
|
|
margin-bottom: 0.3rem;
|
|
}
|
|
|
|
/* #6034 (MVP): drag-and-drop search results into board columns. */
|
|
.global-search-results-list .result-card-wrapper {
|
|
cursor: grab;
|
|
}
|
|
.global-search-results-list .result-card-wrapper:active {
|
|
cursor: grabbing;
|
|
}
|
|
.global-search-result-drag-helper {
|
|
z-index: 1000;
|
|
opacity: 0.85;
|
|
pointer-events: none;
|
|
list-style: none;
|
|
}
|
|
.global-search-drop-hover {
|
|
outline: 2px dashed #216694;
|
|
outline-offset: -2px;
|
|
background-color: rgba(33, 102, 148, 0.08);
|
|
}
|