mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 01:05:08 +01:00
112 lines
2.1 KiB
CSS
112 lines
2.1 KiB
CSS
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&display=swap');
|
|
|
|
/* select box styling */
|
|
.select-box {
|
|
display: flex;
|
|
width: 200px;
|
|
flex-direction: column;
|
|
position: relative;
|
|
}
|
|
|
|
.select-box:focus-visible .selected {
|
|
border: 1px solid #fff;
|
|
}
|
|
|
|
.select-box > * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.select-box .options-container {
|
|
max-height: 0;
|
|
width: calc( 100% - 12px);
|
|
opacity: 0;
|
|
transition: all 0.2s ease-in-out;
|
|
overflow: hidden;
|
|
border-radius: 5px;
|
|
background-color: var(--choice);
|
|
order: 1;
|
|
position: absolute;
|
|
z-index: 1;
|
|
top: 50px;
|
|
}
|
|
|
|
.select-box .selected {
|
|
margin-bottom: 8px;
|
|
position: relative;
|
|
width: 188px;
|
|
height: 45px;
|
|
border-radius: 5px;
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: var(--choice);
|
|
color: white;
|
|
order: 0;
|
|
}
|
|
|
|
.select-box .selected::after {
|
|
content: "";
|
|
width: 1.2rem;
|
|
height: 1.2rem;
|
|
background: url(../assets/down-arrow.svg);
|
|
position: absolute;
|
|
right: 15px;
|
|
top: 50%;
|
|
transition: transform 150ms;
|
|
transform: translateY(-50%);
|
|
background-size: contain;
|
|
background-position: center;
|
|
}
|
|
|
|
|
|
.select-box .option .item {
|
|
color: var(--text);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.select-box .options-container.active {
|
|
max-height: 240px;
|
|
opacity: 1;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.select-box .options-container.active + .selected::after {
|
|
transform: translateY(-50%) rotateX(180deg);
|
|
}
|
|
|
|
.select-box .options-container::-webkit-scrollbar {
|
|
width: 8px;
|
|
background: #0d141f;
|
|
background: #81878f;
|
|
background: #f1f2f3;
|
|
border-radius: 0 5px 5px 0;
|
|
}
|
|
|
|
.select-box .options-container::-webkit-scrollbar-thumb {
|
|
background: #525861;
|
|
background: #81878f;
|
|
border-radius: 0 5px 5px 0;
|
|
}
|
|
.select-box .option {
|
|
padding: 12px 15px;
|
|
}
|
|
|
|
.select-box .option,
|
|
.selected {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.select-box .options-container .option:hover {
|
|
background: var(--choice-hover);
|
|
}
|
|
.select-box .options-container .option:hover .item {
|
|
color: var(--choice-active-text, var(--text));
|
|
}
|
|
|
|
.select-box label {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.select-box .option .radio {
|
|
display: none;
|
|
}
|