1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-21 14:47:41 +01:00
smov/src/components/InputBox.css

96 lines
1.8 KiB
CSS
Raw Normal View History

2021-07-14 00:31:37 +02: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-15 00:09:42 +02:00
background-color: var(--content);
color: var(--text);
2021-07-14 00:31:37 +02:00
padding: .7rem 1.5rem;
height: auto;
flex: 1;
2021-07-14 00:57:31 +02:00
box-sizing: border-box;
2021-07-14 00:31:37 +02:00
}
.inputSearchButton {
2021-07-15 00:09:42 +02:00
background-color: var(--button);
2021-07-14 00:31:37 +02:00
border-width: 0;
2021-07-15 00:09:42 +02:00
color: var(--text);
2021-07-14 00:31:37 +02:00
padding: .5rem 2.1rem;
font-weight: bold;
2021-07-14 17:15:25 +02:00
cursor: pointer;
}
2021-07-14 00:31:37 +02:00
.inputSearchButton:hover {
2021-07-15 00:09:42 +02:00
background-color: var(--button-hover);
2021-07-14 00:31:37 +02:00
}
.inputTextBox:hover {
2021-07-15 00:09:42 +02:00
background-color: var(--content-hover);
2021-07-14 18:31:35 +02:00
}
2021-07-14 00:31:37 +02: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-15 00:09:42 +02:00
2021-07-14 00:31:37 +02:00
.inputSearchButton .text {
display: flex;
position: relative;
transition: transform 0.2s ease-in-out;
}
2021-07-15 00:09:42 +02:00
2021-07-14 00:31:37 +02:00
.inputSearchButton:hover .text > .arrow {
transform: translateX(8px);
opacity: 1;
}
.inputSearchButton:hover .text {
transform: translateX(-10px);
}
.inputSearchButton:active {
2021-07-15 00:09:42 +02:00
background-color: var(--button-active);
2021-07-14 00:31:37 +02:00
}
2021-07-14 00:57:31 +02: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 17:15:25 +02:00
align-self: center;
2021-07-14 00:57:31 +02:00
}
.inputTextBox {
2021-07-14 18:31:35 +02:00
margin-top: .5rem;
2021-07-14 00:57:31 +02:00
width: 100%;
}
}