compass-jquery-mobile-plugin 0.1

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.
Files changed (43) hide show
  1. data/README.markdown +48 -0
  2. data/lib/compass-jquery-mobile-plugin.rb +1 -0
  3. data/stylesheets/_button.scss +118 -0
  4. data/stylesheets/_collapsible.scss +45 -0
  5. data/stylesheets/_controlgroup.scss +69 -0
  6. data/stylesheets/_core.scss +158 -0
  7. data/stylesheets/_dialog.scss +15 -0
  8. data/stylesheets/_forms.checkboxradio.scss +37 -0
  9. data/stylesheets/_forms.fieldcontain.scss +20 -0
  10. data/stylesheets/_forms.select.scss +72 -0
  11. data/stylesheets/_forms.slider.scss +104 -0
  12. data/stylesheets/_forms.textinput.scss +72 -0
  13. data/stylesheets/_grids.scss +31 -0
  14. data/stylesheets/_headerfooter.scss +33 -0
  15. data/stylesheets/_jquery-mobile.scss +39 -0
  16. data/stylesheets/_listview.scss +170 -0
  17. data/stylesheets/_navbar.scss +103 -0
  18. data/stylesheets/_theme.scss +128 -0
  19. data/stylesheets/_transitions.scss +217 -0
  20. data/stylesheets/helpers/_mixins.scss +21 -0
  21. data/stylesheets/themes/_a.scss +116 -0
  22. data/stylesheets/themes/_b.scss +115 -0
  23. data/stylesheets/themes/_c.scss +105 -0
  24. data/stylesheets/themes/_d.scss +114 -0
  25. data/stylesheets/themes/_e.scss +114 -0
  26. data/stylesheets/themes/wyke/_a.scss +106 -0
  27. data/stylesheets/themes/wyke/_b.scss +105 -0
  28. data/stylesheets/themes/wyke/_c.scss +95 -0
  29. data/stylesheets/themes/wyke/_d.scss +104 -0
  30. data/stylesheets/themes/wyke/_e.scss +104 -0
  31. data/templates/project/jquery-mobile/ajax-loader.png +0 -0
  32. data/templates/project/jquery-mobile/form-check-off.png +0 -0
  33. data/templates/project/jquery-mobile/form-check-on.png +0 -0
  34. data/templates/project/jquery-mobile/form-radio-off.png +0 -0
  35. data/templates/project/jquery-mobile/form-radio-on.png +0 -0
  36. data/templates/project/jquery-mobile/icon-search-black.png +0 -0
  37. data/templates/project/jquery-mobile/icons-18-black.png +0 -0
  38. data/templates/project/jquery-mobile/icons-18-white.png +0 -0
  39. data/templates/project/jquery-mobile/icons-36-black.png +0 -0
  40. data/templates/project/jquery-mobile/icons-36-white.png +0 -0
  41. data/templates/project/jquery.mobile-1.0a2.min.js +99 -0
  42. data/templates/project/manifest.rb +1 -0
  43. metadata +123 -0
@@ -0,0 +1,103 @@
1
+ /*
2
+ * jQuery Mobile Framework
3
+ * Copyright (c) jQuery Project
4
+ * Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
5
+ */
6
+
7
+ .ui-navbar {
8
+ overflow: hidden;
9
+ ul {
10
+ list-style: none;
11
+ padding: 0;
12
+ margin: 0;
13
+ position: relative;
14
+ display: block;
15
+ border: 0; } }
16
+
17
+ .ui-navbar-expanded ul {
18
+ list-style: none;
19
+ padding: 0;
20
+ margin: 0;
21
+ position: relative;
22
+ display: block;
23
+ border: 0; }
24
+
25
+ .ui-navbar-collapsed {
26
+ ul {
27
+ float: left;
28
+ width: 75%;
29
+ margin-right: -2px; }
30
+ .ui-navbar-toggle {
31
+ float: left;
32
+ width: 25%; } }
33
+
34
+ .ui-navbar {
35
+ li {
36
+ &.ui-navbar-truncate {
37
+ position: absolute;
38
+ left: -99999px;
39
+ top: -99999px; }
40
+ .ui-btn {
41
+ display: block;
42
+ font-size: 12px;
43
+ text-align: center;
44
+ margin: 0;
45
+ outline: none;
46
+ border-right-width: 0; } }
47
+ .ui-navbar-toggle .ui-btn {
48
+ display: block;
49
+ font-size: 12px;
50
+ text-align: center;
51
+ margin: 0;
52
+ outline: none;
53
+ border-right-width: 0; }
54
+ li .ui-btn {
55
+ margin-right: -1px;
56
+ &:last-child {
57
+ margin-right: 0; } } }
58
+
59
+ .ui-header .ui-navbar {
60
+ li .ui-btn, .ui-navbar-toggle .ui-btn {
61
+ border-top-width: 0;
62
+ border-bottom-width: 0; } }
63
+
64
+ .ui-footer .ui-navbar {
65
+ li .ui-btn, .ui-navbar-toggle .ui-btn {
66
+ border-top-width: 0;
67
+ border-bottom-width: 0; } }
68
+
69
+ .ui-navbar .ui-btn-inner {
70
+ padding-left: 2px;
71
+ padding-right: 2px; }
72
+
73
+ .ui-navbar-noicons {
74
+ li .ui-btn .ui-btn-inner, .ui-navbar-toggle .ui-btn-inner {
75
+ padding-top: .8em;
76
+ padding-bottom: .9em; } }
77
+
78
+ /*expanded page styles*/
79
+
80
+ .ui-navbar-expanded {
81
+ .ui-btn {
82
+ margin: 0;
83
+ font-size: 14px; }
84
+ .ui-btn-inner {
85
+ padding-left: 5px;
86
+ padding-right: 5px; }
87
+ .ui-btn-icon-top {
88
+ .ui-btn-inner {
89
+ padding: 45px 5px 15px;
90
+ text-align: center; }
91
+ .ui-icon {
92
+ top: 15px; } }
93
+ .ui-btn-icon-bottom {
94
+ .ui-btn-inner {
95
+ padding: 15px 5px 45px;
96
+ text-align: center; }
97
+ .ui-icon {
98
+ bottom: 15px; } }
99
+ li .ui-btn .ui-btn-inner {
100
+ min-height: 2.5em; }
101
+ .ui-navbar-noicons .ui-btn .ui-btn-inner {
102
+ padding-top: 1.8em;
103
+ padding-bottom: 1.9em; } }
@@ -0,0 +1,128 @@
1
+ /*
2
+ * jQuery Mobile Framework
3
+ * Copyright (c) jQuery Project
4
+ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
5
+ * Note: Code is in draft form and is subject to change
6
+ */
7
+
8
+ /* links within "buttons" */
9
+ a.ui-link-inherit { text-decoration: none !important; }
10
+
11
+ /* Active class used as the "on" state across all themes */
12
+ .ui-btn-active { @include linear-gradient(color-stops(#5393c5, #85bae4)); border: 1px solid #155678; background: #4596ce; font-weight: bold; color: #fff; cursor: pointer; text-shadow: 0 -1px 1px #145072; text-decoration: none; -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#85bae4', EndColorStr='#5393c5')"; }
13
+ .ui-btn-active a.ui-link-inherit { color: #fff; }
14
+
15
+ /* button inner top highlight */
16
+ .ui-btn-inner { border-top: 1px solid #fff; border-color: rgba(255,255,255,.3); }
17
+
18
+
19
+ /* Container Corner radius */
20
+ .ui-corner-tl { @include border-top-left-radius(.6em); }
21
+ .ui-corner-tr { @include border-top-right-radius(.6em); }
22
+ .ui-corner-bl { @include border-bottom-left-radius(.6em); }
23
+ .ui-corner-br { @include border-bottom-right-radius(.6em); }
24
+ .ui-corner-top { @include border-top-radius(.6em); }
25
+ .ui-corner-bottom { @include border-bottom-radius(.6em); }
26
+ .ui-corner-right { @include border-right-radius(.6em); }
27
+ .ui-corner-left { @include border-left-radius(.6em); }
28
+ .ui-corner-all { @include border-radius(.6em); }
29
+
30
+
31
+
32
+ /* Interaction Cues
33
+ ----------------------------------*/
34
+ .ui-state-disabled { cursor: default !important; opacity: .3; }
35
+
36
+ /* Icons
37
+ ----------------------------------*/
38
+ /* .ui-icon { background-position: 50% 50%; background-repeat: no-repeat; background-color: #fff; background-color: rgba(0,0,0,.4); @include border-radius(9px); } */
39
+
40
+ .ui-icon { background-image: image-url("jquery-mobile/icons-18-white.png"); background-repeat: no-repeat; background-color: #666; background-color: rgba(0,0,0,.4); @include border-radius(9px); }
41
+ .ui-icon-disc { background-color: #666; background-color: rgba(0,0,0,.3); @include border-radius(9px); }
42
+
43
+ /* alt color */
44
+ .ui-icon-black { background-image: image-url("jquery-mobile/icons-18-black.png"); }
45
+ .ui-icon-black-disc { background-color: #fff; background-color: rgba(255,255,255,.3); @include border-radius(9px); }
46
+
47
+ /* retina */
48
+ @media screen and (-webkit-min-device-pixel-ratio: 2), screen and (max--moz-device-pixel-ratio: 2) {
49
+ .ui-icon { background-image: image-url("jquery-mobile/icons-36-white.png"); background-size: 558px 18px; }
50
+ .ui-icon-black { background-image: image-url("jquery-mobile/icons-36-black.png"); }
51
+ }
52
+
53
+ /*plus minus*/
54
+ .ui-icon-plus { background-position: -0 0; }
55
+ .ui-icon-minus { background-position: -36px 0; }
56
+
57
+ /* delete/close */
58
+ .ui-icon-delete { background-position: -72px 0; }
59
+
60
+ /*arrows*/
61
+ .ui-icon-arrow-r { background-position: -108px 0; }
62
+ .ui-icon-arrow-l { background-position: -144px 0; }
63
+ .ui-icon-arrow-u { background-position: -180px 0; }
64
+ .ui-icon-arrow-d { background-position: -216px 0; }
65
+
66
+ .ui-icon-check { background-position: -252px 0; }
67
+ .ui-icon-gear { background-position: -288px 0; }
68
+ .ui-icon-refresh { background-position: -324px 0; }
69
+ .ui-icon-forward { background-position: -360px 0; }
70
+ .ui-icon-back { background-position: -396px 0; }
71
+
72
+ .ui-icon-grid { background-position: -432px 0; }
73
+ .ui-icon-star { background-position: -468px 0; }
74
+ .ui-icon-alert { background-position: -504px 0; }
75
+ .ui-icon-info { background-position: -540px 0; }
76
+
77
+ /*checks,radios*/
78
+ .ui-icon-checkbox-off,
79
+ .ui-icon-checkbox-on,
80
+ .ui-icon-radio-off,
81
+ .ui-icon-radio-on { background-color: transparent; @include border-radius(0); }
82
+
83
+ .ui-icon-checkbox-off { background-image: image-url("jquery-mobile/form-check-off.png"); }
84
+ .ui-icon-checkbox-on { background-image: image-url("jquery-mobile/form-check-on.png"); }
85
+ .ui-icon-radio-off { background-image: image-url("jquery-mobile/form-radio-off.png"); }
86
+ .ui-icon-radio-on { background-image: image-url("jquery-mobile/form-radio-on.png"); }
87
+
88
+ .ui-icon-search { background-image: image-url("jquery-mobile/icon-search-black.png"); }
89
+
90
+ /* loading icon */
91
+ .ui-icon-loading { background-image: image-url("jquery-mobile/ajax-loader.png"); width: 40px; height: 40px; @include border-radius(20px); }
92
+
93
+ /* btn Corner radius */
94
+ .ui-btn-corner-tl { @include border-top-left-radius(1em); }
95
+ .ui-btn-corner-tr { @include border-top-right-radius(1em); }
96
+ .ui-btn-corner-bl { @include border-bottom-left-radius(1em); }
97
+ .ui-btn-corner-br { @include border-bottom-right-radius(1em); }
98
+ .ui-btn-corner-top { @include border-top-radius(1em); }
99
+ .ui-btn-corner-bottom { @include border-bottom-radius(1em); }
100
+ .ui-btn-corner-right { @include border-right-radius(1em); }
101
+ .ui-btn-corner-left { @include border-left-radius(1em); }
102
+ .ui-btn-corner-all { @include border-radius(1em); }
103
+
104
+ /* radius clip */
105
+ .ui-corner-tl, .ui-corner-tr, .ui-corner-bl,
106
+ .ui-corner-br, .ui-corner-top, .ui-corner-bottom,
107
+ .ui-corner-right, .ui-corner-left, .ui-corner-all,
108
+ .ui-btn-corner-tl, .ui-btn-corner-tr, .ui-btn-corner-bl,
109
+ .ui-btn-corner-br, .ui-btn-corner-top, .ui-btn-corner-bottom,
110
+ .ui-btn-corner-right, .ui-btn-corner-left, .ui-btn-corner-all {
111
+ @include background-clip(padding-box);
112
+ }
113
+
114
+ /* Overlays */
115
+ .ui-overlay { background: #666; opacity: .5; filter:Alpha(Opacity=50); position: absolute; width: 100%; height: 100%; }
116
+ .ui-overlay-shadow { @include box-shadow(rgba(0,0,0,.6), 0, 0, 12px); }
117
+
118
+ .ui-shadow { @include box-shadow(rgba(0,0,0,.3), 0, 1px, 4px); }
119
+ .ui-bar-a .ui-shadow, .ui-bar-b .ui-shadow , .ui-bar-c .ui-shadow { @include box-shadow(rgba(255,255,255,.3), 0, 1px, 0); }
120
+ .ui-shadow-inset { @include box-shadow(rgba(0,0,0,.2), 0, 1px, 4px, 0, true); }
121
+ .ui-icon-shadow { @include box-shadow(rgba(255,255,255,.4), 0, 1px, 0); }
122
+
123
+ /* set focus state last */
124
+ .ui-focus { outline-width: 0; @include box-shadow(#387bbe, 0, 0, 12px); }
125
+
126
+ /* unset box shadow in browsers that don't do it right */
127
+ .ui-mobile-nosupport-boxshadow * { @include box-shadow(none!important, 0, 0, 0); }
128
+ .ui-mobile-nosupport-boxshadow .ui-focus { outline-width: 2px; }
@@ -0,0 +1,217 @@
1
+ /*
2
+ * jQuery Mobile Framework
3
+ * Copyright (c) jQuery Project
4
+ * Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
5
+ */
6
+
7
+ .spin {
8
+ -webkit-animation-name: spin;
9
+ -webkit-animation-duration: 1s;
10
+ -webkit-animation-iteration-count: infinite; }
11
+
12
+ @-webkit-keyframes spin {
13
+ from {
14
+ -webkit-transform: rotate(0deg); }
15
+ to {
16
+ -webkit-transform: rotate(360deg); } }
17
+
18
+
19
+ /* Transitions from jQtouch (with small modifications): http://www.jqtouch.com/
20
+ Built by David Kaneda and maintained by Jonathan Stark.
21
+ */
22
+
23
+ .in, .out {
24
+ -webkit-animation-timing-function: ease-in-out;
25
+ -webkit-animation-duration: 350ms; }
26
+
27
+ .slide {
28
+ &.in {
29
+ -webkit-animation-name: slideinfromright; }
30
+ &.out {
31
+ -webkit-animation-name: slideouttoleft; }
32
+ &.in.reverse {
33
+ -webkit-animation-name: slideinfromleft; }
34
+ &.out.reverse {
35
+ -webkit-animation-name: slideouttoright; } }
36
+
37
+ .slideup {
38
+ &.in {
39
+ -webkit-animation-name: slideinfrombottom;
40
+ z-index: 10; }
41
+ &.out {
42
+ -webkit-animation-name: dontmove;
43
+ z-index: 0;
44
+ &.reverse {
45
+ z-index: 10;
46
+ -webkit-animation-name: slideouttobottom; } }
47
+ &.in.reverse {
48
+ z-index: 0;
49
+ -webkit-animation-name: dontmove; } }
50
+
51
+ .slidedown {
52
+ &.in {
53
+ -webkit-animation-name: slideinfromtop;
54
+ z-index: 10; }
55
+ &.out {
56
+ -webkit-animation-name: dontmove;
57
+ z-index: 0;
58
+ &.reverse {
59
+ z-index: 10;
60
+ -webkit-animation-name: slideouttotop; } }
61
+ &.in.reverse {
62
+ z-index: 0;
63
+ -webkit-animation-name: dontmove; } }
64
+
65
+ @-webkit-keyframes slideinfromright {
66
+ from {
67
+ -webkit-transform: translateX(100%); }
68
+ to {
69
+ -webkit-transform: translateX(0); } }
70
+
71
+
72
+ @-webkit-keyframes slideinfromleft {
73
+ from {
74
+ -webkit-transform: translateX(-100%); }
75
+ to {
76
+ -webkit-transform: translateX(0); } }
77
+
78
+
79
+ @-webkit-keyframes slideouttoleft {
80
+ from {
81
+ -webkit-transform: translateX(0); }
82
+ to {
83
+ -webkit-transform: translateX(-100%); } }
84
+
85
+
86
+ @-webkit-keyframes slideouttoright {
87
+ from {
88
+ -webkit-transform: translateX(0); }
89
+ to {
90
+ -webkit-transform: translateX(100%); } }
91
+
92
+
93
+ @-webkit-keyframes slideinfromtop {
94
+ from {
95
+ -webkit-transform: translateY(-100%); }
96
+ to {
97
+ -webkit-transform: translateY(0); } }
98
+
99
+
100
+ @-webkit-keyframes slideinfrombottom {
101
+ from {
102
+ -webkit-transform: translateY(100%); }
103
+ to {
104
+ -webkit-transform: translateY(0); } }
105
+
106
+
107
+ @-webkit-keyframes slideouttobottom {
108
+ from {
109
+ -webkit-transform: translateY(0); }
110
+ to {
111
+ -webkit-transform: translateY(100%); } }
112
+
113
+
114
+ @-webkit-keyframes slideouttotop {
115
+ from {
116
+ -webkit-transform: translateY(0); }
117
+ to {
118
+ -webkit-transform: translateY(-100%); } }
119
+
120
+
121
+ @-webkit-keyframes fadein {
122
+ from {
123
+ opacity: 0; }
124
+ to {
125
+ opacity: 1; } }
126
+
127
+
128
+ @-webkit-keyframes fadeout {
129
+ from {
130
+ opacity: 1; }
131
+ to {
132
+ opacity: 0; } }
133
+
134
+
135
+ .fade {
136
+ &.in {
137
+ z-index: 10;
138
+ -webkit-animation-name: fadein; }
139
+ &.out {
140
+ z-index: 0; } }
141
+
142
+ .flip {
143
+ -webkit-animation-duration: .65s;
144
+ &.in {
145
+ -webkit-animation-name: flipinfromleft; }
146
+ &.out {
147
+ -webkit-animation-name: flipouttoleft; }
148
+ &.in.reverse {
149
+ -webkit-animation-name: flipinfromright; }
150
+ &.out.reverse {
151
+ -webkit-animation-name: flipouttoright; } }
152
+
153
+ /* Shake it all about */
154
+
155
+ @-webkit-keyframes flipinfromright {
156
+ from {
157
+ -webkit-transform: rotateY(-180deg) scale(0.8); }
158
+ to {
159
+ -webkit-transform: rotateY(0) scale(1); } }
160
+
161
+
162
+ @-webkit-keyframes flipinfromleft {
163
+ from {
164
+ -webkit-transform: rotateY(180deg) scale(0.8); }
165
+ to {
166
+ -webkit-transform: rotateY(0) scale(1); } }
167
+
168
+
169
+ @-webkit-keyframes flipouttoleft {
170
+ from {
171
+ -webkit-transform: rotateY(0) scale(1); }
172
+ to {
173
+ -webkit-transform: rotateY(-180deg) scale(0.8); } }
174
+
175
+
176
+ @-webkit-keyframes flipouttoright {
177
+ from {
178
+ -webkit-transform: rotateY(0) scale(1); }
179
+ to {
180
+ -webkit-transform: rotateY(180deg) scale(0.8); } }
181
+
182
+
183
+ /* Hackish, but reliable. */
184
+
185
+ @-webkit-keyframes dontmove {
186
+ from, to {
187
+ opacity: 1; } }
188
+
189
+
190
+ .pop {
191
+ -webkit-transform-origin: 50% 50%;
192
+ &.in {
193
+ -webkit-animation-name: popin;
194
+ z-index: 10; }
195
+ &.out.reverse {
196
+ -webkit-animation-name: popout;
197
+ z-index: 10; }
198
+ &.in.reverse {
199
+ z-index: 0;
200
+ -webkit-animation-name: dontmove; } }
201
+
202
+ @-webkit-keyframes popin {
203
+ from {
204
+ -webkit-transform: scale(0.2);
205
+ opacity: 0; }
206
+ to {
207
+ -webkit-transform: scale(1);
208
+ opacity: 1; } }
209
+
210
+
211
+ @-webkit-keyframes popout {
212
+ from {
213
+ -webkit-transform: scale(1);
214
+ opacity: 1; }
215
+ to {
216
+ -webkit-transform: scale(0.2);
217
+ opacity: 0; } }