compass-treesaver-theme-basic-plugin 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/compass-treesaver-theme-basic-plugin.gemspec +32 -0
- data/lib/compass-treesaver-theme-basic-plugin.rb +3 -0
- data/stylesheets/treesaver/theme/_basic.scss +17 -0
- data/stylesheets/treesaver/theme/basic/_base.scss +19 -0
- data/stylesheets/treesaver/theme/basic/_config.scss +51 -0
- data/stylesheets/treesaver/theme/basic/_grid.scss +17 -0
- data/stylesheets/treesaver/theme/basic/_smallscreen.scss +46 -0
- data/stylesheets/treesaver/theme/basic/_typography.scss +29 -0
- data/templates/project/_compass_treesaver_theme_basic.scss +1 -0
- data/templates/project/manifest.rb +1 -0
- metadata +87 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{compass-treesaver-theme-basic-plugin}
|
5
|
+
s.version = "0.1.2"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5")
|
8
|
+
s.authors = ["Andrea Campi"]
|
9
|
+
s.date = %q{2011-08-23}
|
10
|
+
s.description = %q{A Compass plugin to provide the "basic" theme for use with compass-treesaver-plugin.}
|
11
|
+
s.email = %w{andrea.campi@zephirworks.com}
|
12
|
+
s.has_rdoc = false
|
13
|
+
s.files = [
|
14
|
+
"compass-treesaver-theme-basic-plugin.gemspec",
|
15
|
+
"lib/compass-treesaver-theme-basic-plugin.rb",
|
16
|
+
"stylesheets/treesaver/theme/_basic.scss",
|
17
|
+
"stylesheets/treesaver/theme/basic/_base.scss",
|
18
|
+
"stylesheets/treesaver/theme/basic/_config.scss",
|
19
|
+
"stylesheets/treesaver/theme/basic/_grid.scss",
|
20
|
+
"stylesheets/treesaver/theme/basic/_smallscreen.scss",
|
21
|
+
"stylesheets/treesaver/theme/basic/_typography.scss",
|
22
|
+
"templates/project/_compass_treesaver_theme_basic.scss",
|
23
|
+
"templates/project/manifest.rb"
|
24
|
+
]
|
25
|
+
s.homepage = %q{http://zephirworks.com/}
|
26
|
+
s.require_paths = ["lib"]
|
27
|
+
s.rubyforge_project = %q{compass-treesaver-theme-default-plugin}
|
28
|
+
s.rubygems_version = %q{1.3.6}
|
29
|
+
s.summary = %q{Basic theme for compass-treesaver-plugin.}
|
30
|
+
s.add_dependency(%q<compass>, ["~> 0.11"])
|
31
|
+
s.add_dependency(%q<compass-treesaver-plugin>, ["~> 0.3.0"])
|
32
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
//
|
2
|
+
// Simple style, meant as a starting point for further customization.
|
3
|
+
//
|
4
|
+
|
5
|
+
@import "basic/config";
|
6
|
+
|
7
|
+
@include treesaver-layout-setup($treesaver-theme-grid-outer-width, $treesaver-theme-grid-margin, 3);
|
8
|
+
|
9
|
+
@import "basic/base";
|
10
|
+
@import "basic/grid";
|
11
|
+
@import "basic/smallscreen";
|
12
|
+
@import "basic/typography";
|
13
|
+
|
14
|
+
@include -treesaver-theme-basic-body;
|
15
|
+
@include -treesaver-theme-basic-grid;
|
16
|
+
@include -treesaver-theme-basic-grid-smallscreen;
|
17
|
+
@include -treesaver-theme-basic-misc-smallscreen;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
//
|
2
|
+
// Basic styling for the whole "site"
|
3
|
+
//
|
4
|
+
@mixin -treesaver-theme-basic-body {
|
5
|
+
// fallback used when JavaScript is disabled
|
6
|
+
body {
|
7
|
+
background-color: $treesaver-theme-fallback-body-background-color;
|
8
|
+
}
|
9
|
+
|
10
|
+
.treesaver {
|
11
|
+
body {
|
12
|
+
background-color: $treesaver-theme-body-background-color;
|
13
|
+
}
|
14
|
+
|
15
|
+
a {
|
16
|
+
text-decoration: none;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
@import "treesaver/config";
|
2
|
+
|
3
|
+
//
|
4
|
+
// Grid (page) layout
|
5
|
+
//
|
6
|
+
$treesaver-theme-grid-outer-width: 320px !default;
|
7
|
+
$treesaver-theme-grid-margin: 20px !default;
|
8
|
+
|
9
|
+
//
|
10
|
+
// Overall styling
|
11
|
+
//
|
12
|
+
$treesaver-theme-body-background-color: #eee !default; // background color
|
13
|
+
$treesaver-theme-fallback-body-background-color: #eee !default; // fallback background color
|
14
|
+
|
15
|
+
//
|
16
|
+
// Grid (page) styling
|
17
|
+
//
|
18
|
+
$treesaver-theme-grid-background-color: white !default; // background color of regular pages
|
19
|
+
$treesaver-theme-grid-shadow-color: #bbb !default; // the color of the page shadow
|
20
|
+
$treesaver-theme-grid-outer-margins: 8px 0 8px 20px !default; // margins around pages
|
21
|
+
|
22
|
+
$treesaver-theme-grid-padding-horizontal: 20px !default; // padding inside the page
|
23
|
+
|
24
|
+
//
|
25
|
+
// Smallscreen styling
|
26
|
+
//
|
27
|
+
$treesaver-theme-smallscreen-width: $treesaver-grid-smallscreen-width !default; // deprecate?
|
28
|
+
$treesaver-theme-smallscreen-grid-padding: 10px !default;
|
29
|
+
|
30
|
+
//
|
31
|
+
// Mobile
|
32
|
+
//
|
33
|
+
$treesaver-theme-mobile-base-font-size: 14px !default;
|
34
|
+
$treesaver-theme-mobile-h1-font-size: $treesaver-line-height !default; // Font size for h1
|
35
|
+
$treesaver-theme-mobile-h2-font-size: $treesaver-theme-mobile-base-font-size * 1.1 !default; // Font size for h2
|
36
|
+
$treesaver-theme-mobile-h3-font-size: $treesaver-theme-mobile-base-font-size * 1.1 !default; // Font size for h3
|
37
|
+
$treesaver-theme-mobile-h4-font-size: $treesaver-theme-mobile-base-font-size !default; // Font size for h4
|
38
|
+
$treesaver-theme-mobile-h5-font-size: $treesaver-theme-mobile-base-font-size !default; // Font size for h5
|
39
|
+
$treesaver-theme-mobile-h6-font-size: $treesaver-theme-mobile-base-font-size !default; // Font size for h6
|
40
|
+
|
41
|
+
//
|
42
|
+
// Typography
|
43
|
+
//
|
44
|
+
$treesaver-theme-font-family: Georgia, serif !default;
|
45
|
+
$treesaver-theme-base-font-size: 14px !default; // Font size for regular paragraphs;
|
46
|
+
$treesaver-theme-h1-font-size: $treesaver-line-height * 2 !default; // Font size for h1
|
47
|
+
$treesaver-theme-h2-font-size: $treesaver-theme-base-font-size * 1.1 !default; // Font size for h2
|
48
|
+
$treesaver-theme-h3-font-size: $treesaver-theme-base-font-size !default; // Font size for h3
|
49
|
+
$treesaver-theme-h4-font-size: $treesaver-theme-base-font-size !default; // Font size for h4
|
50
|
+
$treesaver-theme-h5-font-size: $treesaver-theme-base-font-size !default; // Font size for h5
|
51
|
+
$treesaver-theme-h6-font-size: $treesaver-theme-base-font-size !default; // Font size for h6
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@import "compass/css3/box-shadow";
|
2
|
+
|
3
|
+
@mixin -treesaver-theme-basic-grid {
|
4
|
+
.grid {
|
5
|
+
background-color: $treesaver-theme-grid-background-color;
|
6
|
+
@include single-box-shadow($treesaver-theme-grid-shadow-color, 0, 2px, 5px);
|
7
|
+
|
8
|
+
margin: $treesaver-theme-grid-outer-margins;
|
9
|
+
padding: 0 $treesaver-theme-grid-padding-horizontal;
|
10
|
+
|
11
|
+
opacity: .25;
|
12
|
+
}
|
13
|
+
|
14
|
+
#currentPage {
|
15
|
+
opacity: 1;
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
@import "compass/css3/box-shadow";
|
2
|
+
|
3
|
+
@mixin -treesaver-theme-basic-grid-smallscreen {
|
4
|
+
.smallscreen.mobile {
|
5
|
+
.mobile.grid {
|
6
|
+
margin: 0;
|
7
|
+
padding: $treesaver-theme-smallscreen-grid-padding;
|
8
|
+
border: none;
|
9
|
+
@include box-shadow(none);
|
10
|
+
|
11
|
+
.column {
|
12
|
+
top: $treesaver-line-height / 2;
|
13
|
+
bottom: $treesaver-line-height / 2;
|
14
|
+
}
|
15
|
+
|
16
|
+
.container {
|
17
|
+
top: $treesaver-line-height / 2;
|
18
|
+
bottom: $treesaver-line-height;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
@mixin -treesaver-theme-basic-misc-smallscreen {
|
25
|
+
.smallscreen.mobile {
|
26
|
+
background: white;
|
27
|
+
|
28
|
+
.column, .container, p {
|
29
|
+
width: $treesaver-theme-smallscreen-width;
|
30
|
+
min-width: $treesaver-theme-smallscreen-width;
|
31
|
+
}
|
32
|
+
|
33
|
+
.column {
|
34
|
+
h1, h2, h3, h4, h5, h6 {
|
35
|
+
margin: 0;
|
36
|
+
padding: 0;
|
37
|
+
}
|
38
|
+
h1 { font-size: $treesaver-theme-mobile-h1-font-size; }
|
39
|
+
h2 { font-size: $treesaver-theme-mobile-h2-font-size; }
|
40
|
+
h3 { font-size: $treesaver-theme-mobile-h3-font-size; }
|
41
|
+
h4 { font-size: $treesaver-theme-mobile-h4-font-size; }
|
42
|
+
h5 { font-size: $treesaver-theme-mobile-h5-font-size; }
|
43
|
+
h6 { font-size: $treesaver-theme-mobile-h6-font-size; }
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
div, p, button {
|
2
|
+
font-family: $treesaver-theme-font-family;
|
3
|
+
font-size: $treesaver-theme-base-font-size;
|
4
|
+
}
|
5
|
+
|
6
|
+
h1 {
|
7
|
+
font-family: $treesaver-theme-font-family;
|
8
|
+
font-size: $treesaver-theme-h1-font-size;
|
9
|
+
}
|
10
|
+
|
11
|
+
h2 {
|
12
|
+
font-size: $treesaver-theme-h2-font-size;
|
13
|
+
}
|
14
|
+
|
15
|
+
h3 {
|
16
|
+
font-size: $treesaver-theme-h3-font-size;
|
17
|
+
}
|
18
|
+
|
19
|
+
h4 {
|
20
|
+
font-size: $treesaver-theme-h4-font-size;
|
21
|
+
}
|
22
|
+
|
23
|
+
h5 {
|
24
|
+
font-size: $treesaver-theme-h5-font-size;
|
25
|
+
}
|
26
|
+
|
27
|
+
h6 {
|
28
|
+
font-size: $treesaver-theme-h6-font-size;
|
29
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "treesaver/theme/default";
|
@@ -0,0 +1 @@
|
|
1
|
+
stylesheet '_compass_treesaver_theme_default.scss', :media => 'screen'
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: compass-treesaver-theme-basic-plugin
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.2
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Andrea Campi
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-08-23 00:00:00 +02:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: compass
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "0.11"
|
25
|
+
type: :runtime
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: compass-treesaver-plugin
|
29
|
+
prerelease: false
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ~>
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 0.3.0
|
36
|
+
type: :runtime
|
37
|
+
version_requirements: *id002
|
38
|
+
description: A Compass plugin to provide the "basic" theme for use with compass-treesaver-plugin.
|
39
|
+
email:
|
40
|
+
- andrea.campi@zephirworks.com
|
41
|
+
executables: []
|
42
|
+
|
43
|
+
extensions: []
|
44
|
+
|
45
|
+
extra_rdoc_files: []
|
46
|
+
|
47
|
+
files:
|
48
|
+
- compass-treesaver-theme-basic-plugin.gemspec
|
49
|
+
- lib/compass-treesaver-theme-basic-plugin.rb
|
50
|
+
- stylesheets/treesaver/theme/_basic.scss
|
51
|
+
- stylesheets/treesaver/theme/basic/_base.scss
|
52
|
+
- stylesheets/treesaver/theme/basic/_config.scss
|
53
|
+
- stylesheets/treesaver/theme/basic/_grid.scss
|
54
|
+
- stylesheets/treesaver/theme/basic/_smallscreen.scss
|
55
|
+
- stylesheets/treesaver/theme/basic/_typography.scss
|
56
|
+
- templates/project/_compass_treesaver_theme_basic.scss
|
57
|
+
- templates/project/manifest.rb
|
58
|
+
has_rdoc: true
|
59
|
+
homepage: http://zephirworks.com/
|
60
|
+
licenses: []
|
61
|
+
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: "0"
|
73
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 1.3.5
|
79
|
+
requirements: []
|
80
|
+
|
81
|
+
rubyforge_project: compass-treesaver-theme-default-plugin
|
82
|
+
rubygems_version: 1.5.2
|
83
|
+
signing_key:
|
84
|
+
specification_version: 3
|
85
|
+
summary: Basic theme for compass-treesaver-plugin.
|
86
|
+
test_files: []
|
87
|
+
|