scratch_pad-themes-primary 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- ���U��vb�/E����t%� ����޿�F%3V��"R�=�}��[�ڦ�7߱`d���)��\G3����!/�(ϫH��ڜ:k+6!�������RV��Տģk}+�Hf ?(Y�e��'�C�`�&&�*@޻hG�W�ws�5m�u~��{�_�فv Q�\�hQ�m�i��NfS�;�WJEk�vmI"h��Un�z�1
2
- M[J��xu}�=T�馾�d5Gπ��!�@9L�nJ�#���
1
+ �Hx ���mXx���+�������3�d�����Z�׫W0��ᣕ�K�% Ue&�4�ϳqN����Y{�tG]-(/N˪y��cd?�њ�<[i�LVp۴w��/k�v���=u�=&ٽG
2
+ !^�yҽp��>���q�ra�9����L��@�p٩JՙLSA� rK����#jd��Q���)�rHU3�$S�̸�U>5�`W~ ؀"C�23��k��#�.�}'��"wZ���i�yB1>.�d
@@ -1,3 +1,5 @@
1
+ require 'primary'
2
+
1
3
  module Themes
2
4
  class Primary < ScratchPad::Addon::Theme
3
5
  register_font 'zenda', 'Zenda-fontfacekit', 'Paul Lloyd License Agreement.txt' do |font|
@@ -7,21 +9,15 @@ module Themes
7
9
  font.add_file 'zenda-webfont.woff'
8
10
  end
9
11
 
10
- [
11
- :one_two_one,
12
- :three_one
13
- ].each do |layout|
14
- register_layout layout do |regions|
15
- regions << register_region(:branding, :header)
16
- regions << register_region(:main_menu, :nav)
17
- regions << register_region(:flash, :section)
18
- regions << register_region(:content, :section)
19
- regions << register_region(:credits, :footer)
20
- end
21
- end
12
+ register_layout :header_three_columns do |regions|
13
+ regions << register_region(:branding, :header)
14
+ regions << register_region(:side_bar_primary, :aside)
15
+ regions << register_region(:content, :section)
16
+ regions << register_region(:side_bar_secondary, :aside)
17
+ end
22
18
 
23
- def self.root
24
- Pathname.new(__FILE__) + '..' + '..'
25
- end
26
- end
19
+ def self.root
20
+ Pathname.new(__FILE__) + '..' + '..'
21
+ end
22
+ end
27
23
  end
@@ -3,15 +3,3 @@
3
3
 
4
4
  @mixin serif-family
5
5
  font-family: Baskerville, Palatino, serif
6
-
7
- @mixin list-default($ol: false)
8
- @if $ol
9
- list-style: decimal
10
- @else
11
- list-style: disc
12
- margin: 0 1.5em 1.5em 1.5em
13
-
14
- @mixin no-style-list
15
- @include no-bullets
16
- margin: 0
17
- padding: 0
@@ -1,52 +1,21 @@
1
- //**
2
- // Susy: Elastic-Fluid grids without all the math
3
- // by Eric Meyer and OddBird Collective
4
- // Site: www.oddbird.net/susy/
5
- //**
1
+ //
2
+ The following variables are used by Primary
3
+ $primary-selector-header: header
4
+ $primary-selector-primary: '#primary'
5
+ $primary-selector-secondary: '#secondary'
6
+ $primary-selector-tertiary: '#tertiary'
7
+ $primary-selector-quaternary: '#quaternary'
8
+ $primary-selector-quinary: '#quinary'
9
+ $primary-selector-footer: footer
10
+ $primary-column-margin: 1%
11
+ $primary-column-padding: 1%
12
+ $primary-column-count: 10
13
+ $primary-column-total-width: 100%
6
14
 
7
- //**
8
- GRID
9
- un-comment and override these values as needed for your grid layout
10
- (defaults are shown)
11
- // $grid_unit: em
12
- // $total_cols: 12
13
- // $col_width: 4
14
- // $gutter_width: 1
15
- // $side_gutter_width: $gutter_width
15
+ $primary-selector-primary: '#side_bar_primary'
16
+ $primary-selector-secondary: '#content'
17
+ $primary-selector-tertiary: '#side_bar_secondary'
16
18
 
17
-
18
- //**
19
- OMEGA_FLOAT
20
- By default, +omega elements are floated right.
21
- You can override that globally here:
22
- // $omega_float: right
23
-
24
-
25
- //**
26
- HACKS
27
- Are you using hacks or conditional comments? Susy makes both possible.
28
- Leave this as 'true' to use hacks, set it as false for conditional comments.
29
- Conditional comments will require overrides for +omega, +inline-block and
30
- several other mixins.
31
- $hacks: true
32
-
33
- //**
34
- FONT-SIZE
35
- un-comment and override these values as needed (defaults are shown)
36
- - you set the font and line heights in pixels.
37
- - Susy will do the math and give you $base_font_size and $base_line_height
38
- variables, set flexibly against the common browser default of 16px
39
- // $base_font_size_px: 16
40
- // $base_line_height_px: 24
41
-
42
- // COLORS
43
- // set any colors you will need later
44
- $font_color: #444444
45
- $quiet_color: $font_color + #333333
46
- $loud_color: $font_color - #222222
47
- $header_color: $font_color - #111111
48
- $link_color: #009999
49
- $visited_color: #990099
50
- $hover_color: $link_color - #333333
51
- $focus_color: $hover_color
52
- $active_color: $hover_color
19
+ $primary-column-margin: 5px
20
+ $primary-column-padding: 5px
21
+ $primary-column-total-width: 960px
data/lib/styles/all.sass CHANGED
@@ -1,168 +1,35 @@
1
- @import susy/susy
1
+ @import primary/primary
2
2
 
3
3
  @import helpers
4
4
 
5
5
  @mixin primary_all
6
- /*
7
- Welcome to Susy. More here:
8
- http://github.com/ericam/compass-susy-plugin
9
- http://natbat.net/2008/Sep/28/css-systems/
10
- http://www.oddbird.net/susy/tutorial/
11
- http://code.google.com/p/better-web-readability-project/
12
-
13
- /* @group links */
14
- :focus
15
- outline: 1px dotted $quiet_color
16
- color: $hover_color
17
-
18
- a
19
- &:link
20
- color: $link_color
21
- &:visited
22
- color: $visited_color
23
- &:focus,
24
- &:hover,
25
- &:active
26
- color: $hover_color
27
- text-decoration: none
28
- /* @end */
29
-
30
-
31
- /* @group headers */
32
- .h
33
- display: inline-block
34
- color: $header_color
35
- font:
36
- size: $base_line_height
37
- weight: bold
38
- @include serif-family
39
- /* @end */
40
-
41
-
42
- /* @group forms */
43
- form *:focus
44
- outline: none
45
-
46
- fieldset
47
- margin: $base_line_height 0
48
- legend
49
- font-weight: bold
50
- font-variant: small-caps
51
- .field
52
- margin: 0
53
-
54
- label
55
- display block
56
- margin-top: $base_line_height
57
-
58
- legend + label
59
- margin-top: 0
60
-
61
- textarea,
62
- input[type="text"]
63
- color: $quiet_color
64
- @include box-sizing("border-box")
65
- width: 100%
66
- /* @end */
67
-
68
-
69
- /* @group tables */
70
- /* tables still need 'cellspacing="0"' in the markup */
71
- table
72
- width: 100%
73
- border: 1/16 + "em solid" $quiet_color + #333
74
- left: none
75
- right: none
76
- padding: 7/16 + "em 0"
77
- margin: 8/16 + "em 0"
78
-
79
- tbody
80
- color: $quiet_color
81
-
82
- th
83
- font-weight: bold
84
- /* @end */
85
-
86
-
87
- /* @group block tags */
88
- p
89
- margin: $base_line_height 0
90
-
91
- ol
92
- @include list-default("ol")
93
-
94
- ul
95
- @include list-default
96
-
97
- blockquote
98
- margin: $base_line_height
99
- color: $quiet_color
100
- /* @end */
101
-
102
-
103
- /* @group inline tags */
104
- cite
105
- font-style: italic
106
- color: $quiet_color
107
-
108
- em
109
- font-style: italic
110
-
111
- strong
112
- font-weight: bold
113
-
114
- ins
115
- text-decoration: underline
116
-
117
- del
118
- text-decoration: line-through
119
-
120
- q
121
- font-style: italic
122
- em
123
- font-style: normal
124
- /* @end */
125
-
126
-
127
- /* @group replaced tags */
128
- img
129
- vertical-align: bottom
130
- /* @end */
131
-
132
-
133
- /* @group STRUCTURE */
134
- @include susy
6
+ #{$primary-selector-header}
7
+ background-color: #FFFF00
8
+ #{$primary-selector-primary}
9
+ background-color: #FF0000
10
+ #{$primary-selector-secondary}
11
+ background-color: #00FF00
12
+ #{$primary-selector-tertiary}
13
+ background-color: #0000FF
14
+ #{$primary-selector-quaternary}
15
+ background-color: #FF00FF
16
+ #{$primary-selector-quinary}
17
+ background-color: #00FFFF
18
+ #{$primary-selector-footer}
19
+ background-color: #DDDDDD
135
20
 
136
21
  body
137
- @include sans-family
138
- color: $font_color
139
- background-color: #000000
140
22
  line-height: 1.625
141
23
  font-size: 16px
142
-
143
- .clearfix
144
- // @include clearfix
145
- margin: 0
146
- border: none
24
+ margin: 0 auto
25
+ width: 960px
26
+ &.header-three-columns
27
+ @include primary-layout-one
28
+ #{$primary-selector-primary},
29
+ #{$primary-selector-secondary},
30
+ #{$primary-selector-tertiary}
31
+ min-height: 400px
147
32
 
148
33
  #branding
149
34
  .h
150
35
  font-family: zenda, Baskerville, Palatino, serif
151
-
152
- #main_menu
153
-
154
- #content
155
-
156
- #credits
157
- /* @end */
158
-
159
-
160
- /* @group DEBUG */
161
- // uncomment, adjust and use for debugging
162
- //
163
- #branding,
164
- #main_menu,
165
- #content,
166
- #credits
167
- @include show-grid('grid.png')
168
- /* @end */
@@ -3,11 +3,11 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'scratch_pad-themes-primary'
6
- s.version = '0.0.1'
6
+ s.version = '0.0.2'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Raving Genius']
9
9
  s.email = ['rg+code@ravinggenius.com']
10
- s.homepage = ''
10
+ s.homepage = 'https://github.com/ravinggenius/scratch_pad-themes-primary'
11
11
  s.summary = %q{ScratchPad theme based on PrimaryCSS}
12
12
  #s.description = %q{TODO: Write a gem description}
13
13
 
@@ -23,5 +23,5 @@ Gem::Specification.new do |s|
23
23
  '/home/thomas/Code/___/certificates/gem-public_cert.pem'
24
24
  ]
25
25
 
26
- s.add_dependency 'compass-primary-plugin'
26
+ s.add_dependency 'compass-primary-plugin'
27
27
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: scratch_pad-themes-primary
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Raving Genius
@@ -31,7 +31,7 @@ cert_chain:
31
31
  CvvfejGH+Hi4YXI1pPhLJj8g
32
32
  -----END CERTIFICATE-----
33
33
 
34
- date: 2011-02-02 00:00:00 -05:00
34
+ date: 2011-02-25 00:00:00 -05:00
35
35
  default_executable:
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
@@ -67,12 +67,11 @@ files:
67
67
  - lib/public/fonts/Zenda-fontfacekit/zenda-webfont.woff
68
68
  - lib/scratch_pad-themes-primary/primary.rb
69
69
  - lib/styles/_helpers.sass
70
- - lib/styles/_scaffold.sass
71
70
  - lib/styles/_variables.sass
72
71
  - lib/styles/all.sass
73
72
  - scratch_pad-themes-primary.gemspec
74
73
  has_rdoc: true
75
- homepage: ""
74
+ homepage: https://github.com/ravinggenius/scratch_pad-themes-primary
76
75
  licenses: []
77
76
 
78
77
  post_install_message:
@@ -95,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
94
  requirements: []
96
95
 
97
96
  rubyforge_project: scratch_pad-themes-primary
98
- rubygems_version: 1.5.0
97
+ rubygems_version: 1.5.2
99
98
  signing_key:
100
99
  specification_version: 3
101
100
  summary: ScratchPad theme based on PrimaryCSS
metadata.gz.sig CHANGED
Binary file
@@ -1,68 +0,0 @@
1
- body
2
- background:
3
- color: #FFFFFF
4
- color: #333333
5
- font:
6
- family: verdana, arial, helvetica, sans-serif
7
- size: 13px
8
- line:
9
- height: 18px
10
-
11
- pre
12
- background:
13
- color: #EEEEEE
14
- padding: 10px
15
- font:
16
- size: 11px
17
-
18
- a
19
- color: #000000
20
- &:visited
21
- color: #666666
22
- &:hover
23
- color: #FFFFFF
24
- background:
25
- color: #000000
26
-
27
- div
28
- &.field,
29
- &.actions
30
- margin:
31
- bottom: 10px
32
-
33
- #notice
34
- color: #008000
35
-
36
- .field_with_errors
37
- padding: 2px
38
- background:
39
- color: #FF0000
40
- display: table
41
-
42
- #error_explanation
43
- width: 450px
44
- border: 2px solid #FF0000
45
- padding: 7px
46
- padding:
47
- bottom: 0
48
- margin:
49
- bottom: 20px
50
- background:
51
- color: #F0F0F0
52
- h2
53
- text:
54
- align: left
55
- font:
56
- weight: bold
57
- padding: 5px 5px 5px 15px
58
- font:
59
- size: 12px
60
- margin: -7px -7px 0px
61
- background:
62
- color: #CC0000
63
- color: #FFFFFF
64
- ul li
65
- font:
66
- size: 12px
67
- list:
68
- style: square