mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 11:18:33 +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;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-errors {
|
||||||
|
color: $color-danger;
|
||||||
|
}
|
||||||
|
|
||||||
// Input text
|
// Input text
|
||||||
|
|
||||||
.input-text {
|
.input-text {
|
||||||
|
@ -846,7 +850,7 @@ input[type=range]:focus::-ms-fill-upper {
|
||||||
// Messages
|
// Messages
|
||||||
.message {
|
.message {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 20px;
|
top: 0;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 12;
|
z-index: 12;
|
||||||
|
@ -859,14 +863,15 @@ input[type=range]:focus::-ms-fill-upper {
|
||||||
color: $color-white;
|
color: $color-white;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
min-height: 100px;
|
justify-content: center;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: $medium $big;
|
padding: $medium $big;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 600px;
|
width: 100%;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: $fs18;
|
font-size: $fs18;
|
||||||
|
max-width: 60%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
@ -897,6 +902,7 @@ input[type=range]:focus::-ms-fill-upper {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
margin-top: $medium;
|
margin-top: $medium;
|
||||||
|
max-width: 60%;
|
||||||
width: 100%;
|
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
|
{:render password-page-render
|
||||||
:name "password-page"
|
:name "password-page"
|
||||||
:mixins [mx/static]}))
|
:mixins [mx/static]}))
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,14 @@
|
||||||
:on-scroll on-scroll
|
:on-scroll on-scroll
|
||||||
:on-wheel (partial on-wheel own)}
|
: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
|
;; Rules
|
||||||
(horizontal-rule zoom)
|
(horizontal-rule zoom)
|
||||||
(vertical-rule zoom)
|
(vertical-rule zoom)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue