overlay_me 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,213 @@
1
+ @import "compass/css3";
2
+
3
+ $menu_width: 250px;
4
+ $border: 1px solid rgba(white, 0.2);
5
+
6
+ button {
7
+ font-size: 10px;
8
+ margin: 0 5px;
9
+ padding: 0px 5px;
10
+ }
11
+
12
+ #overlay_me_page_container {
13
+ position: relative;
14
+ }
15
+
16
+ #overlay_me_dev_tools_menu {
17
+ position: absolute;
18
+ z-index: 990; //to pass over Google Toolbar ;)
19
+
20
+ * {
21
+ line-height: 14px;
22
+ }
23
+
24
+ .drag-me {
25
+ line-height: 100%;
26
+ display: block;
27
+ color: black;
28
+ font-size: 0.7em;
29
+ text-align: center;
30
+ &:hover {
31
+ cursor: move;
32
+ }
33
+ @include background-image(linear-gradient(0deg, #999999, #DDD 30%,#DDD 70%,#999999 100.0%));
34
+ padding: 1px;
35
+ }
36
+
37
+ ul {
38
+ list-style: none;
39
+ margin: 0;
40
+ padding: 0;
41
+ border: 0;
42
+ font-size: 100%;
43
+ font: inherit;
44
+ vertical-align: baseline;
45
+ }
46
+ }
47
+
48
+ .menu-item {
49
+ text-align: left;
50
+ background-color: #CCC;
51
+ border: $border;
52
+ width: $menu_width;
53
+ a.collaps-button {
54
+ cursor: pointer;
55
+ position: absolute;
56
+ padding-top: 9px;
57
+ padding-left: 5px;
58
+ width: 13px;
59
+ height: 9px;
60
+ border: none;
61
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAJCAYAAADpeqZqAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIlJREFUeNpivHDhQujz589TmZiYvjMQAP/+/eOQkZGZyfD//38ZIL77nzhwG4ilQJpA2BiIPxHQ8BGIDUHqYZpAOIWApiSYWmRNIDfPxaYaKD4bWR2KJiDmA+KzaHrOQMVxagJhfSD+ALXhA5TPQEgTCCcD8V+gpmRs8rg0MQI1eANpJmzyAAEGAKD/bax/HrzbAAAAAElFTkSuQmCC) no-repeat center center;
62
+ span {
63
+ display: none;
64
+ color: yellow;
65
+ &:hover {
66
+ color: yellow;
67
+ }
68
+ }
69
+ }
70
+ label.title {
71
+ padding-left: 20px;
72
+ color: white;
73
+ cursor: pointer;
74
+ width: $menu_width - 13px;
75
+ line-height: 1.1em;
76
+ font-size: 14px;
77
+ background: none;
78
+ }
79
+ &.collapsed {
80
+ .item-content { display: none; }
81
+ a.collaps-button {
82
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAANCAYAAAB7AEQGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKtJREFUeNpiuHz5ctD///+lgJgBF2Z68uRJOgMDw0EgNmTAAZiA4AeQVgHiA0CchFUREpsPiOcCjZ8NZWNVBAaMjIwpQGofEOvjVAQFxkATDwJxMkgNCy7HAk3kB1KzgApf4DIJBD4CcRpQ8TZcJp2D+vQiVjcBjZ8HpBxhCtAVfQbiVKDxIMd+QtbI8u/fP04gfQ+Iw4D4LDa7WSQlJUGBdxyIn+DyAUCAAQDxsEXD9kreLQAAAABJRU5ErkJggg==) no-repeat center center;
83
+ }
84
+ }
85
+ }
86
+
87
+ #overlay_panel {
88
+
89
+ .content-mgnt-block {
90
+ position: relative;
91
+ line-height: 10px;
92
+ .unicorns {
93
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAklJREFUeNqEks1u00AQx3d27V3HdezY+SBpkKBFoBZxQEKIOwfegBs3rtwoPABvw3sgceKAuFWtUBBSaT6ctvHXer2zOElTVaoKI/2lWWl/O//ZGZi8jgSPxFv3JX93+CJvfJ4/09++vzH6S/SVH59+IohH5JagxBilC4zNHHigSLvtTCPRnLYxtB4b29ojGglBc1PG1PAyLfUxzszIX7B86MwLP/iVkS566DWeEgo+gfrWdV1VJoZgpUdqon84p1a+wxI1CA+l3Z+yqu89N5a9v65EVgK8TOpgH/edZS6JAZ97/AkfKjF3pTpRkUrlfQFnoGlaHNc2F0sAzPIFWIl9WMEGTYUZJfyB12ED2l9UE6bkDAcoy+0QznXJ8nIEBosNuIb3xLoBNIlRhNlc7Ho9dDA6l1OC8gKGUGEnhAyBFmpSu8zqf9jAzqZ/RIUxFDR0G2LQ6ueIwUzGFIuE95livS4p2RaUVQYas/p+xQ4eiavPqO2nKPUcCrvlCR50uqlirXGeiUWeua4uva6vebNDwHIJErq2fW0Mdfcxpjqmqe37Nnd73US64Ummt8a5bCpZhh5UrZanfS9gBw/5tcorGSz1TJ/rCTljoomOGDTLsh+NUz8Ypdz/ndBwlpFeIdn7Hevm9miD9QNxdVGNSQzGSR3ao6Duekm23fqT3Al/Ju3waAEnr1xyayxnymhgNcU9Z7sx5LtWA+6bquxXaeLr5J+wMZebRQwDiwW2x0O7I1y7ZxOrS+X/4Y0DXJ0pANhgM4sKRv4KMACD6UDbVgTzkgAAAABJRU5ErkJggg==) no-repeat center center;
94
+ width: 15px;
95
+ height: 15px;
96
+ position: absolute;
97
+ right: 0;
98
+ top: 6px;
99
+ }
100
+ }
101
+
102
+
103
+ label {
104
+ margin: 0 5px 0 0;
105
+ font-size: 14px;
106
+ }
107
+
108
+ .content-mgnt-block, #images_mgnt {
109
+ text-align: left;
110
+ padding: 3px 4px;
111
+ margin: 2px;
112
+ border: 1px #777 solid;
113
+
114
+ @include border-radius(5px);
115
+ legend {
116
+ font-size: 10px;
117
+ padding: 0 3px;
118
+ margin-left: 10px;
119
+ }
120
+ }
121
+
122
+ .slider-block {
123
+ display: block;
124
+ label {
125
+ font-size: 70%;
126
+ vertical-align: top;
127
+ }
128
+ input[type=range] {
129
+ margin: 0;
130
+ }
131
+ }
132
+
133
+ #images_mgnt {
134
+ $image_mgnt_width: $menu_width - 14px;
135
+ width: $image_mgnt_width;
136
+
137
+ .controls {
138
+ padding-bottom: 5px;
139
+ }
140
+
141
+ .overlay-image-block {
142
+ text-align: left;
143
+ position: relative;
144
+ width: $image_mgnt_width;
145
+ border: $border;
146
+ border-right: none;
147
+ border-left: none;
148
+ &.hovered {
149
+ background-color: rgba(yellow, 0.5);
150
+ }
151
+ .del-button {
152
+ position: absolute;
153
+ right: 0;
154
+ top: 0;
155
+ margin: 3px 7px;
156
+ cursor: pointer;
157
+ border: 1px #AAA solid;
158
+ font-size: 80%;
159
+ background-color: #444;
160
+ color: white;
161
+ font-weight: bold;
162
+ padding: 0 4px 2px 4px;
163
+ }
164
+ }
165
+
166
+ .dynamic-adds {
167
+ label {
168
+ font-size: 75%;
169
+ }
170
+ input {
171
+ width: 105px;
172
+ font-size: 10px;
173
+ }
174
+ }
175
+ }
176
+
177
+ input[type=checkbox], label, #contentSlider, .zindex-switch {
178
+ display: inline;
179
+ }
180
+
181
+ input[type=checkbox] {
182
+ vertical-align: middle;
183
+ margin: -3px 5px 0 0;
184
+ }
185
+
186
+ }
187
+
188
+ #overlay_me_images_container {
189
+ position: absolute;
190
+ z-index: 4; // same than the caroussel images
191
+ top: 0;
192
+ left: 0;
193
+ div {
194
+ position: absolute;
195
+ visibility: hidden;
196
+ &.highlight {
197
+ background: rgba(255, 255, 0, 0.5);
198
+ opacity: 1;
199
+ img {
200
+ opacity: .7;
201
+ }
202
+ }
203
+ &:hover {
204
+ cursor: move;
205
+ }
206
+ }
207
+ img {
208
+ position: absolute;
209
+ top: 0;
210
+ left: 0;
211
+ }
212
+ }
213
+
@@ -0,0 +1,51 @@
1
+ (function() {
2
+ var layout_menu, layouts;
3
+
4
+ layouts = {
5
+ smartphone_portrait: 310,
6
+ smartphone_landscape: 470,
7
+ tablet_port: 758,
8
+ tablet_land: 1014,
9
+ none: null
10
+ };
11
+
12
+ window.resize_page = function(width) {
13
+ if (width === null || isNaN(width)) {
14
+ $('#content').css({
15
+ width: 'auto'
16
+ });
17
+ } else {
18
+ $('#content').css({
19
+ width: "" + width + "px"
20
+ });
21
+ }
22
+ _.each(layouts, function(_width, name) {
23
+ if (width === _width) {
24
+ return $('body').addClass(name);
25
+ } else {
26
+ return $('body').removeClass(name);
27
+ }
28
+ });
29
+ return localStorage.setItem("layout-width", width);
30
+ };
31
+
32
+ window.resize_page(parseInt(localStorage.getItem("layout-width")));
33
+
34
+ layout_menu = new OverlayMe.MenuItem({
35
+ id: "layout-buttons",
36
+ title: "Layout Resizing"
37
+ });
38
+
39
+ _.each(layouts, function(width, name) {
40
+ var button;
41
+ button = (new Backbone.View).make('button', {}, name);
42
+ $(button).addClass(name);
43
+ $(button).bind('click', function(e) {
44
+ return window.resize_page("" + width);
45
+ });
46
+ return layout_menu.append(button);
47
+ });
48
+
49
+ $(OverlayMe.Menu).append(layout_menu.render());
50
+
51
+ }).call(this);