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,37 @@
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
+ div {
8
+ &.ui-checkbox, &.ui-radio {
9
+ position: relative;
10
+ margin: .2em 0 .5em; } }
11
+
12
+ .ui-checkbox .ui-btn, .ui-radio .ui-btn {
13
+ margin: 0;
14
+ text-align: left; }
15
+
16
+ .ui-checkbox .ui-btn-icon-left .ui-btn-inner, .ui-radio .ui-btn-icon-left .ui-btn-inner {
17
+ padding-left: 45px; }
18
+
19
+ .ui-checkbox .ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-btn-icon-right .ui-btn-inner {
20
+ padding-right: 45px; }
21
+
22
+ .ui-checkbox .ui-btn-icon-left .ui-icon, .ui-radio .ui-btn-icon-left .ui-icon {
23
+ left: 15px; }
24
+
25
+ .ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon {
26
+ right: 15px; }
27
+
28
+ /* input, label positioning */
29
+
30
+ .ui-checkbox input, .ui-radio input {
31
+ position: absolute;
32
+ left: 20px;
33
+ top: 50%;
34
+ width: 10px;
35
+ height: 10px;
36
+ margin: -5px 0 0 0;
37
+ outline: 0 !important; }
@@ -0,0 +1,20 @@
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-field-contain {
8
+ background: none;
9
+ padding: 1.5em 0;
10
+ margin: 0;
11
+ border-bottom-width: 1px;
12
+ overflow: visible;
13
+ &:first-child {
14
+ border-top-width: 0; } }
15
+
16
+ @media screen and (max-width: 480px) {
17
+ .ui-field-contain {
18
+ border-width: 0;
19
+ padding: 0;
20
+ margin: 1em 0; } }
@@ -0,0 +1,72 @@
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-select {
8
+ display: block;
9
+ select {
10
+ position: absolute;
11
+ left: -99999px; }
12
+ .ui-btn-icon-right {
13
+ .ui-btn-inner {
14
+ padding-right: 45px; }
15
+ .ui-icon {
16
+ right: 15px; } } }
17
+
18
+ /* labels */
19
+
20
+ label.ui-select {
21
+ font-size: 16px;
22
+ line-height: 1.4;
23
+ font-weight: normal;
24
+ margin: 0 0 .3em;
25
+ display: block; }
26
+
27
+ /*listbox*/
28
+
29
+ .ui-listbox {
30
+ position: absolute;
31
+ padding: 0;
32
+ z-index: 100 !important;
33
+ width: 80%;
34
+ max-width: 350px;
35
+ padding: 6px;
36
+ .ui-listview {
37
+ margin: 0; } }
38
+
39
+ .ui-listbox-hidden {
40
+ top: -999999px;
41
+ left: -99999px; }
42
+
43
+ .ui-listbox-screen {
44
+ position: absolute;
45
+ top: 0;
46
+ left: 0;
47
+ width: 100%;
48
+ height: 100%;
49
+ z-index: 99; }
50
+
51
+ .ui-screen-hidden {
52
+ display: none; }
53
+
54
+ .ui-listbox-list {
55
+ .ui-li .ui-icon {
56
+ display: none; }
57
+ .ui-btn-active .ui-icon {
58
+ display: block; } }
59
+
60
+ /*used in listbox - to be removed/replaced with page-style hiding*/
61
+
62
+ .ui-helper-hidden, .ui-mobile .ui-content-hidden {
63
+ display: none; }
64
+
65
+ @media screen and (min-width: 480px) {
66
+ label.ui-select {
67
+ display: inline-block;
68
+ width: 20%;
69
+ margin: 0 2% 0 0; }
70
+ .ui-select {
71
+ width: 60%;
72
+ display: inline-block; } }
@@ -0,0 +1,104 @@
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
+ label.ui-slider {
8
+ display: block; }
9
+
10
+ input.ui-slider-input {
11
+ display: inline-block;
12
+ width: 40px; }
13
+
14
+ select.ui-slider-switch {
15
+ display: none; }
16
+
17
+ div.ui-slider {
18
+ position: relative;
19
+ display: inline-block;
20
+ overflow: visible;
21
+ height: 15px;
22
+ padding: 0;
23
+ margin: 0 2% 0 15px;
24
+ top: 4px;
25
+ width: 66%; }
26
+
27
+ a.ui-slider-handle {
28
+ position: absolute;
29
+ z-index: 10;
30
+ top: 50%;
31
+ width: 28px;
32
+ height: 28px;
33
+ margin-top: -15px;
34
+ margin-left: -15px;
35
+ .ui-btn-inner {
36
+ padding-left: 0;
37
+ padding-right: 0; } }
38
+
39
+ @media screen and (min-width: 480px) {
40
+ label.ui-slider {
41
+ display: inline-block;
42
+ width: 20%;
43
+ margin: 0 2% 0 0; }
44
+ div.ui-slider {
45
+ width: 45%; } }
46
+
47
+
48
+ div {
49
+ &.ui-slider-switch {
50
+ height: 32px;
51
+ overflow: hidden;
52
+ margin-left: 0; }
53
+ &.ui-slider-inneroffset {
54
+ margin-left: 50%;
55
+ position: absolute;
56
+ top: 1px;
57
+ height: 100%;
58
+ width: 50%; }
59
+ &.ui-slider-handle-snapping {
60
+ @include transition(left, 100ms, linear); }
61
+ &.ui-slider-labelbg {
62
+ position: absolute;
63
+ top: 0;
64
+ margin: 0;
65
+ border-width: 0; }
66
+ &.ui-slider-switch div {
67
+ &.ui-slider-labelbg-a {
68
+ width: 60%;
69
+ height: 100%;
70
+ left: 0; }
71
+ &.ui-slider-labelbg-b {
72
+ width: 60%;
73
+ height: 100%;
74
+ right: 0; } } }
75
+
76
+ .ui-slider-switch-a div.ui-slider-labelbg-a, .ui-slider-switch-b div.ui-slider-labelbg-b {
77
+ z-index: 1; }
78
+
79
+ .ui-slider-switch-a div.ui-slider-labelbg-b, .ui-slider-switch-b div.ui-slider-labelbg-a {
80
+ z-index: 10; }
81
+
82
+ div.ui-slider-switch a.ui-slider-handle {
83
+ z-index: 20;
84
+ width: 101%;
85
+ height: 32px;
86
+ margin-top: -18px;
87
+ margin-left: -101%; }
88
+
89
+ span {
90
+ &.ui-slider-label {
91
+ width: 100%;
92
+ position: absolute;
93
+ height: 32px;
94
+ font-size: 16px;
95
+ text-align: center;
96
+ line-height: 2;
97
+ background: none;
98
+ border-color: transparent; }
99
+ &.ui-slider-label-a {
100
+ left: -100%;
101
+ margin-right: -1px; }
102
+ &.ui-slider-label-b {
103
+ right: -100%;
104
+ margin-left: -1px; } }
@@ -0,0 +1,72 @@
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
+ label.ui-input-text {
8
+ font-size: 16px;
9
+ line-height: 1.4;
10
+ display: block;
11
+ font-weight: normal;
12
+ margin: 0 0 .3em; }
13
+
14
+ input.ui-input-text {
15
+ background-image: none;
16
+ padding: .4em;
17
+ line-height: 1.4;
18
+ font-size: 16px;
19
+ display: block;
20
+ width: 95%; }
21
+
22
+ textarea.ui-input-text {
23
+ @include transition(height, 200ms, linear);
24
+ background-image: none;
25
+ padding: .4em;
26
+ line-height: 1.4;
27
+ font-size: 16px;
28
+ display: block;
29
+ width: 95%;
30
+ height: 50px; }
31
+
32
+ .ui-input-search {
33
+ padding: 0 30px;
34
+ width: 77%;
35
+ background-position: 8px 50%;
36
+ background-repeat: no-repeat;
37
+ position: relative;
38
+ input.ui-input-text {
39
+ border: none;
40
+ width: 98%;
41
+ padding: .4em 0;
42
+ margin: 0;
43
+ display: block;
44
+ background: transparent none;
45
+ outline: 0 !important; }
46
+ .ui-input-clear {
47
+ position: absolute;
48
+ right: 2px;
49
+ top: 50%;
50
+ margin-top: -12px; }
51
+ .ui-input-clear-hidden {
52
+ display: none; } }
53
+
54
+ /* orientation adjustments - incomplete!*/
55
+ @media screen and (min-width: 480px) {
56
+ label {
57
+ &.ui-input-text {
58
+ vertical-align: top;
59
+ display: inline-block;
60
+ width: 20%;
61
+ margin: 0 2% 0 0; }
62
+ &.ui-select {
63
+ display: inline-block;
64
+ width: 20%;
65
+ margin: 0 2% 0 0; } }
66
+ input.ui-input-text, textarea.ui-input-text {
67
+ width: 60%;
68
+ display: inline-block; }
69
+ .ui-input-search {
70
+ width: 60%;
71
+ display: inline-block;
72
+ width: 50%; } }
@@ -0,0 +1,31 @@
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
+ /* content configurations. */
7
+
8
+ .ui-grid-a, .ui-grid-b, .ui-grid-c {
9
+ overflow: hidden; }
10
+
11
+ .ui-block-a, .ui-block-b, .ui-block-c, .ui-block-d {
12
+ margin: 0;
13
+ padding: 0;
14
+ border: 0;
15
+ float: left; }
16
+
17
+ /* grid a: 50/50 */
18
+
19
+ .ui-grid-a {
20
+ .ui-block-a, .ui-block-b {
21
+ width: 50%; }
22
+ .ui-block-a {
23
+ clear: left; } }
24
+
25
+ /* grid b: 33/33/33 */
26
+
27
+ .ui-grid-b {
28
+ .ui-block-a, .ui-block-b, .ui-block-c {
29
+ width: 33.333%; }
30
+ .ui-block-a {
31
+ clear: left; } }
@@ -0,0 +1,33 @@
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
+ /* fixed page header & footer configuration */
7
+
8
+ .ui-header, .ui-footer {
9
+ position: absolute;
10
+ overflow: hidden;
11
+ width: 100%;
12
+ border-left-width: 0;
13
+ border-right-width: 0; }
14
+
15
+ .ui-page-fullscreen {
16
+ .ui-header, .ui-footer {
17
+ position: absolute;
18
+ overflow: hidden;
19
+ width: 100%;
20
+ border-left-width: 0;
21
+ border-right-width: 0; } }
22
+
23
+ .ui-header-fixed, .ui-footer-fixed {
24
+ z-index: 1000; }
25
+
26
+ .ui-footer-duplicate {
27
+ display: none; }
28
+
29
+ .ui-page-fullscreen {
30
+ .ui-fixed-inline {
31
+ display: none; }
32
+ .ui-header, .ui-footer {
33
+ opacity: .9; } }
@@ -0,0 +1,39 @@
1
+ /* Compass Helpers */
2
+ @import "compass/css3";
3
+ @import "compass/reset";
4
+
5
+ /* Variables */
6
+ $base-font-family: Helvetica, Arial, sans-serif;
7
+ $border-radius: .6em;
8
+
9
+ /* Helpers */
10
+ @import "helpers/mixins";
11
+
12
+ /* Theming */
13
+ @import "theme";
14
+ @import "themes/a";
15
+ @import "themes/b";
16
+ @import "themes/c";
17
+ @import "themes/d";
18
+ @import "themes/e";
19
+
20
+ /* Base UI */
21
+ @import "core";
22
+ @import "transitions";
23
+ @import "grids";
24
+ @import "headerfooter";
25
+ @import "navbar";
26
+ @import "button";
27
+ @import "collapsible";
28
+ @import "controlgroup";
29
+ @import "dialog";
30
+ @import "forms.checkboxradio";
31
+ @import "forms.fieldcontain";
32
+ @import "forms.select";
33
+ @import "forms.textinput";
34
+ @import "listview";
35
+ @import "forms.slider";
36
+
37
+ /* Custom Styles */
38
+
39
+ /* go nuts! */
@@ -0,0 +1,170 @@
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-listview {
8
+ margin: 0;
9
+ counter-reset: listnumbering;
10
+ margin: -15px; }
11
+
12
+ .ui-listview-inset {
13
+ margin: 1em 0; }
14
+
15
+ .ui-listview {
16
+ list-style: none;
17
+ padding: 0;
18
+ zoom: 1; }
19
+
20
+ .ui-li {
21
+ list-style: none;
22
+ padding: 0;
23
+ zoom: 1;
24
+ display: block;
25
+ margin: 0;
26
+ position: relative;
27
+ overflow: hidden;
28
+ text-align: left;
29
+ border-width: 0;
30
+ border-top-width: 1px;
31
+ .ui-btn-text {
32
+ text-overflow: ellipsis;
33
+ overflow: hidden;
34
+ white-space: nowrap; } }
35
+
36
+ .ui-li-divider, .ui-li-static {
37
+ padding: .5em 15px;
38
+ font-size: 14px;
39
+ font-weight: bold;
40
+ counter-reset: listnumbering; }
41
+
42
+ ol.ui-listview .ui-link-inherit:before, .ui-li-dec {
43
+ font-size: .8em;
44
+ display: inline-block;
45
+ padding-right: .3em;
46
+ font-weight: normal;
47
+ counter-increment: listnumbering;
48
+ content: counter(listnumbering) ". "; }
49
+
50
+ ol.ui-listview .ui-li-jsnumbering:before {
51
+ content: "" !important; }
52
+
53
+ /* to avoid chance of duplication */
54
+
55
+ .ui-listview-inset .ui-li {
56
+ border-right-width: 1px;
57
+ border-left-width: 1px; }
58
+
59
+ .ui-li {
60
+ &:last-child {
61
+ border-bottom-width: 1px; }
62
+ .ui-btn-inner {
63
+ display: block;
64
+ position: relative;
65
+ padding: .7em 75px .7em 15px; } }
66
+
67
+ .ui-li-has-thumb .ui-btn-inner {
68
+ min-height: 60px;
69
+ padding-left: 100px; }
70
+
71
+ .ui-li-has-icon .ui-btn-inner {
72
+ min-height: 20px;
73
+ padding-left: 40px; }
74
+
75
+ .ui-li-heading {
76
+ font-size: 16px;
77
+ font-weight: bold;
78
+ display: block;
79
+ margin: .6em 0;
80
+ text-overflow: ellipsis;
81
+ overflow: hidden;
82
+ white-space: nowrap; }
83
+
84
+ .ui-li-desc {
85
+ font-size: 12px;
86
+ font-weight: normal;
87
+ display: block;
88
+ margin: -0.5em 0 0.6em;
89
+ text-overflow: ellipsis;
90
+ overflow: hidden;
91
+ white-space: nowrap; }
92
+
93
+ .ui-li-thumb {
94
+ position: absolute;
95
+ left: 1px;
96
+ top: 0;
97
+ max-height: 80px;
98
+ max-width: 80px; }
99
+
100
+ .ui-li-icon {
101
+ position: absolute;
102
+ left: 1px;
103
+ top: 0;
104
+ max-height: 80px;
105
+ max-width: 80px;
106
+ max-height: 40px;
107
+ max-width: 40px;
108
+ left: 10px;
109
+ top: .9em; }
110
+
111
+ .ui-li-thumb, .ui-li-icon, .ui-li-content {
112
+ float: left;
113
+ margin-right: 10px; }
114
+
115
+ .ui-li-aside {
116
+ float: right;
117
+ width: 25%;
118
+ text-align: right;
119
+ margin: .3em 0; }
120
+
121
+ .ui-li-has-alt .ui-btn-inner {
122
+ padding-right: 95px; }
123
+
124
+ .ui-li-count {
125
+ position: absolute;
126
+ font-size: 11px;
127
+ font-weight: bold;
128
+ padding: .2em .5em;
129
+ top: 50%;
130
+ margin-top: -0.9em;
131
+ right: 38px; }
132
+
133
+ .ui-li-divider .ui-li-count {
134
+ right: 10px; }
135
+
136
+ .ui-li-has-alt .ui-li-count {
137
+ right: 55px; }
138
+
139
+ .ui-li-link-alt {
140
+ position: absolute;
141
+ width: 40px;
142
+ height: 100%;
143
+ border-width: 0;
144
+ border-left-width: 1px;
145
+ top: 0;
146
+ right: 0;
147
+ margin: 0;
148
+ padding: 0;
149
+ .ui-btn {
150
+ overflow: hidden;
151
+ position: absolute;
152
+ right: 8px;
153
+ top: 50%;
154
+ margin: -11px 0 0 0;
155
+ border-bottom-width: 1px; }
156
+ .ui-btn-inner {
157
+ padding: 0;
158
+ position: static; }
159
+ .ui-btn .ui-icon {
160
+ right: 50%;
161
+ margin-right: -9px; } }
162
+
163
+ .ui-listview-filter {
164
+ border-width: 0;
165
+ overflow: hidden;
166
+ margin: -15px -15px 15px -15px;
167
+ .ui-input-search {
168
+ margin: 5px;
169
+ width: auto;
170
+ display: block; } }