0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00
penpot/frontend/resources/styles/main/partials/dropdown.scss

71 lines
1 KiB
SCSS
Raw Normal View History

2020-10-05 18:20:39 +02:00
.dropdown {
position: absolute;
max-height: 30rem;
background-color: $color-white;
border-radius: $br2;
2020-10-05 18:20:39 +02:00
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
z-index: 12;
hr {
margin: 0 !important;
border-color: $color-gray-10;
}
2020-11-18 17:36:14 +01:00
> li {
2020-10-05 18:20:39 +02:00
display: flex;
align-items: center;
color: $color-gray-60;
cursor: pointer;
2020-10-19 14:07:59 +02:00
font-size: $fs14;
height: 40px;
2020-10-05 18:20:39 +02:00
padding: 5px 16px;
2022-02-14 09:46:59 +01:00
&.warning {
color: $color-danger;
}
2020-11-18 17:36:14 +01:00
svg {
fill: $color-gray-20;
height: 12px;
width: 12px;
}
2020-10-05 18:20:39 +02:00
&.title {
font-weight: $fw600;
2020-10-05 18:20:39 +02:00
cursor: default;
}
&:hover {
background-color: $color-primary-lighter;
}
&:focus {
border: 1px black solid;
}
2020-10-05 18:20:39 +02:00
}
2020-11-18 17:36:14 +01:00
&.with-check {
> li {
padding: 5px 10px;
}
> li:not(.selected) {
svg {
display: none;
}
2020-11-18 17:36:14 +01:00
}
svg {
fill: $color-gray-50;
}
.icon {
display: flex;
align-items: center;
2021-08-16 15:46:02 +02:00
width: 20px;
height: 20px;
2020-11-18 17:36:14 +01:00
margin-right: 7px;
}
}
2020-10-05 18:20:39 +02:00
}