Files
Backend-Api/ServiceHost/wwwroot/AssetsClient/css/dropdown.css
2024-10-05 19:27:04 +03:30

491 lines
10 KiB
CSS

/*--SCROLL--*/
::-webkit-scrollbar {
width: 0px;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover {
background: transparent;
}
.scroll {
--dashoffset: 0;
--dasharray: 1;
height: 100%;
padding: 0;
position: absolute;
right: 0;
top: 50%;
transform: translate(0, -50%);
z-index: 0;
}
.scroll svg {
width: auto;
height: 100%;
}
.scroll .line {
fill: none;
stroke-linecap: round;
stroke-miterlimit: 40;
stroke-width: .2rem;
stroke: #3ad1d1;
stroke-linecap: round;
stroke-dasharray: var(--dasharray) 4800;
stroke-dashoffset: var(--dashoffset);
transitioon: stroke-dashoffset .1s;
}
.dropdown-month .scroll svg {
display: none;
}
.dropdown-month .boxes {
height: auto;
}
.boxes {
width: 100%;
overflow: hidden;
overflow-y: scroll;
height: 253px;
overflow: auto;
scrollbar-width: none;
scrollbar-color: #dfe3ea #fff;
position: relative;
z-index: 2;
}
/* the code below is for the dropdown menu */
.wrapper-dropdown {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
/*min-width: 230px;*/
width: 100%;
padding: 3px 7px;
border-radius: 7px;
background: #dfe3ea;
color: #575a5d;
font-size: 12px;
font-weight: 400;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.scrollable-menu {
height: auto;
max-height: 200px;
overflow-x: hidden;
}
.arrow {
width: 20px;
float: right;
rotate: 180deg;
}
svg {
transition: all 0.3s;
}
.wrapper-dropdown::before {
position: absolute;
top: 50%;
right: 16px;
margin-top: -2px;
border-width: 6px 6px 0 6px;
border-style: solid;
border-color: #fff transparent;
}
.rotated {
transform: rotate(-180deg);
}
.wrapper-dropdown .dropdown {
transition: 0.3s;
position: absolute;
top: 120%;
right: 0;
left: 0;
margin: 0;
padding: 0;
list-style: none;
z-index: 99;
border-radius: 15px;
background: inherit;
-webkit-transform-origin: top;
-moz-transform-origin: top;
-ms-transform-origin: top;
transform-origin: top;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
opacity: 0;
visibility: hidden;
}
.wrapper-dropdown .dropdown li {
padding: 0 10px;
line-height: 36px;
overflow: hidden;
transition: all .1s ease;
margin: 2px 0;
white-space: nowrap;
}
.wrapper-dropdown .dropdown li:last-child {
border-bottom: none;
}
.dropdown {
/*padding: 0.5rem !important;*/
}
.wrapper-dropdown .dropdown li:hover {
background-color: #3ad1d1;
color: #fff;
border-radius: 10px;
}
.wrapper-dropdown .dropdown .active {
background-color: #3ad1d1;
color: #fff;
border-radius: 10px;
}
.wrapper-dropdown.active .dropdown {
opacity: 1;
visibility: visible;
border-radius: 15px;
}
/* -------------------------------------------------------------------------------- Normal -------------------------------------------------------------------------------------- */
/* the code below is for the dropdown menu */
.wrapper-dropdown-normal {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 3px 7px;
border-radius: 7px;
background: #f6f6f6;
color: #575a5d;
border: 1px solid #DADADA;
font-size: 12px;
font-weight: 400;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.wrapper-dropdown-normal::before {
position: absolute;
top: 50%;
right: 16px;
margin-top: -2px;
border-width: 6px 6px 0 6px;
border-style: solid;
border-color: #fff transparent;
}
.wrapper-dropdown-normal .dropdown-normal {
transition: 0.3s;
position: absolute;
top: 120%;
right: 0;
left: 0;
margin: 0;
padding: 0;
list-style: none;
z-index: 99;
border-radius: 15px;
background: inherit;
-webkit-transform-origin: top;
-moz-transform-origin: top;
-ms-transform-origin: top;
transform-origin: top;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
opacity: 0;
visibility: hidden;
height: auto;
overflow: auto;
scrollbar-width: none;
scrollbar-color: #dfe3ea #fff;
border: 1px solid #DADADA;
}
.wrapper-dropdown-normal .dropdown-normal li {
padding: 0 10px;
line-height: 36px;
overflow: hidden;
transition: all .1s ease;
margin: 2px 0;
white-space: nowrap;
}
.wrapper-dropdown-normal .dropdown-normal li:last-child {
border-bottom: none;
}
.dropdown-normal {
padding: 0.5rem !important;
}
.wrapper-dropdown-normal .dropdown-normal li:hover {
background-color: #3ad1d1;
color: #fff;
border-radius: 10px;
}
.wrapper-dropdown-normal .dropdown-normal .active {
background-color: #3ad1d1;
color: #fff;
border-radius: 10px;
}
.wrapper-dropdown-normal.active .dropdown-normal {
opacity: 1;
visibility: visible;
border-radius: 15px;
}
/* --------------------------------------------------------------------------------Year-------------------------------------------------------------------------------------- */
/* the code below is for the dropdown menu */
.wrapper-dropdown-year {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 3px 7px;
border-radius: 7px;
background: #f6f6f6;
color: #575a5d;
border: 1px solid #DADADA;
font-size: 12px;
font-weight: 400;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.wrapper-dropdown-year::before {
position: absolute;
top: 50%;
right: 16px;
margin-top: -2px;
border-width: 6px 6px 0 6px;
border-style: solid;
border-color: #fff transparent;
}
.wrapper-dropdown-year .dropdown-year {
transition: 0.3s;
position: absolute;
top: 120%;
right: 0;
left: 0;
margin: 0;
padding: 0;
list-style: none;
z-index: 99;
border-radius: 15px;
background: inherit;
-webkit-transform-origin: top;
-moz-transform-origin: top;
-ms-transform-origin: top;
transform-origin: top;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
opacity: 0;
visibility: hidden;
height: auto;
overflow: auto;
scrollbar-width: none;
scrollbar-color: #dfe3ea #fff;
border: 1px solid #DADADA;
}
.wrapper-dropdown-year .dropdown-year li {
padding: 0 10px;
line-height: 36px;
overflow: hidden;
transition: all .1s ease;
margin: 2px 0;
white-space: nowrap;
}
.wrapper-dropdown-year .dropdown-year li:last-child {
border-bottom: none;
}
.dropdown-year {
padding: 0.5rem !important;
}
.wrapper-dropdown-year .dropdown-year li:hover {
background-color: #3ad1d1;
color: #fff;
border-radius: 10px;
}
.wrapper-dropdown-year .dropdown-year .active {
background-color: #3ad1d1;
color: #fff;
border-radius: 10px;
}
.wrapper-dropdown-year.active .dropdown-year {
opacity: 1;
visibility: visible;
border-radius: 15px;
}
/* --------------------------------------------------------------------------------Month-------------------------------------------------------------------------------------- */
/* the code below is for the dropdown menu */
.wrapper-dropdown-month {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 3px 7px;
border-radius: 7px;
background: #f6f6f6;
color: #575a5d;
border: 1px solid #DADADA;
font-size: 12px;
font-weight: 400;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.wrapper-dropdown-month::before {
position: absolute;
top: 50%;
right: 16px;
margin-top: -2px;
border-width: 6px 6px 0 6px;
border-style: solid;
border-color: #fff transparent;
}
.wrapper-dropdown-month .dropdown-month {
transition: 0.3s;
position: absolute;
top: 120%;
right: 0;
left: 0;
margin: 0;
padding: 0;
list-style: none;
z-index: 99;
border-radius: 15px;
background: inherit;
-webkit-transform-origin: top;
-moz-transform-origin: top;
-ms-transform-origin: top;
transform-origin: top;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
opacity: 0;
visibility: hidden;
height: auto;
overflow: auto;
scrollbar-width: none;
scrollbar-color: #dfe3ea #fff;
border: 1px solid #DADADA;
}
.wrapper-dropdown-month .dropdown-month li {
padding: 0 10px;
line-height: 36px;
overflow: hidden;
transition: all .1s ease;
margin: 2px 0;
white-space: nowrap;
}
.wrapper-dropdown-month .dropdown-month li:last-child {
border-bottom: none;
}
.dropdown-month {
padding: 0.5rem !important;
}
.wrapper-dropdown-month .dropdown-month li:hover {
background-color: #3ad1d1;
color: #fff;
border-radius: 10px;
}
.wrapper-dropdown-month .dropdown-month .active {
background-color: #3ad1d1;
color: #fff;
border-radius: 10px;
}
.wrapper-dropdown-month.active .dropdown-month {
opacity: 1;
visibility: visible;
border-radius: 15px;
}
@media screen and (max-width: 1024px) {
.wrapper-dropdown-year .dropdown-year {
width: 120px;
}
.wrapper-dropdown-month .dropdown-month {
width: 120px;
}
.scroll {
width: 0;
}
.wrapper-dropdown-month .dropdown-month li {
padding: 0px 3px;
}
}
@media screen and (max-width: 768px) {
.wrapper-dropdown-year {
font-size: 10px;
}
.wrapper-dropdown-year .dropdown-year {
right: initial;
}
}