mirror of
https://github.com/4cuck/teapawt.git
synced 2026-10-27 14:04:35 +00:00
261 lines
5.3 KiB
CSS
261 lines
5.3 KiB
CSS
.search-title {
|
|
font-weight: 600;
|
|
display: inline-block;
|
|
margin-top: 4px;
|
|
color: var(--tp-on-surface);
|
|
}
|
|
|
|
.search-field {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center; /* add this */
|
|
}
|
|
|
|
.search-field button {
|
|
margin: 0;
|
|
padding: 8px 16px;
|
|
height: 36px;
|
|
/* display: flex; */
|
|
background-color: var(--tp-primary);
|
|
color: var(--tp-on-primary);
|
|
border: none;
|
|
border-radius: var(--shape-md);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
/* transition: all 0.15s ease;
|
|
box-shadow: var(--elevation-1); */
|
|
}
|
|
|
|
.search-field button:hover {
|
|
background-color: var(--tp-on-primary-container);
|
|
}
|
|
|
|
.search-field .pref-input {
|
|
margin: 0;
|
|
flex-grow: 1;
|
|
height: auto;
|
|
}
|
|
|
|
.search-field input[type="text"],
|
|
.search-field input[type="number"] {
|
|
height: 36px;
|
|
width: 100%;
|
|
background-color: var(--tp-surface-container-highest);
|
|
border: 1px solid transparent;
|
|
padding: 0 12px;
|
|
color: var(--tp-on-surface);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.search-field input[type="text"]:hover,
|
|
.search-field input[type="number"]:hover {
|
|
background-color: var(--tp-surface-container-high);
|
|
}
|
|
|
|
.search-field input[type="text"]:focus,
|
|
.search-field input[type="number"]:focus {
|
|
background-color: var(--tp-surface-container-highest);
|
|
border-color: var(--tp-primary);
|
|
outline: none;
|
|
}
|
|
|
|
.search-field > label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
/* background-color: var(--tp-surface-container); */
|
|
color: var(--tp-on-surface-variant);
|
|
border: 1px solid var(--tp-outline-variant);
|
|
padding: 4px 4px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
border-radius: var(--shape-md);
|
|
font-weight: 500;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.search-field > label:hover {
|
|
border-color: var(--tp-outline);
|
|
background-color: var(--tp-surface-container-high);
|
|
}
|
|
|
|
.search-field > label:active {
|
|
background-color: var(--tp-surface-container-highest);
|
|
}
|
|
|
|
/* create-toggle(search-panel, 380px) */
|
|
.search-field #search-panel-toggle {
|
|
display: none;
|
|
}
|
|
|
|
.search-field #search-panel-toggle:checked ~ .search-panel {
|
|
max-height: 380px;
|
|
}
|
|
|
|
.search-field #search-panel-toggle:checked ~ label .icon-down:before {
|
|
transform: rotate(180deg) translateY(-1px);
|
|
}
|
|
|
|
.search-panel {
|
|
width: 100%;
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.4s ease;
|
|
flex-grow: 1;
|
|
font-weight: initial;
|
|
/* text-align: left; */
|
|
background-color: var(--tp-surface-container);
|
|
border-radius: var(--shape-lg);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.search-panel .checkbox-container {
|
|
display: inline;
|
|
padding-right: unset;
|
|
margin-bottom: 5px;
|
|
margin-left: 23px;
|
|
}
|
|
|
|
.search-panel .checkbox {
|
|
right: unset;
|
|
left: -22px;
|
|
line-height: 1.6em;
|
|
background-color: var(--tp-surface-container-highest);
|
|
border: 2px solid var(--tp-outline);
|
|
border-radius: var(--shape-xs);
|
|
}
|
|
|
|
|
|
.search-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
line-height: unset;
|
|
padding: 16px;
|
|
gap: 12px;
|
|
}
|
|
|
|
.search-row > div {
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
}
|
|
|
|
.search-row input {
|
|
height: 36px;
|
|
background-color: var(--tp-surface-container-highest);
|
|
border: 1px solid transparent;
|
|
border-radius: var(--shape-sm);
|
|
padding: 0 12px;
|
|
color: var(--tp-on-surface);
|
|
font-size: 14px;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.search-row input:hover {
|
|
background-color: var(--tp-surface-container-high);
|
|
}
|
|
|
|
.search-row input:focus {
|
|
background-color: var(--tp-surface-container-highest);
|
|
border-color: var(--tp-primary);
|
|
outline: none;
|
|
}
|
|
|
|
.search-row .pref-input {
|
|
display: block;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
.search-row .pref-input input {
|
|
height: 36px;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.search-toggles {
|
|
flex-grow: 1;
|
|
display: grid;
|
|
grid-template-columns: repeat(5, auto);
|
|
grid-column-gap: 10px;
|
|
}
|
|
|
|
/* search-resize expansions for .profile-tabs context */
|
|
@media (max-width: 820px) {
|
|
.profile-tabs .search-toggles {
|
|
grid-template-columns: repeat(5, auto);
|
|
}
|
|
|
|
.profile-tabs #search-panel-toggle:checked ~ .search-panel {
|
|
max-height: 380px !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 715px) {
|
|
.profile-tabs .search-toggles {
|
|
grid-template-columns: repeat(4, auto);
|
|
}
|
|
|
|
.profile-tabs #search-panel-toggle:checked ~ .search-panel {
|
|
max-height: 380px !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.profile-tabs .search-toggles {
|
|
grid-template-columns: repeat(5, auto);
|
|
}
|
|
|
|
.profile-tabs #search-panel-toggle:checked ~ .search-panel {
|
|
max-height: 380px !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 485px) {
|
|
.profile-tabs .search-toggles {
|
|
grid-template-columns: repeat(4, auto);
|
|
}
|
|
|
|
.profile-tabs #search-panel-toggle:checked ~ .search-panel {
|
|
max-height: 380px !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 410px) {
|
|
.profile-tabs .search-toggles {
|
|
grid-template-columns: repeat(3, auto);
|
|
}
|
|
|
|
.profile-tabs #search-panel-toggle:checked ~ .search-panel {
|
|
max-height: 380px !important;
|
|
}
|
|
}
|
|
|
|
/* search-resize expansions for global context */
|
|
@media (max-width: 700px) {
|
|
.search-toggles {
|
|
grid-template-columns: repeat(5, auto);
|
|
}
|
|
|
|
#search-panel-toggle:checked ~ .search-panel {
|
|
max-height: 380px !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 485px) {
|
|
.search-toggles {
|
|
grid-template-columns: repeat(4, auto);
|
|
}
|
|
|
|
#search-panel-toggle:checked ~ .search-panel {
|
|
max-height: 380px !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 410px) {
|
|
.search-toggles {
|
|
grid-template-columns: repeat(3, auto);
|
|
}
|
|
|
|
#search-panel-toggle:checked ~ .search-panel {
|
|
max-height: 380px !important;
|
|
}
|
|
}
|