Add configurable nudge amount

This commit is contained in:
Eva 2022-02-04 10:32:37 +01:00 committed by Alonso Torres
parent 6461ebe2b8
commit 86e4826e48
10 changed files with 189 additions and 3 deletions

View file

@ -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;

View file

@ -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;
}
}
}
}
}