FreeTube/src/renderer/components/ft-input/ft-input.css

179 lines
3.7 KiB
CSS
Raw Normal View History

2020-02-16 19:30:00 +01:00
.ft-input-component {
position: relative;
}
.disabled label, .disabled .ft-input{
opacity: 0.4;
cursor: not-allowed;
}
.clearInputTextButton {
position: absolute;
/* horizontal intentionally reduced to keep "I-beam pointer" visible */
padding: 10px 8px;
top: 5px;
left: 0;
cursor: pointer;
border-radius: 200px 200px 200px 200px;
color: var(--primary-text-color);
opacity: 0;
-moz-transition: background 0.2s ease-in, opacity 0.2s ease-in;
-o-transition: background 0.2s ease-in, opacity 0.2s ease-in;
transition: background 0.2s ease-in, opacity 0.2s ease-in;
}
.clearInputTextButton:hover {
background-color: var(--side-nav-hover-color);
}
.clearInputTextButton.visible {
opacity: 1;
}
.forceTextColor .clearInputTextButton:hover {
background-color: var(--primary-color-hover);
}
.clearInputTextButton:active {
background-color: var(--tertiary-text-color);
-moz-transition: background 0.2s ease-in;
-o-transition: background 0.2s ease-in;
transition: background 0.2s ease-in;
}
.search .clearInputTextButton {
top: 12px;
}
.forceTextColor .clearInputTextButton {
color: #EEEEEE;
}
.forceTextColor .clearInputTextButton:active {
background-color: var(--primary-color-active);
}
2020-02-16 19:30:00 +01:00
.ft-input {
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
outline: none;
width: 100%;
2020-06-04 03:17:48 +02:00
padding: 1rem;
2020-02-16 19:30:00 +01:00
border: none;
background: transparent;
margin-bottom: 10px;
2020-05-31 16:03:03 +02:00
font-size: 16px;
2020-02-16 19:30:00 +01:00
height: 45px;
2020-03-24 15:33:53 +01:00
color: var(--secondary-text-color);
2020-06-04 03:17:13 +02:00
border-radius: 5px;
background-color: var(--search-bar-color);
2020-02-16 19:30:00 +01:00
}
.ft-input-component ::-webkit-input-placeholder {
2020-03-24 15:33:53 +01:00
color: var(--tertiary-text-color);
2020-02-16 19:30:00 +01:00
}
.forceTextColor .ft-input {
color: #EEEEEE;
background-color: var(--primary-input-color);
}
2020-06-04 03:18:31 +02:00
.forceTextColor .ft-input:focus {
box-shadow: 0 0 1rem 0 var(--primary-input-color);
-moz-transition: box-shadow 0.2s ease-in-out;
-o-transition: box-shadow 0.2s ease-in-out;
transition: box-shadow 0.2s ease-in-out;
}
.forceTextColor ::-webkit-input-placeholder {
color: #EEEEEE;
}
2020-02-16 19:30:00 +01:00
.inputAction {
position: absolute;
padding: 10px 8px;
top: 5px;
right: 0;
2020-02-16 19:30:00 +01:00
border-radius: 200px 200px 200px 200px;
color: var(--primary-text-color);
/* this should look disabled by default */
opacity: 50%;
}
.inputAction.enabled {
opacity: 100%;
/* Only look respond to cursor when enabled */
cursor: pointer;
2020-02-16 19:30:00 +01:00
}
.search ::-webkit-calendar-picker-indicator {
display: none;
}
.search .inputAction {
top: 12px;
}
.forceTextColor .inputAction {
color: #EEEEEE;
}
.ft-input-component.showActionButton .ft-input {
/*
With arrow present means
the text might get under the arrow with normal padding
*/
padding-right: 2em;
}
.inputAction.enabled:hover {
2020-02-16 19:30:00 +01:00
background-color: var(--side-nav-hover-color);
-moz-transition: background 0.2s ease-in;
-o-transition: background 0.2s ease-in;
transition: background 0.2s ease-in;
}
.forceTextColor .inputAction.enabled:hover {
background-color: var(--primary-color-hover);
}
.inputAction.enabled:active {
2020-03-24 15:33:53 +01:00
background-color: var(--tertiary-text-color);
2020-02-16 19:30:00 +01:00
-moz-transition: background 0.2s ease-in;
-o-transition: background 0.2s ease-in;
transition: background 0.2s ease-in;
}
.forceTextColor .inputAction.enabled:active {
background-color: var(--primary-color-active);
}
2020-12-11 19:14:11 +01:00
.list {
position: absolute;
width: 100%;
list-style: none;
margin: 0;
padding: 5px 0;
z-index: 10;
2020-12-11 19:14:11 +01:00
border-radius: 0 0 5px 5px;
box-shadow: 0 0 10px var(--scrollbar-color-hover);
background-color: var(--search-bar-color);
2020-12-11 19:14:11 +01:00
}
.list li {
display: block;
padding: 0px 15px;
line-height: 2rem;
}
.hover {
background-color: var(--scrollbar-color-hover);
2020-12-11 19:14:11 +01:00
/* color: white; */
}
.showClearTextButton .ft-input {
padding-left: 2em;
}