wp-fire 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,25 +33,24 @@ img.aligncenter, img.alignright, img.alignleft { border: 1px solid #DDD; text-a
33
33
  .relative { position: relative; }
34
34
  .absolute { position: absolute; }
35
35
 
36
- p { padding: 0; }
37
- input[type=text], input[type=password], textarea { background: url(../images/form.jpg) repeat-x top #FFF; border: 1px solid #CCC; padding: 3px; }
36
+ p { padding: 0; }
38
37
 
39
- .text-overflow{
40
- white-space: nowrap;
41
- width: 100%;
42
- overflow: hidden;
43
- position: relative;
44
- /*-o-text-overflow: ellipsis;
45
- text-overflow: ellipsis; */
38
+ .underline {
39
+ text-decoration: underline;
40
+ }
41
+ .capitalize {
42
+ text-transform: capitalize;
43
+ }
44
+ .uppercase {
45
+ text-transform: uppercase;
46
46
  }
47
-
48
47
 
49
48
  /* Hyperlinks */
50
49
  a img { border: none; }
51
50
  a:focus, a:hover, a:active { outline: none; }
52
51
 
53
52
  /* Headings */
54
- h2, h3, h4, h5, h6 { margin: 1em 0; }
53
+ h1, h2, h3, h4, h5, h6, p { margin: 0; }
55
54
  h2 { font-size: 2em; }
56
55
  h3 { font-size: 1.8em; }
57
56
  h4 { font-size: 1.6em; }
@@ -60,29 +59,4 @@ h6 { font-size: 1.2em; }
60
59
 
61
60
  /* Tables */
62
61
  table { border-collapse: collapse; border-spacing: 0; }
63
- th, td { padding: 5px; }
64
-
65
- /* Structure */
66
- #wrapper { min-height: 100%; position: relative; padding: 0 0 20px 0; }
67
- #main { padding: 10px 15px 0; width:958px; margin:0 auto; position:relative; }
68
- #nav { width:960px; margin:0 auto; position:relative; z-index: 50; }
69
- #container { overflow: hidden}
70
-
71
- /* Footer */
72
- #footer { margin: 0 auto; width: 988px; padding: 20px 0 10px 0;}
73
- #footer .footer-message { margin: 0; padding: 10px 15px 0; }
74
- #wpstats {display: none;}
75
-
76
- /* Background per iPad */
77
- body {
78
- -webkit-background-size: 1920px 1080px;
79
- }
80
- .underline {
81
- text-decoration: underline;
82
- }
83
- .capitalize {
84
- text-transform: capitalize;
85
- }
86
- .uppercase {
87
- text-transform: uppercase;
88
- }
62
+ th, td { padding: 5px; }
@@ -12,6 +12,12 @@ module WpFire
12
12
  File.open File.join(build_path, basename), "w" do |f|
13
13
  f.puts sass_engine.to_css
14
14
  end
15
+ elsif basename[0].eql?"_" and extname.eql?".scss"
16
+ parents_filename = []
17
+ find_scss_parents(filename,parents_filename)
18
+ parents_filename.uniq.each do |parent|
19
+ compile parent, build_path
20
+ end
15
21
  elsif extname.eql?".css"
16
22
  FileUtils.cp filename, File.join(build_path, File.basename(filename))
17
23
  elsif extname.eql?".coffee"
@@ -52,5 +58,18 @@ module WpFire
52
58
  Dir[ subdirs ? File.join(dir.split(/\\/), "**", filename) : File.join(dir.split(/\\/), filename) ]
53
59
  end
54
60
 
61
+ def self.find_scss_parents(filename,parents_array)
62
+ directory = File.dirname(filename)
63
+ Dir["#{directory}/*.scss"].each do |f|
64
+ if open(f).grep(/@import ["']#{File.basename(filename).gsub(/(_|\.scss)/,'')}["']/).any?
65
+ if File.basename(f)[0].eql?"_" and not f.eql? filename
66
+ find_scss_parents(f,parents_array)
67
+ elsif not File.basename(f)[0].eql?"_"
68
+ parents_array << f
69
+ end
70
+ end
71
+ end
72
+ end
73
+
55
74
  end
56
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wp-fire
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: