cg-select/src/style/main.scss

142 lines
2.0 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-10-03 21:43:22 +03:00
max-width: 200px;
2022-09-12 19:14:08 +03:00
height: 30px;
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
2022-10-03 21:43:22 +03:00
overflow: hidden;
text-overflow: ellipsis;
2022-09-12 19:14:08 +03:00
background: #2a2f3b;
cursor: pointer;
border-radius: 5px;
transition: 0.5s;
2022-10-03 21:43:22 +03:00
.selected {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&: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;
}
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background-color: #d1d1d19d;
}
::-webkit-scrollbar-thumb {
background-color: #4d4d4d;
}
.multiselect {
height: 20px;
display: flex;
align-items: center;
li {
color: red;
border: 1px solid #4d4d4d;
}
z-index: 999;
}
2022-09-30 22:14:39 +03:00
2022-10-03 21:43:22 +03:00
.multiselectTag {
display: flex;
text-decoration: none;
flex-direction: row;
height: 15px;
list-style-type: none;
}
2022-09-30 22:14:39 +03:00
input[type='checkbox'] {
cursor: pointer;
}