mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00

The search tabs are actually labels for checkboxes because multiple can be selected. To still make them work like tabs the plugin search_on_category_select adds a JavaScript that submits the form on label click. The problem with this is that when the plugin is disabled (e.g. because JavaScript is disabled or a user chose to disable it in the settings), then the tabs still look like tabs but act as checkboxes (which is very confusing). This commit changes fixes this so that the checkboxes are visible by default. The next commit makes the plugin hide them again. This way they are visible when the plugin is disabled ... as they should be.
46 lines
864 B
Text
46 lines
864 B
Text
#advanced-search-container {
|
|
display: none;
|
|
text-align: center;
|
|
margin-bottom: 1rem;
|
|
clear: both;
|
|
|
|
.category, .input-group-addon {
|
|
font-size: 1.3rem;
|
|
font-weight:normal;
|
|
background-color: white;
|
|
border: #DDD 1px solid;
|
|
border-right: none;
|
|
color: #333;
|
|
}
|
|
|
|
.category:last-child, .input-group-addon:last-child {
|
|
border-right: #DDD 1px solid;
|
|
}
|
|
|
|
input[type="radio"] {
|
|
display: none;
|
|
}
|
|
|
|
input[type="radio"]:checked + label {
|
|
color: black;
|
|
font-weight: bold;
|
|
background-color: #EEE;
|
|
}
|
|
}
|
|
|
|
#check-advanced {
|
|
display: none;
|
|
}
|
|
|
|
#check-advanced:checked ~ #advanced-search-container {
|
|
display: block;
|
|
}
|
|
|
|
.advanced {
|
|
padding: 0;
|
|
margin-top: 0.3rem;
|
|
text-align: right;
|
|
label, select {
|
|
cursor: pointer;
|
|
}
|
|
}
|