schnitzelstyle 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +29 -0
- data/Rakefile +2 -0
- data/lib/assets/stylesheets/schnitzelstyle/_basics.scss +146 -0
- data/lib/assets/stylesheets/schnitzelstyle/_coderay.scss +24 -0
- data/lib/assets/stylesheets/schnitzelstyle/_configuration.scss +8 -0
- data/lib/assets/stylesheets/schnitzelstyle/_grid.scss +40 -0
- data/lib/assets/stylesheets/schnitzelstyle/_reset.scss +50 -0
- data/lib/assets/stylesheets/schnitzelstyle.scss +9 -0
- data/lib/schnitzelstyle/version.rb +3 -0
- data/lib/schnitzelstyle.rb +10 -0
- data/schnitzelstyle.gemspec +19 -0
- metadata +70 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2011 Hendrik Mans
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Schnitzelstyle
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
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
|
data/Rakefile
ADDED
@@ -0,0 +1,146 @@
|
|
1
|
+
@mixin floaty-title($fg, $bg) {
|
2
|
+
background-color: $bg;
|
3
|
+
color: $fg;
|
4
|
+
display: inline-block;
|
5
|
+
padding: 0.3em 0.6em;
|
6
|
+
|
7
|
+
a {
|
8
|
+
color: $fg;
|
9
|
+
border: none;
|
10
|
+
text-decoration: none;
|
11
|
+
&:hover { color: $fg }
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin schnitzel-basics {
|
16
|
+
body {
|
17
|
+
background-color: $color-page-background;
|
18
|
+
color: $color-text;
|
19
|
+
font: $font-default;
|
20
|
+
}
|
21
|
+
|
22
|
+
a {
|
23
|
+
color: $color-link;
|
24
|
+
}
|
25
|
+
|
26
|
+
strong {
|
27
|
+
font-weight: bold;
|
28
|
+
}
|
29
|
+
|
30
|
+
.container {
|
31
|
+
@include schnitzel-container;
|
32
|
+
}
|
33
|
+
|
34
|
+
section {
|
35
|
+
padding: 2em;
|
36
|
+
}
|
37
|
+
|
38
|
+
body>header {
|
39
|
+
padding: 2em 0;
|
40
|
+
color: #999;
|
41
|
+
h1 {
|
42
|
+
font: $font-headlines;
|
43
|
+
font-size: 200%;
|
44
|
+
font-weight: bold;
|
45
|
+
@include floaty-title(white, #4ea4ec);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
body>footer>.container {
|
50
|
+
font: $font-footer;
|
51
|
+
padding: 5em 0;
|
52
|
+
color: #999;
|
53
|
+
text-align: right;
|
54
|
+
a { color: #999; }
|
55
|
+
}
|
56
|
+
|
57
|
+
*:first-child { margin-top: 0 !important }
|
58
|
+
*:last-child { margin-bottom: 0 !important }
|
59
|
+
|
60
|
+
section {
|
61
|
+
p, dl, ol, ul, li {
|
62
|
+
margin: 0.8em 0;
|
63
|
+
line-height: 24px;
|
64
|
+
}
|
65
|
+
|
66
|
+
a {
|
67
|
+
color: $color-text;
|
68
|
+
text-decoration: none;
|
69
|
+
border-bottom: 2px solid #fc9;
|
70
|
+
|
71
|
+
&:hover {
|
72
|
+
color: #000;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
ul {
|
77
|
+
list-style-type: square;
|
78
|
+
}
|
79
|
+
|
80
|
+
ol {
|
81
|
+
list-style-type: lower-roman;
|
82
|
+
}
|
83
|
+
|
84
|
+
em {
|
85
|
+
font-style: italic;
|
86
|
+
color: #666;
|
87
|
+
}
|
88
|
+
|
89
|
+
h1, h2, h3, h4, h5, h6 {
|
90
|
+
font: $font-headlines;
|
91
|
+
margin-top: 1em;
|
92
|
+
@include floaty-title($color-text, lighten($color-text, 50%));
|
93
|
+
}
|
94
|
+
|
95
|
+
h1 {
|
96
|
+
font-size: 1.6em;
|
97
|
+
text-transform: uppercase;
|
98
|
+
}
|
99
|
+
|
100
|
+
article {
|
101
|
+
header {
|
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
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
pre, code {
|
115
|
+
font: $font-monospaced;
|
116
|
+
background-color: #eee;
|
117
|
+
color: #666;
|
118
|
+
}
|
119
|
+
|
120
|
+
code { padding: 0.1em 0.5em; }
|
121
|
+
|
122
|
+
pre {
|
123
|
+
display: block;
|
124
|
+
padding: 0.5em;
|
125
|
+
}
|
126
|
+
|
127
|
+
blockquote {
|
128
|
+
color: #777;
|
129
|
+
padding-left: 1em;
|
130
|
+
font-style: italic;
|
131
|
+
border-left: 5px solid #eee;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
/* http://nicolasgallagher.com/micro-clearfix-hack/ */
|
137
|
+
@mixin clearfix {
|
138
|
+
&:before, &:after {
|
139
|
+
content: "";
|
140
|
+
display: table;
|
141
|
+
}
|
142
|
+
&:after {
|
143
|
+
clear: both;
|
144
|
+
}
|
145
|
+
zoom: 1;
|
146
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
.CodeRay {
|
2
|
+
background-color: #232323;
|
3
|
+
color: #E6E0DB;
|
4
|
+
overflow: auto;
|
5
|
+
|
6
|
+
.attribute { color:#E7BE69 } /* html attribute */
|
7
|
+
.comment { color:#BC9358; font-style: italic; } /* comment */
|
8
|
+
.ch { color:#509E4F } /* escaped character */
|
9
|
+
.class { color:#FFF } /* class */
|
10
|
+
.constant, .predefined-constant { color:#FFF } /* constant */
|
11
|
+
.float { color:#A4C260 } /* float */
|
12
|
+
.function { color:#FFC56D } /* function */
|
13
|
+
.global { color:#D0CFFE } /* global variable */
|
14
|
+
.integer { color:#A4C260 } /* integer */
|
15
|
+
.inline { background:#151515 } /* inline code */
|
16
|
+
.instance-variable { color:#D0CFFE } /* instance variable */
|
17
|
+
.preprocessor { color:#E7BE69 } /* doctype */
|
18
|
+
.keyword { color:#CB7832 } /* keyword */
|
19
|
+
.regexp { color:#A4C260 } /* regex */
|
20
|
+
.string { color:#A4C260 } /* string */
|
21
|
+
.symbol { color:#6C9CBD } /* symbol */
|
22
|
+
.tag { color:#E7BE69 } /* html tag */
|
23
|
+
.pc { color:#6C9CBD } /* boolean */
|
24
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
@mixin schnitzel-grid-column($num, $margin: 1.25%, $padding: 0%) {
|
2
|
+
$width: (100% + $margin) / 12;
|
3
|
+
|
4
|
+
width: $num * $width - $margin - 2 * $padding;
|
5
|
+
margin-left: $margin;
|
6
|
+
}
|
7
|
+
|
8
|
+
@mixin one-column { float: left; @include schnitzel-grid-column(1); }
|
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%) {
|
15
|
+
@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
|
+
}
|
36
|
+
|
37
|
+
@mixin schnitzel-container {
|
38
|
+
margin: 0 auto;
|
39
|
+
width: 600px;
|
40
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
@mixin schnitzel-reset {
|
2
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
3
|
+
v2.0 | 20110126
|
4
|
+
License: none (public domain)
|
5
|
+
*/
|
6
|
+
|
7
|
+
html, body, div, span, applet, object, iframe,
|
8
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
9
|
+
a, abbr, acronym, address, big, cite, code,
|
10
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
11
|
+
small, strike, strong, sub, sup, tt, var,
|
12
|
+
b, u, i, center,
|
13
|
+
dl, dt, dd, ol, ul, li,
|
14
|
+
fieldset, form, label, legend,
|
15
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
16
|
+
article, aside, canvas, details, embed,
|
17
|
+
figure, figcaption, footer, header, hgroup,
|
18
|
+
menu, nav, output, ruby, section, summary,
|
19
|
+
time, mark, audio, video {
|
20
|
+
margin: 0;
|
21
|
+
padding: 0;
|
22
|
+
border: 0;
|
23
|
+
font-size: 100%;
|
24
|
+
font: inherit;
|
25
|
+
vertical-align: baseline;
|
26
|
+
}
|
27
|
+
/* HTML5 display-role reset for older browsers */
|
28
|
+
article, aside, details, figcaption, figure,
|
29
|
+
footer, header, hgroup, menu, nav, section {
|
30
|
+
display: block;
|
31
|
+
}
|
32
|
+
body {
|
33
|
+
line-height: 1;
|
34
|
+
}
|
35
|
+
ol, ul {
|
36
|
+
list-style: none;
|
37
|
+
}
|
38
|
+
blockquote, q {
|
39
|
+
quotes: none;
|
40
|
+
}
|
41
|
+
blockquote:before, blockquote:after,
|
42
|
+
q:before, q:after {
|
43
|
+
content: '';
|
44
|
+
content: none;
|
45
|
+
}
|
46
|
+
table {
|
47
|
+
border-collapse: collapse;
|
48
|
+
border-spacing: 0;
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/schnitzelstyle/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Hendrik Mans"]
|
6
|
+
gem.email = ["hendrik@mans.de"]
|
7
|
+
gem.description = %q{A simple, light-weight CSS framework to kickstart your web app.}
|
8
|
+
gem.summary = %q{Team Schnitzel's CSS Framework}
|
9
|
+
gem.homepage = "http://www.teamschnitzel.com/"
|
10
|
+
|
11
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
|
+
gem.files = `git ls-files`.split("\n")
|
13
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
|
+
gem.name = "schnitzelstyle"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = Schnitzelstyle::VERSION
|
17
|
+
|
18
|
+
gem.add_dependency 'sass'
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: schnitzelstyle
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Hendrik Mans
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-12-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: sass
|
16
|
+
requirement: &70143212894200 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70143212894200
|
25
|
+
description: A simple, light-weight CSS framework to kickstart your web app.
|
26
|
+
email:
|
27
|
+
- hendrik@mans.de
|
28
|
+
executables: []
|
29
|
+
extensions: []
|
30
|
+
extra_rdoc_files: []
|
31
|
+
files:
|
32
|
+
- .gitignore
|
33
|
+
- Gemfile
|
34
|
+
- LICENSE
|
35
|
+
- README.md
|
36
|
+
- Rakefile
|
37
|
+
- lib/assets/stylesheets/schnitzelstyle.scss
|
38
|
+
- lib/assets/stylesheets/schnitzelstyle/_basics.scss
|
39
|
+
- lib/assets/stylesheets/schnitzelstyle/_coderay.scss
|
40
|
+
- lib/assets/stylesheets/schnitzelstyle/_configuration.scss
|
41
|
+
- lib/assets/stylesheets/schnitzelstyle/_grid.scss
|
42
|
+
- lib/assets/stylesheets/schnitzelstyle/_reset.scss
|
43
|
+
- lib/schnitzelstyle.rb
|
44
|
+
- lib/schnitzelstyle/version.rb
|
45
|
+
- schnitzelstyle.gemspec
|
46
|
+
homepage: http://www.teamschnitzel.com/
|
47
|
+
licenses: []
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options: []
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
requirements: []
|
65
|
+
rubyforge_project:
|
66
|
+
rubygems_version: 1.8.11
|
67
|
+
signing_key:
|
68
|
+
specification_version: 3
|
69
|
+
summary: Team Schnitzel's CSS Framework
|
70
|
+
test_files: []
|