Skip to content

Commit 68c7ed9

Browse files
committed
remove the content and contains selectors
1 parent 60f4a45 commit 68c7ed9

24 files changed

+9675
-126
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea
22
.DS_Store
33
extension.zip
4+
.sass-cache

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-1.9.3
1+
2.2.0

Gemfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# A sample Gemfile
22
source "https://rubygems.org"
33

4-
gem 'sprockets'
5-
gem 'guard-sprockets'
4+
gem 'guard'
65
gem 'coffee-script'
7-
gem 'uglifier'
86
gem 'sass'
7+
gem 'uglifier'
8+
gem 'yui-compressor'
9+
10+
gem 'guard-coffeescript', :require => false
11+
gem 'guard-sass', :require => false
12+
gem 'guard-shell', :require => false
13+
gem 'guard-concat', :git => 'https://github.com/mikz/guard-concat', :require => false

Gemfile.lock

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
GIT
2+
remote: https://github.com/mikz/guard-concat
3+
revision: f19853684e676001c6c11a407bc37e2747134595
4+
specs:
5+
guard-concat (0.0.5)
6+
guard (>= 1.1.0)
7+
18
GEM
29
remote: https://rubygems.org/
310
specs:
@@ -11,39 +18,41 @@ GEM
1118
guard (1.3.2)
1219
listen (>= 0.4.2)
1320
thor (>= 0.14.6)
14-
guard-sprockets (0.4.0)
21+
guard-coffeescript (1.4.0)
22+
coffee-script (>= 2.2.0)
23+
guard (>= 1.1.0)
24+
guard-sass (1.5.0)
25+
guard (>= 1.1.0)
26+
sass (>= 3.1)
27+
guard-shell (0.6.1)
1528
guard (>= 1.1.0)
16-
sprockets (~> 2.0)
17-
hike (1.2.1)
1829
listen (0.4.7)
1930
rb-fchange (~> 0.0.5)
2031
rb-fsevent (~> 0.9.1)
2132
rb-inotify (~> 0.8.8)
2233
multi_json (1.3.6)
23-
rack (1.4.1)
2434
rb-fchange (0.0.5)
2535
ffi
2636
rb-fsevent (0.9.1)
2737
rb-inotify (0.8.8)
2838
ffi (>= 0.5.0)
2939
sass (3.2.1)
30-
sprockets (2.4.5)
31-
hike (~> 1.2)
32-
multi_json (~> 1.0)
33-
rack (~> 1.0)
34-
tilt (~> 1.1, != 1.3.0)
3540
thor (0.16.0)
36-
tilt (1.3.3)
3741
uglifier (1.2.7)
3842
execjs (>= 0.3.0)
3943
multi_json (~> 1.3)
44+
yui-compressor (0.12.0)
4045

4146
PLATFORMS
4247
ruby
4348

4449
DEPENDENCIES
4550
coffee-script
46-
guard-sprockets
51+
guard
52+
guard-coffeescript
53+
guard-concat!
54+
guard-sass
55+
guard-shell
4756
sass
48-
sprockets
4957
uglifier
58+
yui-compressor

Guardfile

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,41 @@
11
# A sample Guardfile
22
# More info at https://github.com/guard/guard#readme
33

4-
guard 'sprockets', :destination => 'build', :asset_paths => ['lib', 'vendor'], :minify => true do
5-
watch (%r{^lib/js/[^\.].*\.(js|coffee)$}) { |m| "lib/js/selectorgadget_combined.js" }
6-
watch (%r{^lib/css/[^\.].*\.(scss|css)$}) { |m| "lib/css/selectorgadget_combined.css" }
7-
end
4+
require 'uglifier'
5+
require 'yui/compressor'
6+
require 'fileutils'
7+
8+
# Specs
9+
guard 'coffeescript', :input => 'spec', :output => 'spec/compiled', :all_on_start => true
10+
11+
# Core Code
12+
13+
FileUtils.mkdir_p File.join(File.dirname(__FILE__), 'build', 'js')
14+
FileUtils.mkdir_p File.join(File.dirname(__FILE__), 'build', 'css')
15+
16+
guard 'coffeescript', :input => 'lib/js', :output => 'build/js', :all_on_start => true
17+
guard 'sass', :input => 'lib/css', :output => 'build/css', :all_on_start => true, :line_numbers => true
18+
19+
guard 'concat',
20+
:all_on_start => true,
21+
:type => "js",
22+
:files => %w(vendor/jquery build/js/jquery-include vendor/diff/diff_match_patch build/js/core/dom build/js/core/core),
23+
:input_dir => ".",
24+
:output => "build/selectorgadget_combined"
25+
26+
guard 'concat',
27+
:all_on_start => true,
28+
:type => "css",
29+
:files => %w(build/css/selectorgadget),
30+
:input_dir => ".",
31+
:output => "build/selectorgadget_combined"
832

9-
guard 'sprockets', :destination => 'spec/compiled', :asset_paths => ['spec'] do
10-
watch (%r{^spec/[^\.].*\.(coffee|js)})# { |m| "spec/specs.js" }
33+
guard :shell, :all_on_start => true do
34+
# Minify JS
35+
watch %r{build/selectorgadget_combined.js} do |m|
36+
puts "Compressing #{m[0]}"
37+
File.open("build/selectorgadget_combined.min.js", 'w') do |file|
38+
file.print Uglifier.compile(File.read(m[0]))
39+
end
40+
end
1141
end

bin/bundle_chrome.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env sh
22

33
cp build/selectorgadget_combined.css chrome/combined.css
4-
cat chrome/header.js build/selectorgadget_combined.js chrome/footer.js > chrome/combined.js
4+
cat chrome/header.js build/selectorgadget_combined.min.js chrome/footer.js > chrome/combined.js
55
rm -f extension.zip
66
zip -r extension.zip chrome

build/css/selectorgadget.css

Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
/* line 1, lib/css/selectorgadget.css.scss */
2+
div#selectorgadget_main {
3+
azimuth: center !important;
4+
background-attachment: scroll !important;
5+
background-image: none !important;
6+
background-position: 0% 0% !important;
7+
background-repeat: repeat !important;
8+
border-collapse: separate !important;
9+
border-spacing: 0 !important;
10+
bottom: auto !important;
11+
caption-side: top !important;
12+
clear: none !important;
13+
clip: auto !important;
14+
color: black !important;
15+
content: normal !important;
16+
counter-increment: none !important;
17+
counter-reset: none !important;
18+
cursor: auto !important;
19+
direction: ltr !important;
20+
elevation: level !important;
21+
empty-cells: show !important;
22+
font-family: sans-serif !important;
23+
font-variant: normal !important;
24+
font-weight: normal !important;
25+
height: auto !important;
26+
left: auto !important;
27+
letter-spacing: normal !important;
28+
line-height: normal !important;
29+
list-style-image: none !important;
30+
list-style-position: outside !important;
31+
list-style-type: disc !important;
32+
max-height: none !important;
33+
max-width: none !important;
34+
min-height: 0 !important;
35+
min-width: 0 !important;
36+
orphans: 2 !important;
37+
outline-color: invert !important;
38+
outline-style: none !important;
39+
outline-width: medium !important;
40+
overflow: visible !important;
41+
page-break-after: auto !important;
42+
page-break-before: auto !important;
43+
page-break-inside: auto !important;
44+
table-layout: auto !important;
45+
text-align: left !important;
46+
text-decoration: none !important;
47+
text-indent: 0 !important;
48+
text-transform: none !important;
49+
top: auto !important;
50+
unicode-bidi: normal !important;
51+
vertical-align: baseline !important;
52+
visibility: visible !important;
53+
white-space: normal !important;
54+
widows: 2 !important;
55+
width: auto !important;
56+
word-spacing: normal !important;
57+
position: fixed !important;
58+
z-index: 9999999 !important;
59+
display: block !important;
60+
right: 5px !important;
61+
margin: 5px !important;
62+
padding: 5px !important;
63+
font-size: 14px !important;
64+
float: none !important;
65+
border: 1px solid black !important;
66+
font-style: none !important;
67+
background: white !important;
68+
text-align: left !important; }
69+
70+
/* line 71, lib/css/selectorgadget.css.scss */
71+
div#selectorgadget_main *, .selectorgadget_clean, .selectorgadget_clean * {
72+
azimuth: center;
73+
background-attachment: scroll;
74+
background-image: none;
75+
background-position: 0% 0%;
76+
background-repeat: repeat;
77+
border-collapse: separate;
78+
border-spacing: 0;
79+
bottom: auto;
80+
caption-side: top;
81+
clear: none;
82+
clip: auto;
83+
color: black;
84+
content: normal;
85+
counter-increment: none;
86+
counter-reset: none;
87+
cursor: auto;
88+
direction: ltr;
89+
elevation: level;
90+
empty-cells: show;
91+
font-family: sans-serif;
92+
font-variant: normal;
93+
font-weight: normal;
94+
height: auto;
95+
left: auto;
96+
letter-spacing: normal;
97+
line-height: normal;
98+
list-style-image: none;
99+
list-style-position: outside;
100+
list-style-type: disc;
101+
max-height: none;
102+
max-width: none;
103+
min-height: 0;
104+
min-width: 0;
105+
orphans: 2;
106+
outline-color: invert;
107+
outline-style: none;
108+
outline-width: medium;
109+
overflow: visible;
110+
page-break-after: auto;
111+
page-break-before: auto;
112+
page-break-inside: auto;
113+
table-layout: auto;
114+
text-align: left;
115+
text-decoration: none;
116+
text-indent: 0;
117+
text-transform: none;
118+
top: auto;
119+
unicode-bidi: normal;
120+
vertical-align: baseline;
121+
visibility: visible;
122+
white-space: normal;
123+
widows: 2;
124+
width: auto;
125+
word-spacing: normal;
126+
right: 0px;
127+
margin: 0;
128+
padding: 0;
129+
font-size: 14px;
130+
float: none;
131+
font-style: none;
132+
background: white;
133+
text-align: left; }
134+
135+
/* line 136, lib/css/selectorgadget.css.scss */
136+
.selectorgadget_clean a {
137+
color: blue;
138+
text-decoration: underline;
139+
cursor: pointer; }
140+
141+
/* line 142, lib/css/selectorgadget.css.scss */
142+
div#selectorgadget_main .selectorgadget_input_field {
143+
display: block;
144+
float: left;
145+
margin: 0 7px 0 0;
146+
background-color: #f5f5f5;
147+
border: 1px solid #dedede;
148+
border-top: 1px solid #eee;
149+
border-left: 1px solid #eee;
150+
font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
151+
text-decoration: none;
152+
color: #565656;
153+
cursor: pointer;
154+
padding: 5px 8px 6px 7px; }
155+
156+
/* line 161, lib/css/selectorgadget.css.scss */
157+
div#selectorgadget_main .selectorgadget_wizard .selectorgadget_input_field {
158+
margin: 7px 3px 7px 3px;
159+
float: none;
160+
display: inline; }
161+
162+
/* line 167, lib/css/selectorgadget.css.scss */
163+
div#selectorgadget_main .selectorgadget_prompt {
164+
margin: 3px 0px 3px 0px;
165+
font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
166+
font-weight: bold;
167+
float: none; }
168+
169+
/* line 174, lib/css/selectorgadget.css.scss */
170+
div#selectorgadget_main .selectorgadget_wizard #selectorgadget_path_field {
171+
margin: 5px 0px;
172+
clear: both;
173+
float: none;
174+
display: block; }
175+
176+
/* line 181, lib/css/selectorgadget.css.scss */
177+
.selectorgadget_selected {
178+
background-color: #0F0 !important;
179+
background-image: none !important; }
180+
181+
/* line 186, lib/css/selectorgadget.css.scss */
182+
.selectorgadget_suggested {
183+
background-color: #FF5 !important;
184+
background-image: none !important; }
185+
186+
/* line 191, lib/css/selectorgadget.css.scss */
187+
.selectorgadget_border {
188+
position: absolute !important;
189+
z-index: 999999 !important;
190+
background: white !important;
191+
background-color: orange !important;
192+
margin: 0px !important;
193+
padding: 0px !important;
194+
display: block !important;
195+
float: none !important;
196+
border: 0 !important;
197+
font-style: none !important;
198+
outline: 0 !important;
199+
vertical-align: baseline !important;
200+
text-align: left !important; }
201+
202+
/* line 207, lib/css/selectorgadget.css.scss */
203+
.selectorgadget_bottom_border {
204+
font-size: 10px !important;
205+
padding: 2px 0px 2px 5px !important; }
206+
207+
/* line 212, lib/css/selectorgadget.css.scss */
208+
.selectorgadget_border_red {
209+
background-color: #F00 !important; }
210+
211+
/* line 219, lib/css/selectorgadget.css.scss */
212+
.selectorgadget_rejected {
213+
background-color: #F00 !important;
214+
background-image: none !important; }
215+
216+
/* line 225, lib/css/selectorgadget.css.scss */
217+
img.selectorgadget_rejected {
218+
border: 5px solid #F00 !important; }
219+
/* line 229, lib/css/selectorgadget.css.scss */
220+
img.selectorgadget_suggested {
221+
border: 5px solid #FF5 !important; }
222+
/* line 233, lib/css/selectorgadget.css.scss */
223+
img.selectorgadget_selected {
224+
border: 5px solid #0F0 !important; }
225+
226+
/* line 238, lib/css/selectorgadget.css.scss */
227+
#selectorgadget_main.selectorgadget_top {
228+
top: 5px !important; }
229+
230+
/* line 242, lib/css/selectorgadget.css.scss */
231+
#selectorgadget_main.selectorgadget_bottom {
232+
bottom: 5px !important; }
233+
234+
/* line 246, lib/css/selectorgadget.css.scss */
235+
#selectorgadget_main input {
236+
margin-right: 10px !important;
237+
font-size: 15px !important; }
238+
239+
/* line 251, lib/css/selectorgadget.css.scss */
240+
#selectorgadget_path_field {
241+
width: 400px !important; }
242+
243+
/* line 255, lib/css/selectorgadget.css.scss */
244+
#selectorgadget_main .selectorgadget_new_line {
245+
clear: both; }
246+
247+
/* line 259, lib/css/selectorgadget.css.scss */
248+
#selectorgadget_main .selectorgadget_option {
249+
float: left; }
250+
251+
/* line 263, lib/css/selectorgadget.css.scss */
252+
#selectorgadget_main .selectorgadget_selected_option {
253+
text-decoration: underline; }

0 commit comments

Comments
 (0)