OpenFest: Add form styling

This commit is contained in:
Petko Bordjukov 2015-07-19 20:46:15 +03:00 committed by Andrew Radev
parent ab2cb8ca73
commit 0deb17e00b
2 changed files with 141 additions and 0 deletions

View File

@ -0,0 +1,140 @@
.alert-error {
color: red;
}
.input {
position: relative;
margin: 0 0 1em 0;
border-top: 0.1em dotted #999;
padding: 1em 0;
}
.input label {
font-size: 1em;
display: block;
width: 12em;
float: left;
}
.input {
input.string, input.email, input.password, select.select, input.numeric {
font-size: 1em;
width: 20em;
float: left;
}
textarea {
height: 15em;
width: 50em;
}
img {
padding: 5px;
display: block;
border: 1px solid #CCC;
background-color: #F1F1F1;
}
img+input.image_preview {
margin-left: 12.7em;
}
}
.input label.boolean {
margin-left: 12em;
}
.input .hint, .input .error {
display: block;
clear: both;
font-size: 0.75em;
font-style: italic;
width: 20em;
margin: 0 0 0 16em;
padding: 1em 0 0 0;
}
.input .error {
font-style: normal;
padding: 1em 0 0 0;
color: #F00;
}
.input .error::before {
content: "";
display: inline-block;
font-size: 2em;
margin: 0 0.2em 0 0;
transform: translate(0, 0.1em);
}
.btn {
display: block;
margin: 2em 0 0 13em;
}
/* styling of the button */
.btn {
background: #233e83;
padding: 0.4em 0.8em;
border-radius: 0.2em;
color: #FFF;
border: none;
border-bottom: 0.2em solid #7A95DC;
cursor: pointer;
transition: background 200ms, border 200ms, transform 200ms;
-webkit-transition: background 200ms, border 200ms, transform 200ms;
}
.btn:hover {
background: #152551;
}
.btn:active {
background: #597AD2;
border-bottom: 0.2em solid #000;
transform: translate(0, 0.1em);
-webkit-transform: translate(0, 0.1em);
}
.centered {
text-align: center;
}
.large {
padding: 30px;
}
.btn-link {
background: #233e83;
padding: 0.4em 0.8em;
border-radius: 0.2em;
color: #FFF;
border: none;
border-bottom: 0.2em solid #7A95DC;
cursor: pointer;
transition: background 200ms, border 200ms, transform 200ms;
-webkit-transition: background 200ms, border 200ms, transform 200ms;
}
.btn-link:link, .btn-link:active, .btn-link:visited {
color: #FFF;
text-decoration: none;
}
.btn-link:hover {
background: #152551;
}
.btn-link:active {
background: #597AD2;
border-bottom: 0.2em solid #000;
transform: translate(0, 0.1em);
-webkit-transform: translate(0, 0.1em);
}
.btn-link-large {
font-size: 2em;
}

View File

@ -2,3 +2,4 @@
@import "font-awesome"; @import "font-awesome";
@import 'initfest/styles'; @import 'initfest/styles';
@import 'forms';