metro-ui-rails 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/README.md +44 -0
- data/Rakefile +1 -0
- data/lib/generators/metro/layout/layout_generator.rb +19 -0
- data/lib/generators/metro/layout/templates/layout.html.erb +89 -0
- data/lib/metro-ui-rails.rb +10 -0
- data/lib/metro/ui/rails/engine.rb +15 -0
- data/lib/metro/ui/rails/metro.rb +2 -0
- data/lib/metro/ui/rails/version.rb +7 -0
- data/metro-ui-rails.gemspec +26 -0
- data/vendor/assets/images/.DS_Store +0 -0
- data/vendor/assets/images/metro/.DS_Store +0 -0
- data/vendor/assets/images/metro/ui/.DS_Store +0 -0
- data/vendor/assets/images/metro/ui/Calendar128.png +0 -0
- data/vendor/assets/images/metro/ui/Camera48.png +0 -0
- data/vendor/assets/images/metro/ui/InternetExplorer128.png +0 -0
- data/vendor/assets/images/metro/ui/Mail128.png +0 -0
- data/vendor/assets/images/metro/ui/Market128.png +0 -0
- data/vendor/assets/images/metro/ui/Music128.png +0 -0
- data/vendor/assets/images/metro/ui/Picture128.png +0 -0
- data/vendor/assets/images/metro/ui/Rss128.png +0 -0
- data/vendor/assets/images/metro/ui/Video128.png +0 -0
- data/vendor/assets/images/metro/ui/YouTube128.png +0 -0
- data/vendor/assets/images/metro/ui/armor.png +0 -0
- data/vendor/assets/images/metro/ui/bage-activity.png +0 -0
- data/vendor/assets/images/metro/ui/bage-alert.png +0 -0
- data/vendor/assets/images/metro/ui/bage-attention.png +0 -0
- data/vendor/assets/images/metro/ui/bage-available.png +0 -0
- data/vendor/assets/images/metro/ui/bage-away.png +0 -0
- data/vendor/assets/images/metro/ui/bage-busy.png +0 -0
- data/vendor/assets/images/metro/ui/bage-error.png +0 -0
- data/vendor/assets/images/metro/ui/bage-newMessage.png +0 -0
- data/vendor/assets/images/metro/ui/bage-paused.png +0 -0
- data/vendor/assets/images/metro/ui/bage-playing.png +0 -0
- data/vendor/assets/images/metro/ui/bage-unavailable.png +0 -0
- data/vendor/assets/images/metro/ui/chrome.png +0 -0
- data/vendor/assets/images/metro/ui/collapse24-black.png +0 -0
- data/vendor/assets/images/metro/ui/collapse24.png +0 -0
- data/vendor/assets/images/metro/ui/collapse32-black.png +0 -0
- data/vendor/assets/images/metro/ui/collapse32.png +0 -0
- data/vendor/assets/images/metro/ui/download-32.png +0 -0
- data/vendor/assets/images/metro/ui/excel2013icon.png +0 -0
- data/vendor/assets/images/metro/ui/expand24-black.png +0 -0
- data/vendor/assets/images/metro/ui/expand24.png +0 -0
- data/vendor/assets/images/metro/ui/expand32-black.png +0 -0
- data/vendor/assets/images/metro/ui/expand32.png +0 -0
- data/vendor/assets/images/metro/ui/firefox.png +0 -0
- data/vendor/assets/images/metro/ui/fork-32.png +0 -0
- data/vendor/assets/images/metro/ui/github.png +0 -0
- data/vendor/assets/images/metro/ui/grid.png +0 -0
- data/vendor/assets/images/metro/ui/ie.png +0 -0
- data/vendor/assets/images/metro/ui/lock-open.png +0 -0
- data/vendor/assets/images/metro/ui/lock.png +0 -0
- data/vendor/assets/images/metro/ui/logo32.png +0 -0
- data/vendor/assets/images/metro/ui/onenote2013icon.png +0 -0
- data/vendor/assets/images/metro/ui/opera.png +0 -0
- data/vendor/assets/images/metro/ui/pull24-dark.png +0 -0
- data/vendor/assets/images/metro/ui/pull24.png +0 -0
- data/vendor/assets/images/metro/ui/responsive.png +0 -0
- data/vendor/assets/images/metro/ui/row24.png +0 -0
- data/vendor/assets/images/metro/ui/shield-user.png +0 -0
- data/vendor/assets/images/metro/ui/simple.png +0 -0
- data/vendor/assets/images/metro/ui/star32.png +0 -0
- data/vendor/assets/images/metro/ui/stock-up.png +0 -0
- data/vendor/assets/images/metro/ui/view-32.png +0 -0
- data/vendor/assets/images/metro/ui/word2013icon.png +0 -0
- data/vendor/assets/javascripts/metro-ui.js +4 -0
- data/vendor/assets/javascripts/metro-ui/accordion.js +44 -0
- data/vendor/assets/javascripts/metro-ui/buttonset.js +34 -0
- data/vendor/assets/javascripts/metro-ui/dropdown.js +94 -0
- data/vendor/assets/javascripts/metro-ui/pagecontrol.js +41 -0
- data/vendor/toolkit/metro-ui/accordion.less +61 -0
- data/vendor/toolkit/metro-ui/bricks.less +57 -0
- data/vendor/toolkit/metro-ui/buttons.less +124 -0
- data/vendor/toolkit/metro-ui/cards.less +113 -0
- data/vendor/toolkit/metro-ui/code.less +48 -0
- data/vendor/toolkit/metro-ui/colors.less +67 -0
- data/vendor/toolkit/metro-ui/forms.less +427 -0
- data/vendor/toolkit/metro-ui/grid.less +112 -0
- data/vendor/toolkit/metro-ui/hero.less +18 -0
- data/vendor/toolkit/metro-ui/images.less +121 -0
- data/vendor/toolkit/metro-ui/layout.less +273 -0
- data/vendor/toolkit/metro-ui/menus.less +320 -0
- data/vendor/toolkit/metro-ui/modern-responsive-max480.less +195 -0
- data/vendor/toolkit/metro-ui/modern-responsive-max767.less +74 -0
- data/vendor/toolkit/metro-ui/modern-responsive-max979.less +66 -0
- data/vendor/toolkit/metro-ui/modern-responsive-min1200.less +16 -0
- data/vendor/toolkit/metro-ui/modern-responsive.less +5 -0
- data/vendor/toolkit/metro-ui/modern.less +26 -0
- data/vendor/toolkit/metro-ui/notices.less +181 -0
- data/vendor/toolkit/metro-ui/pagecontrol.less +90 -0
- data/vendor/toolkit/metro-ui/reset.less +504 -0
- data/vendor/toolkit/metro-ui/routines.less +136 -0
- data/vendor/toolkit/metro-ui/tables.less +157 -0
- data/vendor/toolkit/metro-ui/theme-dark.less +50 -0
- data/vendor/toolkit/metro-ui/tiles.less +293 -0
- data/vendor/toolkit/metro-ui/typography.less +361 -0
- metadata +192 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
/*
|
2
|
+
* Metro UI CSS v 0.1.1
|
3
|
+
* Copyright 2012 Sergey Pimenov
|
4
|
+
* Licensed under the MIT Lilcense
|
5
|
+
*
|
6
|
+
* Code.less
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
|
10
|
+
code, pre {
|
11
|
+
padding: 0 3px 2px;
|
12
|
+
#font > .normal;
|
13
|
+
font-size: 10pt;
|
14
|
+
color: @grayDark;
|
15
|
+
}
|
16
|
+
|
17
|
+
code {
|
18
|
+
padding: 2px 4px;
|
19
|
+
#font > .tertiary;
|
20
|
+
color: #d14;
|
21
|
+
background-color: #f7f7f9;
|
22
|
+
border: 1px #e1e1e8 solid;
|
23
|
+
}
|
24
|
+
|
25
|
+
pre {
|
26
|
+
display: block;
|
27
|
+
padding: 10px;
|
28
|
+
margin: 0;
|
29
|
+
font-size: 10pt;
|
30
|
+
line-height: 14pt;
|
31
|
+
word-break: break-all;
|
32
|
+
word-wrap: break-word;
|
33
|
+
white-space: pre;
|
34
|
+
white-space: pre-wrap;
|
35
|
+
background-color: #f5f5f5;
|
36
|
+
border: 1px solid rgba(0,0,0,.15);
|
37
|
+
|
38
|
+
&.prettyprint {
|
39
|
+
margin-bottom: 10px;
|
40
|
+
}
|
41
|
+
|
42
|
+
code {
|
43
|
+
padding: 0;
|
44
|
+
color: inherit;
|
45
|
+
background-color: transparent;
|
46
|
+
border: 0;
|
47
|
+
}
|
48
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
/*
|
2
|
+
* Metro UI CSS v 0.1.1
|
3
|
+
* Copyright 2012 Sergey Pimenov
|
4
|
+
* Licensed under the MIT Lilcense
|
5
|
+
*
|
6
|
+
* Variables.less
|
7
|
+
*/
|
8
|
+
|
9
|
+
// Units
|
10
|
+
@unit: 20px;
|
11
|
+
@subunit: 5px;
|
12
|
+
|
13
|
+
// Color vars
|
14
|
+
@white: #ffffff;
|
15
|
+
@black: #000000;
|
16
|
+
@blue: #2d89ef;
|
17
|
+
@blueLight: #44a3aa;
|
18
|
+
@blueDark: #0a5ac2;
|
19
|
+
@green: #00a300;
|
20
|
+
@greenLight: #99b433;
|
21
|
+
@greenDark: #005200;
|
22
|
+
@red: #b91d47;
|
23
|
+
@yellow: #ffc40d;
|
24
|
+
@orange: #e3a21a;
|
25
|
+
@orangeDark: #da532c;
|
26
|
+
@pink: #c3325f;
|
27
|
+
@pinkDark: #9f00a7;
|
28
|
+
@purple: #603cba;
|
29
|
+
@darken: #1d1d1d;
|
30
|
+
@grayDark: #525252;
|
31
|
+
|
32
|
+
|
33
|
+
// Foregraund colors classes
|
34
|
+
.fg-color-blue {color: @blue !important;}
|
35
|
+
.fg-color-blueLight {color: @blueLight !important;}
|
36
|
+
.fg-color-blueDark {color: @blueDark !important;}
|
37
|
+
.fg-color-green {color: @green !important;}
|
38
|
+
.fg-color-greenLight {color: @greenLight !important;}
|
39
|
+
.fg-color-greenDark {color: @greenDark !important;}
|
40
|
+
.fg-color-red {color: @red !important;}
|
41
|
+
.fg-color-yellow {color: @yellow !important;}
|
42
|
+
.fg-color-orange {color: @orange !important;}
|
43
|
+
.fg-color-orangeDark {color: @orangeDark !important;}
|
44
|
+
.fg-color-pink {color: @pink !important;}
|
45
|
+
.fg-color-pinkDark {color: @pinkDark !important;}
|
46
|
+
.fg-color-purple {color: @purple !important;}
|
47
|
+
.fg-color-darken {color: @darken !important;}
|
48
|
+
.fg-color-white {color: @white !important;}
|
49
|
+
.fg-color-grayDark {color: @grayDark !important;}
|
50
|
+
|
51
|
+
// Background colors classes
|
52
|
+
.bg-color-blue {background-color: @blue !important;}
|
53
|
+
.bg-color-blueLight {background-color: @blueLight !important;}
|
54
|
+
.bg-color-blueDark {background-color: @blueDark !important;}
|
55
|
+
.bg-color-green {background-color: @green !important;}
|
56
|
+
.bg-color-greenLight {background-color: @greenLight !important;}
|
57
|
+
.bg-color-greenDark {background-color: @greenDark !important;}
|
58
|
+
.bg-color-red {background-color: @red !important;}
|
59
|
+
.bg-color-yellow {background-color: @yellow !important;}
|
60
|
+
.bg-color-orange {background-color: @orange !important;}
|
61
|
+
.bg-color-orangeDark {background-color: @orangeDark !important;}
|
62
|
+
.bg-color-pink {background-color: @pink !important;}
|
63
|
+
.bg-color-pinkDark {background-color: @pinkDark !important;}
|
64
|
+
.bg-color-purple {background-color: @purple !important;}
|
65
|
+
.bg-color-darken {background-color: @darken !important;}
|
66
|
+
.bg-color-white {background-color: @white !important;}
|
67
|
+
.bg-color-grayDark {background-color: @grayDark !important;}
|
@@ -0,0 +1,427 @@
|
|
1
|
+
/*
|
2
|
+
* Metro UI CSS v 0.1.1
|
3
|
+
* Copyright 2012 Sergey Pimenov
|
4
|
+
* Licensed under the MIT Lilcense
|
5
|
+
*
|
6
|
+
* Layout.less
|
7
|
+
*/
|
8
|
+
|
9
|
+
@textbox_pass_active_icon: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAYAAADgKtSgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2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xgRA9zoKECQKofiBOIdOACIC4EWvIBr+FAgw2A1H4gFiAxBEAGOwItuIDVcBwGf4C6bCOaYf5QnwngswBsODQo7qMpbgTiCdi8ixR8BUBcj2aBIkwPLEL70QxOBCpYgC8coAY0AC0BReh8qDAsvhJBHGZpaWkFqNdhAOTaTmID29jY+MK5c+dAhlpAhQyA/IVA8Q8s0OSG7K1GNO8HQF2jgJQMQaljA1oQIscByMxCUCZyQE5WyGEMNXg9WjoHsddD5ZCDCNn3DrAcaoAkiJ4q+vGECLrcQSS2Ad7sD00NCngMV8CS1vHnUDTD3xNIMYxkFVzQcHyAR+8DSkvFQjLlCBsOTW6BaK4EsQPRkiJxpeJoTTS0DQcIMACNJ32B6TbHUQAAAABJRU5ErkJggg%3D%3D);
|
11
|
+
|
12
|
+
.radiobox, .checkbox, .switch {
|
13
|
+
cursor: pointer;
|
14
|
+
cursor: hand;
|
15
|
+
position: relative;
|
16
|
+
|
17
|
+
& > span {
|
18
|
+
position: relative;
|
19
|
+
//padding-top: 5px;
|
20
|
+
}
|
21
|
+
|
22
|
+
}
|
23
|
+
|
24
|
+
.checkbox {
|
25
|
+
input[type=checkbox],
|
26
|
+
input[type=checkbox] + span,
|
27
|
+
input[type=checkbox] + span::before,
|
28
|
+
input[type=checkbox] + span::after, {
|
29
|
+
vertical-align: middle;
|
30
|
+
display: inline-block;
|
31
|
+
}
|
32
|
+
|
33
|
+
input[type=checkbox] {
|
34
|
+
position: absolute;
|
35
|
+
opacity: 0;
|
36
|
+
}
|
37
|
+
|
38
|
+
input[type=checkbox] + span {
|
39
|
+
#font > .normal;
|
40
|
+
line-height: 19px;
|
41
|
+
}
|
42
|
+
|
43
|
+
input[type=checkbox]:focus + span {
|
44
|
+
//outline: 1px #ccc dotted;
|
45
|
+
}
|
46
|
+
|
47
|
+
/* Checkbox border */
|
48
|
+
input[type=checkbox] + span::before {
|
49
|
+
content: "\2714";
|
50
|
+
text-indent: -9999px;
|
51
|
+
margin-right: 10px;
|
52
|
+
border: 2px #d9d9d9 solid;
|
53
|
+
background: #fff;
|
54
|
+
height: 21px;
|
55
|
+
width: 21px;
|
56
|
+
margin-top: -3px;
|
57
|
+
}
|
58
|
+
|
59
|
+
/* Checkbox marker */
|
60
|
+
input[type=checkbox]:checked + span::after {
|
61
|
+
position: absolute;
|
62
|
+
content: "\2713";
|
63
|
+
color: #1a1a1a;
|
64
|
+
z-index: 1;
|
65
|
+
font-size: 16px;
|
66
|
+
font-weight: bold;
|
67
|
+
left: 4px;
|
68
|
+
top: 0px;
|
69
|
+
}
|
70
|
+
|
71
|
+
input[type=checkbox]:checked + span::before {
|
72
|
+
background: #fff;
|
73
|
+
}
|
74
|
+
|
75
|
+
input[type=checkbox]:not(:checked):disabled + span::before {
|
76
|
+
cursor: default;
|
77
|
+
background: #e6e6e6;
|
78
|
+
}
|
79
|
+
|
80
|
+
input[type=checkbox]:disabled + span::before {
|
81
|
+
cursor: default;
|
82
|
+
background: #ebebeb;
|
83
|
+
}
|
84
|
+
|
85
|
+
input[type=checkbox]:disabled + span::after {
|
86
|
+
color: #8a8a8a;
|
87
|
+
}
|
88
|
+
|
89
|
+
&:hover input[type=checkbox]:disabled + span::before {
|
90
|
+
cursor: default;
|
91
|
+
background: #e6e6e6;
|
92
|
+
}
|
93
|
+
|
94
|
+
&:hover input[type=checkbox] + span::before {
|
95
|
+
background: #fff;
|
96
|
+
border: 2px #919191 solid;
|
97
|
+
}
|
98
|
+
|
99
|
+
&:hover input[type=checkbox]:disabled + span::before {
|
100
|
+
border: 2px #d9d9d9 solid;
|
101
|
+
}
|
102
|
+
|
103
|
+
&:active input[type=checkbox]:checked:not(:disabled) + span::after {
|
104
|
+
color: #fff;
|
105
|
+
}
|
106
|
+
|
107
|
+
&.intermediate {
|
108
|
+
/* Checkbox marker */
|
109
|
+
input[type=checkbox] + span::after {
|
110
|
+
position: absolute;
|
111
|
+
content: "";
|
112
|
+
color: #1a1a1a;
|
113
|
+
z-index: 1;
|
114
|
+
font-size: 16px;
|
115
|
+
font-weight: bold;
|
116
|
+
left: 5px;
|
117
|
+
top: 5px;
|
118
|
+
background-color: #1a1a1a;
|
119
|
+
width: 10px;
|
120
|
+
height: 10px;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
.radiobox {
|
126
|
+
input[type=radio],
|
127
|
+
input[type=radio] + span,
|
128
|
+
input[type=radio] + span::before,
|
129
|
+
input[type=radio] + span::after, {
|
130
|
+
vertical-align: middle;
|
131
|
+
display: inline-block;
|
132
|
+
}
|
133
|
+
|
134
|
+
|
135
|
+
input[type=radio] {
|
136
|
+
position: absolute;
|
137
|
+
display: none;
|
138
|
+
//opacity: 0;
|
139
|
+
}
|
140
|
+
|
141
|
+
input[type=radio] + span {
|
142
|
+
#font > .normal;
|
143
|
+
}
|
144
|
+
|
145
|
+
input[type=radio]:focus + span {
|
146
|
+
//outline: 1px #ccc dotted;
|
147
|
+
}
|
148
|
+
|
149
|
+
&:hover input[type=radio] + span::before {
|
150
|
+
background: #fff;
|
151
|
+
border: 2px #919191 solid;
|
152
|
+
}
|
153
|
+
|
154
|
+
&:hover input[type=radio]:disabled + span::before {
|
155
|
+
border: 2px #d9d9d9 solid;
|
156
|
+
}
|
157
|
+
|
158
|
+
&:active input[type=radio]:checked:not(:disabled) + span::after {
|
159
|
+
color: #fff;
|
160
|
+
}
|
161
|
+
|
162
|
+
/* Radio border*/
|
163
|
+
input[type=radio] + span::before {
|
164
|
+
content: "\2022";
|
165
|
+
text-indent: -9999px;
|
166
|
+
width: 24px;
|
167
|
+
height: 24px;
|
168
|
+
margin-right: 10px;
|
169
|
+
border-radius: 50%;
|
170
|
+
|
171
|
+
border: 2px #cfcfcf solid;
|
172
|
+
background: #fff;
|
173
|
+
margin-top: -3px;
|
174
|
+
}
|
175
|
+
|
176
|
+
/* Radio Marker*/
|
177
|
+
input[type=radio]:checked + span::after {
|
178
|
+
text-indent: -9999px;
|
179
|
+
position: absolute;
|
180
|
+
content: "\2022";
|
181
|
+
background: #212121;
|
182
|
+
z-index: 1000;
|
183
|
+
width: 12px;
|
184
|
+
height: 12px;
|
185
|
+
border-radius: 50%;
|
186
|
+
left: 6px;
|
187
|
+
top: 5px;
|
188
|
+
}
|
189
|
+
input[type=radio]:checked + span::before {
|
190
|
+
background: #fff;
|
191
|
+
}
|
192
|
+
|
193
|
+
input[type=radio]:not(:checked):disabled + span::before {
|
194
|
+
cursor: default;
|
195
|
+
background: #e6e6e6;
|
196
|
+
}
|
197
|
+
|
198
|
+
input[type=radio]:disabled + span::before {
|
199
|
+
cursor: default;
|
200
|
+
background: #ebebeb;
|
201
|
+
}
|
202
|
+
|
203
|
+
input[type=radio]:disabled + span::after {
|
204
|
+
color: #8a8a8a;
|
205
|
+
background-color: #8a8a8a;
|
206
|
+
}
|
207
|
+
|
208
|
+
&:hover input[type=radio]:disabled + span::before {
|
209
|
+
cursor: default;
|
210
|
+
background: #e6e6e6;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
.switch {
|
215
|
+
input[type=checkbox],
|
216
|
+
input[type=checkbox] + span,
|
217
|
+
input[type=checkbox] + span::before,
|
218
|
+
input[type=checkbox] + span::after, {
|
219
|
+
vertical-align: middle;
|
220
|
+
display: inline-block;
|
221
|
+
}
|
222
|
+
|
223
|
+
input[type=checkbox] {
|
224
|
+
position: absolute;
|
225
|
+
display: none;
|
226
|
+
//opacity: 0;
|
227
|
+
}
|
228
|
+
|
229
|
+
input[type=checkbox] + span {
|
230
|
+
#font > .normal;
|
231
|
+
}
|
232
|
+
|
233
|
+
input[type=checkbox]:focus + span {
|
234
|
+
//outline: 1px #ccc dotted;
|
235
|
+
}
|
236
|
+
|
237
|
+
input[type=checkbox] + span::before {
|
238
|
+
content: "";
|
239
|
+
width: 43px;
|
240
|
+
height: 16px;
|
241
|
+
outline: 2px #a6a6a6 solid;
|
242
|
+
border: 1px #fff solid;
|
243
|
+
cursor: pointer;
|
244
|
+
background: #6c6c6c;
|
245
|
+
margin-left: 2px;
|
246
|
+
position: relative;
|
247
|
+
margin-right: 10px;
|
248
|
+
z-index: 100;
|
249
|
+
}
|
250
|
+
|
251
|
+
input[type=checkbox] + span::after {
|
252
|
+
content: "";
|
253
|
+
position: absolute;
|
254
|
+
top: 2px;
|
255
|
+
left: 34px;
|
256
|
+
width: 13px;
|
257
|
+
height: 20px;
|
258
|
+
background: #333;
|
259
|
+
z-index: 1000;
|
260
|
+
}
|
261
|
+
|
262
|
+
input[type=checkbox]:checked + span::before {
|
263
|
+
background: #008287;
|
264
|
+
}
|
265
|
+
|
266
|
+
input[type=checkbox]:not(:checked) + span::after {
|
267
|
+
top: 2px;
|
268
|
+
left: 0px;
|
269
|
+
}
|
270
|
+
|
271
|
+
input[type=checkbox]:not(:checked) + span::before {
|
272
|
+
background: #a6a6a6;
|
273
|
+
}
|
274
|
+
|
275
|
+
input[type=checkbox]:disabled + span::before {
|
276
|
+
cursor: default;
|
277
|
+
background: #e0e0e0;
|
278
|
+
outline: 2px #ccc solid;
|
279
|
+
}
|
280
|
+
|
281
|
+
input[type=checkbox]:disabled + span::after {
|
282
|
+
background: #a6a6a6;
|
283
|
+
}
|
284
|
+
|
285
|
+
&:hover input[type=checkbox]:not(:checked) + span::before {
|
286
|
+
background: #a6a6a6;
|
287
|
+
}
|
288
|
+
|
289
|
+
&:hover input[type=checkbox] + span::before {
|
290
|
+
background: #219297;
|
291
|
+
}
|
292
|
+
|
293
|
+
&:hover input[type=checkbox]:disabled + span::before {
|
294
|
+
cursor: default;
|
295
|
+
background: #e0e0e0;
|
296
|
+
}
|
297
|
+
}
|
298
|
+
|
299
|
+
|
300
|
+
.input-control > input[type=text], .input-control > input[type=password], .input-control > select, .input-control > textarea {
|
301
|
+
border: 2px #bababa solid;
|
302
|
+
width: 100%;
|
303
|
+
padding: 4px 32px 6px 5px;
|
304
|
+
.pos-rel;
|
305
|
+
background-color: #fff;
|
306
|
+
outline: 0;
|
307
|
+
margin-right: 32px;
|
308
|
+
width: 100%;
|
309
|
+
|
310
|
+
&:disabled {
|
311
|
+
background-color: #eaeaea;
|
312
|
+
}
|
313
|
+
&:focus {
|
314
|
+
border-color: #000;
|
315
|
+
}
|
316
|
+
}
|
317
|
+
|
318
|
+
.input-control > select {
|
319
|
+
padding-right: 5px;
|
320
|
+
}
|
321
|
+
|
322
|
+
.input-control > textarea {
|
323
|
+
padding-right: 5px;
|
324
|
+
min-height: 100px;
|
325
|
+
}
|
326
|
+
|
327
|
+
.input-control {
|
328
|
+
&.text, &.password {
|
329
|
+
input[type=text]:not(:focus) + .helper, input[type=password]:not(:focus) + .helper {
|
330
|
+
display: none;
|
331
|
+
}
|
332
|
+
input[type=text]:focus + .helper, input[type=password]:focus + .helper {
|
333
|
+
display: block;
|
334
|
+
}
|
335
|
+
input[type=text]:not(:focus) + .helper:active, input[type=password]:not(:focus) + .helper:active {
|
336
|
+
display: block;
|
337
|
+
}
|
338
|
+
}
|
339
|
+
}
|
340
|
+
|
341
|
+
.input-control {
|
342
|
+
margin-right: 0px;
|
343
|
+
margin-bottom: 10px;
|
344
|
+
position: relative;
|
345
|
+
|
346
|
+
&.text, &.password {
|
347
|
+
.helper {
|
348
|
+
background: #fff;// @textbox_pass_inactive_icon 50% no-repeat;
|
349
|
+
right: 3px;
|
350
|
+
top: 2px;
|
351
|
+
width: 26px;
|
352
|
+
height: 26px;
|
353
|
+
cursor: pointer;
|
354
|
+
color: #000;
|
355
|
+
.pos-abs;
|
356
|
+
|
357
|
+
&:before {
|
358
|
+
font-size: 12pt;
|
359
|
+
.pos-abs;
|
360
|
+
#font > .normal;
|
361
|
+
}
|
362
|
+
|
363
|
+
&:hover {
|
364
|
+
background: #d9d9d9;// @textbox_pass_inactive_icon 50% no-repeat;
|
365
|
+
}
|
366
|
+
|
367
|
+
&:active {
|
368
|
+
background-color: #000;
|
369
|
+
&:before {
|
370
|
+
color: #fff;
|
371
|
+
}
|
372
|
+
}
|
373
|
+
}
|
374
|
+
}
|
375
|
+
|
376
|
+
&.password {
|
377
|
+
.helper {
|
378
|
+
background: #fff @textbox_pass_inactive_icon 50% no-repeat;
|
379
|
+
&:hover {
|
380
|
+
background: #fff @textbox_pass_active_icon 50% no-repeat;
|
381
|
+
}
|
382
|
+
}
|
383
|
+
}
|
384
|
+
&.text {
|
385
|
+
.helper {
|
386
|
+
&:before {
|
387
|
+
content: "\2715";
|
388
|
+
left: 7px;
|
389
|
+
top: 4px;
|
390
|
+
}
|
391
|
+
}
|
392
|
+
}
|
393
|
+
}
|
394
|
+
|
395
|
+
label {
|
396
|
+
#font > .normal;
|
397
|
+
margin-right: 10px;
|
398
|
+
margin-bottom: 10px;
|
399
|
+
}
|
400
|
+
|
401
|
+
fieldset {
|
402
|
+
.pos-rel;
|
403
|
+
margin-top: 30px;
|
404
|
+
border: 2px #eaeaea solid;
|
405
|
+
padding: 10px;
|
406
|
+
|
407
|
+
legend {
|
408
|
+
padding-left: 10px;
|
409
|
+
padding-right: 10px;
|
410
|
+
#font > .normal;
|
411
|
+
color: #cfcfcf;
|
412
|
+
.pos-abs;
|
413
|
+
top: -25px;
|
414
|
+
left: -10px;
|
415
|
+
}
|
416
|
+
}
|
417
|
+
|
418
|
+
input[type=button], input[type=reset], input[type=submit] {
|
419
|
+
.button;
|
420
|
+
border-radius: 0;
|
421
|
+
}
|
422
|
+
|
423
|
+
input[type=submit] {
|
424
|
+
.button.default;
|
425
|
+
}
|
426
|
+
|
427
|
+
|