compass-drupal-plugin 0.2.4.beta → 0.2.5.alpha
Sign up to get free protection for your applications and to get access to all the features.
- data/compass-drupal-plugin.gemspec +1 -1
- data/stylesheets/drupal/_zen.scss +4 -3
- data/templates/fusion/manifest.rb +1 -0
- data/templates/project/_skin.scss +26 -15
- data/templates/project/drupal.scss +44 -30
- data/templates/project/manifest.rb +1 -0
- data/templates/zen/_zen-base.scss +3 -0
- data/templates/zen/manifest.rb +1 -0
- data/templates/zen/zen.scss +5 -2
- metadata +5 -7
@@ -345,16 +345,17 @@ $zen-base-font-size: 14px !default;
|
|
345
345
|
|
346
346
|
@mixin zen-footer {
|
347
347
|
|
348
|
-
html, body, #page-wrapper, #page {
|
348
|
+
html, body, #page-wrapper, #page, #main-wrapper {
|
349
349
|
height: 100%;
|
350
350
|
}
|
351
351
|
|
352
352
|
#main-wrapper {
|
353
|
+
height: auto;
|
353
354
|
min-height: 100%;
|
354
355
|
}
|
355
356
|
|
356
357
|
#main {
|
357
|
-
overflow: auto;
|
358
|
+
//overflow: auto;
|
358
359
|
padding-bottom: $zen-footer-size; /* the footer size */
|
359
360
|
}
|
360
361
|
|
@@ -365,4 +366,4 @@ $zen-base-font-size: 14px !default;
|
|
365
366
|
margin-top: -$zen-footer-size; /* the negative value of the footer size */
|
366
367
|
}
|
367
368
|
|
368
|
-
}
|
369
|
+
}
|
@@ -16,4 +16,5 @@ help %Q{
|
|
16
16
|
welcome_message %Q{
|
17
17
|
Hello and welcome to Fusion Compass Plugin.
|
18
18
|
Fusion is a powerful base theme built on top of the NineSixty grid framework meant to be used with the Skinr module.
|
19
|
+
You must enable relative assets in config.rb in order to use theme images in the css.
|
19
20
|
}
|
@@ -19,7 +19,7 @@ $<%= project_name %>-monospaced-typeface: "Courier New", "DejaVu Sans Mono", mon
|
|
19
19
|
$<%= project_name %>-base-font-size: 14px;
|
20
20
|
|
21
21
|
//HTML Elements
|
22
|
-
.-<%= project_name %>-h2 { }
|
22
|
+
.-<%= project_name %>-h2 { }
|
23
23
|
|
24
24
|
.-<%= project_name %>-h3 { }
|
25
25
|
|
@@ -29,11 +29,9 @@ $<%= project_name %>-base-font-size: 14px;
|
|
29
29
|
|
30
30
|
.-<%= project_name %>-li { }
|
31
31
|
|
32
|
-
.-<%= project_name %>-ul {
|
33
|
-
li { @extend .-<%= project_name %>-li; } }
|
32
|
+
.-<%= project_name %>-ul { }
|
34
33
|
|
35
|
-
.-<%= project_name %>-ol {
|
36
|
-
li { @extend .-<%= project_name %>-li; } }
|
34
|
+
.-<%= project_name %>-ol { }
|
37
35
|
|
38
36
|
.-<%= project_name %>-blockquote { }
|
39
37
|
|
@@ -62,7 +60,7 @@ $<%= project_name %>-base-font-size: 14px;
|
|
62
60
|
tbody & { } } }
|
63
61
|
|
64
62
|
// Content Classes
|
65
|
-
.-<%= project_name %>-
|
63
|
+
.-<%= project_name %>-full-html-content {
|
66
64
|
h2 { @extend .-<%= project_name %>-h2; }
|
67
65
|
h3 { @extend .-<%= project_name %>-h3; }
|
68
66
|
h4 { @extend .-<%= project_name %>-h4; }
|
@@ -77,7 +75,7 @@ $<%= project_name %>-base-font-size: 14px;
|
|
77
75
|
a { @extend .-<%= project_name %>-a; }
|
78
76
|
table { @extend .-<%= project_name %>-table; } }
|
79
77
|
|
80
|
-
.-<%= project_name %>-
|
78
|
+
.-<%= project_name %>-restricted-html-content {
|
81
79
|
h3 { @extend .-<%= project_name %>-h3; }
|
82
80
|
h4 { @extend .-<%= project_name %>-h4; }
|
83
81
|
p { @extend .-<%= project_name %>-p; }
|
@@ -99,7 +97,7 @@ $<%= project_name %>-base-font-size: 14px;
|
|
99
97
|
|
100
98
|
.-<%= project_name %>-logo { }
|
101
99
|
|
102
|
-
.-<%= project_name %>-name-and-slogan { } // usually a #name-and-slogan wrapper div (YMMV)
|
100
|
+
.-<%= project_name %>-name-and-slogan { } // usually a #name-and-slogan wrapper div (YMMV)
|
103
101
|
|
104
102
|
.-<%= project_name %>-site-name {
|
105
103
|
a { } }
|
@@ -140,8 +138,8 @@ $<%= project_name %>-base-font-size: 14px;
|
|
140
138
|
.secondary { }
|
141
139
|
// the following styles apply to both tab groups.
|
142
140
|
ul { }
|
143
|
-
li { }
|
144
|
-
a { }
|
141
|
+
li { }
|
142
|
+
a { }
|
145
143
|
a.active { } }
|
146
144
|
|
147
145
|
.-<%= project_name %>-messages {
|
@@ -166,8 +164,8 @@ $<%= project_name %>-base-font-size: 14px;
|
|
166
164
|
|
167
165
|
.-<%= project_name %>-feed-icons {
|
168
166
|
.feed-icon { } }
|
169
|
-
|
170
|
-
.-<%= project_name %>-title { }
|
167
|
+
|
168
|
+
.-<%= project_name %>-title { }
|
171
169
|
|
172
170
|
.-<%= project_name %>-content-area { }
|
173
171
|
|
@@ -176,12 +174,25 @@ $<%= project_name %>-base-font-size: 14px;
|
|
176
174
|
.-<%= project_name %>-footer-message { }
|
177
175
|
|
178
176
|
// Block Components
|
179
|
-
//
|
177
|
+
// These are defaults for every block in your theme
|
180
178
|
.-<%= project_name %>-block { }
|
181
179
|
|
182
180
|
.-<%= project_name %>-block-title { }
|
183
181
|
|
184
|
-
.-<%= project_name %>-block-content { @extend .-<%= project_name %>-
|
182
|
+
.-<%= project_name %>-block-content { @extend .-<%= project_name %>-restricted-html-content; }
|
183
|
+
|
184
|
+
// Make copies of the components for a diversity of block styles, like these
|
185
|
+
.-<%= project_name %>-content-block { }
|
186
|
+
|
187
|
+
.-<%= project_name %>-content-block-title { }
|
188
|
+
|
189
|
+
.-<%= project_name %>-content-block-content { @extend .-<%= project_name %>-restricted-html-content; }
|
190
|
+
|
191
|
+
.-<%= project_name %>-sidebar-block { }
|
192
|
+
|
193
|
+
.-<%= project_name %>-sidebar-block-title { }
|
194
|
+
|
195
|
+
.-<%= project_name %>-sidebar-block-content { @extend .-<%= project_name %>-restricted-html-content; }
|
185
196
|
|
186
197
|
// Node Components
|
187
198
|
// Make copies of these components for a diversity of node styles
|
@@ -197,7 +208,7 @@ $<%= project_name %>-base-font-size: 14px;
|
|
197
208
|
|
198
209
|
.-<%= project_name %>-node-terms { } }
|
199
210
|
|
200
|
-
.-<%= project_name %>-node-content { @extend .-<%= project_name %>-
|
211
|
+
.-<%= project_name %>-node-content { @extend .-<%= project_name %>-full-html-content; }
|
201
212
|
|
202
213
|
.-<%= project_name %>-node-links {
|
203
214
|
li {
|
@@ -3,12 +3,11 @@
|
|
3
3
|
@import "_<%= File.basename(config.project_path) %>-base";
|
4
4
|
|
5
5
|
/* page.tpl.php */
|
6
|
-
|
7
6
|
body { @extend .-<%= project_name %>-body; }
|
8
7
|
|
9
8
|
#page { @extend .-<%= project_name %>-page; }
|
10
9
|
|
11
|
-
#header {
|
10
|
+
#header {
|
12
11
|
@extend .-<%= project_name %>-header; }
|
13
12
|
|
14
13
|
#logo-title { @extend .-<%= project_name %>-logo-title; }
|
@@ -23,16 +22,16 @@ body { @extend .-<%= project_name %>-body; }
|
|
23
22
|
|
24
23
|
#header-region { @extend .-<%= project_name %>-header-region; }
|
25
24
|
|
26
|
-
#container { @extend .-<%= project_name %>-
|
25
|
+
#container { @extend .-<%= project_name %>-container; }
|
27
26
|
|
28
27
|
#navigation {
|
29
28
|
@extend .-<%= project_name %>-navigation; }
|
30
29
|
|
31
|
-
.primary-links {
|
30
|
+
ul.primary-links {
|
32
31
|
@extend .-<%= project_name %>-menu;
|
33
32
|
> li > .links { @extend .-<%= project_name %>-submenu; } }
|
34
|
-
|
35
|
-
.secondary-links { @extend .-<%= project_name %>-menu; }
|
33
|
+
|
34
|
+
ul.secondary-links { @extend .-<%= project_name %>-menu; }
|
36
35
|
|
37
36
|
#sidebar-left { @extend .-<%= project_name %>-sidebar; }
|
38
37
|
|
@@ -40,54 +39,69 @@ body { @extend .-<%= project_name %>-body; }
|
|
40
39
|
|
41
40
|
#mission { @extend .-<%= project_name %>-mission; }
|
42
41
|
|
43
|
-
#breadcrumb { @extend .-<%= project_name %>-breadcrumb; }
|
42
|
+
#breadcrumb { @extend .-<%= project_name %>-breadcrumb; }
|
44
43
|
|
45
44
|
#content {
|
46
45
|
@extend .-<%= project_name %>-content;
|
47
|
-
|
46
|
+
|
48
47
|
div.tabs { @extend .-<%= project_name %>-tabs; }
|
49
|
-
|
48
|
+
|
50
49
|
.messages { @extend .-<%= project_name %>-messages; }
|
51
50
|
|
52
51
|
.pager { @extend .-<%= project_name %>-pager; }
|
53
|
-
|
52
|
+
|
54
53
|
//drupal prints only a link with an image inside, beware.
|
55
54
|
.feed-icon { @extend .-<%= project_name %>-feed-icons; } }
|
56
|
-
|
55
|
+
|
57
56
|
#page-title { @extend .-<%= project_name %>-title; }
|
58
57
|
|
59
58
|
#content-content { @extend .-<%= project_name %>-content-area; }
|
60
59
|
|
61
60
|
#sidebar-right { @extend .-<%= project_name %>-sidebar; }
|
62
61
|
|
63
|
-
#footer-wrapper {
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
//@extend .-<%= project_name %>-footer-message;
|
62
|
+
#footer-wrapper { @extend .-<%= project_name %>-footer; }
|
63
|
+
|
64
|
+
//Drupal will print the footer message right away, but theming the
|
65
|
+
//whole region isn't a good idea. Copy page.tpl.php to your theme and
|
66
|
+
//edit it to wrap the $footer_message variable
|
67
|
+
//@extend .-<%= project_name %>-footer-message;
|
70
68
|
|
71
|
-
}
|
72
69
|
|
73
70
|
/* block.tpl.php */
|
74
71
|
.block {
|
75
|
-
//
|
76
|
-
|
77
|
-
#sidebar-left & { @extend .-<%= project_name %>-sidebar-block; }
|
78
|
-
#sidebar-right & { @extend .-<%= project_name %>-sidebar-block; }
|
79
|
-
|
80
|
-
// these selectors will affect all of your blocks, beware!
|
81
|
-
// try scoping the selectors by region, as shown above
|
82
|
-
@extend .-<%= project_name %>-block;
|
72
|
+
// try scoping the selectors by region
|
73
|
+
@extend .-<%= project_name %>-block;
|
83
74
|
> h2 { @extend .-<%= project_name %>-block-title; }
|
84
|
-
.content { @extend .-<%= project_name %>-block-content; }
|
75
|
+
.content { @extend .-<%= project_name %>-block-content; }
|
76
|
+
|
77
|
+
// these are Kit regions blocks, set as examples for any region specific block styling
|
78
|
+
#content-content & {
|
79
|
+
@extend .-<%= project_name %>-content-block;
|
80
|
+
> h2 { @extend .-<%= project_name %>-content-block-title; }
|
81
|
+
.content { @extend .-<%= project_name %>-content-block-content; } }
|
82
|
+
|
83
|
+
#sidebar-left &,
|
84
|
+
#sidebar-right & {
|
85
|
+
@extend .-<%= project_name %>-sidebar-block;
|
86
|
+
> h2 { @extend .-<%= project_name %>-sidebar-block-title; }
|
87
|
+
.content { @extend .-<%= project_name %>-sidebar-block-content; } }
|
88
|
+
|
89
|
+
#header-region & {
|
90
|
+
@extend .-<%= project_name %>-header-block;
|
91
|
+
> h2 { @extend .-<%= project_name %>-header-block-title; }
|
92
|
+
.header { @extend .-<%= project_name %>-header-block-header; } }
|
93
|
+
|
94
|
+
#footer & {
|
95
|
+
@extend .-<%= project_name %>-footer-block;
|
96
|
+
> h2 { @extend .-<%= project_name %>-footer-block-title; }
|
97
|
+
.footer { @extend .-<%= project_name %>-footer-block-footer; } }
|
98
|
+
}
|
85
99
|
|
86
100
|
/* node.tpl.php */
|
87
101
|
.node {
|
88
102
|
@extend .-<%= project_name %>-node;
|
89
103
|
.picture { @extend .-<%= project_name %>-node-picture; }
|
90
|
-
|
104
|
+
> h2 { @extend .-<%= project_name %>-node-title; }
|
91
105
|
.meta { @extend .-<%= project_name %>-node-meta; }
|
92
106
|
.submitted { @extend .-<%= project_name %>-node-submitted; }
|
93
107
|
.terms { @extend .-<%= project_name %>-node-terms; }
|
@@ -105,4 +119,4 @@ body { @extend .-<%= project_name %>-body; }
|
|
105
119
|
dl { @extend .-<%= project_name %>-profile-category-wrapper; }
|
106
120
|
dt { @extend .-<%= project_name %>-profile-field-label; }
|
107
121
|
dd { @extend .-<%= project_name %>-profile-field-value; } }
|
108
|
-
|
122
|
+
|
@@ -17,4 +17,5 @@ welcome_message %Q{
|
|
17
17
|
Hello and welcome to Drupal Compass Plugin.
|
18
18
|
This is a blank theme meant for skilled users only.
|
19
19
|
If you're looking for something fun and easy to use, try the Zen or Fusion variants.
|
20
|
+
You must enable relative assets in config.rb in order to use theme images in the css.
|
20
21
|
}
|
@@ -12,3 +12,6 @@ $zen-base-font-size: $<%= project_name %>-base-font-size;
|
|
12
12
|
// Zen requires navbar width and height, following are default ones
|
13
13
|
$zen-navigation-width: 100%;
|
14
14
|
$zen-navigation-height: 2.3em;
|
15
|
+
|
16
|
+
// Zen footer requires a footer height, following is the default height
|
17
|
+
$zen-footer-size: 150px;
|
data/templates/zen/manifest.rb
CHANGED
@@ -18,4 +18,5 @@ welcome_message %Q{
|
|
18
18
|
You need to add it to YOURTHEME.info in order to load it into Drupal.
|
19
19
|
If either zen-fixed.css or zen-liquid.css are declared on YOURTHEME.info,
|
20
20
|
you should comment it to avoid CSS conflicts.
|
21
|
+
You must enable relative assets in config.rb in order to use theme images in the css.
|
21
22
|
}
|
data/templates/zen/zen.scss
CHANGED
@@ -15,11 +15,14 @@
|
|
15
15
|
//Use this mixin to set the font sizes
|
16
16
|
@include zen-typography;
|
17
17
|
|
18
|
+
//Use this mixin to set a fixed footer
|
19
|
+
@include zen-footer;
|
20
|
+
|
18
21
|
body { @extend .-<%= project_name %>-body; }
|
19
22
|
|
20
23
|
#skip-link { @extend .-<%= project_name %>-skip-link; }
|
21
24
|
|
22
|
-
#page
|
25
|
+
#page { @extend .-<%= project_name %>-page; }
|
23
26
|
|
24
27
|
#header { @extend .-<%= project_name %>-header; }
|
25
28
|
|
@@ -31,7 +34,7 @@ body { @extend .-<%= project_name %>-body; }
|
|
31
34
|
|
32
35
|
#site-slogan { @extend .-<%= project_name %>-site-slogan; }
|
33
36
|
|
34
|
-
#main
|
37
|
+
#main { @extend .-<%= project_name %>-main; }
|
35
38
|
|
36
39
|
#content {
|
37
40
|
@extend .-<%= project_name %>-content;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-drupal-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5.alpha
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-27 00:00:00.
|
13
|
-
default_executable:
|
12
|
+
date: 2011-09-27 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: compass
|
17
|
-
requirement: &
|
16
|
+
requirement: &73478170 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ! '>='
|
@@ -22,7 +21,7 @@ dependencies:
|
|
22
21
|
version: '0.11'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *73478170
|
26
25
|
description: a Compass extension providing Drupal integration, supporting popular
|
27
26
|
base themes
|
28
27
|
email: barraponto@gmail.com
|
@@ -46,7 +45,6 @@ files:
|
|
46
45
|
- templates/zen/zen.scss
|
47
46
|
- templates/zen/_zen-base.scss
|
48
47
|
- templates/zen/manifest.rb
|
49
|
-
has_rdoc: true
|
50
48
|
homepage: http://bitbucket.org/barraponto/drupal-compass-extension/
|
51
49
|
licenses: []
|
52
50
|
post_install_message:
|
@@ -67,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
65
|
version: 1.3.1
|
68
66
|
requirements: []
|
69
67
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.
|
68
|
+
rubygems_version: 1.8.10
|
71
69
|
signing_key:
|
72
70
|
specification_version: 3
|
73
71
|
summary: a Compass extension providing Drupal integration
|