-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms-elements.less
More file actions
69 lines (66 loc) · 2.34 KB
/
forms-elements.less
File metadata and controls
69 lines (66 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
+------------------------------------------------------------------------+
| PhalconEye CMS |
+------------------------------------------------------------------------+
| Copyright (c) 2013-2014 PhalconEye Team (http://phalconeye.com/) |
+------------------------------------------------------------------------+
| This source file is subject to the New BSD License that is bundled |
| with this package in the file LICENSE.txt. |
| |
| If you did not receive a copy of the license and are unable to |
| obtain it through the world-wide-web, please send an email |
| to license@phalconeye.com so we can send you a copy immediately. |
+------------------------------------------------------------------------+
| Author: Ivan Vorontsov <ivan.vorontsov@phalconeye.com> |
| Author: Piotr Gasiorowski <p.gasiorowski@vipserv.org> |
+------------------------------------------------------------------------+
*/
// General form elements
input[type=text], input[type=email], input[type=password], input.text, textarea, select {
color: @formInputColor;
background-color: @containerBgColor;
border: 1px solid @containerBorderColor;
padding: 0.5em;
font-size: @fontSizeForms;
resize: none;
font-family: @font;
.box-shadow(0 3px 8px rgba(0, 0, 0, 0.125) inset);
}
button, input[type=button], input[type=file], .btn {
padding: 0.5em;
border: 2px solid transparent;
border-left: none;
border-right: none;
background-color: @buttonBgColor;
color: @buttonColor;
cursor: pointer;
font-size: @fontSize;
text-decoration: none;
display: inline-block;
vertical-align: middle;
.transition();
&:active, &:focus, &.active {
outline: 0;
}
&:hover {
color: @linkColor;
border-bottom-color: @linkColor;
}
&.btn-primary {
color: @primaryButtonColor;
background-color: @primaryButtonBgColor;
}
&.btn-success {
color: @successButtonColor;
background-color: @successButtonBgColor;
}
&.btn-danger {
color: @dangerButtonColor;
background-color: @dangerButtonBgColor;
}
}
.btn-primary, .btn-success, .btn-danger {
&:hover {
border-bottom-color: @buttonBgColor;
}
}