cg-select/src/style/main.scss

96 lines
1.4 KiB
SCSS
Raw Normal View History

2022-09-12 19:14:08 +03:00
* {
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
}
body {
2022-09-12 19:14:08 +03:00
background: #1b1e25;
}
.container {
display: flex;
2022-09-12 19:14:08 +03:00
margin: 50px auto;
width: 800px;
}
.cg-dropdown {
2022-09-12 19:14:08 +03:00
position: relative;
margin-right: 10px;
2022-09-12 19:14:08 +03:00
}
.cg-select {
2022-09-12 19:14:08 +03:00
padding: 14px;
min-width: 200px;
2022-09-12 19:14:08 +03:00
height: 30px;
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
background: #2a2f3b;
cursor: pointer;
border-radius: 5px;
transition: 0.5s;
&:hover {
transition: 0.5s;
background: #394050;
}
2022-09-12 19:14:08 +03:00
}
.caret {
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 6px solid #fff;
transition: 0.5s;
&_rotate {
transform: rotate(180deg);
transition: 0.5s;
}
2022-09-12 19:14:08 +03:00
}
.list {
max-height: 230px;
overflow-y: auto;
2022-09-12 19:14:08 +03:00
position: absolute;
width: 212px;
padding: 7px;
margin-top: -0.2px;
2022-09-12 19:14:08 +03:00
list-style: none;
color: white;
background: #2a2f3b;
border: 1px #0a0b0e solid;
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
border-radius: 5px;
transition: 0.5s;
opacity: 0;
display: none;
z-index: 1;
&__item {
2022-09-12 19:14:08 +03:00
transition: 0.5s;
padding: 15px;
2022-09-12 19:14:08 +03:00
&:hover {
transition: 0.5s;
cursor: pointer;
background: #8282822c;
}
}
2022-09-12 19:14:08 +03:00
}
.active {
background: #8282822c;
2022-09-12 19:14:08 +03:00
}
.open {
2022-09-12 19:14:08 +03:00
transition: 0.5s;
display: block;
opacity: 1;
}