flexi 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +19 -0
- data/Rakefile +2 -0
- data/flexi.gemspec +23 -0
- data/lib/flexi/version.rb +3 -0
- data/lib/flexi.rb +5 -0
- data/stylesheets/_grid.scss +62 -0
- data/stylesheets/_reset.scss +1 -0
- data/stylesheets/_typo.scss +107 -0
- data/stylesheets/flexi-grid/_mixin.scss +125 -0
- data/stylesheets/flexi-typo/_mixin.scss +244 -0
- data/stylesheets/normalize/_reset.scss +425 -0
- data/stylesheets/sass-flexi.scss +5 -0
- metadata +87 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 83b8ce31e6afaa2fad971e8d8def2274e39022a8
|
4
|
+
data.tar.gz: 92eb9d0004b080eeedc74aee9038290ab3600dd4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 65803b5034a56569dd7f0f0fb7f014f6016ccb281529c3a326f30f33361c05fa670d6d0bb633ca6c3eceffee2ab8c1984fb0d14a4fab99af339f5c5ae7c62351
|
7
|
+
data.tar.gz: a82f72a15499419ef3a44951e32d119c9f32366d5ba46b965506fcc60c779e3fda4205313ca3722aa6e1dc77fc89ce45c5a2394237827ad72bf1c6efb5d95502
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 sass-flexi
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
data/Rakefile
ADDED
data/flexi.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'flexi/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "flexi"
|
8
|
+
spec.version = Flexi::VERSION
|
9
|
+
spec.authors = ["sass-flexi"]
|
10
|
+
spec.email = ["araj@sass-flexi.com"]
|
11
|
+
spec.summary = %q{flexi grids and flexi typography.}
|
12
|
+
spec.description = %q{}
|
13
|
+
spec.homepage = "http://sass-flexi.com"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
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_development_dependency "bundler", "~> 1.6"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
data/lib/flexi.rb
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
// flexi-grid framework
|
2
|
+
@import "flexi-grid/mixin";
|
3
|
+
|
4
|
+
// box sizing
|
5
|
+
*{
|
6
|
+
@include box-sizing(border-box);
|
7
|
+
}
|
8
|
+
|
9
|
+
// clear the float
|
10
|
+
.clear{
|
11
|
+
@extend %clear;
|
12
|
+
}
|
13
|
+
|
14
|
+
// container
|
15
|
+
.container{
|
16
|
+
@include container(30); // padding left & right 15px
|
17
|
+
}
|
18
|
+
|
19
|
+
// wrapper
|
20
|
+
.wrapper{
|
21
|
+
@include wrapper(30); // margin left & right (-15px))
|
22
|
+
}
|
23
|
+
|
24
|
+
// columns
|
25
|
+
@include columns(col,12);
|
26
|
+
|
27
|
+
// tablet media
|
28
|
+
@media screen and (min-width:768px){
|
29
|
+
%float{
|
30
|
+
float: left;
|
31
|
+
}
|
32
|
+
@include grids(col,12);
|
33
|
+
@include grids(offset,12);
|
34
|
+
@include grids(push,12);
|
35
|
+
@include grids(pull,12);
|
36
|
+
}
|
37
|
+
|
38
|
+
|
39
|
+
// desktop media
|
40
|
+
@media screen and (min-width:992px){
|
41
|
+
%float{
|
42
|
+
float: left;
|
43
|
+
}
|
44
|
+
@include grids(col,12);
|
45
|
+
@include grids(offset,12);
|
46
|
+
@include grids(push,12);
|
47
|
+
@include grids(pull,12);
|
48
|
+
}
|
49
|
+
|
50
|
+
// large media
|
51
|
+
@media screen and (min-width:1200px){
|
52
|
+
%float{
|
53
|
+
float: left;
|
54
|
+
}
|
55
|
+
@include grids(col,12);
|
56
|
+
@include grids(offset,12);
|
57
|
+
@include grids(push,12);
|
58
|
+
@include grids(pull,12);
|
59
|
+
}
|
60
|
+
|
61
|
+
// add the float for all media
|
62
|
+
@include float(col,12); // this had been added because the media not allowed @extend insdie
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "normalize/reset";
|
@@ -0,0 +1,107 @@
|
|
1
|
+
// flexi-typo framework
|
2
|
+
@import "flexi-typo/mixin";
|
3
|
+
|
4
|
+
html{
|
5
|
+
@include html(16,10);
|
6
|
+
}
|
7
|
+
|
8
|
+
// body and headline font-size and font-family
|
9
|
+
@include body-headline(16,10);
|
10
|
+
|
11
|
+
// link elements
|
12
|
+
a{
|
13
|
+
@include link(#C02942); // define the color for the link elements, you can change the color number is you wish
|
14
|
+
}
|
15
|
+
|
16
|
+
// blockqoute elements
|
17
|
+
blockquote{
|
18
|
+
@include blockquote(16,#C02942);
|
19
|
+
@extend %margin;
|
20
|
+
}
|
21
|
+
|
22
|
+
// define pre,code, and kbd elements
|
23
|
+
pre{
|
24
|
+
@include pre();
|
25
|
+
@extend %margin;
|
26
|
+
}
|
27
|
+
|
28
|
+
code{
|
29
|
+
@include code();
|
30
|
+
}
|
31
|
+
|
32
|
+
kbd{
|
33
|
+
@include kbd();
|
34
|
+
}
|
35
|
+
|
36
|
+
// define the fixed font
|
37
|
+
pre, code{
|
38
|
+
font-family : Consolas, Courier New, monospace;
|
39
|
+
line-height : inherit;
|
40
|
+
}
|
41
|
+
|
42
|
+
// define italic & bold elements
|
43
|
+
em, i, blockquote{
|
44
|
+
font-style : italic;
|
45
|
+
}
|
46
|
+
b, strong{
|
47
|
+
color : inherit;
|
48
|
+
font-weight: bold;
|
49
|
+
}
|
50
|
+
|
51
|
+
// define the ol, ul list
|
52
|
+
ul{list-style-type: disc; @extend %margin;}
|
53
|
+
ol{list-style-type: decimal;@extend %margin;}
|
54
|
+
|
55
|
+
// others defines
|
56
|
+
abbr[title], abbr[data-original-title]{
|
57
|
+
cursor: help;
|
58
|
+
border-bottom: 1px dotted;
|
59
|
+
}
|
60
|
+
abbr.initialism {
|
61
|
+
font-size: 90%;
|
62
|
+
text-transform: uppercase;
|
63
|
+
}
|
64
|
+
small, .small{font-size: 80%;}
|
65
|
+
|
66
|
+
// modifers
|
67
|
+
.text-left{text-align: left;}
|
68
|
+
.text-right{text-align: right;}
|
69
|
+
.text-center{text-align: center;}
|
70
|
+
.text-justify{text-align: justify;}
|
71
|
+
|
72
|
+
// center elements
|
73
|
+
.center{
|
74
|
+
&-img{
|
75
|
+
display: block;
|
76
|
+
margin-left:auto;
|
77
|
+
margin-right:auto;}
|
78
|
+
&-block{
|
79
|
+
margin-left:auto;
|
80
|
+
margin-right:auto;}
|
81
|
+
&-veritcal{
|
82
|
+
min-height: 12em;
|
83
|
+
display : table-cell;
|
84
|
+
vertical-align: middle;}
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
// align elements
|
89
|
+
.align{
|
90
|
+
&-top{margin-top:px($font-size);}
|
91
|
+
&-bottom{margin-bottom:px($font-size);}
|
92
|
+
&-left{margin-left:px($font-size);}
|
93
|
+
&-right{margin-right:px($font-size);}
|
94
|
+
}
|
95
|
+
|
96
|
+
|
97
|
+
// image responsive
|
98
|
+
.img-respv{
|
99
|
+
height:auto;
|
100
|
+
max-width:100%;}
|
101
|
+
|
102
|
+
@media screen and (max-width:600px){
|
103
|
+
@include mobile(13,10);
|
104
|
+
}
|
105
|
+
|
106
|
+
// end of the file
|
107
|
+
// ------------------------------------------------
|
@@ -0,0 +1,125 @@
|
|
1
|
+
@function padding($gutter-width){
|
2
|
+
@return ($gutter-width/2) +px;
|
3
|
+
}
|
4
|
+
//--------------------------------------------------
|
5
|
+
// flexi-grids mixin
|
6
|
+
// created by : Mr.Flexi
|
7
|
+
// date: 15 May 2014
|
8
|
+
// Source : http://sass-flexi.com/
|
9
|
+
//--------------------------------------------------
|
10
|
+
|
11
|
+
// 1- Placeholder
|
12
|
+
//--------------------------------------------------
|
13
|
+
// Clearfix
|
14
|
+
// Source: http://nicolasgallagher.com/micro-clearfix-hack/
|
15
|
+
//
|
16
|
+
// For modern browsers
|
17
|
+
// 1. The space content is one way to avoid an Opera bug when the
|
18
|
+
// contenteditable attribute is included anywhere else in the document.
|
19
|
+
// Otherwise it causes space to appear at the top and bottom of elements
|
20
|
+
// that are clearfixed.
|
21
|
+
// 2. The use of `table` rather than `block` is only necessary if using
|
22
|
+
// `:before` to contain the top-margins of child elements.
|
23
|
+
|
24
|
+
%clear{
|
25
|
+
&:before, &:after{
|
26
|
+
content: " ";
|
27
|
+
display: table;
|
28
|
+
}
|
29
|
+
&:after{
|
30
|
+
clear: both;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
// Box sizing
|
35
|
+
%box-sizing{
|
36
|
+
-webkit-box-sizing: border-box;
|
37
|
+
-moz-box-sizing: border-box;
|
38
|
+
box-sizing: border-box;
|
39
|
+
}
|
40
|
+
|
41
|
+
// column elemnet
|
42
|
+
%column{
|
43
|
+
position: relative;
|
44
|
+
min-height: 1px;
|
45
|
+
padding:0 padding($gutter-width:30);
|
46
|
+
}
|
47
|
+
|
48
|
+
|
49
|
+
//--------------------------------------------------
|
50
|
+
|
51
|
+
// 2- Mixin
|
52
|
+
//--------------------------------------------------
|
53
|
+
|
54
|
+
// Box sizing
|
55
|
+
@mixin box-sizing($border-box:border-box){
|
56
|
+
-webkit-box-sizing: $border-box;
|
57
|
+
-moz-box-sizing: $border-box;
|
58
|
+
box-sizing: $border-box;
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
// Container
|
63
|
+
@mixin container($gutter-width:30){
|
64
|
+
margin: 0 auto; // center the conatiner
|
65
|
+
padding: 0 (($gutter-width/2)+px);
|
66
|
+
@extend %clear;
|
67
|
+
}
|
68
|
+
|
69
|
+
// Wrapper
|
70
|
+
@mixin wrapper($gutter-width:30){
|
71
|
+
margin: 0 (($gutter-width/ -2)+px);
|
72
|
+
*zoom:1;
|
73
|
+
@extend %clear;
|
74
|
+
}
|
75
|
+
|
76
|
+
// columns
|
77
|
+
@mixin columns($property:col,$total-columns:12){
|
78
|
+
@for $i from 1 through $total-columns{
|
79
|
+
.#{$property}-#{$i}{
|
80
|
+
@extend %column;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
// float
|
86
|
+
@mixin float($property,$total-columns:12){
|
87
|
+
@for $i from 1 through $total-columns{
|
88
|
+
.#{$property}-#{$i}{
|
89
|
+
@extend %float;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
// Generate column width, offset, push, and pull
|
95
|
+
@mixin grids($property,$total-columns:12){
|
96
|
+
@if $property == col{
|
97
|
+
@for $i from 1 through $total-columns{
|
98
|
+
.#{$property}-#{$i}{
|
99
|
+
width:((100/$total-columns)*$i) * 1%;
|
100
|
+
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
@if $property == offset{
|
105
|
+
@for $i from 1 through $total-columns{
|
106
|
+
.#{$property}-#{$i}{
|
107
|
+
margin-left: ((100/$total-columns)*$i) * 1%;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
@if $property == push{
|
112
|
+
@for $i from 1 through $total-columns{
|
113
|
+
.#{$property}-#{$i}{
|
114
|
+
left:((100/$total-columns)*$i) * 1%;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
@if $property == pull{
|
119
|
+
@for $i from 1 through $total-columns{
|
120
|
+
.#{$property}-#{$i}{
|
121
|
+
right: ((100/$total-columns)*$i) * 1%;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
@@ -0,0 +1,244 @@
|
|
1
|
+
//--------------------------------------------------
|
2
|
+
// flexi-typo mixin
|
3
|
+
// created by : Mr.Flexi
|
4
|
+
// date: 15 May 2014
|
5
|
+
// Source : http://sass-flexi.com/
|
6
|
+
//--------------------------------------------------
|
7
|
+
|
8
|
+
// 1- Modular scale for (tablet,desktop, and large media)
|
9
|
+
// 2:3 perfect fifth
|
10
|
+
// 16px @ 1:1.5 ideal text size
|
11
|
+
// 95px @ 1:1.5 important number - choosen from column width
|
12
|
+
//---------------------------------------------------
|
13
|
+
$scale-ratio : 1.5 !default;
|
14
|
+
$font-size : 16 !default;
|
15
|
+
$line-height : 24 !default; // the line height is >=150% of font size
|
16
|
+
|
17
|
+
// calculate the headingline elements
|
18
|
+
$h1 : $font-size * 3.375;
|
19
|
+
$h2 : $font-size * 2.25 ;
|
20
|
+
$h3 : $font-size * 1.5 ;
|
21
|
+
$h4 : $font-size * 1.0 ;
|
22
|
+
$h5 : $font-size / 1.5 ;
|
23
|
+
$h6 : $font-size / 2.25 ;
|
24
|
+
//---------------------------------------------------
|
25
|
+
|
26
|
+
// 2- Modular scale for mobile media
|
27
|
+
// 2:3 perfect fifth
|
28
|
+
// 13px @ 1:1.5 ideal text size
|
29
|
+
// 480px @ 1:1.5 important number - choosen from column width
|
30
|
+
//---------------------------------------------------
|
31
|
+
$scale-ratio : 1.5 !default;
|
32
|
+
$font-size-mob: 13 !default;
|
33
|
+
$line-height-mob : 21 !default; // the line height is >=150% of font size
|
34
|
+
|
35
|
+
// calculate the headingline elements
|
36
|
+
$h1-mob : $font-size-mob * 2.25;
|
37
|
+
$h2-mob : $font-size-mob * 1.5 ;
|
38
|
+
$h3-mob : $font-size-mob * 1.44 ;
|
39
|
+
$h4-mob : $font-size-mob * 1.0 ;
|
40
|
+
$h5-mob : $font-size-mob / 1.5 ;
|
41
|
+
$h6-mob : $font-size-mob / 2.25 ;
|
42
|
+
|
43
|
+
|
44
|
+
// 3- Functions
|
45
|
+
//---------------------------------------------------
|
46
|
+
|
47
|
+
// html font size in %
|
48
|
+
@function font-html($font-size,$base:16){
|
49
|
+
@return ($base / $font-size) * 100%;
|
50
|
+
}
|
51
|
+
|
52
|
+
// px function
|
53
|
+
@function px($font-size){
|
54
|
+
@return $font-size +px;
|
55
|
+
}
|
56
|
+
|
57
|
+
// rem function
|
58
|
+
@function rem($font-size,$base:16){
|
59
|
+
@return ($font-size / $base) *1rem;
|
60
|
+
}
|
61
|
+
|
62
|
+
//---------------------------------------------------
|
63
|
+
|
64
|
+
// 4- placeholders
|
65
|
+
//---------------------------------------------------
|
66
|
+
%head-family{
|
67
|
+
font-family: 'Myriad Pro',"Arial Narrow",Arial,sans-serif;
|
68
|
+
color: #033649;
|
69
|
+
text-transform :capitalize;
|
70
|
+
letter-spacing : px(-1);
|
71
|
+
text-shadow: 0 1px 1px rgba(255,255,255,0.6);
|
72
|
+
font-weight: 700;
|
73
|
+
line-height: 1.1;
|
74
|
+
}
|
75
|
+
|
76
|
+
%margin{
|
77
|
+
margin: 0 0 px($font-size) 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
|
81
|
+
// 5- Mixin
|
82
|
+
//---------------------------------------------------
|
83
|
+
|
84
|
+
// html font size in % - the root of typo system, because we are going to use rem size for the font
|
85
|
+
@mixin html($font-size,$base:16){
|
86
|
+
font-size: font-html($font-size,$base);
|
87
|
+
-webkit-font-smoothing:antialiased !important;
|
88
|
+
}
|
89
|
+
|
90
|
+
// body and headline font size and font-family
|
91
|
+
@mixin body-headline($font-size,$base:16){
|
92
|
+
body{
|
93
|
+
font-family: Helvetica, Arial, sans-serif;
|
94
|
+
font-size: px($font-size);
|
95
|
+
font-size: rem($font-size,$base);
|
96
|
+
line-height: $line-height / $font-size ;
|
97
|
+
color: #031634;
|
98
|
+
}
|
99
|
+
|
100
|
+
h1, .h1{
|
101
|
+
font-size: px($h1);
|
102
|
+
font-size: rem($h1,$base);
|
103
|
+
@extend %head-family;
|
104
|
+
}
|
105
|
+
h2, .h2{
|
106
|
+
font-size: px($h2);
|
107
|
+
font-size: rem($h2,$base);
|
108
|
+
@extend %head-family;
|
109
|
+
}
|
110
|
+
h3, .h3{
|
111
|
+
font-size: px($h3);
|
112
|
+
font-size: rem($h3,$base);
|
113
|
+
@extend %head-family;
|
114
|
+
}
|
115
|
+
h4, .h4{
|
116
|
+
font-size: px($h4);
|
117
|
+
font-size: rem($h4,$base);
|
118
|
+
@extend %head-family;
|
119
|
+
}
|
120
|
+
h5, .h5{
|
121
|
+
font-size: px($h5);
|
122
|
+
font-size: rem($h5,$base);
|
123
|
+
@extend %head-family;
|
124
|
+
}
|
125
|
+
h6, .h6{
|
126
|
+
font-size: px($h6);
|
127
|
+
font-size: rem($h6,$base);
|
128
|
+
@extend %head-family;
|
129
|
+
}
|
130
|
+
.lead{
|
131
|
+
font-size: px($font-size * 1.125);
|
132
|
+
font-size: rem(($font-size *1.125) ,$base);
|
133
|
+
font-weight: 700;
|
134
|
+
margin-left: auto;
|
135
|
+
margin-right: auto;
|
136
|
+
}
|
137
|
+
p{
|
138
|
+
@extend %margin;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
// define the link elements
|
143
|
+
@mixin link($color){
|
144
|
+
color : $color;
|
145
|
+
text-decoration: none;
|
146
|
+
&:visited{
|
147
|
+
text-decoration: none;
|
148
|
+
}
|
149
|
+
&:hover{
|
150
|
+
color : lighten($color,15%);
|
151
|
+
border-bottom: 1px solid lighten($color,15%);
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
// define the blockquote elements
|
156
|
+
@mixin blockquote($padding-left,$color){
|
157
|
+
border-left : 5px solid rgba(0, 0, 0, 0.1);
|
158
|
+
padding-left: px($padding-left);
|
159
|
+
color: $color;
|
160
|
+
}
|
161
|
+
|
162
|
+
// define pre,code, and kbd elements
|
163
|
+
@mixin pre(){
|
164
|
+
display: block;
|
165
|
+
padding: 1rem;
|
166
|
+
font-size: 1.3rem;
|
167
|
+
line-height: 1.43;
|
168
|
+
color: #031634;
|
169
|
+
word-break: break-all;
|
170
|
+
word-wrap: break-word;
|
171
|
+
background-color: #f5f5f5;
|
172
|
+
border: 1px solid #ccc;
|
173
|
+
border-radius: 4px;
|
174
|
+
}
|
175
|
+
|
176
|
+
@mixin code(){
|
177
|
+
padding: 2px 4px;
|
178
|
+
font-size: 90%;
|
179
|
+
color: #c7254e;
|
180
|
+
white-space: nowrap;
|
181
|
+
background-color: #f9f2f4;
|
182
|
+
border-radius: 4px;
|
183
|
+
}
|
184
|
+
|
185
|
+
@mixin kbd(){
|
186
|
+
padding: 2px 4px;
|
187
|
+
font-size: 90%;
|
188
|
+
color: #fff;
|
189
|
+
background-color:#033649;
|
190
|
+
border-radius: 3px;
|
191
|
+
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25);
|
192
|
+
|
193
|
+
}
|
194
|
+
|
195
|
+
@mixin mobile($fon-size-mob,$base:16){
|
196
|
+
body{
|
197
|
+
font-size: px($font-size-mob);
|
198
|
+
font-size: rem($font-size-mob,$base);
|
199
|
+
line-height: $line-height-mob / $font-size-mob;
|
200
|
+
}
|
201
|
+
|
202
|
+
h1, .h1{
|
203
|
+
font-size: px($h1-mob);
|
204
|
+
font-size: rem($h1-mob,$base);
|
205
|
+
|
206
|
+
}
|
207
|
+
h2, .h2{
|
208
|
+
font-size: px($h2-mob);
|
209
|
+
font-size: rem($h2-mob,$base);
|
210
|
+
|
211
|
+
}
|
212
|
+
h3, .h3{
|
213
|
+
font-size: px($h3-mob);
|
214
|
+
font-size: rem($h3-mob,$base);
|
215
|
+
|
216
|
+
}
|
217
|
+
h4, .h4{
|
218
|
+
font-size: px($h4-mob);
|
219
|
+
font-size: rem($h4-mob,$base);
|
220
|
+
|
221
|
+
}
|
222
|
+
h5, .h5{
|
223
|
+
font-size: px($h5-mob);
|
224
|
+
font-size: rem($h5-mob,$base);
|
225
|
+
|
226
|
+
}
|
227
|
+
h6, .h6{
|
228
|
+
font-size: px($h6-mob);
|
229
|
+
font-size: rem($h6-mob,$base);
|
230
|
+
|
231
|
+
}
|
232
|
+
.lead{
|
233
|
+
font-size: px($font-size-mob * 1.125);
|
234
|
+
font-size: rem(($font-size-mob *1.125) ,$base);
|
235
|
+
font-weight: 700;
|
236
|
+
margin-left: auto;
|
237
|
+
margin-right: auto;
|
238
|
+
}
|
239
|
+
|
240
|
+
p,ul,ol,blockquote,pre{
|
241
|
+
margin: 0 0 px($font-size-mob) 0;
|
242
|
+
}
|
243
|
+
|
244
|
+
}
|
@@ -0,0 +1,425 @@
|
|
1
|
+
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
|
2
|
+
|
3
|
+
/**
|
4
|
+
* 1. Set default font family to sans-serif.
|
5
|
+
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
6
|
+
* user zoom.
|
7
|
+
*/
|
8
|
+
|
9
|
+
html {
|
10
|
+
font-family: sans-serif; /* 1 */
|
11
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
12
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
13
|
+
}
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Remove default margin.
|
17
|
+
*/
|
18
|
+
|
19
|
+
body {
|
20
|
+
margin: 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
/* HTML5 display definitions
|
24
|
+
========================================================================== */
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
28
|
+
* Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox.
|
29
|
+
* Correct `block` display not defined for `main` in IE 11.
|
30
|
+
*/
|
31
|
+
|
32
|
+
article,
|
33
|
+
aside,
|
34
|
+
details,
|
35
|
+
figcaption,
|
36
|
+
figure,
|
37
|
+
footer,
|
38
|
+
header,
|
39
|
+
hgroup,
|
40
|
+
main,
|
41
|
+
nav,
|
42
|
+
section,
|
43
|
+
summary {
|
44
|
+
display: block;
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* 1. Correct `inline-block` display not defined in IE 8/9.
|
49
|
+
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
50
|
+
*/
|
51
|
+
|
52
|
+
audio,
|
53
|
+
canvas,
|
54
|
+
progress,
|
55
|
+
video {
|
56
|
+
display: inline-block; /* 1 */
|
57
|
+
vertical-align: baseline; /* 2 */
|
58
|
+
}
|
59
|
+
|
60
|
+
/**
|
61
|
+
* Prevent modern browsers from displaying `audio` without controls.
|
62
|
+
* Remove excess height in iOS 5 devices.
|
63
|
+
*/
|
64
|
+
|
65
|
+
audio:not([controls]) {
|
66
|
+
display: none;
|
67
|
+
height: 0;
|
68
|
+
}
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Address `[hidden]` styling not present in IE 8/9/10.
|
72
|
+
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
73
|
+
*/
|
74
|
+
|
75
|
+
[hidden],
|
76
|
+
template {
|
77
|
+
display: none;
|
78
|
+
}
|
79
|
+
|
80
|
+
/* Links
|
81
|
+
========================================================================== */
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Remove the gray background color from active links in IE 10.
|
85
|
+
*/
|
86
|
+
|
87
|
+
a {
|
88
|
+
background: transparent;
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Improve readability when focused and also mouse hovered in all browsers.
|
93
|
+
*/
|
94
|
+
|
95
|
+
a:active,
|
96
|
+
a:hover {
|
97
|
+
outline: 0;
|
98
|
+
}
|
99
|
+
|
100
|
+
/* Text-level semantics
|
101
|
+
========================================================================== */
|
102
|
+
|
103
|
+
/**
|
104
|
+
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
105
|
+
*/
|
106
|
+
|
107
|
+
abbr[title] {
|
108
|
+
border-bottom: 1px dotted;
|
109
|
+
}
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
113
|
+
*/
|
114
|
+
|
115
|
+
b,
|
116
|
+
strong {
|
117
|
+
font-weight: bold;
|
118
|
+
}
|
119
|
+
|
120
|
+
/**
|
121
|
+
* Address styling not present in Safari and Chrome.
|
122
|
+
*/
|
123
|
+
|
124
|
+
dfn {
|
125
|
+
font-style: italic;
|
126
|
+
}
|
127
|
+
|
128
|
+
/**
|
129
|
+
* Address variable `h1` font-size and margin within `section` and `article`
|
130
|
+
* contexts in Firefox 4+, Safari, and Chrome.
|
131
|
+
*/
|
132
|
+
|
133
|
+
h1 {
|
134
|
+
font-size: 2em;
|
135
|
+
margin: 0.67em 0;
|
136
|
+
}
|
137
|
+
|
138
|
+
/**
|
139
|
+
* Address styling not present in IE 8/9.
|
140
|
+
*/
|
141
|
+
|
142
|
+
mark {
|
143
|
+
background: #ff0;
|
144
|
+
color: #000;
|
145
|
+
}
|
146
|
+
|
147
|
+
/**
|
148
|
+
* Address inconsistent and variable font size in all browsers.
|
149
|
+
*/
|
150
|
+
|
151
|
+
small {
|
152
|
+
font-size: 80%;
|
153
|
+
}
|
154
|
+
|
155
|
+
/**
|
156
|
+
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
157
|
+
*/
|
158
|
+
|
159
|
+
sub,
|
160
|
+
sup {
|
161
|
+
font-size: 75%;
|
162
|
+
line-height: 0;
|
163
|
+
position: relative;
|
164
|
+
vertical-align: baseline;
|
165
|
+
}
|
166
|
+
|
167
|
+
sup {
|
168
|
+
top: -0.5em;
|
169
|
+
}
|
170
|
+
|
171
|
+
sub {
|
172
|
+
bottom: -0.25em;
|
173
|
+
}
|
174
|
+
|
175
|
+
/* Embedded content
|
176
|
+
========================================================================== */
|
177
|
+
|
178
|
+
/**
|
179
|
+
* Remove border when inside `a` element in IE 8/9/10.
|
180
|
+
*/
|
181
|
+
|
182
|
+
img {
|
183
|
+
border: 0;
|
184
|
+
}
|
185
|
+
|
186
|
+
/**
|
187
|
+
* Correct overflow not hidden in IE 9/10/11.
|
188
|
+
*/
|
189
|
+
|
190
|
+
svg:not(:root) {
|
191
|
+
overflow: hidden;
|
192
|
+
}
|
193
|
+
|
194
|
+
/* Grouping content
|
195
|
+
========================================================================== */
|
196
|
+
|
197
|
+
/**
|
198
|
+
* Address margin not present in IE 8/9 and Safari.
|
199
|
+
*/
|
200
|
+
|
201
|
+
figure {
|
202
|
+
margin: 1em 40px;
|
203
|
+
}
|
204
|
+
|
205
|
+
/**
|
206
|
+
* Address differences between Firefox and other browsers.
|
207
|
+
*/
|
208
|
+
|
209
|
+
hr {
|
210
|
+
-moz-box-sizing: content-box;
|
211
|
+
box-sizing: content-box;
|
212
|
+
height: 0;
|
213
|
+
}
|
214
|
+
|
215
|
+
/**
|
216
|
+
* Contain overflow in all browsers.
|
217
|
+
*/
|
218
|
+
|
219
|
+
pre {
|
220
|
+
overflow: auto;
|
221
|
+
}
|
222
|
+
|
223
|
+
/**
|
224
|
+
* Address odd `em`-unit font size rendering in all browsers.
|
225
|
+
*/
|
226
|
+
|
227
|
+
code,
|
228
|
+
kbd,
|
229
|
+
pre,
|
230
|
+
samp {
|
231
|
+
font-family: monospace, monospace;
|
232
|
+
font-size: 1em;
|
233
|
+
}
|
234
|
+
|
235
|
+
/* Forms
|
236
|
+
========================================================================== */
|
237
|
+
|
238
|
+
/**
|
239
|
+
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
240
|
+
* styling of `select`, unless a `border` property is set.
|
241
|
+
*/
|
242
|
+
|
243
|
+
/**
|
244
|
+
* 1. Correct color not being inherited.
|
245
|
+
* Known issue: affects color of disabled elements.
|
246
|
+
* 2. Correct font properties not being inherited.
|
247
|
+
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
248
|
+
*/
|
249
|
+
|
250
|
+
button,
|
251
|
+
input,
|
252
|
+
optgroup,
|
253
|
+
select,
|
254
|
+
textarea {
|
255
|
+
color: inherit; /* 1 */
|
256
|
+
font: inherit; /* 2 */
|
257
|
+
margin: 0; /* 3 */
|
258
|
+
}
|
259
|
+
|
260
|
+
/**
|
261
|
+
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
262
|
+
*/
|
263
|
+
|
264
|
+
button {
|
265
|
+
overflow: visible;
|
266
|
+
}
|
267
|
+
|
268
|
+
/**
|
269
|
+
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
270
|
+
* All other form control elements do not inherit `text-transform` values.
|
271
|
+
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
272
|
+
* Correct `select` style inheritance in Firefox.
|
273
|
+
*/
|
274
|
+
|
275
|
+
button,
|
276
|
+
select {
|
277
|
+
text-transform: none;
|
278
|
+
}
|
279
|
+
|
280
|
+
/**
|
281
|
+
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
282
|
+
* and `video` controls.
|
283
|
+
* 2. Correct inability to style clickable `input` types in iOS.
|
284
|
+
* 3. Improve usability and consistency of cursor style between image-type
|
285
|
+
* `input` and others.
|
286
|
+
*/
|
287
|
+
|
288
|
+
button,
|
289
|
+
html input[type="button"], /* 1 */
|
290
|
+
input[type="reset"],
|
291
|
+
input[type="submit"] {
|
292
|
+
-webkit-appearance: button; /* 2 */
|
293
|
+
cursor: pointer; /* 3 */
|
294
|
+
}
|
295
|
+
|
296
|
+
/**
|
297
|
+
* Re-set default cursor for disabled elements.
|
298
|
+
*/
|
299
|
+
|
300
|
+
button[disabled],
|
301
|
+
html input[disabled] {
|
302
|
+
cursor: default;
|
303
|
+
}
|
304
|
+
|
305
|
+
/**
|
306
|
+
* Remove inner padding and border in Firefox 4+.
|
307
|
+
*/
|
308
|
+
|
309
|
+
button::-moz-focus-inner,
|
310
|
+
input::-moz-focus-inner {
|
311
|
+
border: 0;
|
312
|
+
padding: 0;
|
313
|
+
}
|
314
|
+
|
315
|
+
/**
|
316
|
+
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
317
|
+
* the UA stylesheet.
|
318
|
+
*/
|
319
|
+
|
320
|
+
input {
|
321
|
+
line-height: normal;
|
322
|
+
}
|
323
|
+
|
324
|
+
/**
|
325
|
+
* It's recommended that you don't attempt to style these elements.
|
326
|
+
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
327
|
+
*
|
328
|
+
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
329
|
+
* 2. Remove excess padding in IE 8/9/10.
|
330
|
+
*/
|
331
|
+
|
332
|
+
input[type="checkbox"],
|
333
|
+
input[type="radio"] {
|
334
|
+
box-sizing: border-box; /* 1 */
|
335
|
+
padding: 0; /* 2 */
|
336
|
+
}
|
337
|
+
|
338
|
+
/**
|
339
|
+
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
340
|
+
* `font-size` values of the `input`, it causes the cursor style of the
|
341
|
+
* decrement button to change from `default` to `text`.
|
342
|
+
*/
|
343
|
+
|
344
|
+
input[type="number"]::-webkit-inner-spin-button,
|
345
|
+
input[type="number"]::-webkit-outer-spin-button {
|
346
|
+
height: auto;
|
347
|
+
}
|
348
|
+
|
349
|
+
/**
|
350
|
+
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
351
|
+
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
352
|
+
* (include `-moz` to future-proof).
|
353
|
+
*/
|
354
|
+
|
355
|
+
input[type="search"] {
|
356
|
+
-webkit-appearance: textfield; /* 1 */
|
357
|
+
-moz-box-sizing: content-box;
|
358
|
+
-webkit-box-sizing: content-box; /* 2 */
|
359
|
+
box-sizing: content-box;
|
360
|
+
}
|
361
|
+
|
362
|
+
/**
|
363
|
+
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
364
|
+
* Safari (but not Chrome) clips the cancel button when the search input has
|
365
|
+
* padding (and `textfield` appearance).
|
366
|
+
*/
|
367
|
+
|
368
|
+
input[type="search"]::-webkit-search-cancel-button,
|
369
|
+
input[type="search"]::-webkit-search-decoration {
|
370
|
+
-webkit-appearance: none;
|
371
|
+
}
|
372
|
+
|
373
|
+
/**
|
374
|
+
* Define consistent border, margin, and padding.
|
375
|
+
*/
|
376
|
+
|
377
|
+
fieldset {
|
378
|
+
border: 1px solid #c0c0c0;
|
379
|
+
margin: 0 2px;
|
380
|
+
padding: 0.35em 0.625em 0.75em;
|
381
|
+
}
|
382
|
+
|
383
|
+
/**
|
384
|
+
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
385
|
+
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
386
|
+
*/
|
387
|
+
|
388
|
+
legend {
|
389
|
+
border: 0; /* 1 */
|
390
|
+
padding: 0; /* 2 */
|
391
|
+
}
|
392
|
+
|
393
|
+
/**
|
394
|
+
* Remove default vertical scrollbar in IE 8/9/10/11.
|
395
|
+
*/
|
396
|
+
|
397
|
+
textarea {
|
398
|
+
overflow: auto;
|
399
|
+
}
|
400
|
+
|
401
|
+
/**
|
402
|
+
* Don't inherit the `font-weight` (applied by a rule above).
|
403
|
+
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
404
|
+
*/
|
405
|
+
|
406
|
+
optgroup {
|
407
|
+
font-weight: bold;
|
408
|
+
}
|
409
|
+
|
410
|
+
/* Tables
|
411
|
+
========================================================================== */
|
412
|
+
|
413
|
+
/**
|
414
|
+
* Remove most spacing between table cells.
|
415
|
+
*/
|
416
|
+
|
417
|
+
table {
|
418
|
+
border-collapse: collapse;
|
419
|
+
border-spacing: 0;
|
420
|
+
}
|
421
|
+
|
422
|
+
td,
|
423
|
+
th {
|
424
|
+
padding: 0;
|
425
|
+
}
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: flexi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- sass-flexi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-05-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: ''
|
42
|
+
email:
|
43
|
+
- araj@sass-flexi.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- .gitignore
|
49
|
+
- Gemfile
|
50
|
+
- LICENSE.txt
|
51
|
+
- README.md
|
52
|
+
- Rakefile
|
53
|
+
- flexi.gemspec
|
54
|
+
- lib/flexi.rb
|
55
|
+
- lib/flexi/version.rb
|
56
|
+
- stylesheets/_grid.scss
|
57
|
+
- stylesheets/_reset.scss
|
58
|
+
- stylesheets/_typo.scss
|
59
|
+
- stylesheets/flexi-grid/_mixin.scss
|
60
|
+
- stylesheets/flexi-typo/_mixin.scss
|
61
|
+
- stylesheets/normalize/_reset.scss
|
62
|
+
- stylesheets/sass-flexi.scss
|
63
|
+
homepage: http://sass-flexi.com
|
64
|
+
licenses:
|
65
|
+
- MIT
|
66
|
+
metadata: {}
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubyforge_project:
|
83
|
+
rubygems_version: 2.2.2
|
84
|
+
signing_key:
|
85
|
+
specification_version: 4
|
86
|
+
summary: flexi grids and flexi typography.
|
87
|
+
test_files: []
|