cg-select/src/style/main.scss

233 lines
3.3 KiB
SCSS
Raw Normal View History

2022-09-12 19:14:08 +03:00
* {
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
}
body {
background: #4a4a4a;
2022-09-12 19:14:08 +03:00
}
.container {
margin: 0 auto;
display: flex;
align-items: baseline;
2022-10-12 14:36:49 +03:00
justify-content: space-between;
2022-10-13 13:42:46 +03:00
flex-wrap: wrap;
width: 900px;
2022-09-12 19:14:08 +03:00
}
2022-10-14 16:36:12 +03:00
// ----Layout----
.cg-dropdown {
min-width: 235px;
margin-left: 0;
position: relative;
margin: 0;
padding: 0;
border: none;
border-radius: 10px;
2022-09-12 19:14:08 +03:00
}
.cg-select {
padding: 5px;
2022-10-24 20:13:08 +03:00
flex-grow: 1;
min-height: 50px;
2022-09-12 19:14:08 +03:00
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
2022-10-03 21:43:22 +03:00
text-overflow: ellipsis;
2022-09-12 19:14:08 +03:00
background: #2a2f3b;
2022-10-12 14:36:49 +03:00
border: none;
2022-09-12 19:14:08 +03:00
cursor: pointer;
border-radius: 5px;
transition: 0.5s;
2022-10-03 21:43:22 +03:00
.selected {
max-width: 195px;
margin: 5px;
2022-10-03 21:43:22 +03:00
}
&:hover {
transition: 0.5s;
background: #394050;
}
2022-09-12 19:14:08 +03:00
}
.caret {
width: 0;
height: 0;
margin-right: 10px;
2022-09-12 19:14:08 +03:00
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: 220px;
2022-09-12 19:14:08 +03:00
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 {
display: flex;
flex-direction: row;
align-items: center;
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-10-25 21:03:10 +03:00
.inputSearch {
background: transparent;
border: none;
border-bottom: 1px solid white;
margin-top: 5px;
margin-bottom: 5px;
&:focus {
outline: none;
2022-10-28 12:37:35 +03:00
color: white;
2022-10-25 21:03:10 +03:00
}
}
2022-09-12 19:14:08 +03:00
}
.multiselect-tag {
display: flex;
flex-wrap: wrap;
flex-direction: row;
align-items: center;
list-style-type: none;
margin: 0;
padding: 0;
li {
padding: 2px 4px 2px 4px;
background: #76767659;
height: 20px;
margin: 0 5px 5px 0;
display: flex;
align-items: center;
position: relative;
border-radius: 5px;
}
&__button {
width: 15px;
height: 16px;
border: none;
}
}
.category {
height: 20px;
margin: 6px 5px 0 7px;
font-size: 17px;
border-bottom: 1px solid;
display: flex;
align-items: center;
}
input[type='checkbox'] {
cursor: pointer;
margin: 0 5px 0 0;
}
2022-10-14 16:36:12 +03:00
// --------SVG--------
.svg-icon {
width: 16px;
margin-left: 3px;
background-color: #bebebc;
border-radius: 5px;
cursor: pointer;
transition: 1s;
&:hover {
transition: 1s;
background-color: #ffffff;
}
}
.svg-icon path {
color: black;
stroke: currentcolor;
transition: 0.2s;
stroke-width: 0.5;
}
.label {
color: white;
}
2022-10-14 16:36:12 +03:00
//-------Behavior--------
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;
&_none {
opacity: 0 !important;
}
2022-09-12 19:14:08 +03:00
}
2022-10-14 16:36:12 +03:00
.disabled {
background-color: #8f9195 !important;
}
.overflow-hidden {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.displayHide {
display: none;
}
2022-10-14 16:36:12 +03:00
// ------SCROLLBAR------
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background-color: #d1d1d19d;
}
::-webkit-scrollbar-thumb {
background-color: #4d4d4d;
}