clarion/app/assets/stylesheets/forms.css.scss

129 lines
2.2 KiB
SCSS
Raw Normal View History

2014-08-31 13:08:14 +03:00
.alert-error {
color: red;
2014-08-12 16:37:25 +03:00
}
2014-08-31 13:08:14 +03:00
2014-08-12 16:37:25 +03:00
.input {
position: relative;
margin: 0 0 1em 0;
border-top: 0.1em dotted #999;
padding: 1em 0;
}
2014-08-31 13:08:14 +03:00
2014-08-12 16:37:25 +03:00
.input label {
font-size: 1em;
display: block;
width: 12em;
float: left;
}
2014-08-31 13:08:14 +03:00
2014-08-31 18:48:53 +03:00
.input {
input.string, input.email, input.password, select.select, input.numeric {
font-size: 1em;
width: 20em;
float: left;
}
textarea {
height: 15em;
width: 50em;
}
2014-08-12 16:37:25 +03:00
}
2014-08-31 13:08:14 +03:00
2014-08-31 18:48:53 +03:00
.input label.boolean {
margin-left: 12em;
2014-08-12 16:37:25 +03:00
}
2014-08-31 13:08:14 +03:00
2014-08-12 16:37:25 +03:00
.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;
}
2014-08-31 13:08:14 +03:00
2014-08-12 16:37:25 +03:00
.input .error {
font-style: normal;
padding: 1em 0 0 0;
color: #F00;
}
2014-08-31 13:08:14 +03:00
2014-08-12 16:37:25 +03:00
.input .error::before {
content: "";
display: inline-block;
font-size: 2em;
margin: 0 0.2em 0 0;
transform: translate(0, 0.1em);
}
2014-08-31 13:08:14 +03:00
2014-08-12 16:37:25 +03:00
.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;
}
2014-08-31 13:08:14 +03:00
2014-08-12 16:37:25 +03:00
.btn:hover {
background: #152551;
}
2014-08-31 13:08:14 +03:00
2014-08-12 16:37:25 +03:00
.btn:active {
background: #597AD2;
border-bottom: 0.2em solid #000;
transform: translate(0, 0.1em);
-webkit-transform: translate(0, 0.1em);
}
2014-08-31 18:31:50 +03:00
.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;
2014-08-31 18:48:53 +03:00
}