html5forms-rails 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/Gemfile +11 -0
  3. data/README.md +208 -0
  4. data/Rakefile +49 -0
  5. data/VERSION +1 -0
  6. data/demos/html5-form-demo.html +79 -0
  7. data/html5forms-rails.gemspec +142 -0
  8. data/lib/html5forms.rb +6 -0
  9. data/vendor/assets/images/colorpicker/blank.gif +0 -0
  10. data/vendor/assets/images/colorpicker/colorpicker_background.png +0 -0
  11. data/vendor/assets/images/colorpicker/colorpicker_hex.png +0 -0
  12. data/vendor/assets/images/colorpicker/colorpicker_hsb_b.png +0 -0
  13. data/vendor/assets/images/colorpicker/colorpicker_hsb_h.png +0 -0
  14. data/vendor/assets/images/colorpicker/colorpicker_hsb_s.png +0 -0
  15. data/vendor/assets/images/colorpicker/colorpicker_indic.gif +0 -0
  16. data/vendor/assets/images/colorpicker/colorpicker_overlay.png +0 -0
  17. data/vendor/assets/images/colorpicker/colorpicker_rgb_b.png +0 -0
  18. data/vendor/assets/images/colorpicker/colorpicker_rgb_g.png +0 -0
  19. data/vendor/assets/images/colorpicker/colorpicker_rgb_r.png +0 -0
  20. data/vendor/assets/images/colorpicker/colorpicker_select.gif +0 -0
  21. data/vendor/assets/images/colorpicker/colorpicker_submit.png +0 -0
  22. data/vendor/assets/images/colorpicker/custom_background.png +0 -0
  23. data/vendor/assets/images/colorpicker/custom_hex.png +0 -0
  24. data/vendor/assets/images/colorpicker/custom_hsb_b.png +0 -0
  25. data/vendor/assets/images/colorpicker/custom_hsb_h.png +0 -0
  26. data/vendor/assets/images/colorpicker/custom_hsb_s.png +0 -0
  27. data/vendor/assets/images/colorpicker/custom_indic.gif +0 -0
  28. data/vendor/assets/images/colorpicker/custom_rgb_b.png +0 -0
  29. data/vendor/assets/images/colorpicker/custom_rgb_g.png +0 -0
  30. data/vendor/assets/images/colorpicker/custom_rgb_r.png +0 -0
  31. data/vendor/assets/images/colorpicker/custom_submit.png +0 -0
  32. data/vendor/assets/images/colorpicker/select.png +0 -0
  33. data/vendor/assets/images/colorpicker/select2.png +0 -0
  34. data/vendor/assets/images/colorpicker/slider.png +0 -0
  35. data/vendor/assets/images/h5f/form_validation.png +0 -0
  36. data/vendor/assets/images/html5form-shim/asterisk.png +0 -0
  37. data/vendor/assets/images/html5form-shim/down.png +0 -0
  38. data/vendor/assets/images/html5form-shim/fail.png +0 -0
  39. data/vendor/assets/images/html5form-shim/ok.png +0 -0
  40. data/vendor/assets/images/html5forms/jscolor/arrow.gif +0 -0
  41. data/vendor/assets/images/html5forms/jscolor/cross.gif +0 -0
  42. data/vendor/assets/images/html5forms/jscolor/hs.png +0 -0
  43. data/vendor/assets/images/html5forms/jscolor/hv.png +0 -0
  44. data/vendor/assets/images/html5forms/slider/slider-1.png +0 -0
  45. data/vendor/assets/images/html5forms/slider/slider-disabled-1.png +0 -0
  46. data/vendor/assets/images/html5forms/slider/slider-disabled.png +0 -0
  47. data/vendor/assets/images/html5forms/slider/slider.png +0 -0
  48. data/vendor/assets/javascripts/colorpicker.js +484 -0
  49. data/vendor/assets/javascripts/colorpicker.min.js +9 -0
  50. data/vendor/assets/javascripts/h5f.js +328 -0
  51. data/vendor/assets/javascripts/h5f.min.js +4 -0
  52. data/vendor/assets/javascripts/html5forms/EventHelpers.min.js +15 -0
  53. data/vendor/assets/javascripts/html5forms/autocomplete.min.js +1 -0
  54. data/vendor/assets/javascripts/html5forms/cssQuery-p.min.js +6 -0
  55. data/vendor/assets/javascripts/html5forms/dev/EventHelpers.js +486 -0
  56. data/vendor/assets/javascripts/html5forms/dev/autocomplete.js +387 -0
  57. data/vendor/assets/javascripts/html5forms/dev/cssQuery-p.js +6 -0
  58. data/vendor/assets/javascripts/html5forms/dev/html5.js +121 -0
  59. data/vendor/assets/javascripts/html5forms/dev/html5Forms.js +892 -0
  60. data/vendor/assets/javascripts/html5forms/dev/html5Widgets.js +1417 -0
  61. data/vendor/assets/javascripts/html5forms/dev/jscolor.js +840 -0
  62. data/vendor/assets/javascripts/html5forms/dev/slider.js +797 -0
  63. data/vendor/assets/javascripts/html5forms/dev/timer.js +137 -0
  64. data/vendor/assets/javascripts/html5forms/dev/visibleIf.js +1100 -0
  65. data/vendor/assets/javascripts/html5forms/html5.min.js +2 -0
  66. data/vendor/assets/javascripts/html5forms/html5Forms.min.js +1 -0
  67. data/vendor/assets/javascripts/html5forms/html5Widgets.min.js +20 -0
  68. data/vendor/assets/javascripts/html5forms/jscolor.min.js +10 -0
  69. data/vendor/assets/javascripts/html5forms/slider.min.js +25 -0
  70. data/vendor/assets/javascripts/html5forms/timer.min.js +1 -0
  71. data/vendor/assets/javascripts/html5forms/visibleIf.min.js +19 -0
  72. data/vendor/assets/javascripts/html5forms.fallback.js +115 -0
  73. data/vendor/assets/javascripts/html5forms.fallback.min.js +11 -0
  74. data/vendor/assets/javascripts/jquery.html5form-shim.js +402 -0
  75. data/vendor/assets/javascripts/jquery.html5form.min.js +4 -0
  76. data/vendor/assets/javascripts/jquery.placehold.min.js +7 -0
  77. data/vendor/assets/javascripts/ui.spinner.js +649 -0
  78. data/vendor/assets/javascripts/ui.spinner.min.js +7 -0
  79. data/vendor/assets/javascripts/webforms2/webforms2-msie.js +1 -0
  80. data/vendor/assets/javascripts/webforms2/webforms2-p.js +14 -0
  81. data/vendor/assets/javascripts/webforms2/webforms2.js +14 -0
  82. data/vendor/assets/javascripts/webforms2/webforms2_src.js +3195 -0
  83. data/vendor/assets/stylesheets/colorpicker.css +161 -0
  84. data/vendor/assets/stylesheets/h5f.css +86 -0
  85. data/vendor/assets/stylesheets/html5form-shim.css +109 -0
  86. data/vendor/assets/stylesheets/html5forms/number.css +35 -0
  87. data/vendor/assets/stylesheets/html5forms/slider.css +169 -0
  88. data/vendor/assets/stylesheets/html5forms/slider_ie.css +41 -0
  89. data/vendor/assets/stylesheets/html5forms/visibleIf.css +23 -0
  90. data/vendor/assets/stylesheets/html5forms.layout.css +116 -0
  91. data/vendor/assets/stylesheets/ui.spinner.css +3 -0
  92. data/vendor/assets/stylesheets/webforms2.css +42 -0
  93. metadata +221 -0
@@ -0,0 +1,161 @@
1
+ .colorpicker {
2
+ width: 356px;
3
+ height: 176px;
4
+ overflow: hidden;
5
+ position: absolute;
6
+ background: url(/assets/colorpicker/colorpicker_background.png);
7
+ font-family: Arial, Helvetica, sans-serif;
8
+ display: none;
9
+ }
10
+ .colorpicker_color {
11
+ width: 150px;
12
+ height: 150px;
13
+ left: 14px;
14
+ top: 13px;
15
+ position: absolute;
16
+ background: #f00;
17
+ overflow: hidden;
18
+ cursor: crosshair;
19
+ }
20
+ .colorpicker_color div {
21
+ position: absolute;
22
+ top: 0;
23
+ left: 0;
24
+ width: 150px;
25
+ height: 150px;
26
+ background: url(/assets/colorpicker/colorpicker_overlay.png);
27
+ }
28
+ .colorpicker_color div div {
29
+ position: absolute;
30
+ top: 0;
31
+ left: 0;
32
+ width: 11px;
33
+ height: 11px;
34
+ overflow: hidden;
35
+ background: url(/assets/colorpicker/colorpicker_select.gif);
36
+ margin: -5px 0 0 -5px;
37
+ }
38
+ .colorpicker_hue {
39
+ position: absolute;
40
+ top: 13px;
41
+ left: 171px;
42
+ width: 35px;
43
+ height: 150px;
44
+ cursor: n-resize;
45
+ }
46
+ .colorpicker_hue div {
47
+ position: absolute;
48
+ width: 35px;
49
+ height: 9px;
50
+ overflow: hidden;
51
+ background: url(/assets/colorpicker/colorpicker_indic.gif) left top;
52
+ margin: -4px 0 0 0;
53
+ left: 0px;
54
+ }
55
+ .colorpicker_new_color {
56
+ position: absolute;
57
+ width: 60px;
58
+ height: 30px;
59
+ left: 213px;
60
+ top: 13px;
61
+ background: #f00;
62
+ }
63
+ .colorpicker_current_color {
64
+ position: absolute;
65
+ width: 60px;
66
+ height: 30px;
67
+ left: 283px;
68
+ top: 13px;
69
+ background: #f00;
70
+ }
71
+ .colorpicker input {
72
+ background-color: transparent;
73
+ border: 1px solid transparent;
74
+ position: absolute;
75
+ font-size: 10px;
76
+ font-family: Arial, Helvetica, sans-serif;
77
+ color: #898989;
78
+ top: 4px;
79
+ right: 11px;
80
+ text-align: right;
81
+ margin: 0;
82
+ padding: 0;
83
+ height: 11px;
84
+ }
85
+ .colorpicker_hex {
86
+ position: absolute;
87
+ width: 72px;
88
+ height: 22px;
89
+ background: url(/assets/colorpicker/colorpicker_hex.png) top;
90
+ left: 212px;
91
+ top: 142px;
92
+ }
93
+ .colorpicker_hex input {
94
+ right: 6px;
95
+ }
96
+ .colorpicker_field {
97
+ height: 22px;
98
+ width: 62px;
99
+ background-position: top;
100
+ position: absolute;
101
+ }
102
+ .colorpicker_field span {
103
+ position: absolute;
104
+ width: 12px;
105
+ height: 22px;
106
+ overflow: hidden;
107
+ top: 0;
108
+ right: 0;
109
+ cursor: n-resize;
110
+ }
111
+ .colorpicker_rgb_r {
112
+ background-image: url(/assets/colorpicker/colorpicker_rgb_r.png);
113
+ top: 52px;
114
+ left: 212px;
115
+ }
116
+ .colorpicker_rgb_g {
117
+ background-image: url(/assets/colorpicker/colorpicker_rgb_g.png);
118
+ top: 82px;
119
+ left: 212px;
120
+ }
121
+ .colorpicker_rgb_b {
122
+ background-image: url(/assets/colorpicker/colorpicker_rgb_b.png);
123
+ top: 112px;
124
+ left: 212px;
125
+ }
126
+ .colorpicker_hsb_h {
127
+ background-image: url(/assets/colorpicker/colorpicker_hsb_h.png);
128
+ top: 52px;
129
+ left: 282px;
130
+ }
131
+ .colorpicker_hsb_s {
132
+ background-image: url(/assets/colorpicker/colorpicker_hsb_s.png);
133
+ top: 82px;
134
+ left: 282px;
135
+ }
136
+ .colorpicker_hsb_b {
137
+ background-image: url(/assets/colorpicker/colorpicker_hsb_b.png);
138
+ top: 112px;
139
+ left: 282px;
140
+ }
141
+ .colorpicker_submit {
142
+ position: absolute;
143
+ width: 22px;
144
+ height: 22px;
145
+ background: url(/assets/colorpicker/colorpicker_submit.png) top;
146
+ left: 322px;
147
+ top: 142px;
148
+ overflow: hidden;
149
+ }
150
+ .colorpicker_focus {
151
+ background-position: center;
152
+ }
153
+ .colorpicker_hex.colorpicker_focus {
154
+ background-position: bottom;
155
+ }
156
+ .colorpicker_submit.colorpicker_focus {
157
+ background-position: bottom;
158
+ }
159
+ .colorpicker_slider {
160
+ background-position: bottom;
161
+ }
@@ -0,0 +1,86 @@
1
+ /* Form styles */
2
+ .h5f
3
+ {
4
+ margin: 20px auto;
5
+ width: 610px;
6
+ }
7
+ .h5f fieldset
8
+ {
9
+ margin: 0 0 20px;
10
+ padding: 20px;
11
+ -webkit-border-radius: 5px;
12
+ -moz-border-radius: 5px;
13
+ border-radius: 5px;
14
+ }
15
+
16
+ .h5f ol
17
+ {
18
+ list-style-type: none;
19
+ padding: 0;
20
+ margin: 0;
21
+ }
22
+ .h5f li
23
+ {
24
+ margin: 0 0 12px;
25
+ position: relative;
26
+ }
27
+ .h5f label, .h5f .label
28
+ {
29
+ width: 150px;
30
+ display: inline-block;
31
+ vertical-align: top;
32
+ }
33
+ .h5f fieldset input,
34
+ .h5f fieldset textarea,
35
+ .h5f fieldset select
36
+ {
37
+ background: #fff url(/assets/h5f/form_validation.png) 379px 24px no-repeat;
38
+ display: inline-block;
39
+ width: 371px;
40
+ border: 1px solid #fff;
41
+ padding: 3px 26px 3px 3px;
42
+
43
+ -moz-transition: background-color 1s ease;
44
+ -webkit-transition: background-color 1s ease;
45
+ -o-transition: background-color 1s ease;
46
+ transition: background-color 1s ease;
47
+ -webkit-border-radius: 5px;
48
+ -moz-border-radius: 5px;
49
+ border-radius: 5px;
50
+ }
51
+ .h5f fieldset select { width: 401px; padding: 3px; }
52
+ .h5f fieldset #postcode { padding: 3px; width: 400px; }
53
+
54
+ .h5f fieldset .radchecks input {
55
+ width: auto;
56
+ }
57
+ .h5f fieldset .radchecks label {
58
+ width: 105px;
59
+ }
60
+
61
+
62
+ .h5f input::-webkit-input-placeholder { color: #a9a9a9; }
63
+ .h5f input:-moz-placeholder { color: #a9a9a9; }
64
+
65
+ /* Enhanced error styling */
66
+ .h5f input.error
67
+ {
68
+ background-color: pink;
69
+ background-position: 379px 3px;
70
+ outline: none;
71
+ }
72
+ .h5f input.required
73
+ {
74
+ background-color: #fff;
75
+ background-position: 379px -29px;
76
+ }
77
+ .h5f input.valid
78
+ {
79
+ background-color: #fff;
80
+ background-position: 379px -61px;
81
+ }
82
+ .h5f fieldset input:required:valid
83
+ {
84
+ background-color: #fff;
85
+ background-position: 379px -61px;
86
+ }
@@ -0,0 +1,109 @@
1
+ form fieldset {
2
+ border: 1px solid #BBBBBB;
3
+ margin: 0 5px 0 0;
4
+ -moz-border-radius:3px;
5
+ -webkit-border-radius:3px;
6
+ -o-border-radius:3px;
7
+ -ms-border-radius:3px;
8
+ border-radius:3px;
9
+ text-align: left;
10
+ }
11
+
12
+ fieldset input[type=radio] {
13
+ margin-right: 4px;
14
+ }
15
+
16
+ form ul {
17
+ list-style: none;
18
+ padding: 0;
19
+ margin: 5px;
20
+ }
21
+ form ul li {
22
+ padding: 0;
23
+ margin-bottom: 5px;
24
+ }
25
+
26
+ form input, form textarea {
27
+ -webkit-transition: all 0.5s ease-in-out 0s;
28
+ -moz-transition: all 0.5s ease-in-out 0s;
29
+ -o-transition: all 0.5s ease-in-out 0s;
30
+ transition: all 0.5s ease-in-out 0s;
31
+ background-color: #FFFFFF;
32
+ border: 2px solid #CCC;
33
+
34
+ -webkit-border-radius: 5px 5px 5px 5px;
35
+ -moz-border-radius: 5px 5px 5px 5px;
36
+ -o-border-radius: 5px 5px 5px 5px;
37
+ border-radius: 5px 5px 5px 5px;
38
+ display: block;
39
+ font-size: 20px;
40
+ margin-bottom: 16px;
41
+ margin-top: 8px;
42
+ min-height: 30px;
43
+ width: 300px;
44
+ }
45
+ :focus {
46
+ outline: medium none;
47
+ }
48
+
49
+ form input:focus, form textarea:focus {
50
+ -webkit-transform: scale(1.05);
51
+ -moz-transform: scale(1.05);
52
+ -o-transform: scale(1.05);
53
+ transform: scale(1.05);
54
+ -moz-box-shadow: 0 0 25px #CCCCCC;
55
+ -webkit-box-shadow: 0 0 25px #CCCCCC;
56
+ -o-box-shadow: 0 0 25px #CCCCCC;
57
+ box-shadow: 0 0 25px #CCCCCC;
58
+ }
59
+
60
+ form input.placeholder, form textarea.placeholder {
61
+ color: #CCC;
62
+ }
63
+
64
+ /* for none-HTML5 browsers */
65
+ input.required {
66
+ background: url(/assets/html5form-shim/asterisk.png) no-repeat scroll 280px 7px transparent;
67
+ }
68
+ input:required {
69
+ background: url(/assets/html5form-shim/asterisk.png) no-repeat scroll 280px 7px transparent;
70
+ }
71
+ /* for none-HTML5 browsers */
72
+ input.valid {
73
+ background: url(/assets/html5form-shim/ok.png) no-repeat scroll 280px 7px transparent;
74
+ }
75
+ input:valid {
76
+ background: url(/assets/html5form-shim/ok.png) no-repeat scroll 280px 7px transparent;
77
+ }
78
+ /* for none-HTML5 browsers */
79
+ input.invalid {
80
+ background: url(/assets/html5form-shim/fail.png) no-repeat scroll 280px 7px transparent;
81
+ }
82
+ input:focus:invalid {
83
+ background: url(/assets/html5form-shim/fail.png) no-repeat scroll 280px 7px transparent;
84
+ }
85
+
86
+ .tooltip { font-size: 10px; position: absolute; padding: 5px; z-index: 100000; opacity: 0.8; filter:alpha(opacity:80); }
87
+
88
+ .tooltip-inner { background-color: #333; color: #FFF; max-width: 200px; padding: 5px 8px 4px 8px; text-align: center; }
89
+
90
+ /* Rounded corners */
91
+ .tooltip-inner { border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
92
+
93
+
94
+ .tooltip-arrow { position: absolute; width: 0; height: 0; line-height: 0; border: 5px dashed #000; }
95
+
96
+ /* Rules to colour arrows */
97
+ .tooltip-arrow-n { border-bottom-color: #000; }
98
+ .tooltip-arrow-s { border-top-color: #000; }
99
+ .tooltip-arrow-e { border-left-color: #333; }
100
+ .tooltip-arrow-w { border-right-color: #000; }
101
+
102
+ .tooltip-n .tooltip-arrow { top: 0px; left: 50%; margin-left: -5px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
103
+ .tooltip-nw .tooltip-arrow { top: 0; left: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent;}
104
+ .tooltip-ne .tooltip-arrow { top: 0; right: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent;}
105
+ .tooltip-s .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
106
+ .tooltip-sw .tooltip-arrow { bottom: 0; left: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
107
+ .tooltip-se .tooltip-arrow { bottom: 0; right: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
108
+ .tooltip-e .tooltip-arrow { right: 0; top: 50%; margin-top: -5px; border-left-style: solid; border-right: none; border-top-color: transparent; border-bottom-color: transparent; }
109
+ .tooltip-w .tooltip-arrow { left: 0; top: 50%; margin-top: -5px; border-right-style: solid; border-left: none; border-top-color: transparent; border-bottom-color: transparent; }
@@ -0,0 +1,35 @@
1
+
2
+ .html5-numberControls {
3
+ display: block;
4
+ vertical-align:top;
5
+ position: absolute;
6
+ top: 0;
7
+ right: 0em;
8
+ height: 1.5em;
9
+ border: solid 1px #666666;
10
+ border-radius: 5px;
11
+ width: 0.8em;
12
+ color: #666666;
13
+ margin-top: 0.3em;
14
+ }
15
+
16
+ .html5-numberWrapper {
17
+ position: absolute;
18
+ height: 1em;
19
+ }
20
+
21
+ .html5-numberControls a{
22
+ margin: 0 0 0 0.2em;
23
+ padding:0;
24
+ border:0;
25
+ background-color:transparent;
26
+ width: 0.9em;
27
+ cursor:pointer;
28
+ position:absolute;
29
+
30
+ font-size: 0.6em;
31
+ }
32
+
33
+ .html5-numberControls .upbutton{top:0px;}
34
+
35
+ .html5-numberControls .dnbutton{bottom: 0px;}
@@ -0,0 +1,169 @@
1
+ /*
2
+
3
+ Slider CSS, style as you please.
4
+
5
+ Note: The png images used for this demo were originally located at http://www.schillmania.com/
6
+
7
+ Remove the -moz & -khtml styles if you want the css to validate.
8
+
9
+ Change the image paths to suit you installation.
10
+
11
+ */
12
+
13
+ /* Styles for the horizontal slider */
14
+ .fd-slider
15
+ {
16
+ position:relative;
17
+ width:100%;
18
+ height:20px;
19
+ text-align:center;
20
+ border:0 none;
21
+ text-decoration:none;
22
+ display:block;
23
+ -moz-user-select:none;
24
+ -khtml-user-select:none
25
+ cursor:pointer;
26
+ }
27
+ .fd-slider-inner
28
+ {
29
+ position:relative;
30
+ display:block;
31
+ z-index:1;
32
+ height:18px;
33
+ text-align:left;
34
+ background:#fcfcfc;
35
+ border:1px solid #ccc;
36
+ border-radius:5px;
37
+ -moz-border-radius:5px;
38
+ }
39
+ .fd-slider-bar
40
+ {
41
+ position:absolute;
42
+ display:block;
43
+ z-index:2;
44
+ height:2px;
45
+ border:1px solid #bbb;
46
+ border-bottom:1px solid #aaa;
47
+ border-right:1px solid #aaa;
48
+ background:#ddd;
49
+ margin:0;
50
+ padding:0;
51
+ overflow:hidden;
52
+ line-height:4px;
53
+ top:8px;
54
+ bottom:none;
55
+ left:10px;
56
+ right:10px;
57
+ border-radius:2px;
58
+ -moz-border-radius:2px;
59
+ }
60
+ /* Styles for the vertical slider */
61
+ .fd-slider-vertical
62
+ {
63
+ position:relative;
64
+ border:0 none;
65
+ text-decoration:none;
66
+ display:block;
67
+ width:20px;
68
+ height:100%;
69
+ text-align:center;
70
+ -moz-user-select:none;
71
+ -khtml-user-select:none
72
+ cursor:pointer;
73
+ cursor:hand;
74
+ }
75
+ .fd-slider-vertical .fd-slider-inner
76
+ {
77
+ display:block;
78
+ width:18px;
79
+ height:100%;
80
+ text-align:left;
81
+ background:#fcfcfc;
82
+ border:1px solid #ccc;
83
+ }
84
+ .fd-slider-vertical .fd-slider-bar
85
+ {
86
+ width:2px;
87
+ top:10px;
88
+ bottom:10px;
89
+ left:8px;
90
+ right:none;
91
+ height:auto;
92
+ }
93
+ .fd-slider-vertical .fd-slider-handle
94
+ {
95
+ cursor:N-resize;
96
+ }
97
+ .focused .fd-slider-inner
98
+ {
99
+ background:#eee !important;
100
+ border:1px solid #aaa !important;
101
+ }
102
+ /* black handle, no glow */
103
+ .fd-slider-handle
104
+ {
105
+ position:absolute;
106
+ display:block;
107
+ padding:0;
108
+ border:0 none;
109
+ margin:0;
110
+ z-index:3;
111
+ top:0;
112
+ left:0;
113
+ width:20px;
114
+ height:20px;
115
+ outline:0px none;
116
+ background:transparent url(/assets/html5forms/slider/slider-disabled.png) no-repeat 0px 0px;
117
+ cursor:W-resize;
118
+ line-height:20px;
119
+ font-size:20px;
120
+ -webkit-user-select: none;
121
+ -moz-user-select:none;
122
+ -moz-user-focus:none;
123
+ -moz-outline:0px none;
124
+ }
125
+ .fd-slider-handle:focus
126
+ {
127
+ outline:0px none;
128
+ border:0 none;
129
+ -moz-user-focus:normal;
130
+ }
131
+ button.fd-slider-handle:focus::-moz-focus-inner { border-color: transparent; }
132
+
133
+ /* black handle, glow */
134
+ .fd-slider-hover .fd-slider-handle
135
+ {
136
+ background:transparent url(/assets/html5forms/slider/slider-disabled-1.png) no-repeat 0px 0px;
137
+ }
138
+ /* blue handle, no glow */
139
+ .focused .fd-slider-handle
140
+ {
141
+ background:transparent url(/assets/html5forms/slider/slider.png) no-repeat 0px 0px;
142
+ }
143
+ /* blue handle glow */
144
+ .focused.fd-slider-hover .fd-slider-handle
145
+ {
146
+ background:transparent url(/assets/html5forms/slider/slider-1.png) no-repeat 0px 0px;
147
+ }
148
+ body.slider-drag-vertical
149
+ {
150
+ cursor:N-resize !important;
151
+ }
152
+ body.slider-drag-horizontal
153
+ {
154
+ cursor:W-resize !important;
155
+ }
156
+ .fd_hide_slider_input
157
+ {
158
+ display:none;
159
+ }
160
+ /* Disabled Sliders */
161
+ .slider-disabled
162
+ {
163
+ opacity:.8;
164
+ filter:alpha(opacity=80);
165
+ }
166
+ .slider-disabled .fd-slider-handle
167
+ {
168
+ cursor:auto !important;
169
+ }
@@ -0,0 +1,41 @@
1
+ .fd-slider-handle
2
+ {
3
+ background:none;
4
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='http://www.frequency-decoder.com/demo/slider-revisited/slider-disabled.png');
5
+ outline:expression(hideFocus='true');
6
+ }
7
+ .fd-slider-hover .fd-slider-handle
8
+ {
9
+ background:none;
10
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='http://www.frequency-decoder.com/demo/slider-revisited/slider-disabled-1.png');
11
+ }
12
+ .focused .fd-slider-handle
13
+ {
14
+ background:none;
15
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='http://www.frequency-decoder.com/demo/slider-revisited/slider.png');
16
+ }
17
+ .fd-fc-slider-hover .fd-slider-handle
18
+ {
19
+ background:none;
20
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='http://www.frequency-decoder.com/demo/slider-revisited/slider-1.png');
21
+ }
22
+ .fd-slider
23
+ {
24
+ cursor:hand;
25
+ }
26
+ .fd-slider-bar
27
+ {
28
+ top:8px;
29
+ bottom:none;
30
+ left:10px;
31
+ right:none;
32
+ width:expression((this.parentNode.offsetWidth - 20) + "px");
33
+ }
34
+ .fd-slider-vertical .fd-slider-bar
35
+ {
36
+ top:10px;
37
+ bottom:none;
38
+ left:8px;
39
+ right:none;
40
+ height:expression((this.parentNode.offsetHeight - 20) + "px");
41
+ }
@@ -0,0 +1,23 @@
1
+ .visibleIf, .visibleif {
2
+ display: none;
3
+ }
4
+
5
+
6
+ .visibleIf-visible, .visibleif-visible {
7
+ display: block;
8
+ }
9
+
10
+ span.visibleIf-visible, span.visibleif-visible {
11
+ display: inline;
12
+ }
13
+
14
+ tr.visibleIf-visible, tr.visibleif-visible {
15
+ display: block;
16
+ display: table-row;
17
+ }
18
+
19
+
20
+ .visibleIf-rule, .mandatoryIf-rule, .visibleif-rule, .mandatoryif-rule {
21
+ display: none;
22
+ }
23
+