d7-theme-scaffold 0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +4 -0
- data/lib/d7-theme-scaffold.rb +3 -0
- data/stylesheets/_drupal7_scaffold.scss +1 -0
- data/templates/project/_init.scss +76 -0
- data/templates/project/all.scss +9 -0
- data/templates/project/manifest.rb +36 -0
- data/templates/project/screenshot.png +0 -0
- data/templates/project/template.php +7 -0
- data/templates/project/theme.info +15 -0
- data/templates/project/theme.js +14 -0
- metadata +70 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e1661a7dc6dfb6ae4cc7940f74e32200fe0b1181
|
4
|
+
data.tar.gz: 95d22af2f8e794a0a6be27a26ef71a5312368719
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 62389c6611a106dfc325853bf1040f8dc35a2f2a8a3ef032829224c60fbde0fa5cd1044067e78b5dfd34dc065a8b00ec4d7cc8c2ef57a7534218a312dc8ab8c8
|
7
|
+
data.tar.gz: 0e9e80f7c94d4264585bbf377ecd6f8ad05ae01a8e9e6f4cf5aef14f6875ce950ac844e813a5ecdecf7ada875a35fe5eaf41c5a8d3c90fdff8a708f5c0d938e1
|
data/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
// This is your framework's main stylesheet. Use it to import all default modules.
|
@@ -0,0 +1,76 @@
|
|
1
|
+
/////////////////////////////////////////////////////////////////////////////
|
2
|
+
// This file was generated by d7-theme-scaffold compass plugin. //
|
3
|
+
// It gives you a basic scaffold to start with. //
|
4
|
+
// You can modify it to fit your personal needs. //
|
5
|
+
/////////////////////////////////////////////////////////////////////////////
|
6
|
+
|
7
|
+
////////////////////
|
8
|
+
// Variables go here.
|
9
|
+
////////////////////
|
10
|
+
|
11
|
+
// Sprites for fixed elements.
|
12
|
+
$map-fixed: sprite-map("fixed/*.png", $spacing: 30px);
|
13
|
+
|
14
|
+
////////////////////
|
15
|
+
// Mixins go here.
|
16
|
+
////////////////////
|
17
|
+
|
18
|
+
// Set dimensions of an HTML-element based on image-dimensions of a given image.
|
19
|
+
// @Parameters:
|
20
|
+
// - $image: the image-file relative to project's images directory
|
21
|
+
// - $set-width: Set the width. Default: false.
|
22
|
+
// - $set-height: Set the height. Default: false.
|
23
|
+
@mixin set-dimensions($image, $set-width: true, $set-height: true) {
|
24
|
+
@if $set-width {
|
25
|
+
width: image-width($image);
|
26
|
+
}
|
27
|
+
|
28
|
+
@if $set-height {
|
29
|
+
height: image-height($image);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
// This is a custom mixin for the fixe-elements-sprite.
|
34
|
+
// Use this instead of the build-in compass mixins.
|
35
|
+
// @Parameters:
|
36
|
+
// - $sprite: name of the image to be provided
|
37
|
+
// - $hover: if true, hover state is provided. Default: false.
|
38
|
+
// - $offset-x: set an offset for x-axis. Default: 0.
|
39
|
+
// - $offset-y: set an offset for y-axis. Default: 0.
|
40
|
+
// - $hide-text: if true, text won't be displayed, due to text-indent. Default: false.
|
41
|
+
// - $set-dimensions: if true, the icons dimensions will be set to the html-element. Default: false.
|
42
|
+
// - $map: pass a sprite-map to the mixin. Default: $map-fixed.
|
43
|
+
@mixin sprite-it($sprite, $hover: false, $offset-x: 0, $offset-y: 0, $hide-text: false, $set-dimensions: false, $map: $map-fixed) {
|
44
|
+
background: sprite($map, $sprite, $offset-x, $offset-y) no-repeat;
|
45
|
+
|
46
|
+
@if $hover {
|
47
|
+
&:hover {
|
48
|
+
background-position: sprite-position($map, #{$sprite}_hover, $offset-x, $offset-y);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
@if $hide-text {
|
53
|
+
text-indent: -999em;
|
54
|
+
}
|
55
|
+
|
56
|
+
@if $set-dimensions {
|
57
|
+
@include set-dimensions(sprite-file($map, $sprite));
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
////////////////////
|
62
|
+
// Functions go here.
|
63
|
+
////////////////////
|
64
|
+
|
65
|
+
// Function to build a multiple selector based on a list.
|
66
|
+
// @param $list, e.g. (val1 val2 val3)
|
67
|
+
// @param $prefix, optional: set a prefix for the values, e.g. '.my-prefix-' is compiled to: '.my-prefix-VALUE'.
|
68
|
+
// @param $suffix, optional: set a suffix for the values, e.g. '-my-suffix' is compiled to: 'VALUE-my-suffix'.
|
69
|
+
// @return $selector, e.g. .val1, val2, val3
|
70
|
+
@function build-selector($list, $prefix: null, $suffix: null) {
|
71
|
+
$selector: ();
|
72
|
+
@each $el in $list {
|
73
|
+
$selector: append($selector, unquote(#{$prefix}#{$el}#{$suffix}), comma);
|
74
|
+
}
|
75
|
+
@return $selector;
|
76
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/////////////////////////////////////////////////////////////////////////////
|
2
|
+
// This file was generated by d7-theme-scaffold compass plugin. //
|
3
|
+
// It gives you a basic scaffold to start with. //
|
4
|
+
// You can modify it to fit your personal needs. //
|
5
|
+
// It is used to aggregate all scss files. //
|
6
|
+
/////////////////////////////////////////////////////////////////////////////
|
7
|
+
|
8
|
+
@import 'compass';
|
9
|
+
@import 'init';
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Make sure you list all the project template files here in the manifest.
|
2
|
+
description "d7-theme-scaffold compass plugin."
|
3
|
+
stylesheet '_init.scss'
|
4
|
+
stylesheet 'all.scss'
|
5
|
+
javascript 'theme.js'
|
6
|
+
file 'theme.info'
|
7
|
+
file 'template.php'
|
8
|
+
image 'screenshot.png', :to => '../'
|
9
|
+
directory 'templates'
|
10
|
+
directory 'stylesheets_custom'
|
11
|
+
|
12
|
+
help %Q{
|
13
|
+
This is a message that users will see if they type
|
14
|
+
|
15
|
+
compass help d7-theme-scaffold
|
16
|
+
|
17
|
+
You can use it to help them learn how to use your extension.
|
18
|
+
}
|
19
|
+
|
20
|
+
welcome_message %Q{
|
21
|
+
|
22
|
+
---------- d7 theme scaffold ---------
|
23
|
+
All files were created.
|
24
|
+
--------------------------------------
|
25
|
+
}
|
26
|
+
|
27
|
+
# No css files will be created.
|
28
|
+
skip_compilation!
|
29
|
+
|
30
|
+
# Modify compass configuration.
|
31
|
+
Compass.configuration do |config|
|
32
|
+
#set relative assets true
|
33
|
+
config.relative_assets = true
|
34
|
+
end
|
35
|
+
|
36
|
+
Compass.configure_sass_plugin!
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
; This file was generated by d7-theme-scaffold compass plugin.
|
2
|
+
; It gives you a basic scaffold to start with.
|
3
|
+
; You can modify it to fit your personal needs.
|
4
|
+
|
5
|
+
name = THEME NAME
|
6
|
+
description = THEME DESCRIPTION
|
7
|
+
core = 7.x
|
8
|
+
|
9
|
+
regions['content'] = Content
|
10
|
+
|
11
|
+
;Uncomment the following line, when using panels.
|
12
|
+
;plugins[panels][layouts] = panels/layouts
|
13
|
+
|
14
|
+
stylesheets[all][] = stylesheets/all.css
|
15
|
+
scripts[] = javascript/theme.js
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* This file was generated by d7-theme-scaffold compass plugin.
|
3
|
+
* It gives you a basic scaffold to start with.
|
4
|
+
* You can modify it to fit your personal needs.
|
5
|
+
*/
|
6
|
+
|
7
|
+
(function ($) {
|
8
|
+
Drupal.behaviors.MYTHEME = {
|
9
|
+
attach: function (context, settings) {
|
10
|
+
// code goes here
|
11
|
+
}
|
12
|
+
};
|
13
|
+
|
14
|
+
}(jQuery));
|
metadata
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: d7-theme-scaffold
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: "0.1"
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Felix Hofmann
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2013-08-29 00:00:00 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: compass
|
16
|
+
prerelease: false
|
17
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: "0.11"
|
22
|
+
type: :runtime
|
23
|
+
version_requirements: *id001
|
24
|
+
description: a compass plugin providing some basic mixins and files to get started with a Drupal 7 theme
|
25
|
+
email: felix.hofmann@rustyy.de
|
26
|
+
executables: []
|
27
|
+
|
28
|
+
extensions: []
|
29
|
+
|
30
|
+
extra_rdoc_files: []
|
31
|
+
|
32
|
+
files:
|
33
|
+
- README.md
|
34
|
+
- lib/d7-theme-scaffold.rb
|
35
|
+
- stylesheets/_drupal7_scaffold.scss
|
36
|
+
- templates/project/_init.scss
|
37
|
+
- templates/project/all.scss
|
38
|
+
- templates/project/manifest.rb
|
39
|
+
- templates/project/screenshot.png
|
40
|
+
- templates/project/template.php
|
41
|
+
- templates/project/theme.info
|
42
|
+
- templates/project/theme.js
|
43
|
+
homepage: http://www.rustyy.de
|
44
|
+
licenses: []
|
45
|
+
|
46
|
+
metadata: {}
|
47
|
+
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options: []
|
50
|
+
|
51
|
+
require_paths:
|
52
|
+
- lib
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- &id002
|
56
|
+
- ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: "0"
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- *id002
|
62
|
+
requirements: []
|
63
|
+
|
64
|
+
rubyforge_project:
|
65
|
+
rubygems_version: 2.0.3
|
66
|
+
signing_key:
|
67
|
+
specification_version: 4
|
68
|
+
summary: a compass plugin providing some basic mixins and files to get started with a Drupal 7 theme
|
69
|
+
test_files: []
|
70
|
+
|