0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-27 08:59:17 -05:00
penpot/frontend/resources/styles/main/partials/modal.scss

293 lines
5 KiB
SCSS
Raw Normal View History

2020-08-05 12:35:09 +02:00
.modal-wrapper {}
.modal-overlay {
align-items: center;
background-color: $color-dark-bg;
display: flex;
justify-content: center;
position: fixed;
height: 100%;
left: 0;
top: 0;
width: 100%;
z-index: 1000;
&.transparent {
background-color: rgba($color-white, 0)
}
}
.modal,
.generic-modal {
background-color: $color-white;
width: 565px;
display: flex;
position: relative;
.close {
cursor: pointer;
position: absolute;
right: 16px;
top: 16px;
svg {
width: 16px;
height: 16px;
transform: rotate(45deg);
}
}
.modal-content {
display: flex;
flex-grow: 1;
flex-direction: column;
padding: 100px;
}
.button-row {
display: flex;
justify-content: space-between;
> button {
font-size: $fs13;
}
> button:not(:first-child) {
margin-left: 25px;
}
}
}
.change-email-modal {
h2 {
font-size: $fs14;
margin-bottom: 20px;
}
.confirmation {
.btn-primary {
margin-bottom: 30px;
}
.featured-note .icon svg {
fill: $color-success;
}
}
}
2020-08-05 12:35:09 +02:00
.confirm-dialog {
background-color: $color-white;
width: 23rem;
.modal-content {
padding: 20px 40px;
}
.dialog-title {
font-size: 24px;
color: $color-black;
font-weight: normal;
text-align: center;
}
.dialog-buttons {
display: flex;
flex-direction: row;
margin-top: 3rem;
width: 100%;
}
.dialog-cancel-button {
border: 1px solid $color-gray-30;
background: $color-canvas;
border-radius: 2px;
padding: 0.5rem;
margin-right: 1rem;
justify-content: space-evenly;
margin-bottom: 0;
width: 100%;
cursor: pointer;
&:hover {
background: $color-gray-20;
}
}
.dialog-accept-button {
width: 100%;
padding: 0.5rem;
border: 1px solid $color-danger;
background: $color-danger;
color: $color-white;
margin-bottom: 0;
cursor: pointer;
&:hover {
background: $color-danger-dark;
}
2020-08-04 12:05:54 +02:00
&.not-danger {
background: $color-primary;
color: $color-gray-60;
}
&.not-danger:hover {
background: $color-primary-dark;
}
2020-08-05 12:35:09 +02:00
}
}
2020-08-05 13:30:26 +02:00
.libraries-dialog {
width: 920px;
height: 664px;
.modal-content {
display: flex;
flex-grow: 1;
flex-direction: column;
padding: 0;
}
.libraries-header {
border-bottom: 1px solid $color-gray-20;
padding: 2rem 1rem 0.5rem 1rem;
display: flex;
justify-content: center;
.header-item {
cursor: pointer;
color: $color-gray-40;
font-size: $fs15;
&.active {
color: $color-gray-60;
border-bottom: 2px solid $color-primary;
}
&:not(:first-child) {
margin-left: 3rem;
}
}
}
.libraries-content {
display: flex;
justify-content: stretch;
align-items: stretch;
flex-grow: 1;
padding: 0 $size-4;
color: $color-gray-40;
.section {
flex-basis: 0;
flex-grow: 1;
padding: $size-4 0;
display: flex;
flex-direction: column;
&:not(:first-child) {
border-left: 1px solid $color-gray-20;
}
}
.section-title {
font-size: $fs15;
padding: 0 $size-4;
}
.section-list {
flex-basis: 0;
flex-grow: 1;
padding: 0 $size-4;
overflow: auto;
.section-list-item {
padding: $size-4 0;
border-bottom: 1px solid $color-gray-20;
position: relative;
.item-name {
color: $color-gray-60;
font-size: $fs14;
}
.item-contents {
color: $color-gray-40;
font-size: $fs12;
}
.item-button {
cursor: pointer;
2020-08-05 13:30:26 +02:00
position: absolute;
top: $size-4;
right: 0;
border: 1px solid $color-primary;
border-radius: 2px;
width: 4.5rem;
background: $color-primary;
color: $color-black;
padding: $size-2;
&:hover {
color: $color-primary;
background: $color-black;
}
}
}
}
.section-list-empty {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 0 $size-4;
flex-grow: 1;
& svg {
fill: $color-gray-20;
height: 50px;
width: 50px;
margin-bottom: $size-4;
}
}
.libraries-search {
border: 1px solid $color-gray-30;
margin: $size-4;
padding: $x-small;
display: flex;
align-items: center;
&:focus-within {
border-color: $color-primary;
}
& .search-input {
border: none;
color: $color-gray-60;
font-size: $fs12;
margin: 0;
padding: 0;
flex-grow: 1;
}
& .search-icon {
display: flex;
align-items: center;
svg {
fill: $color-gray-30;
height: 16px;
width: 16px;
}
&.search-close {
transform: rotate(45deg);
cursor: pointer;
}
}
}
}
}