shibui 0.0.1.alpha
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.md +52 -0
- data/lib/shibui.rb +3 -0
- data/stylesheets/_shibui.sass +4 -0
- data/stylesheets/shibui/_base.sass +99 -0
- data/stylesheets/shibui/_buttons.sass +32 -0
- data/stylesheets/shibui/_components.sass +10 -0
- data/stylesheets/shibui/_forms.sass +25 -0
- data/stylesheets/shibui/_shared.sass +10 -0
- data/templates/project/index.html +72 -0
- data/templates/project/input-focus-bg.png +0 -0
- data/templates/project/manifest.rb +19 -0
- data/templates/project/sass/screen.sass +8 -0
- metadata +67 -0
data/Readme.md
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
Shibui for Compass
|
2
|
+
==================
|
3
|
+
|
4
|
+
To create your first project, you'll need to have the [Shibui](http://en.wikipedia.org/wiki/Shibui) gem installed, this will include all the necessary dependencies.
|
5
|
+
|
6
|
+
To install locally
|
7
|
+
------------------
|
8
|
+
|
9
|
+
In Terminal:
|
10
|
+
|
11
|
+
* `git clone git@github.com:heroku/shibui.git`
|
12
|
+
* `cd shibui`
|
13
|
+
* `sudo gem build shibui.gemspec`
|
14
|
+
* `sudo gem install shibui-0.0.1.gem`
|
15
|
+
|
16
|
+
To create your first project
|
17
|
+
----------------------------
|
18
|
+
|
19
|
+
* `cd path/to/where-you-want-new-project`
|
20
|
+
* .scss syntax: `compass create <my_project> -r shibui --using shibui --force`
|
21
|
+
* .sass syntax: `compass create <my_project> -r shibui --using shibui --syntax sass --force`
|
22
|
+
|
23
|
+
Now you should have a new project folder created with the Shibui file structure, but with the awesome advantages of having all the css pre-processed with Sass.
|
24
|
+
|
25
|
+
To add Shibui to an existing project
|
26
|
+
------------------------------------
|
27
|
+
|
28
|
+
* `cd path/to/your-compass-ready-project`
|
29
|
+
* `require "shibui"`
|
30
|
+
* `compass install shibui`
|
31
|
+
|
32
|
+
To work on Shibui
|
33
|
+
-----------------
|
34
|
+
|
35
|
+
If you want to make changes to the Shibui plugin and see the effects locally follow these steps:
|
36
|
+
|
37
|
+
* `mkdir shibui-dojo`
|
38
|
+
* `cd shibui-dojo`
|
39
|
+
* `git clone git@github.com:heroku/shibui.git`
|
40
|
+
* `compass create sample-project -l shibui`
|
41
|
+
* `cd sample-project`
|
42
|
+
* `compass watch`
|
43
|
+
|
44
|
+
Shibui development with LiveReload
|
45
|
+
----------------------------------
|
46
|
+
|
47
|
+
[LiveReload](http://livereload.com/) is a great way to have your browser automagically refresh when changes to your project are made. Unfortunately LiveReload will not recognize changes to partials within a Compass extension. As a workaround:
|
48
|
+
|
49
|
+
- Use `compass watch` to generate updated stylesheets like described above.
|
50
|
+
- Add the project folder (`sample`) to LiveReload and uncheck the option Compile SASS.
|
51
|
+
|
52
|
+
The Compass watcher will take care of generating new CSS files and LiveReload will recognize changes to the CSS files and trigger a browser reload.
|
data/lib/shibui.rb
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
@import url("https://statics.heroku.com/fonts/fonts.css")
|
2
|
+
|
3
|
+
@import "shared"
|
4
|
+
@import "compass/reset"
|
5
|
+
|
6
|
+
$base-font-size: 13px !default
|
7
|
+
$base-line-height: 18px !default
|
8
|
+
$relative-font-sizing: false !default
|
9
|
+
|
10
|
+
@import "compass/typography/vertical_rhythm"
|
11
|
+
@include establish-baseline
|
12
|
+
|
13
|
+
body
|
14
|
+
background: #1b1b24
|
15
|
+
color: #8487af
|
16
|
+
@include helvetica-fontstack
|
17
|
+
font-size: $base-font-size
|
18
|
+
|
19
|
+
p
|
20
|
+
@include trailer
|
21
|
+
|
22
|
+
&:first-child
|
23
|
+
@include leader
|
24
|
+
|
25
|
+
#{headings(all)}
|
26
|
+
color: #fff
|
27
|
+
@include corbel-fontstack
|
28
|
+
|
29
|
+
h1
|
30
|
+
@include adjust-font-size-to($base-font-size * 2.8, $lines: 3)
|
31
|
+
|
32
|
+
h2
|
33
|
+
@include adjust-font-size-to($base-font-size * 2, $lines: 2)
|
34
|
+
|
35
|
+
h3
|
36
|
+
@include adjust-font-size-to($base-font-size * 1.5, $lines: 2)
|
37
|
+
|
38
|
+
h4
|
39
|
+
@include adjust-font-size-to($base-font-size * 1.3, $lines: 2)
|
40
|
+
|
41
|
+
h5
|
42
|
+
@include adjust-font-size-to($base-font-size * 1.1, $lines: 1)
|
43
|
+
|
44
|
+
// Missing blockquotes
|
45
|
+
|
46
|
+
ul, ol
|
47
|
+
@include trailer
|
48
|
+
|
49
|
+
&:first-child
|
50
|
+
@include leader
|
51
|
+
|
52
|
+
ul
|
53
|
+
list-style: disc
|
54
|
+
padding-left: 16px
|
55
|
+
|
56
|
+
ol
|
57
|
+
list-style: decimal
|
58
|
+
padding-left: 19px
|
59
|
+
|
60
|
+
pre
|
61
|
+
background: #111116
|
62
|
+
@include border-radius(3px)
|
63
|
+
@include box-shadow(0 1px 0 rgba(255, 255, 255, .02), 0 1px 1px rgba(0, 0, 0, .25) inset)
|
64
|
+
overflow: auto
|
65
|
+
padding: $base-line-height
|
66
|
+
@include trailer
|
67
|
+
|
68
|
+
&:first-child
|
69
|
+
@include leader
|
70
|
+
|
71
|
+
hr
|
72
|
+
background: #17171e
|
73
|
+
@include box-shadow(0 0 0 1px rgba(255, 255, 255, .02), 0 0 0 1px #101015 inset)
|
74
|
+
border: 0
|
75
|
+
height: 3px
|
76
|
+
@include trailer
|
77
|
+
|
78
|
+
&:first-child
|
79
|
+
@include leader
|
80
|
+
|
81
|
+
a
|
82
|
+
&:link,
|
83
|
+
&:visited
|
84
|
+
color: #9782ff
|
85
|
+
text-decoration: none
|
86
|
+
|
87
|
+
&:hover,
|
88
|
+
&:active
|
89
|
+
text-decoration: underline
|
90
|
+
|
91
|
+
em
|
92
|
+
font-style: italic
|
93
|
+
|
94
|
+
strong
|
95
|
+
font-weight: bold
|
96
|
+
|
97
|
+
code
|
98
|
+
@include adjust-font-size-to($base-font-size * .9, $lines: 1)
|
99
|
+
@include meslo-fontstack
|
@@ -0,0 +1,32 @@
|
|
1
|
+
@import "shared"
|
2
|
+
|
3
|
+
button
|
4
|
+
@include reset-box-model
|
5
|
+
|
6
|
+
a.button,
|
7
|
+
button,
|
8
|
+
input[type="submit"]
|
9
|
+
background: #7b5ae0
|
10
|
+
@include background-image(linear-gradient(top, #9372f7, #6443c9))
|
11
|
+
@include border-radius(40px)
|
12
|
+
@include box-shadow(0 1px 3px rgba(0, 0, 0, .5), 0 1px 2px rgba(255, 255, 255, .2) inset)
|
13
|
+
color: #100f14
|
14
|
+
display: inline-block
|
15
|
+
font-family: inherit
|
16
|
+
font-size: $base-font-size
|
17
|
+
-webkit-font-smoothing: antialiased
|
18
|
+
font-weight: bold
|
19
|
+
line-height: normal
|
20
|
+
padding: .5em 1.5em
|
21
|
+
text-shadow: 0 1px 0 rgba(255, 255, 255, .10)
|
22
|
+
|
23
|
+
&:hover
|
24
|
+
cursor: pointer
|
25
|
+
text-decoration: none
|
26
|
+
|
27
|
+
&.silver
|
28
|
+
background: #0f0e13
|
29
|
+
@include background-image(linear-gradient(top, #e6e7e9, #afb0b4))
|
30
|
+
@include box-shadow(0 1px 1px rgba(0, 0, 0, .5), 0 1px 2px rgba(255, 255, 255, .75) inset)
|
31
|
+
color: #000
|
32
|
+
text-shadow: 0 1px 0 rgba(255, 255, 255, .3)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
@import "shared"
|
2
|
+
|
3
|
+
input[type="text"],
|
4
|
+
textarea
|
5
|
+
background: #0d0e13
|
6
|
+
border: 1px solid #000
|
7
|
+
@include border-radius(3px)
|
8
|
+
@include box-shadow(0 0 0 1px rgba(255, 255, 255, 0.02))
|
9
|
+
color: #f0f0ff
|
10
|
+
display: block
|
11
|
+
@include helvetica-fontstack
|
12
|
+
font-size: $base-font-size
|
13
|
+
padding: .76923076923077em .61538461538462em
|
14
|
+
|
15
|
+
&::-webkit-input-placeholder
|
16
|
+
color: #494b63
|
17
|
+
|
18
|
+
&:focus
|
19
|
+
@include background(image-url("input-focus-bg.png") bottom repeat-x, linear-gradient(bottom, #253e5c, #070812 50%))
|
20
|
+
border-color: #000
|
21
|
+
color: #a5d1f8
|
22
|
+
outline: none
|
23
|
+
|
24
|
+
&::-webkit-input-placeholder
|
25
|
+
color: #68829d
|
@@ -0,0 +1,10 @@
|
|
1
|
+
@import "compass/css3"
|
2
|
+
|
3
|
+
@mixin helvetica-fontstack()
|
4
|
+
font-family: "helvetica neue", helvetica, arial, geneva, sans-serif
|
5
|
+
|
6
|
+
@mixin corbel-fontstack()
|
7
|
+
font-family: "CorbelRegular", "helvetica neue", helvetica, arial, geneva, sans-serif
|
8
|
+
|
9
|
+
@mixin meslo-fontstack()
|
10
|
+
font-family: "MesloRegular", monaco, monospace
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>Sample Shibui Project</title>
|
6
|
+
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
8
|
+
<meta name="viewport" content="width=device-width">
|
9
|
+
|
10
|
+
<link rel="icon" type="image/x-icon" href="//nav.heroku.com/images/logos/favicon.ico">
|
11
|
+
|
12
|
+
<link rel="stylesheet" href="stylesheets/screen.css">
|
13
|
+
</head>
|
14
|
+
|
15
|
+
<body>
|
16
|
+
<div class="container">
|
17
|
+
<div class="hero">
|
18
|
+
<h1>A Hero Header</h1>
|
19
|
+
<h2>A Subtitle in Purple</h2>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<h1>A Level 1 Header</h1>
|
23
|
+
<h2>A Level 2 Header</h2>
|
24
|
+
<h3>A Level 3 Header</h3>
|
25
|
+
<h4>A Level 4 Header</h4>
|
26
|
+
<h5>A Level 5 Header</h5>
|
27
|
+
<h6>A Level 6 Header</h6>
|
28
|
+
|
29
|
+
<p>
|
30
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
31
|
+
</p>
|
32
|
+
|
33
|
+
<ul>
|
34
|
+
<li>An unordered list item</li>
|
35
|
+
<li>Another unordered list item</li>
|
36
|
+
<li>The last item of an unordered list</li>
|
37
|
+
</ul>
|
38
|
+
|
39
|
+
<ol>
|
40
|
+
<li>An ordered list item</li>
|
41
|
+
<li>Another ordered list item</li>
|
42
|
+
<li>The last item of an ordered list</li>
|
43
|
+
</ol>
|
44
|
+
|
45
|
+
<pre><code>A block of code</code></pre>
|
46
|
+
|
47
|
+
<p>
|
48
|
+
Something <strong>bold</strong>, and something <em>initalics</em>.
|
49
|
+
</p>
|
50
|
+
|
51
|
+
<hr>
|
52
|
+
|
53
|
+
<p>
|
54
|
+
<a href="#" class="button">A Default Button</a>
|
55
|
+
</p>
|
56
|
+
|
57
|
+
<p>
|
58
|
+
<a href="#" class="silver button">A Silver Button</a>
|
59
|
+
</p>
|
60
|
+
|
61
|
+
<hr>
|
62
|
+
|
63
|
+
<p>
|
64
|
+
<input type="text" placeholder="Text Field">
|
65
|
+
</p>
|
66
|
+
|
67
|
+
<p>
|
68
|
+
<textarea placeholder="Text Area"></textarea>
|
69
|
+
</p>
|
70
|
+
</div>
|
71
|
+
</body>
|
72
|
+
</html>
|
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
description 'Shibui Compass Gem'
|
2
|
+
|
3
|
+
stylesheet 'sass/screen.sass', :to => 'screen.sass', :media => "screen, projector"
|
4
|
+
|
5
|
+
image 'input-focus-bg.png'
|
6
|
+
|
7
|
+
html 'index.html'
|
8
|
+
|
9
|
+
help %Q{
|
10
|
+
|
11
|
+
If you need help, email Front-end at front-end@heroku.com or visit heroku.github.com/shibui"
|
12
|
+
|
13
|
+
}
|
14
|
+
|
15
|
+
welcome_message %Q{
|
16
|
+
|
17
|
+
w00t! You're using Heroku's Shibui, now go forth and craft teh awesome!
|
18
|
+
|
19
|
+
}
|
metadata
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: shibui
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1.alpha
|
5
|
+
prerelease: 6
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Maximilian Schoening
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-03-08 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: compass
|
16
|
+
requirement: &2202158440 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.11.5
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2202158440
|
25
|
+
description: The Heroku styleguide harnessing the power of Compass.
|
26
|
+
email: max@heroku.com
|
27
|
+
executables: []
|
28
|
+
extensions: []
|
29
|
+
extra_rdoc_files: []
|
30
|
+
files:
|
31
|
+
- Readme.md
|
32
|
+
- lib/shibui.rb
|
33
|
+
- stylesheets/_shibui.sass
|
34
|
+
- stylesheets/shibui/_base.sass
|
35
|
+
- stylesheets/shibui/_buttons.sass
|
36
|
+
- stylesheets/shibui/_components.sass
|
37
|
+
- stylesheets/shibui/_forms.sass
|
38
|
+
- stylesheets/shibui/_shared.sass
|
39
|
+
- templates/project/index.html
|
40
|
+
- templates/project/input-focus-bg.png
|
41
|
+
- templates/project/manifest.rb
|
42
|
+
- templates/project/sass/screen.sass
|
43
|
+
homepage: https://github.com/heroku/shibui
|
44
|
+
licenses: []
|
45
|
+
post_install_message:
|
46
|
+
rdoc_options: []
|
47
|
+
require_paths:
|
48
|
+
- lib
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ! '>'
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 1.3.1
|
61
|
+
requirements: []
|
62
|
+
rubyforge_project:
|
63
|
+
rubygems_version: 1.8.10
|
64
|
+
signing_key:
|
65
|
+
specification_version: 3
|
66
|
+
summary: The Heroku styleguide harnessing the power of Compass.
|
67
|
+
test_files: []
|