milligram 1.1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +40 -0
- data/Rakefile +33 -0
- data/bin/console +7 -0
- data/bin/setup +7 -0
- data/lib/milligram/engine.rb +4 -0
- data/lib/milligram/version.rb +3 -0
- data/lib/milligram.rb +5 -0
- data/milligram.gemspec +26 -0
- data/vendor/assets/stylesheets/milligram/_Base.sass +24 -0
- data/vendor/assets/stylesheets/milligram/_Blockquote.sass +12 -0
- data/vendor/assets/stylesheets/milligram/_Button.sass +78 -0
- data/vendor/assets/stylesheets/milligram/_Code.sass +23 -0
- data/vendor/assets/stylesheets/milligram/_Color.sass +9 -0
- data/vendor/assets/stylesheets/milligram/_Divider.sass +9 -0
- data/vendor/assets/stylesheets/milligram/_Form.sass +57 -0
- data/vendor/assets/stylesheets/milligram/_Grid.sass +160 -0
- data/vendor/assets/stylesheets/milligram/_Link.sass +10 -0
- data/vendor/assets/stylesheets/milligram/_List.sass +29 -0
- data/vendor/assets/stylesheets/milligram/_Spacing.sass +24 -0
- data/vendor/assets/stylesheets/milligram/_Table.sass +18 -0
- data/vendor/assets/stylesheets/milligram/_Typography.sass +67 -0
- data/vendor/assets/stylesheets/milligram/_Utility.sass +22 -0
- data/vendor/assets/stylesheets/milligram/milligram.sass +18 -0
- data/vendor/assets/stylesheets/milligram.scss +1 -0
- metadata +129 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c11087f8e88c5a150c4dcd598c7f13c2e4c7de39
|
4
|
+
data.tar.gz: 860cbd56821e38d6b8bc74246b0fcb3835837e8b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f1b37b203e6702d1c9d6ba6044f66baa7b98dbe0484997dc1cb7ebf9afd99a9ae39fb1a308a202dbd21bbeb3242bebc3b42ff9b7bcf18d948ba2a476aeea421a
|
7
|
+
data.tar.gz: 50cfae4002dced5be5effc8f3d1e5d2289e4f355d9c90c0295ebca356787d8f3ce78e59f8d989498eaa9c193bf22e4b678f3b08be0819272f1529855d9c5aa17
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Zoran
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# Milligram
|
2
|
+
|
3
|
+
[Milligram](https://milligram.github.io/) is a minimalist CSS framework. This gem packages the framework's assets for drop-in use in Rails applications.
|
4
|
+
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'milligram'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install milligram
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
Once installed, add the following to your `application.scss`:
|
25
|
+
|
26
|
+
```scss
|
27
|
+
@import "milligram";
|
28
|
+
```
|
29
|
+
|
30
|
+
Or, import components as needed:
|
31
|
+
|
32
|
+
```scss
|
33
|
+
@import "milligram/color";
|
34
|
+
@import "milligram/base";
|
35
|
+
@import "milligram/button";
|
36
|
+
```
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
require "milligram/version"
|
4
|
+
|
5
|
+
RSpec::Core::RakeTask.new(:spec)
|
6
|
+
|
7
|
+
task :default => :spec
|
8
|
+
|
9
|
+
namespace :milligram do
|
10
|
+
namespace :assets do
|
11
|
+
desc 'Update Milligram\'s assets.'
|
12
|
+
task update: :clean do
|
13
|
+
version = Milligram::VERSION.sub(/.\d+$/, '')
|
14
|
+
|
15
|
+
sh 'git clone git@github.com:milligram/milligram.git milligram_source'
|
16
|
+
sh "cd milligram_source && git checkout tags/v#{version}"
|
17
|
+
sh 'cp -R milligram_source/src/ vendor/assets/stylesheets/milligram/'
|
18
|
+
|
19
|
+
File.open('vendor/assets/stylesheets/milligram.scss', 'w') do |f|
|
20
|
+
f.write('@import "milligram/milligram.sass";')
|
21
|
+
end
|
22
|
+
|
23
|
+
puts "\n=*=*=*=*=*=*=*=*=*=*\n=* ASSETS UPDATED! *=\n=*=*=*=*=*=*=*=*=*=*\n"
|
24
|
+
end
|
25
|
+
|
26
|
+
desc 'Remove previous Milligram assets.'
|
27
|
+
task :clean do
|
28
|
+
sh 'rm -rf vendor'
|
29
|
+
sh 'rm -rf milligram_source'
|
30
|
+
sh 'mkdir -p vendor/assets/stylesheets/'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/bin/console
ADDED
data/bin/setup
ADDED
data/lib/milligram.rb
ADDED
data/milligram.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'milligram/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "milligram"
|
8
|
+
spec.version = Milligram::VERSION
|
9
|
+
spec.authors = ["Zoran"]
|
10
|
+
spec.email = ["zoran1991@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{A minimalist CSS framework.}
|
13
|
+
spec.description = %q{Milligram framework's assets packaged into a Ruby gem.}
|
14
|
+
spec.homepage = "https://github.com/zokioki/milligram-rb"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
25
|
+
spec.add_development_dependency "pry", "~> 0.10.3"
|
26
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
// Base
|
3
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––
|
4
|
+
|
5
|
+
// The base font-size is set at 62.5% for having the convenience
|
6
|
+
// of sizing rems in a way that is similar to using px. 1.6rem=16px
|
7
|
+
html
|
8
|
+
box-sizing: border-box
|
9
|
+
font-size: 62.5%
|
10
|
+
|
11
|
+
// Default body styles
|
12
|
+
body
|
13
|
+
color: $color-secondary
|
14
|
+
font-family: 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif
|
15
|
+
font-size: 1.6em // currently ems cause chrome bug misinterpreting rems on body element
|
16
|
+
font-weight: 300
|
17
|
+
letter-spacing: .01em
|
18
|
+
line-height: 1.6
|
19
|
+
|
20
|
+
// Set box-sizing globally to handle padding and border widths
|
21
|
+
*,
|
22
|
+
*:after,
|
23
|
+
*:before
|
24
|
+
box-sizing: inherit
|
@@ -0,0 +1,78 @@
|
|
1
|
+
|
2
|
+
// Button
|
3
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––
|
4
|
+
|
5
|
+
.button,
|
6
|
+
button,
|
7
|
+
input[type='button'],
|
8
|
+
input[type='reset'],
|
9
|
+
input[type='submit']
|
10
|
+
background-color: $color-primary
|
11
|
+
border: .1rem solid $color-primary
|
12
|
+
border-radius: .4rem
|
13
|
+
color: $color-initial
|
14
|
+
cursor: pointer
|
15
|
+
display: inline-block
|
16
|
+
font-size: 1.1rem
|
17
|
+
font-weight: 700
|
18
|
+
height: 3.8rem
|
19
|
+
letter-spacing: .1rem
|
20
|
+
line-height: 3.8rem
|
21
|
+
padding: 0 3.0rem
|
22
|
+
text-align: center
|
23
|
+
text-decoration: none
|
24
|
+
text-transform: uppercase
|
25
|
+
white-space: nowrap
|
26
|
+
|
27
|
+
&:hover,
|
28
|
+
&:focus
|
29
|
+
background-color: $color-secondary
|
30
|
+
border-color: $color-secondary
|
31
|
+
color: $color-initial
|
32
|
+
outline: 0
|
33
|
+
|
34
|
+
&.button-disabled,
|
35
|
+
&[disabled]
|
36
|
+
opacity: .5
|
37
|
+
cursor: default
|
38
|
+
|
39
|
+
&:hover,
|
40
|
+
&:focus
|
41
|
+
background-color: $color-primary
|
42
|
+
border-color: $color-primary
|
43
|
+
|
44
|
+
&.button-outline
|
45
|
+
color: $color-primary
|
46
|
+
background-color: transparent
|
47
|
+
|
48
|
+
&:hover,
|
49
|
+
&:focus
|
50
|
+
color: $color-secondary
|
51
|
+
background-color: transparent
|
52
|
+
border-color: $color-secondary
|
53
|
+
|
54
|
+
&.button-disabled,
|
55
|
+
&[disabled]
|
56
|
+
|
57
|
+
&:hover,
|
58
|
+
&:focus
|
59
|
+
color: $color-primary
|
60
|
+
border-color: inherit
|
61
|
+
|
62
|
+
&.button-clear
|
63
|
+
color: $color-primary
|
64
|
+
background-color: transparent
|
65
|
+
border-color: transparent
|
66
|
+
|
67
|
+
&:hover,
|
68
|
+
&:focus
|
69
|
+
color: $color-secondary
|
70
|
+
background-color: transparent
|
71
|
+
border-color: transparent
|
72
|
+
|
73
|
+
&.button-disabled,
|
74
|
+
&[disabled]
|
75
|
+
|
76
|
+
&:hover,
|
77
|
+
&:focus
|
78
|
+
color: $color-primary
|
@@ -0,0 +1,23 @@
|
|
1
|
+
|
2
|
+
// Code
|
3
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––
|
4
|
+
|
5
|
+
code
|
6
|
+
background: $color-tertiary
|
7
|
+
border-radius: .4rem
|
8
|
+
font-size: 86%
|
9
|
+
padding: .2rem .5rem
|
10
|
+
margin: 0 .2rem
|
11
|
+
white-space: nowrap
|
12
|
+
|
13
|
+
pre
|
14
|
+
background: $color-tertiary
|
15
|
+
border-left: .3rem solid $color-primary
|
16
|
+
font-family: 'Menlo', 'Consolas', 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Monaco', monospace
|
17
|
+
|
18
|
+
& > code
|
19
|
+
background: transparent
|
20
|
+
border-radius: 0
|
21
|
+
display: block
|
22
|
+
padding: 1rem 1.5rem
|
23
|
+
white-space: pre
|
@@ -0,0 +1,57 @@
|
|
1
|
+
|
2
|
+
// Form
|
3
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––
|
4
|
+
|
5
|
+
input[type='email'],
|
6
|
+
input[type='number'],
|
7
|
+
input[type='password'],
|
8
|
+
input[type='search'],
|
9
|
+
input[type='tel'],
|
10
|
+
input[type='text'],
|
11
|
+
input[type='url'],
|
12
|
+
textarea,
|
13
|
+
select
|
14
|
+
appearance: none // Removes awkward default styles on some inputs for iOS
|
15
|
+
background-color: transparent
|
16
|
+
border: .1rem solid $color-quaternary
|
17
|
+
border-radius: .4rem
|
18
|
+
box-shadow: none
|
19
|
+
height: 3.8rem
|
20
|
+
padding: .6rem 1.0rem // The .6rem vertically centers text on FF, ignored by Webkit
|
21
|
+
width: 100%
|
22
|
+
|
23
|
+
&:focus
|
24
|
+
border: .1rem solid $color-primary
|
25
|
+
outline: 0
|
26
|
+
|
27
|
+
select
|
28
|
+
padding: 0.6rem 3rem 0.6rem 1rem
|
29
|
+
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGF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gICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iOTAzIiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iNTk0IiAgICAgaWQ9Im5hbWVkdmlldzMwMzUiICAgICBzaG93Z3JpZD0idHJ1ZSIgICAgIGlua3NjYXBlOnpvb209IjEyLjEzNzkzMSIgICAgIGlua3NjYXBlOmN4PSItNC4xMTkzMTgyZS0wOCIgICAgIGlua3NjYXBlOmN5PSI3IiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjUwMiIgICAgIGlua3NjYXBlOndpbmRvdy15PSIzMDIiICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIwIiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0iTGF5ZXJfMSI+PGlua3NjYXBlOmdyaWQgICAgICAgdHlwZT0ieHlncmlkIiAgICAgICBpZD0iZ3JpZDMwNDEiIC8+PC9zb2RpcG9kaTpuYW1lZHZpZXc+PHBvbHlnb24gICAgIHBvaW50cz0iMjguODUsMCAwLjE1LDAgMTQuNSwxNC4zNSAiICAgICBpZD0icG9seWdvbjMwMzMiICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLjM1NDExMzg3LDAsMCwwLjQ4MzI5MTEsOS4zMjQxNTUzLDMuNjI1KSIgICAgIHN0eWxlPSJmaWxsOiM5YjRkY2Y7ZmlsbC1vcGFjaXR5OjEiIC8+PC9zdmc+)
|
33
|
+
|
34
|
+
textarea
|
35
|
+
padding-bottom: .6rem
|
36
|
+
padding-top: .6rem
|
37
|
+
min-height: 6.5rem
|
38
|
+
|
39
|
+
label,
|
40
|
+
legend
|
41
|
+
font-size: 1.6rem
|
42
|
+
font-weight: 700
|
43
|
+
display: block
|
44
|
+
margin-bottom: .5rem
|
45
|
+
|
46
|
+
fieldset
|
47
|
+
border-width: 0
|
48
|
+
padding: 0
|
49
|
+
|
50
|
+
input[type='checkbox'],
|
51
|
+
input[type='radio']
|
52
|
+
display: inline
|
53
|
+
|
54
|
+
.label-inline
|
55
|
+
font-weight: normal
|
56
|
+
display: inline-block
|
57
|
+
margin-left: .5rem
|
@@ -0,0 +1,160 @@
|
|
1
|
+
|
2
|
+
// Grid
|
3
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––
|
4
|
+
|
5
|
+
// .container is main centered wrapper with a max width of 1120rem (1120px)
|
6
|
+
.container
|
7
|
+
margin: 0 auto
|
8
|
+
max-width: 112.0rem
|
9
|
+
padding: 0 2.0rem
|
10
|
+
position: relative
|
11
|
+
width: 100%
|
12
|
+
|
13
|
+
// Using flexbox for the grid, inspired by Philip Walton:
|
14
|
+
// http://philipwalton.github.io/solved-by-flexbox/demos/grids/
|
15
|
+
// By default each .column within a .row will evenly take up
|
16
|
+
// available width, and the height of each .column with take
|
17
|
+
// up the height of the tallest .column in the same .row.
|
18
|
+
.row
|
19
|
+
display: flex
|
20
|
+
flex-direction: column
|
21
|
+
padding: 0
|
22
|
+
width: 100%
|
23
|
+
|
24
|
+
.row-wrap
|
25
|
+
flex-wrap: wrap
|
26
|
+
|
27
|
+
.row-no-padding
|
28
|
+
padding: 0
|
29
|
+
|
30
|
+
&> .column
|
31
|
+
padding: 0
|
32
|
+
|
33
|
+
// & + .row
|
34
|
+
// margin-top: -.5rem
|
35
|
+
// padding-top: 0
|
36
|
+
|
37
|
+
// Vertically Align Columns
|
38
|
+
// .row-* vertically aligns every .col in the .row
|
39
|
+
.row-top
|
40
|
+
align-items: flex-start
|
41
|
+
|
42
|
+
.row-bottom
|
43
|
+
align-items: flex-end
|
44
|
+
|
45
|
+
.row-center
|
46
|
+
align-items: center
|
47
|
+
|
48
|
+
.row-stretch
|
49
|
+
align-items: stretch
|
50
|
+
|
51
|
+
.row-baseline
|
52
|
+
align-items: baseline
|
53
|
+
|
54
|
+
.column
|
55
|
+
display: block
|
56
|
+
flex: 1
|
57
|
+
margin-left: 0
|
58
|
+
max-width: 100%
|
59
|
+
width: 100%
|
60
|
+
|
61
|
+
// .column-* vertically aligns an individual .column
|
62
|
+
.col-top
|
63
|
+
align-self: flex-start
|
64
|
+
|
65
|
+
.col-bottom
|
66
|
+
align-self: flex-end
|
67
|
+
|
68
|
+
.col-center
|
69
|
+
align-self: center
|
70
|
+
|
71
|
+
// Column Offsets
|
72
|
+
&.column-offset-10
|
73
|
+
margin-left: 10%
|
74
|
+
|
75
|
+
&.column-offset-20
|
76
|
+
margin-left: 20%
|
77
|
+
|
78
|
+
&.column-offset-25
|
79
|
+
margin-left: 25%
|
80
|
+
|
81
|
+
&.column-offset-33,
|
82
|
+
&.column-offset-34
|
83
|
+
margin-left: 33.3333%
|
84
|
+
|
85
|
+
&.column-offset-50
|
86
|
+
margin-left: 50%
|
87
|
+
|
88
|
+
&.column-offset-66,
|
89
|
+
&.column-offset-67
|
90
|
+
margin-left: 66.6666%
|
91
|
+
|
92
|
+
&.column-offset-75
|
93
|
+
margin-left: 75%
|
94
|
+
|
95
|
+
&.column-offset-80
|
96
|
+
margin-left: 80%
|
97
|
+
|
98
|
+
&.column-offset-90
|
99
|
+
margin-left: 90%
|
100
|
+
|
101
|
+
// Explicit Column Percent Sizes
|
102
|
+
// By default each grid column will evenly distribute
|
103
|
+
// across the grid. However, you can specify individual
|
104
|
+
// columns to take up a certain size of the available area
|
105
|
+
&.column-10
|
106
|
+
flex: 0 0 10%
|
107
|
+
max-width: 10%
|
108
|
+
|
109
|
+
&.column-20
|
110
|
+
flex: 0 0 20%
|
111
|
+
max-width: 20%
|
112
|
+
|
113
|
+
&.column-25
|
114
|
+
flex: 0 0 25%
|
115
|
+
max-width: 25%
|
116
|
+
|
117
|
+
&.column-33,
|
118
|
+
&.column-34
|
119
|
+
flex: 0 0 33.3333%
|
120
|
+
max-width: 33.3333%
|
121
|
+
|
122
|
+
&.column-40
|
123
|
+
flex: 0 0 40%
|
124
|
+
max-width: 40%
|
125
|
+
|
126
|
+
&.column-50
|
127
|
+
flex: 0 0 50%
|
128
|
+
max-width: 50%
|
129
|
+
|
130
|
+
&.column-60
|
131
|
+
flex: 0 0 60%
|
132
|
+
max-width: 60%
|
133
|
+
|
134
|
+
&.column-66, &.column-67
|
135
|
+
flex: 0 0 66.6666%
|
136
|
+
max-width: 66.6666%
|
137
|
+
|
138
|
+
&.column-75
|
139
|
+
flex: 0 0 75%
|
140
|
+
max-width: 75%
|
141
|
+
|
142
|
+
&.column-80
|
143
|
+
flex: 0 0 80%
|
144
|
+
max-width: 80%
|
145
|
+
|
146
|
+
&.column-90
|
147
|
+
flex: 0 0 90%
|
148
|
+
max-width: 90%
|
149
|
+
|
150
|
+
// Larger than mobile screen
|
151
|
+
@media (min-width: 40.0rem)
|
152
|
+
|
153
|
+
.row
|
154
|
+
flex-direction: row
|
155
|
+
margin-left: -1.0rem
|
156
|
+
width: calc(100% + 2.0rem)
|
157
|
+
|
158
|
+
.column
|
159
|
+
margin-bottom: inherit
|
160
|
+
padding: 0 1.0rem
|
@@ -0,0 +1,29 @@
|
|
1
|
+
|
2
|
+
// List
|
3
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––
|
4
|
+
|
5
|
+
dl,
|
6
|
+
ol,
|
7
|
+
ul
|
8
|
+
margin-top: 0
|
9
|
+
padding-left: 0
|
10
|
+
|
11
|
+
dl
|
12
|
+
ul,
|
13
|
+
ol
|
14
|
+
font-size: 90%
|
15
|
+
margin: 1.5rem 0 1.5rem 3.0rem
|
16
|
+
|
17
|
+
dl
|
18
|
+
list-style: none
|
19
|
+
|
20
|
+
ul
|
21
|
+
list-style: circle inside
|
22
|
+
|
23
|
+
ol
|
24
|
+
list-style: decimal inside
|
25
|
+
|
26
|
+
dt,
|
27
|
+
dd,
|
28
|
+
li
|
29
|
+
margin-bottom: 1.0rem
|
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
// Spacing
|
3
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––
|
4
|
+
|
5
|
+
.button,
|
6
|
+
button
|
7
|
+
margin-bottom: 1rem
|
8
|
+
|
9
|
+
input,
|
10
|
+
textarea,
|
11
|
+
select,
|
12
|
+
fieldset
|
13
|
+
margin-bottom: 1.5rem
|
14
|
+
|
15
|
+
pre,
|
16
|
+
blockquote,
|
17
|
+
dl,
|
18
|
+
figure,
|
19
|
+
table,
|
20
|
+
p,
|
21
|
+
ul,
|
22
|
+
ol,
|
23
|
+
form
|
24
|
+
margin-bottom: 2.5rem
|
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
// Table
|
3
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––
|
4
|
+
|
5
|
+
table
|
6
|
+
width: 100%
|
7
|
+
|
8
|
+
th,
|
9
|
+
td
|
10
|
+
border-bottom: .1rem solid #e1e1e1
|
11
|
+
padding: 1.2rem 1.5rem
|
12
|
+
text-align: left
|
13
|
+
|
14
|
+
&:first-child
|
15
|
+
padding-left: 0
|
16
|
+
|
17
|
+
&:last-child
|
18
|
+
padding-right: 0
|
@@ -0,0 +1,67 @@
|
|
1
|
+
|
2
|
+
// Typography
|
3
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––
|
4
|
+
|
5
|
+
p
|
6
|
+
margin-top: 0
|
7
|
+
|
8
|
+
h1,
|
9
|
+
h2,
|
10
|
+
h3,
|
11
|
+
h4,
|
12
|
+
h5,
|
13
|
+
h6
|
14
|
+
font-weight: 300
|
15
|
+
margin-bottom: 2.0rem
|
16
|
+
margin-top: 0
|
17
|
+
|
18
|
+
h1
|
19
|
+
font-size: 4.0rem
|
20
|
+
letter-spacing: -.1rem
|
21
|
+
line-height: 1.2
|
22
|
+
|
23
|
+
h2
|
24
|
+
font-size: 3.6rem
|
25
|
+
letter-spacing: -.1rem
|
26
|
+
line-height: 1.25
|
27
|
+
|
28
|
+
h3
|
29
|
+
font-size: 3.0rem
|
30
|
+
letter-spacing: -.1rem
|
31
|
+
line-height: 1.3
|
32
|
+
|
33
|
+
h4
|
34
|
+
font-size: 2.4rem
|
35
|
+
letter-spacing: -.08rem
|
36
|
+
line-height: 1.35
|
37
|
+
|
38
|
+
h5
|
39
|
+
font-size: 1.8rem
|
40
|
+
letter-spacing: -.05rem
|
41
|
+
line-height: 1.5
|
42
|
+
|
43
|
+
h6
|
44
|
+
font-size: 1.6rem
|
45
|
+
letter-spacing: 0
|
46
|
+
line-height: 1.4
|
47
|
+
|
48
|
+
// Larger than mobile screen
|
49
|
+
@media (min-width: 40.0rem)
|
50
|
+
|
51
|
+
h1
|
52
|
+
font-size: 5.0rem
|
53
|
+
|
54
|
+
h2
|
55
|
+
font-size: 4.2rem
|
56
|
+
|
57
|
+
h3
|
58
|
+
font-size: 3.6rem
|
59
|
+
|
60
|
+
h4
|
61
|
+
font-size: 3.0rem
|
62
|
+
|
63
|
+
h5
|
64
|
+
font-size: 2.4rem
|
65
|
+
|
66
|
+
h6
|
67
|
+
font-size: 1.5rem
|
@@ -0,0 +1,22 @@
|
|
1
|
+
|
2
|
+
// Utility
|
3
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––
|
4
|
+
|
5
|
+
// Float either direction
|
6
|
+
.float-right
|
7
|
+
float: right
|
8
|
+
|
9
|
+
.float-left
|
10
|
+
float: left
|
11
|
+
|
12
|
+
// Clear a float with .clearfix
|
13
|
+
.clearfix
|
14
|
+
*zoom: 1
|
15
|
+
|
16
|
+
&:after,
|
17
|
+
&:before
|
18
|
+
content: ''
|
19
|
+
display: table
|
20
|
+
|
21
|
+
&:after
|
22
|
+
clear: both
|
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
// Sass Modules
|
3
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––
|
4
|
+
|
5
|
+
@import Color
|
6
|
+
@import Base
|
7
|
+
@import Blockquote
|
8
|
+
@import Button
|
9
|
+
@import Code
|
10
|
+
@import Divider
|
11
|
+
@import Form
|
12
|
+
@import Grid
|
13
|
+
@import Link
|
14
|
+
@import List
|
15
|
+
@import Spacing
|
16
|
+
@import Table
|
17
|
+
@import Typography
|
18
|
+
@import Utility
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "milligram/milligram.sass";
|
metadata
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: milligram
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Zoran
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-07-13 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.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.10.3
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.10.3
|
69
|
+
description: Milligram framework's assets packaged into a Ruby gem.
|
70
|
+
email:
|
71
|
+
- zoran1991@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
|
+
- Gemfile
|
80
|
+
- LICENSE.txt
|
81
|
+
- README.md
|
82
|
+
- Rakefile
|
83
|
+
- bin/console
|
84
|
+
- bin/setup
|
85
|
+
- lib/milligram.rb
|
86
|
+
- lib/milligram/engine.rb
|
87
|
+
- lib/milligram/version.rb
|
88
|
+
- milligram.gemspec
|
89
|
+
- vendor/assets/stylesheets/milligram.scss
|
90
|
+
- vendor/assets/stylesheets/milligram/_Base.sass
|
91
|
+
- vendor/assets/stylesheets/milligram/_Blockquote.sass
|
92
|
+
- vendor/assets/stylesheets/milligram/_Button.sass
|
93
|
+
- vendor/assets/stylesheets/milligram/_Code.sass
|
94
|
+
- vendor/assets/stylesheets/milligram/_Color.sass
|
95
|
+
- vendor/assets/stylesheets/milligram/_Divider.sass
|
96
|
+
- vendor/assets/stylesheets/milligram/_Form.sass
|
97
|
+
- vendor/assets/stylesheets/milligram/_Grid.sass
|
98
|
+
- vendor/assets/stylesheets/milligram/_Link.sass
|
99
|
+
- vendor/assets/stylesheets/milligram/_List.sass
|
100
|
+
- vendor/assets/stylesheets/milligram/_Spacing.sass
|
101
|
+
- vendor/assets/stylesheets/milligram/_Table.sass
|
102
|
+
- vendor/assets/stylesheets/milligram/_Typography.sass
|
103
|
+
- vendor/assets/stylesheets/milligram/_Utility.sass
|
104
|
+
- vendor/assets/stylesheets/milligram/milligram.sass
|
105
|
+
homepage: https://github.com/zokioki/milligram-rb
|
106
|
+
licenses:
|
107
|
+
- MIT
|
108
|
+
metadata: {}
|
109
|
+
post_install_message:
|
110
|
+
rdoc_options: []
|
111
|
+
require_paths:
|
112
|
+
- lib
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 2.5.1
|
126
|
+
signing_key:
|
127
|
+
specification_version: 4
|
128
|
+
summary: A minimalist CSS framework.
|
129
|
+
test_files: []
|