1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-22 17:22:22 -05:00

[ux] make forms styles centralized and uniform

This commit is contained in:
karolinaszczur 2013-09-18 18:40:05 +02:00
parent 3cd74f0a03
commit cc1a7b7112
5 changed files with 66 additions and 28 deletions

View File

@ -23,20 +23,9 @@
input input
width: 100% width: 100%
display: block
height: 35px
font-size: 14px
padding: 10px 0.5em
margin-bottom: 15px margin-bottom: 15px
background-color: #f9fafa
border: 1px solid #eeeeee
color: #2e2d2d
borderbox() borderbox()
&:focus
border: 1px solid #a7d9eb
outline: 0px
button, .andyetLogin button, .andyetLogin
text-decoration: none text-decoration: none
text-align: center text-align: center

View File

@ -148,8 +148,5 @@
padding: 5px padding: 5px
borderbox() borderbox()
&:focus
border-color: #bbb
&.editing &.editing
background-color: yellow background-color: yellow

25
public/css/app/forms.styl Normal file
View File

@ -0,0 +1,25 @@
input[type=text], input[type=email], input[type=search], textarea
-webkit-appearance: none
roundall(3px)
padding: 10px
background: white
border: 1px solid $grayOutline
font-size: 0.8em
borderbox()
transition: border .2s ease-in 0
-webkit-transition: border .2s ease-in 0
-moz-transition: border .2s ease-in 0
input[type=text], input[type=email], input[type=search]
height: 8px
textarea
resize: none
input[type=text]:focus,
input[type=email]:focus,
input[type=search]:focus,
textarea:focus
outline: none
border: 1px solid lighten($activeBlue, 50%)

View File

@ -612,9 +612,6 @@ td {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
} }
.chatBox textarea:focus {
border-color: #bbb;
}
.chatBox textarea.editing { .chatBox textarea.editing {
background-color: #ff0; background-color: #ff0;
} }
@ -703,22 +700,11 @@ body #menu {
} }
#loginbox input { #loginbox input {
width: 100%; width: 100%;
display: block;
height: 35px;
font-size: 14px;
padding: 10px 0.5em;
margin-bottom: 15px; margin-bottom: 15px;
background-color: #f9fafa;
border: 1px solid #eee;
color: #2e2d2d;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
} }
#loginbox input:focus {
border: 1px solid #a7d9eb;
outline: 0px;
}
#loginbox button, #loginbox button,
#loginbox .andyetLogin { #loginbox .andyetLogin {
text-decoration: none; text-decoration: none;
@ -748,3 +734,43 @@ body #menu {
padding-bottom: 10px; padding-bottom: 10px;
border-bottom: 1px solid #f8f8f8; border-bottom: 1px solid #f8f8f8;
} }
input[type=text],
input[type=email],
input[type=search],
textarea {
-webkit-appearance: none;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-khtml-border-radius: 3px;
-o-border-radius: 3px;
-border-radius: 3px;
border-radius: 3px;
padding: 10px;
background: #fff;
border: 1px solid #e4e4e4;
font-size: 0.8em;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: border 0.2s ease-in 0;
-o-transition: border 0.2s ease-in 0;
transition: border 0.2s ease-in 0;
-moz-transition: border 0.2s ease-in 0;
-webkit-transition: border 0.2s ease-in 0;
-moz-transition: border 0.2s ease-in 0;
}
input[type=text],
input[type=email],
input[type=search] {
height: 8px;
}
textarea {
resize: none;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=search]:focus,
textarea:focus {
outline: none;
border: 1px solid #78daff;
}

View File

@ -6,3 +6,4 @@
@import 'app/connectionStatus' @import 'app/connectionStatus'
@import 'app/layout' @import 'app/layout'
@import 'app/aux' @import 'app/aux'
@import 'app/forms'