Improve messages and add new history new message.

This commit is contained in:
elhombretecla 2016-04-16 11:27:20 +02:00 committed by Andrey Antukh
parent 97daf44f5c
commit 1282fd9641
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
3 changed files with 56 additions and 4 deletions

View file

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

View file

@ -107,4 +107,3 @@
{:render password-page-render
:name "password-page"
:mixins [mx/static]}))

View file

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