bear-sass 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/Gemfile +2 -0
- data/README.md +69 -0
- data/Rakefile +6 -0
- data/bear-sass.gemspec +25 -0
- data/css/bear.css +1 -0
- data/lib/bear-sass.rb +6 -0
- data/lib/bear/engine.rb +4 -0
- data/lib/bear/generators/USAGE +8 -0
- data/lib/bear/generators/layout_generator.rb +18 -0
- data/lib/bear/generators/templates/layout.html.erb +43 -0
- data/lib/bear/generators/templates/layout.html.slim +29 -0
- data/lib/bear/version.rb +3 -0
- data/sass/_mixins.scss +68 -0
- data/sass/_variables.scss +46 -0
- data/sass/alerts.scss +11 -0
- data/sass/bear.scss +20 -0
- data/sass/buttons.scss +24 -0
- data/sass/forms.scss +32 -0
- data/sass/grid.scss +317 -0
- data/sass/header.scss +33 -0
- data/sass/navs.scss +26 -0
- data/sass/panels.scss +10 -0
- data/sass/reset.scss +48 -0
- data/sass/tables.scss +23 -0
- data/sass/tags.scss +19 -0
- data/sass/typography.scss +54 -0
- metadata +113 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d62cdac09f980079973e75de0eb45bfb3d45f3ff
|
4
|
+
data.tar.gz: bb3f8ff728cd0f70f793754ff9f5c10f2420e2f9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 474ebea168d26a9861f028a33ec9164c17c4d1de7c105cc7bf86b9c49e8270be0e20b8085574dbc9c91f072ee777ab70435bece5b5bd0f55183c99d066c8abc8
|
7
|
+
data.tar.gz: 07522f8fc1fce6bff033efd1f4c26fb17b5b91b6e3678a14a8035eeb5b471058d87e6a345ea7d232f92335c0ff33b96d7d95625fbe7c3ab424f5a4bf46e4e411
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
# Bear - A Sass kit
|
2
|
+
|
3
|
+
Bear aims to be an alternative to Twitter's Bootstrap or Foundation. I used to
|
4
|
+
take them as a base for my personnal projects but I'm not totally satisfied
|
5
|
+
about the style and some components.
|
6
|
+
|
7
|
+
* [Documentation](http://robin850.github.io/bear)
|
8
|
+
* [Source code](https://github.com/robin850/bear)
|
9
|
+
* [License](https://github.com/robin850/bear#license) (MIT licensed)
|
10
|
+
|
11
|
+
I hope you will love this project and it will be useful. I'm just "open sourcing"
|
12
|
+
this hoping it could be useful for someone.
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
I'm a big fan of Ruby on Rails so the kit is available as a gem:
|
17
|
+
|
18
|
+
~~~ruby
|
19
|
+
gem 'bear-sass', '~> 1.0'
|
20
|
+
~~~
|
21
|
+
|
22
|
+
Then run `bundle` to install it and add `@import "bear"` at the top of your
|
23
|
+
stylesheet file.
|
24
|
+
|
25
|
+
Alternatively, you can download assets using curl or wget:
|
26
|
+
|
27
|
+
~~~bash
|
28
|
+
$ # To be written...
|
29
|
+
~~~
|
30
|
+
|
31
|
+
___Complete there___
|
32
|
+
|
33
|
+
## Features
|
34
|
+
|
35
|
+
* Simple to use and customize
|
36
|
+
* Written in Sass
|
37
|
+
* Lightweight
|
38
|
+
* Make responsive design easy
|
39
|
+
* Open source <3
|
40
|
+
|
41
|
+
## Basic usage
|
42
|
+
|
43
|
+
If you are using Rails, the gem ships with a rails generator for the layout.
|
44
|
+
You can optionally give the name of the generated layout:
|
45
|
+
|
46
|
+
~~~
|
47
|
+
$ rails g bear:layout nice
|
48
|
+
~~~
|
49
|
+
|
50
|
+
If you are not using Rails, please read the next section.
|
51
|
+
|
52
|
+
## Documentation
|
53
|
+
|
54
|
+
The documentation is hosted on [github pages](http://robin850.github.io/bear).
|
55
|
+
All the components are explained through examples with the necessary code to
|
56
|
+
build them.
|
57
|
+
|
58
|
+
Feel free to fix typos and contribute to the documentation in the documentation
|
59
|
+
directory at the root of this repository. Thanks!
|
60
|
+
|
61
|
+
## License
|
62
|
+
|
63
|
+
Copyright (c) 2013+ Robin Dupret
|
64
|
+
|
65
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
66
|
+
|
67
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
68
|
+
|
69
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
data/bear-sass.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'bear/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "bear-sass"
|
8
|
+
spec.version = Bear::VERSION
|
9
|
+
spec.authors = ["Robin Dupret"]
|
10
|
+
spec.email = ["robin.dupret@gmail.com"]
|
11
|
+
spec.description = %q{Bear is a very tiny Sass kit}
|
12
|
+
spec.summary = %q{The Bear Sass kit}
|
13
|
+
spec.homepage = "https://robin850.github.io/bear"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "sass", "~> 3.2.9"
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
24
|
+
spec.add_development_dependency "rake"
|
25
|
+
end
|
data/css/bear.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}a{text-decoration:none}body{min-width:960px}.row{margin-left:auto;margin-right:auto;width:960px}.container{margin-top:1.5em}.grid_1,.grid_2,.grid_3,.grid_4,.grid_5,.grid_6,.grid_7,.grid_8,.grid_9,.grid_10,.grid_11,.grid_12{display:inline;float:left;margin-left:10px;margin-right:10px}.push_1,.pull_1,.push_2,.pull_2,.push_3,.pull_3,.push_4,.pull_4,.push_5,.pull_5,.push_6,.pull_6,.push_7,.pull_7,.push_8,.pull_8,.push_9,.pull_9,.push_10,.pull_10,.push_11,.pull_11{position:relative}.alpha{margin-left:0}.omega{margin-right:0}.row .grid_1{width:60px}.row .grid_2{width:140px}.row .grid_3{width:220px}.row .grid_4{width:300px}.row .grid_5{width:380px}.row .grid_6{width:460px}.row .grid_7{width:540px}.row .grid_8{width:620px}.row .grid_9{width:700px}.row .grid_10{width:780px}.row .grid_11{width:860px}.row .grid_12{width:940px}.row .prefix_1{padding-left:80px}.row .prefix_2{padding-left:160px}.row .prefix_3{padding-left:240px}.row .prefix_4{padding-left:320px}.row .prefix_5{padding-left:400px}.row .prefix_6{padding-left:480px}.row .prefix_7{padding-left:560px}.row .prefix_8{padding-left:640px}.row .prefix_9{padding-left:720px}.row .prefix_10{padding-left:800px}.row .prefix_11{padding-left:880px}.row .suffix_1{padding-right:80px}.row .suffix_2{padding-right:160px}.row .suffix_3{padding-right:240px}.row .suffix_4{padding-right:320px}.row .suffix_5{padding-right:400px}.row .suffix_6{padding-right:480px}.row .suffix_7{padding-right:560px}.row .suffix_8{padding-right:640px}.row .suffix_9{padding-right:720px}.row .suffix_10{padding-right:800px}.row .suffix_11{padding-right:880px}.row .push_1{left:80px}.row .push_2{left:160px}.row .push_3{left:240px}.row .push_4{left:320px}.row .push_5{left:400px}.row .push_6{left:480px}.row .push_7{left:560px}.row .push_8{left:640px}.row .push_9{left:720px}.row .push_10{left:800px}.row .push_11{left:880px}.row .pull_1{left:-80px}.row .pull_2{left:-160px}.row .pull_3{left:-240px}.row .pull_4{left:-320px}.row .pull_5{left:-400px}.row .pull_6{left:-480px}.row .pull_7{left:-560px}.row .pull_8{left:-640px}.row .pull_9{left:-720px}.row .pull_10{left:-800px}.row .pull_11{left:-880px}.clear,.clearer{clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0}.clearfix:before,.clearfix:after,.row:before,.row:after{content:'.';display:block;overflow:hidden;visibility:hidden;font-size:0;line-height:0;width:0;height:0}.clearfix:after,.row:after{clear:both}.clearfix,.row{zoom:1}@media only screen and (min-width: 768px) and (max-width: 959px){body{min-width:768px}.row{width:768px}.row .grid_1{width:44px}.row .grid_2{width:108px}.row .grid_3{width:172px}.row .grid_4{width:236px}.row .grid_5{width:300px}.row .grid_6{width:364px}.row .grid_7{width:428px}.row .grid_8{width:492px}.row .grid_9{width:556px}.row .grid_10{width:620px}.row .grid_11{width:684px}.row .grid_12{width:748px}.row .prefix_1{padding-left:64px}.row .prefix_2{padding-left:128px}.row .prefix_3{padding-left:192px}.row .prefix_4{padding-left:256px}.row .prefix_5{padding-left:320px}.row .prefix_6{padding-left:384px}.row .prefix_7{padding-left:448px}.row .prefix_8{padding-left:512px}.row .prefix_9{padding-left:576px}.row .prefix_10{padding-left:640px}.row .prefix_11{padding-left:704px}.row .suffix_1{padding-right:64px}.row .suffix_2{padding-right:128px}.row .suffix_3{padding-right:192px}.row .suffix_4{padding-right:256px}.row .suffix_5{padding-right:320px}.row .suffix_6{padding-right:384px}.row .suffix_7{padding-right:448px}.row .suffix_8{padding-right:512px}.row .suffix_9{padding-right:576px}.row .suffix_10{padding-right:640px}.row .suffix_11{padding-right:704px}.row .push_1{left:64px}.row .push_2{left:128px}.row .push_3{left:192px}.row .push_4{left:256px}.row .push_5{left:320px}.row .push_6{left:384px}.row .push_7{left:448px}.row .push_8{left:512px}.row .push_9{left:576px}.row .push_10{left:640px}.row .push_11{left:704px}.row .pull_1{left:-64px}.row .pull_2{left:-128px}.row .pull_3{left:-192px}.row .pull_4{left:-256px}.row .pull_5{left:-320px}.row .pull_6{left:-384px}.row .pull_7{left:-448px}.row .pull_8{left:-512px}.row .pull_9{left:-576px}.row .pull_10{left:-640px}.row .pull_11{left:-704px}}@media only screen and (max-width: 767px){body{min-width:300px}.row{width:300px}.row .grid_1,.row .grid_2,.row .grid_3,.row .grid_4,.row .grid_5,.row .grid_6,.row .grid_7,.row .grid_8,.row .grid_9,.row .grid_10,.row .grid_11,.row .grid_12{margin:0;width:300px}.row .prefix_1,.row .prefix_2,.row .prefix_3,.row .prefix_4,.row .prefix_5,.row .prefix_6,.row .prefix_7,.row .prefix_8,.row .prefix_9,.row .prefix_10,.row .prefix_11{padding-left:0}.row .suffix_1,.row .suffix_2,.row .suffix_3,.row .suffix_4,.row .suffix_5,.row .suffix_6,.row .suffix_7,.row .suffix_8,.row .suffix_9,.row .suffix_10,.row .suffix_11{padding-right:0}.row .push_1,.row .push_2,.row .push_3,.row .push_4,.row .push_5,.row .push_6,.row .push_7,.row .push_8,.row .push_9,.row .push_10,.row .push_11,.row .pull_1,.row .pull_2,.row .pull_3,.row .pull_4,.row .pull_5,.row .pull_6,.row .pull_7,.row .pull_8,.row .pull_9,.row .pull_10,.row .pull_11{left:0}}@media only screen and (min-width: 480px) and (max-width: 767px){body{min-width:480px}.row{width:420px}.row .grid_1,.row .grid_2,.row .grid_3,.row .grid_4,.row .grid_5,.row .grid_6,.row .grid_7,.row .grid_8,.row .grid_9,.row .grid_10,.row .grid_11,.row .grid_12{margin:0;width:420px}}#header{background-color:#27221c;color:#fff;height:60px;line-height:1.5em;max-height:60px;overflow:hidden;width:100%}#header h1,#header h2,#header h3,#header h4,#header h5,#header h6{color:#fff;line-height:1em;padding-top:18.4px}#header a{color:#fff;font-size:14px;font-weight:bold}#header ul{list-style-type:none;padding-top:18.4px}#header ul li{display:block;float:left;margin-right:1.5em}#header ul:last-child{margin-right:0}.nav-pills{list-style-type:none}.nav-pills li{display:block;height:32px;float:left;overflow:hidden;margin-bottom:1.5em;margin-right:15px;-khtml-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.nav-pills li a{color:#333;display:block;padding:5px 12px}.nav-pills li.active{background:#27221c;font-weight:bold}.nav-pills li.active a{color:white}body{color:#333;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:1.5em}p{line-height:1.5em}h1,h2,h3,h4,h5,h6{color:#333;font-weight:bold;line-height:1.5em}h1,h2,h3{line-height:2em}h1{font-size:2.25em}h2{font-size:2em}h3{font-size:1.75em}h4{font-size:1.5em}h5{font-size:1.25em}h6{font-size:1.115em;font-weight:bold}p+ul{margin-top:0.75em}ul{list-style-type:disc}ol{list-style-type:decimal}ul,ol{padding-left:2em}ul ul,ol ul{margin-top:0;margin-bottom:0;list-style-type:circle}ul ol{list-style-type:decimal}ol ol{list-style-type:lower-alpha}footer{margin:1.5em auto;line-height:1.5em;text-align:center}.alert{background:#eccdcd;color:#ac4142;min-height:20px;margin:0 0 7px 0 !important;overflow:hidden;padding:8px 10px;width:100%;-khtml-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.alert-success,.alert.success{background:#b3dbb2;color:#40833e;min-height:20px;margin:0 0 7px 0 !important;overflow:hidden;padding:8px 10px;width:100%;-khtml-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.alert-warning,.alert.warning{background:#f7ecb5;color:#c09853;min-height:20px;margin:0 0 7px 0 !important;overflow:hidden;padding:8px 10px;width:100%;-khtml-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}button.btn,button.btn-light,button.btn-green,input.btn,input.btn-light,input.btn-green{border:none;box-shadow:none}.btn{background-color:#362f27;color:#ebdeca !important;display:inline-block;font-weight:bold;font-size:14px;text-align:center;line-height:1.5em;padding:7px 20px;vertical-align:middle;-khtml-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.btn:hover{background-color:#211d18;cursor:pointer}.btn-light{background-color:#e0e0e0;color:#505050 !important;display:inline-block;font-weight:bold;font-size:14px;text-align:center;line-height:1.5em;padding:7px 20px;vertical-align:middle;-khtml-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.btn-light:hover{background-color:#cecece;cursor:pointer}.btn-green{background-color:#40833e;color:#fff !important;display:inline-block;font-weight:bold;font-size:14px;text-align:center;line-height:1.5em;padding:7px 20px;vertical-align:middle;-khtml-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.btn-green:hover{background-color:#346b33;cursor:pointer}#header .btn-light,#header .btn-green,#header .btn{margin-top:12px}.label,.tag{background:#e0e0e0;color:#505050;display:inline-block;font-size:11px;font-weight:bold;line-height:1em;padding:3px 4px;vertical-align:baseline;white-space:nowrap;-khtml-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.label.blue,.label-blue,.tag.blue,.tag-blue{background:#65bfbf;color:#fff;display:inline-block;font-size:11px;font-weight:bold;line-height:1em;padding:3px 4px;vertical-align:baseline;white-space:nowrap;-khtml-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.label.green,.label-green,.tag.green,.tag-green{background:#40833e;color:#fff;display:inline-block;font-size:11px;font-weight:bold;line-height:1em;padding:3px 4px;vertical-align:baseline;white-space:nowrap;-khtml-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.label.brown,.label-brown,.tag.brown,.tag-brown{background:#362f27;color:#fff;display:inline-block;font-size:11px;font-weight:bold;line-height:1em;padding:3px 4px;vertical-align:baseline;white-space:nowrap;-khtml-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.label.red,.label-red,.tag.red,.tag-red{background:#ac4142;color:#fff;display:inline-block;font-size:11px;font-weight:bold;line-height:1em;padding:3px 4px;vertical-align:baseline;white-space:nowrap;-khtml-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.panel{background:#f2f2f2;border:1px solid #e9e9e9;margin-bottom:2em;margin-top:2em;padding:8px 12px;-khtml-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}table{background:transparent;border-collapse:collapse;line-height:2em;margin-bottom:2em;width:100%}table thead{display:table-header-group}table th{border-bottom:1px solid #e0e0e0;font-weight:bold;padding-bottom:3px;text-align:left}table td{border-bottom:1px solid #e0e0e0;padding:5px}form{margin:1.5em 0}form input[type="text"],form input[type="email"],form input[type="password"],form input[type="search"],form input[type="time"],form input[type="tel"],form input[type="date"],form input[type="datetime"],form input[type="datetime-local"],form input[type="number"],form input[type="url"],form input[type="week"],form input[type="month"]{background:#fff;border:1px solid #b6b6b6;color:#333;display:block;height:20px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:20px;margin:0.5em 0;outline:none;padding:3px 7px;width:300px;-khtml-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}form textarea{background:#fff;border:1px solid #b6b6b6;color:#333;display:block;height:20px;font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:20px;margin:0.5em 0;outline:none;padding:3px 7px;width:300px;-khtml-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;min-height:200px;min-width:300px;padding-top:8px}form fieldset{border:1px solid #dcdcdc;padding:1.5em;-khtml-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}
|
data/lib/bear-sass.rb
ADDED
data/lib/bear/engine.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Bear
|
4
|
+
module Generators
|
5
|
+
class LayoutGenerator < Rails::Generators::Base
|
6
|
+
source_root File.expand_path("../templates", __FILE__)
|
7
|
+
argument :layout, :type => :string, :default => 'application', :banner => 'layout'
|
8
|
+
|
9
|
+
class_option :slim, :type => :boolean,
|
10
|
+
:desc => "Generate a layout with Slim"
|
11
|
+
|
12
|
+
def touch_layout_file
|
13
|
+
ext = (options.slim?) ? "slim" : "erb"
|
14
|
+
template "layout.html.#{ext}", "app/views/layouts/#{layout}.html.#{ext}"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<title><%= Rails.application.class.parent_name %></title>
|
6
|
+
|
7
|
+
<%%= stylesheet_link_tag "application" %>
|
8
|
+
<%%= javascript_include_tag "application" %>
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body>
|
12
|
+
|
13
|
+
<div id="header">
|
14
|
+
<div class="row">
|
15
|
+
<div class="alpha grid_2">
|
16
|
+
<h4><%= Rails.application.class.parent_name %></h4>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<ul class="grid_10">
|
20
|
+
<li class="active"><%%= link_to "Home", root_path %></li>
|
21
|
+
<li><%%= link_to "Section", "" %></li>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div class="container row">
|
27
|
+
<%% if notice %>
|
28
|
+
<div class="alert success"><%%= notice %></div>
|
29
|
+
<% end %>
|
30
|
+
|
31
|
+
<%% if alert %>
|
32
|
+
<div class="alert"><%%= alert %></div>
|
33
|
+
<% end %>
|
34
|
+
|
35
|
+
<%%= yield %>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<footer>
|
39
|
+
Copyright © company
|
40
|
+
</footer>
|
41
|
+
|
42
|
+
</body>
|
43
|
+
</html>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
doctype html
|
2
|
+
html
|
3
|
+
head
|
4
|
+
meta charset="utf-8"
|
5
|
+
title <%= Rails.application.class.parent_name %>
|
6
|
+
|
7
|
+
= stylesheet_link_tag "application"
|
8
|
+
= javascript_include_tag "application"
|
9
|
+
|
10
|
+
body
|
11
|
+
|
12
|
+
div#header
|
13
|
+
div.row
|
14
|
+
div.alpha.grid_2
|
15
|
+
h4 <%= Rails.application.class.parent_name %>
|
16
|
+
ul.grid_10
|
17
|
+
li.active = link_to "Home", root_path
|
18
|
+
li = link_to "Section", ""
|
19
|
+
|
20
|
+
div.container.row
|
21
|
+
- if notice
|
22
|
+
div.alert.success = notice
|
23
|
+
|
24
|
+
- if alert
|
25
|
+
div.alert = alert
|
26
|
+
|
27
|
+
= yield
|
28
|
+
|
29
|
+
footer Copyright © company
|
data/lib/bear/version.rb
ADDED
data/sass/_mixins.scss
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
@mixin border-radius($radius: 3px) {
|
2
|
+
-khtml-border-radius: $radius;
|
3
|
+
-moz-border-radius: $radius;
|
4
|
+
-ms-border-radius: $radius;
|
5
|
+
-o-border-radius: $radius;
|
6
|
+
-webkit-border-radius: $radius;
|
7
|
+
border-radius: $radius;
|
8
|
+
}
|
9
|
+
|
10
|
+
@mixin button($color, $background) {
|
11
|
+
background-color: $background;
|
12
|
+
color: $color!important;
|
13
|
+
display: inline-block;
|
14
|
+
font-weight: bold;
|
15
|
+
font-size: $baseFontSize;
|
16
|
+
text-align: center;
|
17
|
+
line-height: $lineHeight;
|
18
|
+
padding: 7px 20px;
|
19
|
+
vertical-align: middle;
|
20
|
+
@include border-radius(2px);
|
21
|
+
|
22
|
+
&:hover {
|
23
|
+
background-color: darken($background, 7%);
|
24
|
+
cursor: pointer;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
@mixin alert($background, $color: darken($background, 10%)) {
|
29
|
+
background: $background;
|
30
|
+
color: $color;
|
31
|
+
min-height: 20px;
|
32
|
+
margin: 0 0 7px 0!important;
|
33
|
+
overflow: hidden;
|
34
|
+
padding: 8px 10px;
|
35
|
+
width: 100%;
|
36
|
+
@include border-radius(4px);
|
37
|
+
}
|
38
|
+
|
39
|
+
@mixin label($background, $color) {
|
40
|
+
background: $background;
|
41
|
+
color: $color;
|
42
|
+
display: inline-block;
|
43
|
+
font-size: $labelFontSize;
|
44
|
+
font-weight: bold;
|
45
|
+
line-height: $lineHeight / 1.5;
|
46
|
+
padding: 3px 4px;
|
47
|
+
vertical-align: baseline;
|
48
|
+
white-space: nowrap;
|
49
|
+
@include border-radius(2px);
|
50
|
+
}
|
51
|
+
|
52
|
+
@mixin field() {
|
53
|
+
background: $white;
|
54
|
+
border: $fieldBorder;
|
55
|
+
color: $fieldColor;
|
56
|
+
display: block;
|
57
|
+
height: 20px;
|
58
|
+
font: {
|
59
|
+
family: $fieldFontFamily;
|
60
|
+
size: $fieldFontSize;
|
61
|
+
}
|
62
|
+
line-height: 20px;
|
63
|
+
margin: 0.5em 0;
|
64
|
+
outline: none;
|
65
|
+
padding: 3px 7px;
|
66
|
+
width: 300px;
|
67
|
+
@include border-radius(3px);
|
68
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
// Base
|
2
|
+
$baseFontSize: 14px;
|
3
|
+
$baseFontFamily: Helvetica, arial, freesans, clean, sans-serif;
|
4
|
+
$baseColor: #333333;
|
5
|
+
$lineHeight: 1.5em;
|
6
|
+
|
7
|
+
// Colors
|
8
|
+
$lightGray: #e0e0e0;
|
9
|
+
$darkGray: #505050;
|
10
|
+
$green: #40833e;
|
11
|
+
$white: white;
|
12
|
+
$yellow: darken(#fcf8e3, 10%);
|
13
|
+
$darkYellow: #c09853;
|
14
|
+
$red: #ac4142;
|
15
|
+
$blue: #65bfbf;
|
16
|
+
$brown: lighten(#211d18, 7%);
|
17
|
+
|
18
|
+
// Header
|
19
|
+
// $headerBackground: #202523;
|
20
|
+
$headerBackground: #27221c;
|
21
|
+
$headerHeight: 60px;
|
22
|
+
$headerColor: $white;
|
23
|
+
|
24
|
+
// Buttons
|
25
|
+
$btnBackground: $brown;
|
26
|
+
$btnColor: lighten(#e8d9c3, 2%);
|
27
|
+
|
28
|
+
$btnGreenBackground: $green;
|
29
|
+
$btnGreenColor: $white;
|
30
|
+
|
31
|
+
$btnLightBackground: $lightGray;
|
32
|
+
$btnLightColor: $darkGray;
|
33
|
+
|
34
|
+
// Tags/labels
|
35
|
+
$labelFontSize: 11px;
|
36
|
+
|
37
|
+
// Panels
|
38
|
+
$panelBackground: lighten($lightGray, 7%);
|
39
|
+
$panelBorder: 1px solid lighten($darkGray, 60%);
|
40
|
+
|
41
|
+
// Forms
|
42
|
+
$fieldBorder: 1px solid lighten($darkGray, 40%);
|
43
|
+
$fieldFontFamily: $baseFontFamily;
|
44
|
+
$fieldFontSize: $baseFontSize;
|
45
|
+
$fieldColor: $baseColor;
|
46
|
+
$fieldSetBorder: 1px solid lighten($darkGray, 55%);
|
data/sass/alerts.scss
ADDED
data/sass/bear.scss
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
// Import partials
|
4
|
+
@import "variables";
|
5
|
+
@import "mixins";
|
6
|
+
|
7
|
+
// Import components
|
8
|
+
@import "reset";
|
9
|
+
@import "grid";
|
10
|
+
|
11
|
+
@import "header";
|
12
|
+
@import "navs";
|
13
|
+
|
14
|
+
@import "typography";
|
15
|
+
@import "alerts";
|
16
|
+
@import "buttons";
|
17
|
+
@import "tags";
|
18
|
+
@import "panels";
|
19
|
+
@import "tables";
|
20
|
+
@import "forms";
|
data/sass/buttons.scss
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
button, input {
|
2
|
+
&.btn, &.btn-light, &.btn-green {
|
3
|
+
border: none;
|
4
|
+
box-shadow: none;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
|
8
|
+
.btn {
|
9
|
+
@include button($btnColor, $btnBackground);
|
10
|
+
}
|
11
|
+
|
12
|
+
.btn-light {
|
13
|
+
@include button($btnLightColor, $btnLightBackground);
|
14
|
+
}
|
15
|
+
|
16
|
+
.btn-green {
|
17
|
+
@include button($btnGreenColor, $btnGreenBackground);
|
18
|
+
}
|
19
|
+
|
20
|
+
#header {
|
21
|
+
.btn-light, .btn-green, .btn {
|
22
|
+
margin-top: $headerHeight / 5;
|
23
|
+
}
|
24
|
+
}
|
data/sass/forms.scss
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
form {
|
2
|
+
margin: 1.5em 0;
|
3
|
+
|
4
|
+
input[type="text"],
|
5
|
+
input[type="email"],
|
6
|
+
input[type="password"],
|
7
|
+
input[type="search"],
|
8
|
+
input[type="time"],
|
9
|
+
input[type="tel"],
|
10
|
+
input[type="date"],
|
11
|
+
input[type="datetime"],
|
12
|
+
input[type="datetime-local"],
|
13
|
+
input[type="number"],
|
14
|
+
input[type="url"],
|
15
|
+
input[type="week"],
|
16
|
+
input[type="month"] {
|
17
|
+
@include field();
|
18
|
+
}
|
19
|
+
|
20
|
+
textarea {
|
21
|
+
@include field();
|
22
|
+
min-height: 200px;
|
23
|
+
min-width: 300px;
|
24
|
+
padding-top: 8px;
|
25
|
+
}
|
26
|
+
|
27
|
+
fieldset {
|
28
|
+
border: $fieldSetBorder;
|
29
|
+
padding: 1.5em;
|
30
|
+
@include border-radius(2px);
|
31
|
+
}
|
32
|
+
}
|
data/sass/grid.scss
ADDED
@@ -0,0 +1,317 @@
|
|
1
|
+
// Based on
|
2
|
+
// * http://960.gs/
|
3
|
+
// * https://github.com/tylerwolff/960-Responsive-Grid
|
4
|
+
|
5
|
+
body { min-width: 960px; }
|
6
|
+
|
7
|
+
.row {
|
8
|
+
margin-left: auto;
|
9
|
+
margin-right: auto;
|
10
|
+
width: 960px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.container {
|
14
|
+
margin-top: 1.5em;
|
15
|
+
}
|
16
|
+
|
17
|
+
.grid_1,
|
18
|
+
.grid_2,
|
19
|
+
.grid_3,
|
20
|
+
.grid_4,
|
21
|
+
.grid_5,
|
22
|
+
.grid_6,
|
23
|
+
.grid_7,
|
24
|
+
.grid_8,
|
25
|
+
.grid_9,
|
26
|
+
.grid_10,
|
27
|
+
.grid_11,
|
28
|
+
.grid_12 {
|
29
|
+
display: inline;
|
30
|
+
float: left;
|
31
|
+
margin-left: 10px;
|
32
|
+
margin-right: 10px;
|
33
|
+
}
|
34
|
+
|
35
|
+
.push_1, .pull_1,
|
36
|
+
.push_2, .pull_2,
|
37
|
+
.push_3, .pull_3,
|
38
|
+
.push_4, .pull_4,
|
39
|
+
.push_5, .pull_5,
|
40
|
+
.push_6, .pull_6,
|
41
|
+
.push_7, .pull_7,
|
42
|
+
.push_8, .pull_8,
|
43
|
+
.push_9, .pull_9,
|
44
|
+
.push_10, .pull_10,
|
45
|
+
.push_11, .pull_11 {
|
46
|
+
position: relative
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
.alpha { margin-left: 0; }
|
51
|
+
.omega { margin-right: 0; }
|
52
|
+
|
53
|
+
.row {
|
54
|
+
|
55
|
+
.grid_1 { width: 60px; }
|
56
|
+
.grid_2 { width: 140px; }
|
57
|
+
.grid_3 { width: 220px; }
|
58
|
+
.grid_4 { width: 300px; }
|
59
|
+
.grid_5 { width: 380px; }
|
60
|
+
.grid_6 { width: 460px; }
|
61
|
+
.grid_7 { width: 540px; }
|
62
|
+
.grid_8 { width: 620px; }
|
63
|
+
.grid_9 { width: 700px; }
|
64
|
+
.grid_10 { width: 780px; }
|
65
|
+
.grid_11 { width: 860px; }
|
66
|
+
.grid_12 { width: 940px; }
|
67
|
+
|
68
|
+
.prefix_1 { padding-left: 80px; }
|
69
|
+
.prefix_2 { padding-left: 160px; }
|
70
|
+
.prefix_3 { padding-left: 240px; }
|
71
|
+
.prefix_4 { padding-left: 320px; }
|
72
|
+
.prefix_5 { padding-left: 400px; }
|
73
|
+
.prefix_6 { padding-left: 480px; }
|
74
|
+
.prefix_7 { padding-left: 560px; }
|
75
|
+
.prefix_8 { padding-left: 640px; }
|
76
|
+
.prefix_9 { padding-left: 720px; }
|
77
|
+
.prefix_10 { padding-left: 800px; }
|
78
|
+
.prefix_11 { padding-left: 880px; }
|
79
|
+
|
80
|
+
.suffix_1 { padding-right: 80px; }
|
81
|
+
.suffix_2 { padding-right: 160px; }
|
82
|
+
.suffix_3 { padding-right: 240px; }
|
83
|
+
.suffix_4 { padding-right: 320px; }
|
84
|
+
.suffix_5 { padding-right: 400px; }
|
85
|
+
.suffix_6 { padding-right: 480px; }
|
86
|
+
.suffix_7 { padding-right: 560px; }
|
87
|
+
.suffix_8 { padding-right: 640px; }
|
88
|
+
.suffix_9 { padding-right: 720px; }
|
89
|
+
.suffix_10 { padding-right: 800px; }
|
90
|
+
.suffix_11 { padding-right: 880px; }
|
91
|
+
|
92
|
+
.push_1 { left: 80px; }
|
93
|
+
.push_2 { left: 160px; }
|
94
|
+
.push_3 { left: 240px; }
|
95
|
+
.push_4 { left: 320px; }
|
96
|
+
.push_5 { left: 400px; }
|
97
|
+
.push_6 { left: 480px; }
|
98
|
+
.push_7 { left: 560px; }
|
99
|
+
.push_8 { left: 640px; }
|
100
|
+
.push_9 { left: 720px; }
|
101
|
+
.push_10 { left: 800px; }
|
102
|
+
.push_11 { left: 880px; }
|
103
|
+
|
104
|
+
.pull_1 { left: -80px; }
|
105
|
+
.pull_2 { left: -160px; }
|
106
|
+
.pull_3 { left: -240px; }
|
107
|
+
.pull_4 { left: -320px; }
|
108
|
+
.pull_5 { left: -400px; }
|
109
|
+
.pull_6 { left: -480px; }
|
110
|
+
.pull_7 { left: -560px; }
|
111
|
+
.pull_8 { left: -640px; }
|
112
|
+
.pull_9 { left: -720px; }
|
113
|
+
.pull_10 { left: -800px; }
|
114
|
+
.pull_11 { left: -880px; }
|
115
|
+
}
|
116
|
+
|
117
|
+
.clear, .clearer {
|
118
|
+
clear: both;
|
119
|
+
display: block;
|
120
|
+
overflow: hidden;
|
121
|
+
visibility: hidden;
|
122
|
+
width: 0;
|
123
|
+
height: 0;
|
124
|
+
}
|
125
|
+
|
126
|
+
.clearfix:before,
|
127
|
+
.clearfix:after,
|
128
|
+
.row:before,
|
129
|
+
.row:after {
|
130
|
+
content: '.';
|
131
|
+
display: block;
|
132
|
+
overflow: hidden;
|
133
|
+
visibility: hidden;
|
134
|
+
font-size: 0;
|
135
|
+
line-height: 0;
|
136
|
+
width: 0;
|
137
|
+
height: 0;
|
138
|
+
}
|
139
|
+
|
140
|
+
.clearfix:after, .row:after { clear: both; }
|
141
|
+
.clearfix, .row { zoom: 1; }
|
142
|
+
|
143
|
+
// Tablet Portrait width to 960px
|
144
|
+
@media only screen and (min-width: 768px) and (max-width: 959px) {
|
145
|
+
|
146
|
+
body { min-width: 768px; }
|
147
|
+
|
148
|
+
.row {
|
149
|
+
width: 768px;
|
150
|
+
|
151
|
+
.grid_1 { width: 44px; }
|
152
|
+
.grid_2 { width: 108px; }
|
153
|
+
.grid_3 { width: 172px; }
|
154
|
+
.grid_4 { width: 236px; }
|
155
|
+
.grid_5 { width: 300px; }
|
156
|
+
.grid_6 { width: 364px; }
|
157
|
+
.grid_7 { width: 428px; }
|
158
|
+
.grid_8 { width: 492px; }
|
159
|
+
.grid_9 { width: 556px; }
|
160
|
+
.grid_10 { width: 620px; }
|
161
|
+
.grid_11 { width: 684px; }
|
162
|
+
.grid_12 { width: 748px; }
|
163
|
+
|
164
|
+
|
165
|
+
.prefix_1 { padding-left: 64px; }
|
166
|
+
.prefix_2 { padding-left: 128px; }
|
167
|
+
.prefix_3 { padding-left: 192px; }
|
168
|
+
.prefix_4 { padding-left: 256px; }
|
169
|
+
.prefix_5 { padding-left: 320px; }
|
170
|
+
.prefix_6 { padding-left: 384px; }
|
171
|
+
.prefix_7 { padding-left: 448px; }
|
172
|
+
.prefix_8 { padding-left: 512px; }
|
173
|
+
.prefix_9 { padding-left: 576px; }
|
174
|
+
.prefix_10 { padding-left: 640px; }
|
175
|
+
.prefix_11 { padding-left: 704px; }
|
176
|
+
|
177
|
+
|
178
|
+
.suffix_1 { padding-right: 64px; }
|
179
|
+
.suffix_2 { padding-right: 128px; }
|
180
|
+
.suffix_3 { padding-right: 192px; }
|
181
|
+
.suffix_4 { padding-right: 256px; }
|
182
|
+
.suffix_5 { padding-right: 320px; }
|
183
|
+
.suffix_6 { padding-right: 384px; }
|
184
|
+
.suffix_7 { padding-right: 448px; }
|
185
|
+
.suffix_8 { padding-right: 512px; }
|
186
|
+
.suffix_9 { padding-right: 576px; }
|
187
|
+
.suffix_10 { padding-right: 640px; }
|
188
|
+
.suffix_11 { padding-right: 704px; }
|
189
|
+
|
190
|
+
.push_1 { left: 64px; }
|
191
|
+
.push_2 { left: 128px; }
|
192
|
+
.push_3 { left: 192px; }
|
193
|
+
.push_4 { left: 256px; }
|
194
|
+
.push_5 { left: 320px; }
|
195
|
+
.push_6 { left: 384px; }
|
196
|
+
.push_7 { left: 448px; }
|
197
|
+
.push_8 { left: 512px; }
|
198
|
+
.push_9 { left: 576px; }
|
199
|
+
.push_10 { left: 640px; }
|
200
|
+
.push_11 { left: 704px; }
|
201
|
+
|
202
|
+
.pull_1 { left: -64px; }
|
203
|
+
.pull_2 { left: -128px; }
|
204
|
+
.pull_3 { left: -192px; }
|
205
|
+
.pull_4 { left: -256px; }
|
206
|
+
.pull_5 { left: -320px; }
|
207
|
+
.pull_6 { left: -384px; }
|
208
|
+
.pull_7 { left: -448px; }
|
209
|
+
.pull_8 { left: -512px; }
|
210
|
+
.pull_9 { left: -576px; }
|
211
|
+
.pull_10 { left: -640px; }
|
212
|
+
.pull_11 { left: -704px; }
|
213
|
+
}
|
214
|
+
}
|
215
|
+
// All Mobile Widths
|
216
|
+
@media only screen and (max-width: 767px) {
|
217
|
+
|
218
|
+
body { min-width: 300px; }
|
219
|
+
|
220
|
+
.row {
|
221
|
+
width: 300px;
|
222
|
+
|
223
|
+
.grid_1,
|
224
|
+
.grid_2,
|
225
|
+
.grid_3,
|
226
|
+
.grid_4,
|
227
|
+
.grid_5,
|
228
|
+
.grid_6,
|
229
|
+
.grid_7,
|
230
|
+
.grid_8,
|
231
|
+
.grid_9,
|
232
|
+
.grid_10,
|
233
|
+
.grid_11,
|
234
|
+
.grid_12 {
|
235
|
+
margin: 0;
|
236
|
+
width: 300px;
|
237
|
+
}
|
238
|
+
|
239
|
+
.prefix_1,
|
240
|
+
.prefix_2,
|
241
|
+
.prefix_3,
|
242
|
+
.prefix_4,
|
243
|
+
.prefix_5,
|
244
|
+
.prefix_6,
|
245
|
+
.prefix_7,
|
246
|
+
.prefix_8,
|
247
|
+
.prefix_9,
|
248
|
+
.prefix_10,
|
249
|
+
.prefix_11 {
|
250
|
+
padding-left: 0
|
251
|
+
}
|
252
|
+
|
253
|
+
.suffix_1,
|
254
|
+
.suffix_2,
|
255
|
+
.suffix_3,
|
256
|
+
.suffix_4,
|
257
|
+
.suffix_5,
|
258
|
+
.suffix_6,
|
259
|
+
.suffix_7,
|
260
|
+
.suffix_8,
|
261
|
+
.suffix_9,
|
262
|
+
.suffix_10,
|
263
|
+
.suffix_11 {
|
264
|
+
padding-right: 0
|
265
|
+
}
|
266
|
+
|
267
|
+
.push_1,
|
268
|
+
.push_2,
|
269
|
+
.push_3,
|
270
|
+
.push_4,
|
271
|
+
.push_5,
|
272
|
+
.push_6,
|
273
|
+
.push_7,
|
274
|
+
.push_8,
|
275
|
+
.push_9,
|
276
|
+
.push_10,
|
277
|
+
.push_11,
|
278
|
+
.pull_1,
|
279
|
+
.pull_2,
|
280
|
+
.pull_3,
|
281
|
+
.pull_4,
|
282
|
+
.pull_5,
|
283
|
+
.pull_6,
|
284
|
+
.pull_7,
|
285
|
+
.pull_8,
|
286
|
+
.pull_9,
|
287
|
+
.pull_10,
|
288
|
+
.pull_11 {
|
289
|
+
left: 0
|
290
|
+
}
|
291
|
+
}
|
292
|
+
}
|
293
|
+
// Mobile Landscape Width to Tablet Portrait Width
|
294
|
+
@media only screen and (min-width: 480px) and (max-width: 767px) {
|
295
|
+
|
296
|
+
body { min-width: 480px; }
|
297
|
+
|
298
|
+
.row {
|
299
|
+
width: 420px;
|
300
|
+
|
301
|
+
.grid_1,
|
302
|
+
.grid_2,
|
303
|
+
.grid_3,
|
304
|
+
.grid_4,
|
305
|
+
.grid_5,
|
306
|
+
.grid_6,
|
307
|
+
.grid_7,
|
308
|
+
.grid_8,
|
309
|
+
.grid_9,
|
310
|
+
.grid_10,
|
311
|
+
.grid_11,
|
312
|
+
.grid_12 {
|
313
|
+
margin: 0;
|
314
|
+
width: 420px;
|
315
|
+
}
|
316
|
+
}
|
317
|
+
}
|
data/sass/header.scss
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
#header {
|
2
|
+
background-color: $headerBackground;
|
3
|
+
color: $headerColor;
|
4
|
+
height: $headerHeight;
|
5
|
+
line-height: $lineHeight;
|
6
|
+
max-height: $headerHeight;
|
7
|
+
overflow: hidden;
|
8
|
+
width: 100%;
|
9
|
+
|
10
|
+
h1, h2, h3, h4, h5, h6 {
|
11
|
+
color: $headerColor;
|
12
|
+
line-height: 1em;
|
13
|
+
padding-top: ($headerHeight - $baseFontSize) / 2.5;
|
14
|
+
}
|
15
|
+
|
16
|
+
a {
|
17
|
+
color: $headerColor;
|
18
|
+
font-size: $baseFontSize;
|
19
|
+
font-weight: bold;
|
20
|
+
}
|
21
|
+
|
22
|
+
ul {
|
23
|
+
list-style-type: none;
|
24
|
+
padding-top: ($headerHeight - $baseFontSize) / 2.5;
|
25
|
+
li {
|
26
|
+
display: block;
|
27
|
+
float: left;
|
28
|
+
margin-right: $lineHeight;
|
29
|
+
}
|
30
|
+
&:last-child { margin-right: 0; }
|
31
|
+
}
|
32
|
+
|
33
|
+
}
|
data/sass/navs.scss
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
.nav-pills {
|
2
|
+
list-style-type: none;
|
3
|
+
|
4
|
+
li {
|
5
|
+
display: block;
|
6
|
+
height: 32px;
|
7
|
+
float: left;
|
8
|
+
overflow: hidden;
|
9
|
+
margin-bottom: 1.5em;
|
10
|
+
margin-right: 15px;
|
11
|
+
@include border-radius(2px);
|
12
|
+
|
13
|
+
a {
|
14
|
+
color: $baseColor;
|
15
|
+
display: block;
|
16
|
+
padding: 5px 12px;
|
17
|
+
}
|
18
|
+
|
19
|
+
&.active {
|
20
|
+
background: $headerBackground;
|
21
|
+
font-weight: bold;
|
22
|
+
a { color: white; }
|
23
|
+
}
|
24
|
+
|
25
|
+
}
|
26
|
+
}
|
data/sass/panels.scss
ADDED
data/sass/reset.scss
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
2
|
+
v2.0 | 20110126
|
3
|
+
License: none (public domain) */
|
4
|
+
|
5
|
+
html, body, div, span, applet, object, iframe,
|
6
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
7
|
+
a, abbr, acronym, address, big, cite, code,
|
8
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
9
|
+
small, strike, strong, sub, sup, tt, var,
|
10
|
+
b, u, i, center,
|
11
|
+
dl, dt, dd, ol, ul, li,
|
12
|
+
fieldset, form, label, legend,
|
13
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
14
|
+
article, aside, canvas, details, embed,
|
15
|
+
figure, figcaption, footer, header, hgroup,
|
16
|
+
menu, nav, output, ruby, section, summary,
|
17
|
+
time, mark, audio, video {
|
18
|
+
margin: 0;
|
19
|
+
padding: 0;
|
20
|
+
border: 0;
|
21
|
+
font-size: 100%;
|
22
|
+
font: inherit;
|
23
|
+
vertical-align: baseline;
|
24
|
+
}
|
25
|
+
|
26
|
+
article, aside, details, figcaption, figure,
|
27
|
+
footer, header, hgroup, menu, nav, section {
|
28
|
+
display: block
|
29
|
+
}
|
30
|
+
|
31
|
+
body { line-height: 1; }
|
32
|
+
|
33
|
+
ol, ul { list-style: none; }
|
34
|
+
|
35
|
+
blockquote, q { quotes: none; }
|
36
|
+
|
37
|
+
blockquote:before, blockquote:after,
|
38
|
+
q:before, q:after {
|
39
|
+
content: '';
|
40
|
+
content: none;
|
41
|
+
}
|
42
|
+
|
43
|
+
table {
|
44
|
+
border-collapse: collapse;
|
45
|
+
border-spacing: 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
a { text-decoration: none; }
|
data/sass/tables.scss
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
table {
|
2
|
+
background: transparent;
|
3
|
+
border-collapse: collapse;
|
4
|
+
line-height: 2em;
|
5
|
+
margin-bottom: 2em;
|
6
|
+
width: 100%;
|
7
|
+
|
8
|
+
thead {
|
9
|
+
display: table-header-group;
|
10
|
+
}
|
11
|
+
|
12
|
+
th {
|
13
|
+
border-bottom: 1px solid $lightGray;
|
14
|
+
font-weight: bold;
|
15
|
+
padding-bottom: 3px;
|
16
|
+
text-align: left;
|
17
|
+
}
|
18
|
+
|
19
|
+
td {
|
20
|
+
border-bottom: 1px solid $lightGray;
|
21
|
+
padding: 5px;
|
22
|
+
}
|
23
|
+
}
|
data/sass/tags.scss
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
.label, .tag {
|
2
|
+
@include label($lightGray, $darkGray);
|
3
|
+
}
|
4
|
+
|
5
|
+
.label.blue, .label-blue, .tag.blue, .tag-blue {
|
6
|
+
@include label($blue, $white);
|
7
|
+
}
|
8
|
+
|
9
|
+
.label.green, .label-green, .tag.green, .tag-green {
|
10
|
+
@include label($green, $white);
|
11
|
+
}
|
12
|
+
|
13
|
+
.label.brown, .label-brown, .tag.brown, .tag-brown {
|
14
|
+
@include label($brown, $white);
|
15
|
+
}
|
16
|
+
|
17
|
+
.label.red, .label-red, .tag.red, .tag-red {
|
18
|
+
@include label($red, $white);
|
19
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
body {
|
2
|
+
color: $baseColor;
|
3
|
+
font-family: $baseFontFamily;
|
4
|
+
font-size: $baseFontSize;
|
5
|
+
line-height: $lineHeight;
|
6
|
+
}
|
7
|
+
|
8
|
+
p { line-height: $lineHeight; }
|
9
|
+
|
10
|
+
|
11
|
+
h1, h2, h3, h4, h5, h6 {
|
12
|
+
color: $baseColor;
|
13
|
+
font-weight: bold;
|
14
|
+
line-height: $lineHeight;
|
15
|
+
}
|
16
|
+
|
17
|
+
h1, h2, h3 {
|
18
|
+
line-height: 2em;
|
19
|
+
}
|
20
|
+
|
21
|
+
h1 { font-size: 2.25em; }
|
22
|
+
h2 { font-size: 2em; }
|
23
|
+
h3 { font-size: 1.75em; }
|
24
|
+
h4 { font-size: 1.5em; }
|
25
|
+
h5 { font-size: 1.25em; }
|
26
|
+
h6 {
|
27
|
+
font-size: 1.115em;
|
28
|
+
font-weight: bold;
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
p + ul {
|
33
|
+
margin-top: $lineHeight / 2;
|
34
|
+
}
|
35
|
+
|
36
|
+
ul { list-style-type: disc; }
|
37
|
+
ol { list-style-type: decimal; }
|
38
|
+
|
39
|
+
ul, ol { padding-left: 2em; }
|
40
|
+
|
41
|
+
ul ul, ol ul {
|
42
|
+
margin-top: 0;
|
43
|
+
margin-bottom: 0;
|
44
|
+
list-style-type: circle;
|
45
|
+
}
|
46
|
+
|
47
|
+
ul ol { list-style-type: decimal; }
|
48
|
+
ol ol { list-style-type: lower-alpha; }
|
49
|
+
|
50
|
+
footer {
|
51
|
+
margin: $lineHeight auto;
|
52
|
+
line-height: $lineHeight;
|
53
|
+
text-align: center;
|
54
|
+
}
|
metadata
ADDED
@@ -0,0 +1,113 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bear-sass
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.0'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Robin Dupret
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-05-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sass
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.9
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.9
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Bear is a very tiny Sass kit
|
56
|
+
email:
|
57
|
+
- robin.dupret@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- .gitignore
|
63
|
+
- Gemfile
|
64
|
+
- README.md
|
65
|
+
- Rakefile
|
66
|
+
- bear-sass.gemspec
|
67
|
+
- css/bear.css
|
68
|
+
- lib/bear-sass.rb
|
69
|
+
- lib/bear/engine.rb
|
70
|
+
- lib/bear/generators/USAGE
|
71
|
+
- lib/bear/generators/layout_generator.rb
|
72
|
+
- lib/bear/generators/templates/layout.html.erb
|
73
|
+
- lib/bear/generators/templates/layout.html.slim
|
74
|
+
- lib/bear/version.rb
|
75
|
+
- sass/_mixins.scss
|
76
|
+
- sass/_variables.scss
|
77
|
+
- sass/alerts.scss
|
78
|
+
- sass/bear.scss
|
79
|
+
- sass/buttons.scss
|
80
|
+
- sass/forms.scss
|
81
|
+
- sass/grid.scss
|
82
|
+
- sass/header.scss
|
83
|
+
- sass/navs.scss
|
84
|
+
- sass/panels.scss
|
85
|
+
- sass/reset.scss
|
86
|
+
- sass/tables.scss
|
87
|
+
- sass/tags.scss
|
88
|
+
- sass/typography.scss
|
89
|
+
homepage: https://robin850.github.io/bear
|
90
|
+
licenses:
|
91
|
+
- MIT
|
92
|
+
metadata: {}
|
93
|
+
post_install_message:
|
94
|
+
rdoc_options: []
|
95
|
+
require_paths:
|
96
|
+
- lib
|
97
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - '>='
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
107
|
+
requirements: []
|
108
|
+
rubyforge_project:
|
109
|
+
rubygems_version: 2.0.3
|
110
|
+
signing_key:
|
111
|
+
specification_version: 4
|
112
|
+
summary: The Bear Sass kit
|
113
|
+
test_files: []
|