dream-theme 0.1.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/LICENSE.txt +21 -0
- data/README.md +48 -0
- data/_includes/head.html +17 -0
- data/_includes/navigation.html +17 -0
- data/_layouts/home.html +29 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +16 -0
- data/_sass/base/_base.scss +14 -0
- data/_sass/base/_buttons.scss +43 -0
- data/_sass/base/_forms.scss +95 -0
- data/_sass/base/_layout.scss +18 -0
- data/_sass/base/_lists.scss +19 -0
- data/_sass/base/_media.scss +9 -0
- data/_sass/base/_tables.scss +29 -0
- data/_sass/base/_typography.scss +45 -0
- data/_sass/base/_variables.scss +41 -0
- data/_sass/bourbon/_bourbon.scss +54 -0
- data/_sass/bourbon/bourbon/helpers/_buttons-list.scss +14 -0
- data/_sass/bourbon/bourbon/helpers/_scales.scss +27 -0
- data/_sass/bourbon/bourbon/helpers/_text-inputs-list.scss +26 -0
- data/_sass/bourbon/bourbon/library/_border-color.scss +26 -0
- data/_sass/bourbon/bourbon/library/_border-radius.scss +85 -0
- data/_sass/bourbon/bourbon/library/_border-style.scss +25 -0
- data/_sass/bourbon/bourbon/library/_border-width.scss +25 -0
- data/_sass/bourbon/bourbon/library/_buttons.scss +84 -0
- data/_sass/bourbon/bourbon/library/_clearfix.scss +25 -0
- data/_sass/bourbon/bourbon/library/_contrast-switch.scss +81 -0
- data/_sass/bourbon/bourbon/library/_ellipsis.scss +36 -0
- data/_sass/bourbon/bourbon/library/_font-face.scss +65 -0
- data/_sass/bourbon/bourbon/library/_font-stacks.scss +249 -0
- data/_sass/bourbon/bourbon/library/_hide-text.scss +24 -0
- data/_sass/bourbon/bourbon/library/_hide-visually.scss +70 -0
- data/_sass/bourbon/bourbon/library/_margin.scss +37 -0
- data/_sass/bourbon/bourbon/library/_modular-scale.scss +120 -0
- data/_sass/bourbon/bourbon/library/_overflow-wrap.scss +24 -0
- data/_sass/bourbon/bourbon/library/_padding.scss +36 -0
- data/_sass/bourbon/bourbon/library/_position.scss +62 -0
- data/_sass/bourbon/bourbon/library/_prefixer.scss +37 -0
- data/_sass/bourbon/bourbon/library/_shade.scss +32 -0
- data/_sass/bourbon/bourbon/library/_size.scss +50 -0
- data/_sass/bourbon/bourbon/library/_strip-unit.scss +17 -0
- data/_sass/bourbon/bourbon/library/_text-inputs.scss +163 -0
- data/_sass/bourbon/bourbon/library/_timing-functions.scss +38 -0
- data/_sass/bourbon/bourbon/library/_tint.scss +32 -0
- data/_sass/bourbon/bourbon/library/_triangle.scss +82 -0
- data/_sass/bourbon/bourbon/library/_value-prefixer.scss +37 -0
- data/_sass/bourbon/bourbon/settings/_settings.scss +75 -0
- data/_sass/bourbon/bourbon/utilities/_assign-inputs.scss +28 -0
- data/_sass/bourbon/bourbon/utilities/_compact-shorthand.scss +39 -0
- data/_sass/bourbon/bourbon/utilities/_contrast-ratio.scss +31 -0
- data/_sass/bourbon/bourbon/utilities/_directional-property.scss +70 -0
- data/_sass/bourbon/bourbon/utilities/_fetch-bourbon-setting.scss +16 -0
- data/_sass/bourbon/bourbon/utilities/_font-source-declaration.scss +51 -0
- data/_sass/bourbon/bourbon/utilities/_gamma.scss +21 -0
- data/_sass/bourbon/bourbon/utilities/_lightness.scss +24 -0
- data/_sass/bourbon/bourbon/utilities/_unpack-shorthand.scss +29 -0
- data/_sass/bourbon/bourbon/validators/_contains-falsy.scss +20 -0
- data/_sass/bourbon/bourbon/validators/_contains.scss +26 -0
- data/_sass/bourbon/bourbon/validators/_is-color.scss +13 -0
- data/_sass/bourbon/bourbon/validators/_is-length.scss +15 -0
- data/_sass/bourbon/bourbon/validators/_is-number.scss +15 -0
- data/_sass/bourbon/bourbon/validators/_is-size.scss +18 -0
- data/_sass/home.scss +55 -0
- data/_sass/main.scss +73 -0
- data/_sass/navigation.scss +45 -0
- data/_sass/neat/_neat.scss +26 -0
- data/_sass/neat/neat/functions/_neat-append-grid-visual.scss +21 -0
- data/_sass/neat/neat/functions/_neat-column-default.scss +23 -0
- data/_sass/neat/neat/functions/_neat-column-ratio.scss +24 -0
- data/_sass/neat/neat/functions/_neat-column-width.scss +25 -0
- data/_sass/neat/neat/functions/_neat-float-direction.scss +22 -0
- data/_sass/neat/neat/functions/_neat-merge-defaults.scss +23 -0
- data/_sass/neat/neat/functions/_neat-opposite-direction.scss +22 -0
- data/_sass/neat/neat/functions/_neat-parse-columns.scss +22 -0
- data/_sass/neat/neat/functions/_neat-parse-media.scss +20 -0
- data/_sass/neat/neat/functions/_retrieve-neat-settings.scss +19 -0
- data/_sass/neat/neat/mixins/_grid-collapse.scss +35 -0
- data/_sass/neat/neat/mixins/_grid-column.scss +39 -0
- data/_sass/neat/neat/mixins/_grid-container.scss +31 -0
- data/_sass/neat/neat/mixins/_grid-media.scss +67 -0
- data/_sass/neat/neat/mixins/_grid-push.scss +37 -0
- data/_sass/neat/neat/mixins/_grid-shift.scss +36 -0
- data/_sass/neat/neat/mixins/_grid-visual.scss +41 -0
- data/_sass/neat/neat/settings/_settings.scss +74 -0
- data/_sass/post.scss +24 -0
- data/assets/Linkedin.svg +17 -0
- data/assets/Twitter.svg +18 -0
- data/assets/github.png +0 -0
- data/assets/gitlab.svg +53 -0
- data/assets/icon.jpg +0 -0
- data/assets/icon.svg +95 -0
- data/assets/linkedin.png +0 -0
- data/assets/styles.scss +4 -0
- metadata +179 -0
data/_sass/main.scss
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
@import "neat/neat";
|
2
|
+
@import "bourbon/bourbon";
|
3
|
+
@import "base/base";
|
4
|
+
|
5
|
+
|
6
|
+
$primary-font: 'Merriweather', serif;
|
7
|
+
$primary-color: #FF5600;
|
8
|
+
$primary-font-color: #333;
|
9
|
+
|
10
|
+
$neat-grid: (
|
11
|
+
columns: 12,
|
12
|
+
gutter: 20px,
|
13
|
+
);
|
14
|
+
|
15
|
+
$tablet-grid: (
|
16
|
+
columns: 12,
|
17
|
+
gutter: 20px,
|
18
|
+
media: "(max-width: 1200px)",
|
19
|
+
);
|
20
|
+
|
21
|
+
$phone-grid: (
|
22
|
+
columns: 12,
|
23
|
+
gutter: 20px,
|
24
|
+
media: 600,
|
25
|
+
);
|
26
|
+
|
27
|
+
.grid-container{
|
28
|
+
@include grid-container;
|
29
|
+
max-width: 1500;
|
30
|
+
margin: 0 auto;
|
31
|
+
}
|
32
|
+
|
33
|
+
.full-width {
|
34
|
+
@include grid-column(12);
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
.half-width {
|
39
|
+
@include grid-column(6);
|
40
|
+
|
41
|
+
|
42
|
+
@include grid-media($tablet-grid){
|
43
|
+
@include grid-column(12);
|
44
|
+
}
|
45
|
+
|
46
|
+
@include grid-media($phone-grid){
|
47
|
+
@include grid-column(12);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
.quarter-width {
|
54
|
+
@include grid-column(3);
|
55
|
+
|
56
|
+
@include grid-media($tablet-grid){
|
57
|
+
@include grid-column(6);
|
58
|
+
}
|
59
|
+
|
60
|
+
@include grid-media($phone-grid){
|
61
|
+
@include grid-column(12);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
|
66
|
+
body {
|
67
|
+
font-family: $primary-font;
|
68
|
+
}
|
69
|
+
|
70
|
+
|
71
|
+
@import "navigation";
|
72
|
+
@import "home";
|
73
|
+
@import "post";
|
@@ -0,0 +1,45 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
.navigation {
|
4
|
+
@include grid-container;
|
5
|
+
@include grid-column(12);
|
6
|
+
height: 50px;
|
7
|
+
|
8
|
+
border-bottom: solid 1px #eee;
|
9
|
+
padding-top: 15px;
|
10
|
+
|
11
|
+
|
12
|
+
.name {
|
13
|
+
@include grid-column(3);
|
14
|
+
|
15
|
+
@include grid-media($phone-grid){
|
16
|
+
@include grid-column(12);
|
17
|
+
}
|
18
|
+
|
19
|
+
float: left;
|
20
|
+
|
21
|
+
.first {
|
22
|
+
color: $primary-color;
|
23
|
+
font-weight: 600;
|
24
|
+
}
|
25
|
+
.last {
|
26
|
+
color: #333;
|
27
|
+
}
|
28
|
+
|
29
|
+
}
|
30
|
+
|
31
|
+
.site-links{
|
32
|
+
float: right;
|
33
|
+
.site-link{
|
34
|
+
@include grid-column(5);
|
35
|
+
text-align:center;
|
36
|
+
|
37
|
+
a {
|
38
|
+
color: #333;
|
39
|
+
text-decoration: none;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
|
45
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
// Neat 2.1.0
|
3
|
+
// http://neat.bourbon.io
|
4
|
+
// Copyright 2012 thoughtbot, inc.
|
5
|
+
// MIT License
|
6
|
+
|
7
|
+
@import "neat/settings/settings";
|
8
|
+
|
9
|
+
@import "neat/functions/retrieve-neat-settings";
|
10
|
+
@import "neat/functions/neat-column-default";
|
11
|
+
@import "neat/functions/neat-column-width";
|
12
|
+
@import "neat/functions/neat-column-ratio";
|
13
|
+
@import "neat/functions/neat-float-direction";
|
14
|
+
@import "neat/functions/neat-merge-defaults";
|
15
|
+
@import "neat/functions/neat-opposite-direction";
|
16
|
+
@import "neat/functions/neat-parse-columns";
|
17
|
+
@import "neat/functions/neat-parse-media";
|
18
|
+
@import "neat/functions/neat-append-grid-visual";
|
19
|
+
|
20
|
+
@import "neat/mixins/grid-collapse";
|
21
|
+
@import "neat/mixins/grid-column";
|
22
|
+
@import "neat/mixins/grid-container";
|
23
|
+
@import "neat/mixins/grid-media";
|
24
|
+
@import "neat/mixins/grid-push";
|
25
|
+
@import "neat/mixins/grid-shift";
|
26
|
+
@import "neat/mixins/grid-visual";
|
@@ -0,0 +1,21 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Append attributes to a the `$_grid-visual` variable in `grid-visual` mixin
|
3
|
+
///
|
4
|
+
/// @argument {map} $grid
|
5
|
+
///
|
6
|
+
/// @argument {number (unitless) | null} $columns
|
7
|
+
///
|
8
|
+
/// @return {number}
|
9
|
+
///
|
10
|
+
/// @example scss
|
11
|
+
/// _neat-column-default($neat-grid, 4)
|
12
|
+
///
|
13
|
+
/// @access private
|
14
|
+
|
15
|
+
@function _neat-append-grid-visual($grid-visual-list, $attributes) {
|
16
|
+
@each $attribute in $attributes {
|
17
|
+
$grid-visual-list: append($grid-visual-list, $attribute, comma);
|
18
|
+
}
|
19
|
+
|
20
|
+
@return $grid-visual-list;
|
21
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Determine if a column count has been given.
|
3
|
+
/// If no columns have been given return the grid's total column count.
|
4
|
+
///
|
5
|
+
/// @argument {map} $grid
|
6
|
+
///
|
7
|
+
/// @argument {number (unitless) | null} $columns
|
8
|
+
///
|
9
|
+
/// @return {number}
|
10
|
+
///
|
11
|
+
/// @example scss
|
12
|
+
/// _neat-column-default($neat-grid, 4)
|
13
|
+
///
|
14
|
+
/// @access private
|
15
|
+
|
16
|
+
@function _neat-column-default($grid, $columns) {
|
17
|
+
@if $columns == null {
|
18
|
+
$_grid-columns: _retrieve-neat-setting($grid, columns);
|
19
|
+
@return $_grid-columns;
|
20
|
+
} @else {
|
21
|
+
@return $columns;
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Determine the ratio of `$columns` to the total column count.
|
3
|
+
/// If `$columns` is more than one value, they are handed to
|
4
|
+
/// `_neat-parse-columns()` which will determine the total columns and use this
|
5
|
+
/// value instead of `total-columns`.
|
6
|
+
///
|
7
|
+
/// @argument {map} $grid
|
8
|
+
///
|
9
|
+
/// @argument {number | list} $columns
|
10
|
+
///
|
11
|
+
/// @return {number}
|
12
|
+
///
|
13
|
+
/// @example scss
|
14
|
+
/// _neat-column-ratio($grid, 3)
|
15
|
+
///
|
16
|
+
/// @access private
|
17
|
+
|
18
|
+
@function _neat-column-ratio($grid, $columns) {
|
19
|
+
@if length($columns) > 1 {
|
20
|
+
@return nth($columns, 1) / _neat-parse-columns($columns);
|
21
|
+
} @else if $columns {
|
22
|
+
@return $columns / _retrieve-neat-setting($grid, columns);
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Return a calulated column width that can then be passed in to a `calc()`.
|
3
|
+
///
|
4
|
+
/// @argument {map} $grid
|
5
|
+
///
|
6
|
+
/// @argument {number} $columns
|
7
|
+
///
|
8
|
+
/// @return {string}
|
9
|
+
///
|
10
|
+
/// @example scss
|
11
|
+
/// _neat-column-width($neat-grid, 4)
|
12
|
+
///
|
13
|
+
/// @access private
|
14
|
+
|
15
|
+
@function _neat-column-width($grid, $columns) {
|
16
|
+
$_column-ratio: _neat-column-ratio($grid, $columns);
|
17
|
+
$_gutter: _retrieve-neat-setting($grid, gutter);
|
18
|
+
|
19
|
+
@if $_gutter == 0 {
|
20
|
+
@return unquote("#{percentage($_column-ratio)}");
|
21
|
+
} @else {
|
22
|
+
$_gutter-affordance: $_gutter + ($_gutter * $_column-ratio);
|
23
|
+
@return unquote("#{percentage($_column-ratio)} - #{$_gutter-affordance}");
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Return the float direction of the grid.
|
3
|
+
///
|
4
|
+
/// @argument {map} $grid
|
5
|
+
///
|
6
|
+
/// @return {string}
|
7
|
+
///
|
8
|
+
/// @example scss
|
9
|
+
/// _neat-float-direction($neat-grid)
|
10
|
+
///
|
11
|
+
/// @access private
|
12
|
+
|
13
|
+
@function _neat-float-direction($grid) {
|
14
|
+
$_direction: _retrieve-neat-setting($grid, direction);
|
15
|
+
$_float-direction: null;
|
16
|
+
@if $_direction == "ltr" {
|
17
|
+
$_float-direction: left;
|
18
|
+
} @else if $_direction == "rtl" {
|
19
|
+
$_float-direction: right;
|
20
|
+
}
|
21
|
+
@return $_float-direction;
|
22
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Apply Neat's default properties to undefined values within a map.
|
3
|
+
///
|
4
|
+
/// @argument {map} $grid
|
5
|
+
///
|
6
|
+
/// @return {map}
|
7
|
+
///
|
8
|
+
/// @example scss
|
9
|
+
/// _retrieve-neat-setting($neat-grid)
|
10
|
+
///
|
11
|
+
/// @access private
|
12
|
+
|
13
|
+
@function _neat-merge-defaults($grid) {
|
14
|
+
$_merged-grid: map-merge((
|
15
|
+
columns: 12,
|
16
|
+
gutter: 20px,
|
17
|
+
media: null,
|
18
|
+
color: rgba(#00d4ff, 0.25),
|
19
|
+
direction: ltr,
|
20
|
+
), $grid);
|
21
|
+
|
22
|
+
@return $_merged-grid;
|
23
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Return the oppoite of the float direction of the grid.
|
3
|
+
///
|
4
|
+
/// @argument {map} $grid
|
5
|
+
///
|
6
|
+
/// @return {string}
|
7
|
+
///
|
8
|
+
/// @example scss
|
9
|
+
/// _neat-opposite-direction($neat-grid)
|
10
|
+
///
|
11
|
+
/// @access private
|
12
|
+
|
13
|
+
@function _neat-opposite-direction($grid) {
|
14
|
+
$_direction: _retrieve-neat-setting($grid, direction);
|
15
|
+
$_float-direction: null;
|
16
|
+
@if $_direction == "ltr" {
|
17
|
+
$_float-direction: right;
|
18
|
+
} @else if $_direction == "rtl" {
|
19
|
+
$_float-direction: left;
|
20
|
+
}
|
21
|
+
@return $_float-direction;
|
22
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Parse a column count like `3 of 5` and retur the total coloumn count.
|
3
|
+
/// This is to allow a shorthand for custom grids without using a settings map.
|
4
|
+
///
|
5
|
+
///
|
6
|
+
/// @argument {list} $span
|
7
|
+
///
|
8
|
+
/// @return {number}
|
9
|
+
///
|
10
|
+
/// @example scss
|
11
|
+
/// _neat-parse-columns(3 of 5)
|
12
|
+
///
|
13
|
+
/// @access private
|
14
|
+
|
15
|
+
@function _neat-parse-columns($span) {
|
16
|
+
@if length($span) == 3 {
|
17
|
+
$_total-columns: nth($span, 3);
|
18
|
+
@return $_total-columns;
|
19
|
+
} @else if length($span) == 2 or if length($span) >= 3 {
|
20
|
+
@error "`$column` should contain 2 values, seperated by an `of`";
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Parse media types. If the property is a string then return it, otherwise
|
3
|
+
/// assume screen and min-width.
|
4
|
+
///
|
5
|
+
/// @argument {string | number (with unit)} $media
|
6
|
+
///
|
7
|
+
/// @return {number}
|
8
|
+
///
|
9
|
+
/// @example scss
|
10
|
+
/// _neat-parse-media($grid, 1000px)
|
11
|
+
///
|
12
|
+
/// @access private
|
13
|
+
|
14
|
+
@function _neat-parse-media($media) {
|
15
|
+
@if type-of($media) == number {
|
16
|
+
@return "only screen and (min-width: #{$media})";
|
17
|
+
} @else if type-of($media) == string {
|
18
|
+
@return "#{$media}";
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// This function recives a grid map and merges it with Neat's defauls.
|
3
|
+
/// It then returns the value of the property that has been passed to it.
|
4
|
+
///
|
5
|
+
/// @argument {map} $grid
|
6
|
+
///
|
7
|
+
/// @argument {string} $setting
|
8
|
+
///
|
9
|
+
/// @return {boolean | color | list | number | string}
|
10
|
+
///
|
11
|
+
/// @example scss
|
12
|
+
/// _retrieve-neat-setting($neat-grid, columns)
|
13
|
+
///
|
14
|
+
/// @access private
|
15
|
+
|
16
|
+
@function _retrieve-neat-setting($grid, $setting) {
|
17
|
+
$_grid-settings: map-merge(_neat-merge-defaults($neat-grid), $grid);
|
18
|
+
@return map-get($_grid-settings, $setting);
|
19
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Creates collapsed grid object that consumes the gutters of its container,
|
3
|
+
/// for use in nested layouts.
|
4
|
+
///
|
5
|
+
/// @group features
|
6
|
+
///
|
7
|
+
/// @name Grid collapse
|
8
|
+
///
|
9
|
+
/// @argument {map} $grid [$neat-grid]
|
10
|
+
/// The grid to be used to generate the collapsed container.
|
11
|
+
/// By default, the global `$neat-grid` will be used.
|
12
|
+
///
|
13
|
+
/// @example scss
|
14
|
+
/// .element {
|
15
|
+
/// @include grid-collapse;
|
16
|
+
/// }
|
17
|
+
///
|
18
|
+
/// @example css
|
19
|
+
/// .element {
|
20
|
+
/// margin-left: -20px;
|
21
|
+
/// margin-right: -20px;
|
22
|
+
/// width: calc(100% + 40px);
|
23
|
+
/// }
|
24
|
+
|
25
|
+
@mixin grid-collapse($grid: $neat-grid) {
|
26
|
+
$_grid-gutter: _retrieve-neat-setting($grid, gutter);
|
27
|
+
|
28
|
+
@if unit($_grid-gutter) == "%" {
|
29
|
+
@warn "`grid-collapse` is not compatible with percentage based gutters.";
|
30
|
+
}
|
31
|
+
|
32
|
+
margin-#{_neat-float-direction($grid)}: -($_grid-gutter);
|
33
|
+
margin-#{_neat-opposite-direction($grid)}: -($_grid-gutter);
|
34
|
+
width: calc(100% + #{($_grid-gutter * 2)});
|
35
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Creates a grid column of requested size.
|
3
|
+
///
|
4
|
+
/// @group features
|
5
|
+
///
|
6
|
+
/// @name Grid column
|
7
|
+
///
|
8
|
+
/// @argument {number (unitless)} $columns [null]
|
9
|
+
/// Specifies the number of columns an element should span based on the total
|
10
|
+
/// columns of the grid.
|
11
|
+
///
|
12
|
+
/// This can also be defined in a shorthand syntaxt which also contains the
|
13
|
+
/// total column count such as `3 of 5`.
|
14
|
+
///
|
15
|
+
/// @argument {map} $grid [$neat-grid]
|
16
|
+
/// The grid to be used to generate the column.
|
17
|
+
/// By default, the global `$neat-grid` will be used.
|
18
|
+
///
|
19
|
+
/// @example scss
|
20
|
+
/// .element {
|
21
|
+
/// @include grid-column(3);
|
22
|
+
/// }
|
23
|
+
///
|
24
|
+
/// @example css
|
25
|
+
/// .element {
|
26
|
+
/// width: calc(25% - 25px);
|
27
|
+
/// float: left;
|
28
|
+
/// margin-left: 20px;
|
29
|
+
/// }
|
30
|
+
|
31
|
+
@mixin grid-column($columns: null, $grid: $neat-grid) {
|
32
|
+
$columns: _neat-column-default($grid, $columns);
|
33
|
+
$_grid-columns: _retrieve-neat-setting($grid, columns);
|
34
|
+
$_grid-gutter: _retrieve-neat-setting($grid, gutter);
|
35
|
+
|
36
|
+
width: calc(#{_neat-column-width($grid, $columns)});
|
37
|
+
float: _neat-float-direction($grid);
|
38
|
+
margin-#{_neat-float-direction($grid)}: $_grid-gutter;
|
39
|
+
}
|