schnitzelstyle 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -1
- data/Gemfile +7 -0
- data/Gemfile.lock +53 -0
- data/README.md +1 -27
- data/config.ru +19 -0
- data/lib/assets/stylesheets/schnitzelstyle/_basics.scss +55 -33
- data/lib/assets/stylesheets/schnitzelstyle/_configuration.scss +12 -7
- data/lib/assets/stylesheets/schnitzelstyle/_export.scss +16 -0
- data/lib/assets/stylesheets/schnitzelstyle/_grid.scss +17 -33
- data/lib/assets/stylesheets/schnitzelstyle.scss +1 -0
- data/lib/schnitzelstyle/version.rb +1 -1
- data/site/_layout.haml +16 -0
- data/site/index.haml +9 -0
- data/site/schnitzelstyle-static.scss +4 -0
- data/site/site.scss +4 -0
- metadata +11 -4
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -2,3 +2,10 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in schnitzelstyle.gemspec
|
4
4
|
gemspec
|
5
|
+
|
6
|
+
# Additional gems required by the demo site.
|
7
|
+
gem 'rack-cache'
|
8
|
+
gem 'haml'
|
9
|
+
gem 'redcarpet'
|
10
|
+
gem 'serve', git: 'git://github.com/hmans/serve.git', branch: 'respect_sass_load_paths'
|
11
|
+
gem 'thin'
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/hmans/serve.git
|
3
|
+
revision: e3e6dc26555d09add03fb46b42e036acb3239d31
|
4
|
+
branch: respect_sass_load_paths
|
5
|
+
specs:
|
6
|
+
serve (1.5.1)
|
7
|
+
activesupport (~> 3.0)
|
8
|
+
i18n
|
9
|
+
rack (~> 1.2)
|
10
|
+
rack-test (~> 0.5)
|
11
|
+
tilt (~> 1.3)
|
12
|
+
tzinfo
|
13
|
+
|
14
|
+
PATH
|
15
|
+
remote: .
|
16
|
+
specs:
|
17
|
+
schnitzelstyle (0.0.1)
|
18
|
+
sass
|
19
|
+
|
20
|
+
GEM
|
21
|
+
remote: https://rubygems.org/
|
22
|
+
specs:
|
23
|
+
activesupport (3.1.3)
|
24
|
+
multi_json (~> 1.0)
|
25
|
+
daemons (1.1.5)
|
26
|
+
eventmachine (0.12.10)
|
27
|
+
haml (3.1.4)
|
28
|
+
i18n (0.6.0)
|
29
|
+
multi_json (1.0.4)
|
30
|
+
rack (1.4.0)
|
31
|
+
rack-cache (1.1)
|
32
|
+
rack (>= 0.4)
|
33
|
+
rack-test (0.6.1)
|
34
|
+
rack (>= 1.0)
|
35
|
+
redcarpet (2.0.1)
|
36
|
+
sass (3.1.12)
|
37
|
+
thin (1.3.1)
|
38
|
+
daemons (>= 1.0.9)
|
39
|
+
eventmachine (>= 0.12.6)
|
40
|
+
rack (>= 1.0.0)
|
41
|
+
tilt (1.3.3)
|
42
|
+
tzinfo (0.3.31)
|
43
|
+
|
44
|
+
PLATFORMS
|
45
|
+
ruby
|
46
|
+
|
47
|
+
DEPENDENCIES
|
48
|
+
haml
|
49
|
+
rack-cache
|
50
|
+
redcarpet
|
51
|
+
schnitzelstyle!
|
52
|
+
serve!
|
53
|
+
thin
|
data/README.md
CHANGED
@@ -1,29 +1,3 @@
|
|
1
1
|
# Schnitzelstyle
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
gem 'schnitzelstyle'
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install schnitzelstyle
|
18
|
-
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
TODO: Write usage instructions here
|
22
|
-
|
23
|
-
## Contributing
|
24
|
-
|
25
|
-
1. Fork it
|
26
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
-
3. Commit your changes (`git commit -am 'Added some feature'`)
|
28
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
-
5. Create new Pull Request
|
3
|
+
**A tiny, light-weight, hopefully sane CSS framework with a Schnitzel flavor.**
|
data/config.ru
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rubygems'
|
3
|
+
require 'bundler/setup'
|
4
|
+
|
5
|
+
require 'schnitzelstyle'
|
6
|
+
require 'serve'
|
7
|
+
require 'rack/cache'
|
8
|
+
|
9
|
+
# sigh: https://github.com/tanoku/redcarpet/pull/89
|
10
|
+
require 'redcarpet'
|
11
|
+
class RedcarpetCompat
|
12
|
+
def to_html(*_dummy)
|
13
|
+
@text = @text.encode('utf-8') if @text.respond_to?(:encode)
|
14
|
+
@markdown.render(@text)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
use Rack::Cache
|
19
|
+
run Serve::RackAdapter.new('site')
|
@@ -27,49 +27,74 @@
|
|
27
27
|
font-weight: bold;
|
28
28
|
}
|
29
29
|
|
30
|
-
.container {
|
31
|
-
|
32
|
-
}
|
30
|
+
.container>header {
|
31
|
+
margin: 2em 0;
|
33
32
|
|
34
|
-
|
35
|
-
|
36
|
-
|
33
|
+
color: $color-header;
|
34
|
+
font: $font-header;
|
35
|
+
font-size: 120%;
|
36
|
+
line-height: 150%;
|
37
37
|
|
38
|
-
body>header {
|
39
|
-
padding: 2em 0;
|
40
|
-
color: #999;
|
41
38
|
h1 {
|
42
|
-
|
39
|
+
margin-bottom: 0.5em;
|
40
|
+
|
41
|
+
font: $font-header;
|
43
42
|
font-size: 200%;
|
44
43
|
font-weight: bold;
|
45
|
-
@include floaty-title(
|
44
|
+
@include floaty-title($color-page-background, $color-header);
|
45
|
+
}
|
46
|
+
|
47
|
+
@media only screen and (max-width: 640px) {
|
48
|
+
line-height: 130%;
|
49
|
+
|
50
|
+
h1 {
|
51
|
+
font-size: 120%;
|
52
|
+
}
|
46
53
|
}
|
47
54
|
}
|
48
55
|
|
49
|
-
|
56
|
+
.container>footer {
|
50
57
|
font: $font-footer;
|
51
|
-
|
52
|
-
|
58
|
+
font-size: 75%;
|
59
|
+
margin-top: 5em;
|
60
|
+
color: $color-footer;
|
53
61
|
text-align: right;
|
54
|
-
a { color:
|
62
|
+
a { color: $color-footer; }
|
55
63
|
}
|
56
64
|
|
57
65
|
*:first-child { margin-top: 0 !important }
|
58
66
|
*:last-child { margin-bottom: 0 !important }
|
59
67
|
|
60
|
-
section {
|
68
|
+
article, section {
|
69
|
+
margin: 4em 0;
|
70
|
+
|
71
|
+
header {
|
72
|
+
margin-bottom: 1em;
|
73
|
+
|
74
|
+
h2 {
|
75
|
+
@include floaty-title($color-page-background, $color-text);
|
76
|
+
text-transform: uppercase;
|
77
|
+
letter-spacing: 0.15em;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
61
81
|
p, dl, ol, ul, li {
|
62
82
|
margin: 0.8em 0;
|
63
83
|
line-height: 24px;
|
64
84
|
}
|
65
85
|
|
86
|
+
// tweet integration
|
87
|
+
.twp-container {
|
88
|
+
margin: 1.5em auto;
|
89
|
+
}
|
90
|
+
|
66
91
|
a {
|
67
|
-
color: $color-
|
92
|
+
color: $color-link;
|
68
93
|
text-decoration: none;
|
69
|
-
border-bottom: 2px solid
|
94
|
+
border-bottom: 2px solid $color-link-underline;
|
70
95
|
|
71
96
|
&:hover {
|
72
|
-
color:
|
97
|
+
color: $color-link-hover;
|
73
98
|
}
|
74
99
|
}
|
75
100
|
|
@@ -87,28 +112,18 @@
|
|
87
112
|
}
|
88
113
|
|
89
114
|
h1, h2, h3, h4, h5, h6 {
|
90
|
-
font: $font-
|
115
|
+
font: $font-header;
|
91
116
|
margin-top: 1em;
|
92
117
|
@include floaty-title($color-text, lighten($color-text, 50%));
|
93
118
|
}
|
94
119
|
|
95
120
|
h1 {
|
96
|
-
font-size:
|
121
|
+
font-size: 150%;
|
97
122
|
text-transform: uppercase;
|
98
123
|
}
|
99
124
|
|
100
|
-
|
101
|
-
|
102
|
-
h2 {
|
103
|
-
@include floaty-title($color-page-background, $color-text);
|
104
|
-
text-transform: uppercase;
|
105
|
-
letter-spacing: 0.15em;
|
106
|
-
}
|
107
|
-
}
|
108
|
-
|
109
|
-
img {
|
110
|
-
max-width: 600px;
|
111
|
-
}
|
125
|
+
img {
|
126
|
+
max-width: 100%;
|
112
127
|
}
|
113
128
|
|
114
129
|
pre, code {
|
@@ -131,6 +146,13 @@
|
|
131
146
|
border-left: 5px solid #eee;
|
132
147
|
}
|
133
148
|
}
|
149
|
+
|
150
|
+
@media only screen and (max-width: 640px) {
|
151
|
+
.container>article, .container>section {
|
152
|
+
margin: 0;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
134
156
|
}
|
135
157
|
|
136
158
|
/* http://nicolasgallagher.com/micro-clearfix-hack/ */
|
@@ -1,8 +1,13 @@
|
|
1
|
-
$font-default:
|
2
|
-
$font-
|
3
|
-
$font-footer:
|
4
|
-
$font-monospaced: 13px Menlo,Monaco,Courier;
|
1
|
+
$font-default: 15px "Georgia" !default;
|
2
|
+
$font-header: 14px "Lucida Grande" !default;
|
3
|
+
$font-footer: $font-header !default;
|
4
|
+
$font-monospaced: 13px Menlo,Monaco,Courier !default;
|
5
5
|
|
6
|
-
$color-page-background: white;
|
7
|
-
$color-text:
|
8
|
-
$color-
|
6
|
+
$color-page-background: white !default;
|
7
|
+
$color-text: #555 !default;
|
8
|
+
$color-footer: #999 !default;
|
9
|
+
$color-header: #4ea4ec !default;
|
10
|
+
|
11
|
+
$color-link: $color-text !default;
|
12
|
+
$color-link-underline: lighten(complement($color-header), 10%) !default;
|
13
|
+
$color-link-hover: darken($color-link, 20%) !default;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
@mixin schnitzel-export {
|
2
|
+
.container { @include container; }
|
3
|
+
.row { @include row; }
|
4
|
+
.one.column { @include columns(1); }
|
5
|
+
.two.columns { @include columns(2); }
|
6
|
+
.three.columns { @include columns(3); }
|
7
|
+
.four.columns { @include columns(4); }
|
8
|
+
.five.columns { @include columns(5); }
|
9
|
+
.six.columns { @include columns(6); }
|
10
|
+
.seven.columns { @include columns(7); }
|
11
|
+
.eight.columns { @include columns(8); }
|
12
|
+
.nine.columns { @include columns(9); }
|
13
|
+
.ten.columns { @include columns(10); }
|
14
|
+
.eleven.columns { @include columns(11); }
|
15
|
+
.twelve.columns { @include columns(12); }
|
16
|
+
}
|
@@ -1,40 +1,24 @@
|
|
1
|
-
@mixin
|
2
|
-
|
1
|
+
@mixin container($width: 600px) {
|
2
|
+
width: $width;
|
3
|
+
margin: 0 auto;
|
4
|
+
padding: 2em 0 5em 0;
|
3
5
|
|
4
|
-
|
5
|
-
|
6
|
+
@media only screen and (max-width: 640px) {
|
7
|
+
width: auto;
|
8
|
+
margin: 0 0.6em;
|
9
|
+
padding: 0.6em 0;
|
10
|
+
}
|
6
11
|
}
|
7
12
|
|
8
|
-
@mixin
|
9
|
-
@mixin two-columns { float: left; @include schnitzel-grid-column(2); }
|
10
|
-
@mixin three-columns { float: left; @include schnitzel-grid-column(3); }
|
11
|
-
@mixin four-columns { float: left; @include schnitzel-grid-column(4); }
|
12
|
-
@mixin eight-columns { float: left; @include schnitzel-grid-column(8); }
|
13
|
-
|
14
|
-
@mixin schnitzel-grid-row($margin: 1.25%, $padding: 0%) {
|
13
|
+
@mixin row {
|
15
14
|
@include clearfix;
|
16
|
-
|
17
|
-
// .column, .columns {
|
18
|
-
// float: left;
|
19
|
-
// padding: $padding;
|
20
|
-
|
21
|
-
// &:first-child { margin-left: 0 }
|
22
|
-
// }
|
23
|
-
// .one { @include schnitzel-grid-column(1, $margin, $padding); }
|
24
|
-
// .two { @include schnitzel-grid-column(2, $margin, $padding); }
|
25
|
-
// .three { @include schnitzel-grid-column(3, $margin, $padding); }
|
26
|
-
// .four { @include schnitzel-grid-column(4, $margin, $padding); }
|
27
|
-
// .five { @include schnitzel-grid-column(5, $margin, $padding); }
|
28
|
-
// .six { @include schnitzel-grid-column(6, $margin, $padding); }
|
29
|
-
// .seven { @include schnitzel-grid-column(7, $margin, $padding); }
|
30
|
-
// .eight { @include schnitzel-grid-column(8, $margin, $padding); }
|
31
|
-
// .nine { @include schnitzel-grid-column(9, $margin, $padding); }
|
32
|
-
// .ten { @include schnitzel-grid-column(10, $margin, $padding); }
|
33
|
-
// .eleven { @include schnitzel-grid-column(11, $margin, $padding); }
|
34
|
-
// .twelve { @include schnitzel-grid-column(12, $margin, $padding); }
|
35
15
|
}
|
36
16
|
|
37
|
-
@mixin
|
38
|
-
|
39
|
-
|
17
|
+
@mixin columns($num, $margin: 1.25%, $padding: 0%) {
|
18
|
+
$single-width: (100%) / 12;
|
19
|
+
|
20
|
+
width: $num * $single-width - $margin - 2 * $padding;
|
21
|
+
margin-right: $margin;
|
22
|
+
padding: $padding;
|
23
|
+
float: left;
|
40
24
|
}
|
data/site/_layout.haml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title SchnitzelStyle
|
5
|
+
%meta{ name: "viewport", content: "width=device-width, initial-scale=1.0" }
|
6
|
+
%link{ href: 'schnitzelstyle-static.css', media: "screen", rel: "stylesheet", type: "text/css" }
|
7
|
+
%link{ href: 'site.css', media: "screen", rel: "stylesheet", type: "text/css" }
|
8
|
+
%body
|
9
|
+
.container
|
10
|
+
%header.row
|
11
|
+
%h1 SchnitzelStyle
|
12
|
+
|
13
|
+
= yield
|
14
|
+
|
15
|
+
%footer.row
|
16
|
+
a Team Schnitzel 2012 gig
|
data/site/index.haml
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
%article
|
2
|
+
%header
|
3
|
+
%h2 CSS goodness with a taste of Schnitzel!
|
4
|
+
|
5
|
+
%p Strip steak leberkase pig, swine brisket chicken prosciutto ham hock pork loin ground round andouille rump pastrami pork ball tip. Flank sausage tri-tip, ribeye short loin biltong venison kielbasa. Turducken jowl jerky corned beef tail fatback. Ham sirloin beef ribs, tenderloin short loin meatloaf cow. Pork loin brisket pastrami swine pig shoulder cow sirloin filet mignon tenderloin chuck. Fatback short ribs brisket beef ribs. Sausage turkey brisket, jerky strip steak pork belly chicken ground round swine ham hock boudin flank shoulder filet mignon.
|
6
|
+
|
7
|
+
%p Ham hock pork chop beef ribs, capicola ham chicken boudin filet mignon rump flank pork belly brisket tri-tip shoulder. T-bone short loin swine pancetta andouille brisket turkey. Ribeye capicola andouille kielbasa, beef sausage ground round sirloin. Sausage bacon capicola, ham short loin swine filet mignon.
|
8
|
+
|
9
|
+
%p Pork loin pancetta capicola, prosciutto biltong ham boudin swine filet mignon salami. Drumstick shank t-bone hamburger bacon frankfurter. Tongue kielbasa jowl turkey. Corned beef turkey shank shoulder venison, bresaola chuck ham hock kielbasa. Andouille pork belly tenderloin, beef ribs shoulder drumstick frankfurter meatball chuck. Meatball prosciutto shoulder, turducken pancetta brisket frankfurter ground round rump. Swine short ribs prosciutto, jowl pork chop strip steak pastrami rump bacon capicola pork belly.
|
data/site/site.scss
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schnitzelstyle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass
|
16
|
-
requirement: &
|
16
|
+
requirement: &70205036779900 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70205036779900
|
25
25
|
description: A simple, light-weight CSS framework to kickstart your web app.
|
26
26
|
email:
|
27
27
|
- hendrik@mans.de
|
@@ -31,18 +31,25 @@ extra_rdoc_files: []
|
|
31
31
|
files:
|
32
32
|
- .gitignore
|
33
33
|
- Gemfile
|
34
|
+
- Gemfile.lock
|
34
35
|
- LICENSE
|
35
36
|
- README.md
|
36
37
|
- Rakefile
|
38
|
+
- config.ru
|
37
39
|
- lib/assets/stylesheets/schnitzelstyle.scss
|
38
40
|
- lib/assets/stylesheets/schnitzelstyle/_basics.scss
|
39
41
|
- lib/assets/stylesheets/schnitzelstyle/_coderay.scss
|
40
42
|
- lib/assets/stylesheets/schnitzelstyle/_configuration.scss
|
43
|
+
- lib/assets/stylesheets/schnitzelstyle/_export.scss
|
41
44
|
- lib/assets/stylesheets/schnitzelstyle/_grid.scss
|
42
45
|
- lib/assets/stylesheets/schnitzelstyle/_reset.scss
|
43
46
|
- lib/schnitzelstyle.rb
|
44
47
|
- lib/schnitzelstyle/version.rb
|
45
48
|
- schnitzelstyle.gemspec
|
49
|
+
- site/_layout.haml
|
50
|
+
- site/index.haml
|
51
|
+
- site/schnitzelstyle-static.scss
|
52
|
+
- site/site.scss
|
46
53
|
homepage: http://www.teamschnitzel.com/
|
47
54
|
licenses: []
|
48
55
|
post_install_message:
|