mirror of
https://github.com/penpot/penpot.git
synced 2025-05-28 19:16:11 +02:00
✨ Add configurable nudge amount
This commit is contained in:
parent
6461ebe2b8
commit
86e4826e48
10 changed files with 189 additions and 3 deletions
|
@ -15,7 +15,7 @@ $color-dashboard: #f6f6f6;
|
|||
$color-primary: #31efb8;
|
||||
|
||||
// Secondary colors
|
||||
$color-success: #58c35c;
|
||||
$color-success: #49d793;
|
||||
$color-complete: #a599c6;
|
||||
$color-warning: #fc8802;
|
||||
$color-danger: #e65244;
|
||||
|
|
|
@ -1226,3 +1226,83 @@
|
|||
background-color: rgba(0, 0, 0, 0.9);
|
||||
}
|
||||
}
|
||||
|
||||
// Nudge modal
|
||||
|
||||
.nudge-modal-overlay {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
left: calc(50vw - 107px);
|
||||
top: calc(50vh - 57px);
|
||||
height: 110px;
|
||||
width: 215px;
|
||||
padding: 8px 20px;
|
||||
background-color: $color-white;
|
||||
box-shadow: 0px 2px 8px 0px rgb(0 0 0 / 20%);
|
||||
z-index: 1000;
|
||||
|
||||
&.transparent {
|
||||
background-color: rgba($color-white, 0);
|
||||
}
|
||||
|
||||
.nudge-modal-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
.nudge-modal-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 7px;
|
||||
|
||||
.modal-close-button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
|
||||
svg {
|
||||
height: 12px;
|
||||
width: 12px;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
}
|
||||
|
||||
.nudge-modal-title {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: $color-black;
|
||||
font-size: $fs12;
|
||||
}
|
||||
}
|
||||
|
||||
.nudge-modal-body {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.nudge-subtitle {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 72px;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
border-bottom: 1px solid $color-black;
|
||||
margin-bottom: 12px;
|
||||
|
||||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
border-bottom: 1px solid $color-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue