sudo-archive/src2/components/InputBox.css

96 lines
1.8 KiB
CSS
Raw Normal View History

2021-07-13 22:31:37 +00:00
.inputBar {
width: 100%;
display: flex;
height: 3rem;
}
.inputBar > *:first-child{
border-radius: 0 !important;
border-top-left-radius: 10px !important;
border-bottom-left-radius: 10px !important;
}
.inputBar > *:last-child {
border-radius: 0 !important;
border-top-right-radius: 10px !important;
border-bottom-right-radius: 10px !important;
}
.inputTextBox {
border-width: 0;
outline: none;
2021-07-14 22:09:42 +00:00
background-color: var(--content);
color: var(--text);
2021-07-13 22:31:37 +00:00
padding: .7rem 1.5rem;
height: auto;
flex: 1;
2021-07-13 22:57:31 +00:00
box-sizing: border-box;
2021-07-13 22:31:37 +00:00
}
.inputSearchButton {
2021-07-14 22:09:42 +00:00
background-color: var(--button);
2021-07-13 22:31:37 +00:00
border-width: 0;
color: var(--button-text, var(--text));
2021-07-13 22:31:37 +00:00
padding: .5rem 2.1rem;
font-weight: bold;
2021-07-14 15:15:25 +00:00
cursor: pointer;
}
2021-07-13 22:31:37 +00:00
.inputSearchButton:hover {
2021-07-14 22:09:42 +00:00
background-color: var(--button-hover);
2021-07-13 22:31:37 +00:00
}
.inputTextBox:hover {
2021-07-14 22:09:42 +00:00
background-color: var(--content-hover);
2021-07-14 16:31:35 +00:00
}
2021-07-13 22:31:37 +00:00
.inputSearchButton .text > .arrow {
opacity: 0;
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
position: absolute;
right: -0.8rem;
bottom: -0.2rem;
}
2021-07-14 22:09:42 +00:00
2021-07-13 22:31:37 +00:00
.inputSearchButton .text {
display: flex;
position: relative;
transition: transform 0.2s ease-in-out;
}
2021-07-14 22:09:42 +00:00
2021-07-13 22:31:37 +00:00
.inputSearchButton:hover .text > .arrow {
transform: translateX(8px);
opacity: 1;
}
.inputSearchButton:hover .text {
transform: translateX(-10px);
}
.inputSearchButton:active {
2021-07-14 22:09:42 +00:00
background-color: var(--button-active);
2021-07-13 22:31:37 +00:00
}
2021-07-13 22:57:31 +00:00
@media screen and (max-width: 700px) {
.inputBar {
flex-direction: column;
align-items: flex-start;
height: auto;
}
.inputBar > *:nth-child(n) {
border-radius: 10px !important;
}
.inputSearchButton {
margin-top: .5rem;
2021-07-14 15:15:25 +00:00
align-self: center;
2021-07-13 22:57:31 +00:00
}
.inputTextBox {
2021-07-14 16:31:35 +00:00
margin-top: .5rem;
2021-07-13 22:57:31 +00:00
width: 100%;
}
}