mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 19:08:29 +02:00
Improve messages and add new history new message.
This commit is contained in:
parent
97daf44f5c
commit
1282fd9641
3 changed files with 56 additions and 4 deletions
|
@ -344,6 +344,10 @@ input[type="checkbox"]:focus {
|
|||
outline: none;
|
||||
}
|
||||
|
||||
.form-errors {
|
||||
color: $color-danger;
|
||||
}
|
||||
|
||||
// Input text
|
||||
|
||||
.input-text {
|
||||
|
@ -846,7 +850,7 @@ input[type=range]:focus::-ms-fill-upper {
|
|||
// Messages
|
||||
.message {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
top: 0;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
z-index: 12;
|
||||
|
@ -859,14 +863,15 @@ input[type=range]:focus::-ms-fill-upper {
|
|||
color: $color-white;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
min-height: 100px;
|
||||
justify-content: center;
|
||||
margin: 0 auto;
|
||||
padding: $medium $big;
|
||||
position: relative;
|
||||
width: 600px;
|
||||
width: 100%;
|
||||
|
||||
span {
|
||||
font-size: $fs18;
|
||||
max-width: 60%;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -897,6 +902,7 @@ input[type=range]:focus::-ms-fill-upper {
|
|||
display: flex;
|
||||
justify-content: space-around;
|
||||
margin-top: $medium;
|
||||
max-width: 60%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
@ -946,3 +952,42 @@ input[type=range]:focus::-ms-fill-upper {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
.message-version {
|
||||
align-items: center;
|
||||
background-color: rgba(27, 170, 214, .6);
|
||||
border-radius: $br-small;
|
||||
color: $color-white;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: $small;
|
||||
position: absolute;
|
||||
right: 250px;
|
||||
top: 40px;
|
||||
@include animation(0, 1s, fadeInDown);
|
||||
|
||||
span {
|
||||
font-size: $fs13;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.message-action {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
margin-top: $small;
|
||||
width: 100%;
|
||||
|
||||
.btn-transparent {
|
||||
font-size: $fs12;
|
||||
padding: .3rem .5rem;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&.hide-message {
|
||||
@include animation(0, .6s, fadeOutUp);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -107,4 +107,3 @@
|
|||
{:render password-page-render
|
||||
:name "password-page"
|
||||
:mixins [mx/static]}))
|
||||
|
||||
|
|
|
@ -122,6 +122,14 @@
|
|||
:on-scroll on-scroll
|
||||
:on-wheel (partial on-wheel own)}
|
||||
|
||||
;; WIP message version
|
||||
[:div.message-version
|
||||
[:span "Continue working with version 22?"]
|
||||
[:div.message-action
|
||||
[:a.btn-transparent "Accept"]
|
||||
[:a.btn-transparent "Cancel"]
|
||||
]]
|
||||
|
||||
;; Rules
|
||||
(horizontal-rule zoom)
|
||||
(vertical-rule zoom)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue