bear-sass 1.0 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/README.md +15 -12
- data/css/bear.css +1 -1
- data/documentation/README.md +9 -0
- data/documentation/customization.md +83 -0
- data/documentation/grid.md +49 -0
- data/documentation/navigation.md +49 -0
- data/documentation/ui.md +83 -0
- data/lib/bear/engine.rb +10 -1
- data/lib/bear/generators/templates/layout.html.erb +4 -3
- data/lib/bear/generators/templates/layout.html.slim +1 -1
- data/lib/bear/version.rb +1 -1
- data/sass/buttons.scss +1 -1
- data/sass/header.scss +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8afebb71e60b767271c8fcc7900ebdb6c5e8ddb
|
4
|
+
data.tar.gz: 35aebe445721f24a2b3d32b547983088bbc62dee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd6af5d720a0427ae3e5d80665f8a6a05bf19a6f303109d3754f618045add75dbb9ae4ccc33704932754eb0c4f4bbe9a6e358d721fdd3f8e8c0126acb9c6a474
|
7
|
+
data.tar.gz: d576bc6532d28730ef77d9a32ba9b0185b58150488af29fbf91dc5b4f8b7bc4007372930cdac87b443f3baae77203e292d02db9d13eea8853f93ad4c493763f1
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 1.1
|
4
|
+
|
5
|
+
* Set a class instead of an id for headers in templates
|
6
|
+
|
7
|
+
* Fix an eval error in the ERb template
|
8
|
+
|
9
|
+
* Fix an issue with assets loading in Rails
|
10
|
+
|
11
|
+
* Add documentation (under the documentation dir)
|
12
|
+
|
13
|
+
* Rely on class instead of an id for headers
|
14
|
+
|
15
|
+
## 1.0
|
16
|
+
|
17
|
+
* Add some documentation for the following sections
|
18
|
+
- Grid system
|
19
|
+
- Navigation
|
20
|
+
- Ui elements
|
21
|
+
- Customization
|
22
|
+
|
23
|
+
* Relies on an id instead of a class for header divs
|
24
|
+
|
25
|
+
* Add a changelog file
|
26
|
+
|
data/README.md
CHANGED
@@ -11,6 +11,14 @@ about the style and some components.
|
|
11
11
|
I hope you will love this project and it will be useful. I'm just "open sourcing"
|
12
12
|
this hoping it could be useful for someone.
|
13
13
|
|
14
|
+
## Features
|
15
|
+
|
16
|
+
* Simple to use and customize
|
17
|
+
* Written in Sass
|
18
|
+
* Lightweight
|
19
|
+
* Make responsive design easy
|
20
|
+
* Open source <3
|
21
|
+
|
14
22
|
## Installation
|
15
23
|
|
16
24
|
I'm a big fan of Ruby on Rails so the kit is available as a gem:
|
@@ -25,20 +33,15 @@ stylesheet file.
|
|
25
33
|
Alternatively, you can download assets using curl or wget:
|
26
34
|
|
27
35
|
~~~bash
|
28
|
-
$
|
36
|
+
$ wget https://github.com/robin850/bear/archive/master.zip
|
37
|
+
$ unzip master.zip
|
29
38
|
~~~
|
30
39
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
* Simple to use and customize
|
36
|
-
* Written in Sass
|
37
|
-
* Lightweight
|
38
|
-
* Make responsive design easy
|
39
|
-
* Open source <3
|
40
|
+
Then you can use either Sass files (located in the `sass` directory) or just
|
41
|
+
use the generated CSS file (located in the `css` folder). Then use a `link` tag
|
42
|
+
in your HTML files and there you go!
|
40
43
|
|
41
|
-
## Basic usage
|
44
|
+
## Basic usage with Rails
|
42
45
|
|
43
46
|
If you are using Rails, the gem ships with a rails generator for the layout.
|
44
47
|
You can optionally give the name of the generated layout:
|
@@ -47,7 +50,7 @@ You can optionally give the name of the generated layout:
|
|
47
50
|
$ rails g bear:layout nice
|
48
51
|
~~~
|
49
52
|
|
50
|
-
|
53
|
+
Then add at the top of your file `@import "bear";` to use it!
|
51
54
|
|
52
55
|
## Documentation
|
53
56
|
|
data/css/bear.css
CHANGED
@@ -1 +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}
|
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}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Documentation
|
2
|
+
|
3
|
+
Please see [the site](http://robin850.github.io/bear) to browse the documenation online. Feel free to fork and edit it if you find typos or just wan to improve
|
4
|
+
it!
|
5
|
+
|
6
|
+
* [Grid](grid.md)
|
7
|
+
* [Navigation](navigation.md)
|
8
|
+
* [Ui elements](ui.md)
|
9
|
+
* [Customization](customization.md)
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# Customization
|
2
|
+
|
3
|
+
Bear aims to be more or less customizable. You can either configure the style
|
4
|
+
through variables or implement other elements using built-in mixins.
|
5
|
+
|
6
|
+
## Variables
|
7
|
+
|
8
|
+
Bear is built through variables. It lets you change most values to theme your
|
9
|
+
site simply. The variables' name are clear so normally, you just need to have
|
10
|
+
a look at the whole list and redefine them as you want:
|
11
|
+
|
12
|
+
~~~scss
|
13
|
+
// Base
|
14
|
+
$baseFontSize: 14px;
|
15
|
+
$baseFontFamily: Helvetica, arial, freesans, clean, sans-serif;
|
16
|
+
$baseColor: #333333;
|
17
|
+
$lineHeight: 1.5em;
|
18
|
+
|
19
|
+
// Colors
|
20
|
+
$lightGray: #e0e0e0;
|
21
|
+
$darkGray: #505050;
|
22
|
+
$green: #40833e;
|
23
|
+
$white: white;
|
24
|
+
$yellow: darken(#fcf8e3, 10%);
|
25
|
+
$darkYellow: #c09853;
|
26
|
+
$red: #ac4142;
|
27
|
+
$blue: #65bfbf;
|
28
|
+
$brown: lighten(#211d18, 7%);
|
29
|
+
|
30
|
+
// Header
|
31
|
+
$headerBackground: #27221c;
|
32
|
+
$headerHeight: 60px;
|
33
|
+
$headerColor: $white;
|
34
|
+
|
35
|
+
// Buttons
|
36
|
+
$btnBackground: $brown;
|
37
|
+
$btnColor: lighten(#e8d9c3, 2%);
|
38
|
+
|
39
|
+
$btnGreenBackground: $green;
|
40
|
+
$btnGreenColor: $white;
|
41
|
+
|
42
|
+
$btnLightBackground: $lightGray;
|
43
|
+
$btnLightColor: $darkGray;
|
44
|
+
|
45
|
+
// Tags/labels
|
46
|
+
$labelFontSize: 11px;
|
47
|
+
|
48
|
+
// Panels
|
49
|
+
$panelBackground: lighten($lightGray, 7%);
|
50
|
+
$panelBorder: 1px solid lighten($darkGray, 60%);
|
51
|
+
|
52
|
+
// Forms
|
53
|
+
$fieldBorder: 1px solid lighten($darkGray, 40%);
|
54
|
+
$fieldFontFamily: $baseFontFamily;
|
55
|
+
$fieldFontSize: $baseFontSize;
|
56
|
+
$fieldColor: $baseColor;
|
57
|
+
$fieldSetBorder: 1px solid lighten($darkGray, 55%);
|
58
|
+
~~~
|
59
|
+
|
60
|
+
## Mixins
|
61
|
+
|
62
|
+
Bear also comes with few mixins so you can implement new items (e.g. buttons).
|
63
|
+
Let's take the example of a button! Let's say you cant to add a nice red button
|
64
|
+
for dangerous tasks ; the implementation would look like this:
|
65
|
+
|
66
|
+
~~~scss
|
67
|
+
// Just replace $color and $background with your values
|
68
|
+
.btn.red, .btn-red {
|
69
|
+
@include button($color, $background);
|
70
|
+
}
|
71
|
+
~~~
|
72
|
+
|
73
|
+
Bear has the following mixins:
|
74
|
+
|
75
|
+
* [border-radius($radius: 3px)][border-radius]
|
76
|
+
* [alert($background, $color: darken($background, 10%))][alert]
|
77
|
+
* [label($background, $color)][label]
|
78
|
+
* [field][] (to add the same style as fields)
|
79
|
+
|
80
|
+
[border-radius]: https://github.com/robin850/bear/blob/master/sass/_mixins.scss#L1
|
81
|
+
[alert]: https://github.com/robin850/bear/blob/master/sass/_mixins.scss#L28
|
82
|
+
[label]: https://github.com/robin850/bear/blob/master/sass/_mixins.scss#L39
|
83
|
+
[field]: https://github.com/robin850/bear/blob/master/sass/_mixins.scss#L52
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# The grid system
|
2
|
+
|
3
|
+
The grid system is based on the [960] grid system and is fully responsive. The
|
4
|
+
responsive part of the grid is based on [this repository][960-responsive].
|
5
|
+
However, some classes have been renamed. For instance, `container_12` is simply
|
6
|
+
`row` (just like most CSS kit) to make evntual backports and change easier if
|
7
|
+
you want to use a 16 columns based grid.
|
8
|
+
|
9
|
+
So, to create a grid container just create a div with the `row` class ; you can
|
10
|
+
also add the `container` class to ensure a little margin-top (of 1.5 em):
|
11
|
+
|
12
|
+
~~~html
|
13
|
+
<div class="row container">
|
14
|
+
<!-- Here go your divs -->
|
15
|
+
</div>
|
16
|
+
~~~
|
17
|
+
|
18
|
+
Then you can use the buil-in row classes which go from `grid_1` to `grid_12`.
|
19
|
+
If you want to clear the first and the last div's gutter, you can use the `alpha`
|
20
|
+
and `omega` classes to clear (respectively) the left and right margin. E.g.:
|
21
|
+
|
22
|
+
~~~html
|
23
|
+
<div class="row container">
|
24
|
+
<div class="alpha grid_6">...</div>
|
25
|
+
<div class="grid_3">...</div>
|
26
|
+
<div class="grid_3 omega">...</div>
|
27
|
+
</div>
|
28
|
+
~~~
|
29
|
+
|
30
|
+
You may also need to use the `clear` (or `clearer`) class on some elements (placed
|
31
|
+
after a `grid_*` element) to clear floats.
|
32
|
+
|
33
|
+
# Responsive grid
|
34
|
+
|
35
|
+
As said at the beginning, the grid system is responsive. It relies on media
|
36
|
+
queries to detect if it's either a computer, tablet or phone. The following
|
37
|
+
media queries are used in the `grid.scss` file:
|
38
|
+
|
39
|
+
~~~sass
|
40
|
+
// For tablets
|
41
|
+
@media only screen and (min-width: 768px) and (max-width: 959px)
|
42
|
+
// All mobiles width
|
43
|
+
@media only screen and (max-width: 767px)
|
44
|
+
// Mobile landscape width to tablet portrait width
|
45
|
+
@media only screen and (min-width: 480px) and (max-width: 767px)
|
46
|
+
~~~
|
47
|
+
|
48
|
+
[960]: http://960.gs/
|
49
|
+
[960-responsive]: https://github.com/tylerwolff/960-Responsive-Grid
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Navigation
|
2
|
+
|
3
|
+
Bear comes with some styled elements to simplify navigations. For the moment
|
4
|
+
there are only pills navs and headers.
|
5
|
+
|
6
|
+
## Headers
|
7
|
+
|
8
|
+
To put a header, you just have to create a div with the `header` class. Then,
|
9
|
+
inside you can either use a `row` element or leave it as is to have a 100% width
|
10
|
+
header:
|
11
|
+
|
12
|
+
~~~html
|
13
|
+
<div class="header">
|
14
|
+
<!-- Here's your header -->
|
15
|
+
</div>
|
16
|
+
~~~
|
17
|
+
|
18
|
+
Bear also stylize header's ul elements to make a nav easily. You just have to
|
19
|
+
create a simple ul tag with `li`s and links inside:
|
20
|
+
|
21
|
+
~~~html
|
22
|
+
<div class="header">
|
23
|
+
<ul>
|
24
|
+
<li><a href="/">Home</a></li>
|
25
|
+
<li><a href="/blog">Blog</a></li>
|
26
|
+
<li><a href="/portfolio">Portfolio</a></li>
|
27
|
+
</ul>
|
28
|
+
</div>
|
29
|
+
~~~
|
30
|
+
|
31
|
+
Bear also ensures that buttons and titles in headers are correctly stylized.
|
32
|
+
|
33
|
+
## Pills nav
|
34
|
+
|
35
|
+
You can also create pills navs to make, for instance, sub-navs in your page. Bear
|
36
|
+
doesn't ship with JavaScript plugins so you will have to make the necessary code
|
37
|
+
to make the active class and the content toggled correctly.
|
38
|
+
|
39
|
+
To create a pills nav, Bear just requires the following code:
|
40
|
+
|
41
|
+
~~~html
|
42
|
+
<ul class="nav-pills">
|
43
|
+
<li class="active">All</li>
|
44
|
+
<li>Open</li>
|
45
|
+
<li>Closed</li>
|
46
|
+
</ul>
|
47
|
+
~~~
|
48
|
+
|
49
|
+
You may need to use a `clear` element just after the ul to clear float.
|
data/documentation/ui.md
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
# Ui elements
|
2
|
+
|
3
|
+
Bear ships with stylized UI elements. It's add some nice styles to current
|
4
|
+
elements (such as paragraphs and titles) and also provides extra elements such
|
5
|
+
as panels or alerts.
|
6
|
+
|
7
|
+
## Typography
|
8
|
+
|
9
|
+
Bear adds some basic styling to common elements:
|
10
|
+
|
11
|
+
* Titles (from h1 to h6)
|
12
|
+
* Paragraphs
|
13
|
+
* Lists
|
14
|
+
|
15
|
+
You don't need to specify extra class(es) on these elements to get some nice
|
16
|
+
styling. If you don't love the base style, feel free to customize it (see the
|
17
|
+
"customization" setion for further information).
|
18
|
+
|
19
|
+
## Buttons
|
20
|
+
|
21
|
+
You can easily add buttons to your page using the buttons' classes:
|
22
|
+
|
23
|
+
* `btn`
|
24
|
+
* `btn-green` or `btn green`
|
25
|
+
* `btn-light` or `btn light`
|
26
|
+
|
27
|
+
For example:
|
28
|
+
|
29
|
+
~~~html
|
30
|
+
<a href="" class="btn-green">Merge this</a>
|
31
|
+
~~~
|
32
|
+
|
33
|
+
You can easily create new buttons ; please see the "customization" section.
|
34
|
+
|
35
|
+
## Panels
|
36
|
+
|
37
|
+
Bear comes with a simple panel element. Just add the `panel` class to a div:
|
38
|
+
|
39
|
+
~~~html
|
40
|
+
<div class="panel">
|
41
|
+
<h4>A nice Panel</h4>
|
42
|
+
<p>...</p>
|
43
|
+
</div>
|
44
|
+
~~~
|
45
|
+
|
46
|
+
## Tags/labels
|
47
|
+
|
48
|
+
You can easily tag your resources or simply add labels in your page relying on
|
49
|
+
the following classes:
|
50
|
+
|
51
|
+
* `label` or `tag`
|
52
|
+
* `label-blue`, `label blue`, `tag blue` or `tag-blue`
|
53
|
+
* `label-green`, `label green`, `tag green` or `tag-green`
|
54
|
+
* `label-brown`, `label brown`, `tag brown` or `tag-brown`
|
55
|
+
* `label-red`, `label red`, `tag red` or `tag-red`
|
56
|
+
|
57
|
+
Generally, these classes are applied on `span` or `a` elements so the CSS may
|
58
|
+
seems odd on other elements.
|
59
|
+
|
60
|
+
## Alerts
|
61
|
+
|
62
|
+
Bear comes with three alerts divs to simply notice your users:
|
63
|
+
|
64
|
+
~~~html
|
65
|
+
<div class="alert">Here comes an error message</div>
|
66
|
+
<div class="alert success">Nice job mate!</div>
|
67
|
+
<div class="alert warning">Warning! Keep it simple!</div>
|
68
|
+
~~~
|
69
|
+
|
70
|
+
Alternatively, you can also use the "dasherized" version of the class names (with
|
71
|
+
`alert-success` and `alert-warning`).
|
72
|
+
|
73
|
+
## Tables
|
74
|
+
|
75
|
+
There is nothing special with tables. They just have a basic style with bottom
|
76
|
+
borders and some padding/margin. They don't require special class.
|
77
|
+
|
78
|
+
## Forms
|
79
|
+
|
80
|
+
As tables, forms just have a basic style and don't require any special class to
|
81
|
+
stylize a special element. Fieldsets, inputs and textareas are stylized. You
|
82
|
+
should rely on the button classes (`btn`, etc.) to enhance submit or reset
|
83
|
+
buttons' style.
|
data/lib/bear/engine.rb
CHANGED
@@ -1,4 +1,13 @@
|
|
1
1
|
module Bear
|
2
|
-
class Engine <
|
2
|
+
class Engine < Rails::Engine
|
3
|
+
# Thanks Foundation for this snippet
|
4
|
+
add_paths_block = lambda { |app|
|
5
|
+
app.config.assets.paths << File.expand_path("../../../sass", __FILE__)
|
6
|
+
}
|
7
|
+
|
8
|
+
initializer 'bear.update_asset_paths', &add_paths_block
|
9
|
+
initializer 'bear.update_asset_paths', :group => :assets,
|
10
|
+
&add_paths_block
|
11
|
+
|
3
12
|
end
|
4
13
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
|
7
7
|
<%%= stylesheet_link_tag "application" %>
|
8
8
|
<%%= javascript_include_tag "application" %>
|
9
|
+
<%%= csrf_meta_tags %>
|
9
10
|
</head>
|
10
11
|
|
11
12
|
<body>
|
12
13
|
|
13
|
-
<div
|
14
|
+
<div class="header">
|
14
15
|
<div class="row">
|
15
16
|
<div class="alpha grid_2">
|
16
17
|
<h4><%= Rails.application.class.parent_name %></h4>
|
@@ -26,11 +27,11 @@
|
|
26
27
|
<div class="container row">
|
27
28
|
<%% if notice %>
|
28
29
|
<div class="alert success"><%%= notice %></div>
|
29
|
-
|
30
|
+
<%% end %>
|
30
31
|
|
31
32
|
<%% if alert %>
|
32
33
|
<div class="alert"><%%= alert %></div>
|
33
|
-
|
34
|
+
<%% end %>
|
34
35
|
|
35
36
|
<%%= yield %>
|
36
37
|
</div>
|
data/lib/bear/version.rb
CHANGED
data/sass/buttons.scss
CHANGED
data/sass/header.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bear-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.1'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Dupret
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -60,11 +60,17 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- .gitignore
|
63
|
+
- CHANGELOG.md
|
63
64
|
- Gemfile
|
64
65
|
- README.md
|
65
66
|
- Rakefile
|
66
67
|
- bear-sass.gemspec
|
67
68
|
- css/bear.css
|
69
|
+
- documentation/README.md
|
70
|
+
- documentation/customization.md
|
71
|
+
- documentation/grid.md
|
72
|
+
- documentation/navigation.md
|
73
|
+
- documentation/ui.md
|
68
74
|
- lib/bear-sass.rb
|
69
75
|
- lib/bear/engine.rb
|
70
76
|
- lib/bear/generators/USAGE
|