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.
Files changed (95) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +48 -0
  4. data/_includes/head.html +17 -0
  5. data/_includes/navigation.html +17 -0
  6. data/_layouts/home.html +29 -0
  7. data/_layouts/page.html +5 -0
  8. data/_layouts/post.html +16 -0
  9. data/_sass/base/_base.scss +14 -0
  10. data/_sass/base/_buttons.scss +43 -0
  11. data/_sass/base/_forms.scss +95 -0
  12. data/_sass/base/_layout.scss +18 -0
  13. data/_sass/base/_lists.scss +19 -0
  14. data/_sass/base/_media.scss +9 -0
  15. data/_sass/base/_tables.scss +29 -0
  16. data/_sass/base/_typography.scss +45 -0
  17. data/_sass/base/_variables.scss +41 -0
  18. data/_sass/bourbon/_bourbon.scss +54 -0
  19. data/_sass/bourbon/bourbon/helpers/_buttons-list.scss +14 -0
  20. data/_sass/bourbon/bourbon/helpers/_scales.scss +27 -0
  21. data/_sass/bourbon/bourbon/helpers/_text-inputs-list.scss +26 -0
  22. data/_sass/bourbon/bourbon/library/_border-color.scss +26 -0
  23. data/_sass/bourbon/bourbon/library/_border-radius.scss +85 -0
  24. data/_sass/bourbon/bourbon/library/_border-style.scss +25 -0
  25. data/_sass/bourbon/bourbon/library/_border-width.scss +25 -0
  26. data/_sass/bourbon/bourbon/library/_buttons.scss +84 -0
  27. data/_sass/bourbon/bourbon/library/_clearfix.scss +25 -0
  28. data/_sass/bourbon/bourbon/library/_contrast-switch.scss +81 -0
  29. data/_sass/bourbon/bourbon/library/_ellipsis.scss +36 -0
  30. data/_sass/bourbon/bourbon/library/_font-face.scss +65 -0
  31. data/_sass/bourbon/bourbon/library/_font-stacks.scss +249 -0
  32. data/_sass/bourbon/bourbon/library/_hide-text.scss +24 -0
  33. data/_sass/bourbon/bourbon/library/_hide-visually.scss +70 -0
  34. data/_sass/bourbon/bourbon/library/_margin.scss +37 -0
  35. data/_sass/bourbon/bourbon/library/_modular-scale.scss +120 -0
  36. data/_sass/bourbon/bourbon/library/_overflow-wrap.scss +24 -0
  37. data/_sass/bourbon/bourbon/library/_padding.scss +36 -0
  38. data/_sass/bourbon/bourbon/library/_position.scss +62 -0
  39. data/_sass/bourbon/bourbon/library/_prefixer.scss +37 -0
  40. data/_sass/bourbon/bourbon/library/_shade.scss +32 -0
  41. data/_sass/bourbon/bourbon/library/_size.scss +50 -0
  42. data/_sass/bourbon/bourbon/library/_strip-unit.scss +17 -0
  43. data/_sass/bourbon/bourbon/library/_text-inputs.scss +163 -0
  44. data/_sass/bourbon/bourbon/library/_timing-functions.scss +38 -0
  45. data/_sass/bourbon/bourbon/library/_tint.scss +32 -0
  46. data/_sass/bourbon/bourbon/library/_triangle.scss +82 -0
  47. data/_sass/bourbon/bourbon/library/_value-prefixer.scss +37 -0
  48. data/_sass/bourbon/bourbon/settings/_settings.scss +75 -0
  49. data/_sass/bourbon/bourbon/utilities/_assign-inputs.scss +28 -0
  50. data/_sass/bourbon/bourbon/utilities/_compact-shorthand.scss +39 -0
  51. data/_sass/bourbon/bourbon/utilities/_contrast-ratio.scss +31 -0
  52. data/_sass/bourbon/bourbon/utilities/_directional-property.scss +70 -0
  53. data/_sass/bourbon/bourbon/utilities/_fetch-bourbon-setting.scss +16 -0
  54. data/_sass/bourbon/bourbon/utilities/_font-source-declaration.scss +51 -0
  55. data/_sass/bourbon/bourbon/utilities/_gamma.scss +21 -0
  56. data/_sass/bourbon/bourbon/utilities/_lightness.scss +24 -0
  57. data/_sass/bourbon/bourbon/utilities/_unpack-shorthand.scss +29 -0
  58. data/_sass/bourbon/bourbon/validators/_contains-falsy.scss +20 -0
  59. data/_sass/bourbon/bourbon/validators/_contains.scss +26 -0
  60. data/_sass/bourbon/bourbon/validators/_is-color.scss +13 -0
  61. data/_sass/bourbon/bourbon/validators/_is-length.scss +15 -0
  62. data/_sass/bourbon/bourbon/validators/_is-number.scss +15 -0
  63. data/_sass/bourbon/bourbon/validators/_is-size.scss +18 -0
  64. data/_sass/home.scss +55 -0
  65. data/_sass/main.scss +73 -0
  66. data/_sass/navigation.scss +45 -0
  67. data/_sass/neat/_neat.scss +26 -0
  68. data/_sass/neat/neat/functions/_neat-append-grid-visual.scss +21 -0
  69. data/_sass/neat/neat/functions/_neat-column-default.scss +23 -0
  70. data/_sass/neat/neat/functions/_neat-column-ratio.scss +24 -0
  71. data/_sass/neat/neat/functions/_neat-column-width.scss +25 -0
  72. data/_sass/neat/neat/functions/_neat-float-direction.scss +22 -0
  73. data/_sass/neat/neat/functions/_neat-merge-defaults.scss +23 -0
  74. data/_sass/neat/neat/functions/_neat-opposite-direction.scss +22 -0
  75. data/_sass/neat/neat/functions/_neat-parse-columns.scss +22 -0
  76. data/_sass/neat/neat/functions/_neat-parse-media.scss +20 -0
  77. data/_sass/neat/neat/functions/_retrieve-neat-settings.scss +19 -0
  78. data/_sass/neat/neat/mixins/_grid-collapse.scss +35 -0
  79. data/_sass/neat/neat/mixins/_grid-column.scss +39 -0
  80. data/_sass/neat/neat/mixins/_grid-container.scss +31 -0
  81. data/_sass/neat/neat/mixins/_grid-media.scss +67 -0
  82. data/_sass/neat/neat/mixins/_grid-push.scss +37 -0
  83. data/_sass/neat/neat/mixins/_grid-shift.scss +36 -0
  84. data/_sass/neat/neat/mixins/_grid-visual.scss +41 -0
  85. data/_sass/neat/neat/settings/_settings.scss +74 -0
  86. data/_sass/post.scss +24 -0
  87. data/assets/Linkedin.svg +17 -0
  88. data/assets/Twitter.svg +18 -0
  89. data/assets/github.png +0 -0
  90. data/assets/gitlab.svg +53 -0
  91. data/assets/icon.jpg +0 -0
  92. data/assets/icon.svg +95 -0
  93. data/assets/linkedin.png +0 -0
  94. data/assets/styles.scss +4 -0
  95. metadata +179 -0
@@ -0,0 +1,81 @@
1
+ @charset "UTF-8";
2
+
3
+ /// Switches between two colors based on the contrast to another color. It’s
4
+ /// like a [ternary operator] for color contrast and can be useful for building
5
+ /// a button system.
6
+ ///
7
+ /// The calculation of the contrast ratio is based on the [WCAG 2.0
8
+ /// specification]. However, we cannot guarantee full compliance, though all of
9
+ /// our manual testing passed.
10
+ ///
11
+ /// [ternary operator]: https://goo.gl/ccfLqi
12
+ /// [WCAG 2.0 specification]: https://goo.gl/zhQuYA
13
+ ///
14
+ /// @argument {color} $base-color
15
+ /// The color to evaluate lightness against.
16
+ ///
17
+ /// @argument {color} $dark-color [#000]
18
+ /// The color to be output when `$base-color` is light. Can also be set
19
+ /// globally using the `contrast-switch-dark-color` key in the
20
+ /// Bourbon settings.
21
+ ///
22
+ /// @argument {color} $light-color [#fff]
23
+ /// The color to be output when `$base-color` is dark. Can also be set
24
+ /// globally using the `contrast-switch-light-color` key in the
25
+ /// Bourbon settings.
26
+ ///
27
+ /// @return {color}
28
+ ///
29
+ /// @example scss
30
+ /// .element {
31
+ /// color: contrast-switch(#bae6e6);
32
+ /// }
33
+ ///
34
+ /// // CSS Output
35
+ /// .element {
36
+ /// color: #000;
37
+ /// }
38
+ ///
39
+ /// @example scss
40
+ /// .element {
41
+ /// $button-color: #2d72d9;
42
+ /// background-color: $button-color;
43
+ /// color: contrast-switch($button-color, #222, #eee);
44
+ /// }
45
+ ///
46
+ /// // CSS Output
47
+ /// .element {
48
+ /// background-color: #2d72d9;
49
+ /// color: #eee;
50
+ /// }
51
+ ///
52
+ /// @require {function} _fetch-bourbon-setting
53
+ ///
54
+ /// @require {function} _is-color
55
+ ///
56
+ /// @require {function} _contrast-ratio
57
+ ///
58
+ /// @since 5.0.0
59
+
60
+ @function contrast-switch(
61
+ $base-color,
62
+ $dark-color: _fetch-bourbon-setting("contrast-switch-dark-color"),
63
+ $light-color: _fetch-bourbon-setting("contrast-switch-light-color")
64
+ ) {
65
+ @if not _is-color($base-color) {
66
+ @error "`#{$base-color}` is not a valid color for the `$base-color` " +
67
+ "argument in the `contrast-switch` function.";
68
+ } @else if not _is-color($dark-color) {
69
+ @error "`#{$dark-color}` is not a valid color for the `$dark-color` " +
70
+ "argument in the `contrast-switch` function.";
71
+ } @else if not _is-color($light-color) {
72
+ @error "`#{$light-color}` is not a valid color for the `$light-color` " +
73
+ "argument in the `contrast-switch` function.";
74
+ } @else {
75
+ $-contrast-to-dark: _contrast-ratio($base-color, $dark-color);
76
+ $-contrast-to-light: _contrast-ratio($base-color, $light-color);
77
+ $-prefer-dark: $-contrast-to-dark >= $-contrast-to-light;
78
+
79
+ @return if($-prefer-dark, $dark-color, $light-color);
80
+ }
81
+ }
@@ -0,0 +1,36 @@
1
+ @charset "UTF-8";
2
+
3
+ /// Truncates text and adds an ellipsis to represent overflow.
4
+ ///
5
+ /// @argument {number} $width [100%]
6
+ /// The `max-width` for the string to respect before being truncated.
7
+ ///
8
+ /// @argument {string} $display [inline-block]
9
+ /// Sets the display-value of the element.
10
+ ///
11
+ /// @example scss
12
+ /// .element {
13
+ /// @include ellipsis;
14
+ /// }
15
+ ///
16
+ /// // CSS Output
17
+ /// .element {
18
+ /// display: inline-block;
19
+ /// max-width: 100%;
20
+ /// overflow: hidden;
21
+ /// text-overflow: ellipsis;
22
+ /// white-space: nowrap;
23
+ /// word-wrap: normal;
24
+ /// }
25
+
26
+ @mixin ellipsis(
27
+ $width: 100%,
28
+ $display: inline-block
29
+ ) {
30
+ display: $display;
31
+ max-width: $width;
32
+ overflow: hidden;
33
+ text-overflow: ellipsis;
34
+ white-space: nowrap;
35
+ word-wrap: normal;
36
+ }
@@ -0,0 +1,65 @@
1
+ @charset "UTF-8";
2
+
3
+ /// Generates an `@font-face` declaration. You can choose the specific file
4
+ /// formats you need to output; the mixin supports `eot`, `ttf`, `svg`, `woff2`
5
+ /// and `woff`. The mixin also supports usage with the Rails Asset Pipeline,
6
+ /// which you can enable per use, or globally in the `$bourbon()` settings.
7
+ ///
8
+ /// @argument {string} $font-family
9
+ ///
10
+ /// @argument {string} $file-path
11
+ ///
12
+ /// @argument {string} $asset-pipeline [false]
13
+ /// Set to `true` if you’re using the Rails Asset Pipeline (place the fonts
14
+ /// in `app/assets/fonts/`). Can also be set globally using the
15
+ /// `rails-asset-pipeline` key in the Bourbon settings.
16
+ ///
17
+ /// @argument {string | list} $file-formats [("ttf", "woff2", "woff")]
18
+ /// List of the font file formats to include. Can also be set globally using
19
+ /// the `global-font-file-formats` key in the Bourbon settings.
20
+ ///
21
+ /// @content
22
+ /// Any additional CSS properties that are included in the `@include`
23
+ /// directive will be output within the `@font-face` declaration, e.g. you can
24
+ /// pass in `font-weight`, `font-style` and/or `unicode-range`.
25
+ ///
26
+ /// @example scss
27
+ /// @include font-face(
28
+ /// "source-sans-pro",
29
+ /// "fonts/source-sans-pro-regular",
30
+ /// ("woff2", "woff")
31
+ /// ) {
32
+ /// font-style: normal;
33
+ /// font-weight: 400;
34
+ /// }
35
+ ///
36
+ /// // CSS Output
37
+ /// @font-face {
38
+ /// font-family: "source-sans-pro";
39
+ /// src: url("fonts/source-sans-pro-regular.woff2") format("woff2"),
40
+ /// url("fonts/source-sans-pro-regular.woff") format("woff");
41
+ /// font-style: normal;
42
+ /// font-weight: 400;
43
+ /// }
44
+ ///
45
+ /// @require {function} _font-source-declaration
46
+ ///
47
+ /// @require {function} _fetch-bourbon-setting
48
+
49
+ @mixin font-face(
50
+ $font-family,
51
+ $file-path,
52
+ $file-formats: _fetch-bourbon-setting("global-font-file-formats"),
53
+ $asset-pipeline: _fetch-bourbon-setting("rails-asset-pipeline")
54
+ ) {
55
+ @font-face {
56
+ font-family: $font-family;
57
+ src: _font-source-declaration(
58
+ $font-family,
59
+ $file-path,
60
+ $asset-pipeline,
61
+ $file-formats
62
+ );
63
+ @content;
64
+ }
65
+ }
@@ -0,0 +1,249 @@
1
+ @charset "UTF-8";
2
+
3
+ /// A variable that outputs a Helvetica font stack.
4
+ ///
5
+ /// @link https://goo.gl/uSJvZe
6
+ ///
7
+ /// @type list
8
+ ///
9
+ /// @example scss
10
+ /// .element {
11
+ /// font-family: $font-stack-helvetica;
12
+ /// }
13
+ ///
14
+ /// // CSS Output
15
+ /// .element {
16
+ /// font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
17
+ /// }
18
+
19
+ $font-stack-helvetica: (
20
+ "Helvetica Neue",
21
+ "Helvetica",
22
+ "Arial",
23
+ sans-serif,
24
+ );
25
+
26
+ /// A variable that outputs a Lucida Grande font stack.
27
+ ///
28
+ /// @link https://goo.gl/R5UyYE
29
+ ///
30
+ /// @type list
31
+ ///
32
+ /// @example scss
33
+ /// .element {
34
+ /// font-family: $font-stack-lucida-grande;
35
+ /// }
36
+ ///
37
+ /// // CSS Output
38
+ /// .element {
39
+ /// font-family: "Lucida Grande", "Lucida Sans Unicode", "Geneva", "Verdana", sans-serif;
40
+ /// }
41
+
42
+ $font-stack-lucida-grande: (
43
+ "Lucida Grande",
44
+ "Lucida Sans Unicode",
45
+ "Geneva",
46
+ "Verdana",
47
+ sans-serif,
48
+ );
49
+
50
+ /// A variable that outputs a Verdana font stack.
51
+ ///
52
+ /// @link https://goo.gl/yGXWSS
53
+ ///
54
+ /// @type list
55
+ ///
56
+ /// @example scss
57
+ /// .element {
58
+ /// font-family: $font-stack-verdana;
59
+ /// }
60
+ ///
61
+ /// // CSS Output
62
+ /// .element {
63
+ /// font-family: "Verdana", "Geneva", sans-serif;
64
+ /// }
65
+
66
+ $font-stack-verdana: (
67
+ "Verdana",
68
+ "Geneva",
69
+ sans-serif,
70
+ );
71
+
72
+ /// A variable that outputs a system font stack.
73
+ ///
74
+ /// @link https://goo.gl/LHRZIf
75
+ ///
76
+ /// @type list
77
+ ///
78
+ /// @example scss
79
+ /// .element {
80
+ /// font-family: $font-stack-system;
81
+ /// }
82
+ ///
83
+ /// // CSS Output
84
+ /// .element {
85
+ /// font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", "Avenir", "Segoe UI", "Lucida Grande", "Helvetica Neue", "Helvetica", "Fira Sans", "Roboto", "Noto", "Droid Sans", "Cantarell", "Oxygen", "Ubuntu", "Franklin Gothic Medium", "Century Gothic", "Liberation Sans", sans-serif;
86
+ /// }
87
+
88
+ $font-stack-system: (
89
+ -apple-system,
90
+ BlinkMacSystemFont,
91
+ "Avenir Next",
92
+ "Avenir",
93
+ "Segoe UI",
94
+ "Lucida Grande",
95
+ "Helvetica Neue",
96
+ "Helvetica",
97
+ "Fira Sans",
98
+ "Roboto",
99
+ "Noto",
100
+ "Droid Sans",
101
+ "Cantarell",
102
+ "Oxygen",
103
+ "Ubuntu",
104
+ "Franklin Gothic Medium",
105
+ "Century Gothic",
106
+ "Liberation Sans",
107
+ sans-serif,
108
+ );
109
+
110
+ /// A variable that outputs a Garamond font stack.
111
+ ///
112
+ /// @link https://goo.gl/QQFEkV
113
+ ///
114
+ /// @type list
115
+ ///
116
+ /// @example scss
117
+ /// .element {
118
+ /// font-family: $font-stack-garamond;
119
+ /// }
120
+ ///
121
+ /// // CSS Output
122
+ /// .element {
123
+ /// font-family: "Garamond", "Baskerville", "Baskerville Old Face", "Hoefler Text", "Times New Roman", serif;
124
+ /// }
125
+
126
+ $font-stack-garamond: (
127
+ "Garamond",
128
+ "Baskerville",
129
+ "Baskerville Old Face",
130
+ "Hoefler Text",
131
+ "Times New Roman",
132
+ serif,
133
+ );
134
+
135
+ /// A variable that outputs a Georgia font stack.
136
+ ///
137
+ /// @link https://goo.gl/wtzVPy
138
+ ///
139
+ /// @type list
140
+ ///
141
+ /// @example scss
142
+ /// .element {
143
+ /// font-family: $font-stack-georgia;
144
+ /// }
145
+ ///
146
+ /// // CSS Output
147
+ /// .element {
148
+ /// font-family: "Georgia", "Times", "Times New Roman", serif;
149
+ /// }
150
+
151
+ $font-stack-georgia: (
152
+ "Georgia",
153
+ "Times",
154
+ "Times New Roman",
155
+ serif,
156
+ );
157
+
158
+ /// A variable that outputs a Hoefler Text font stack.
159
+ ///
160
+ /// @link https://goo.gl/n7U7zx
161
+ ///
162
+ /// @type list
163
+ ///
164
+ /// @example scss
165
+ /// .element {
166
+ /// font-family: $font-stack-hoefler-text;
167
+ /// }
168
+ ///
169
+ /// // CSS Output
170
+ /// .element {
171
+ /// font-family: "Hoefler Text", "Baskerville Old Face", "Garamond", "Times New Roman", serif;
172
+ /// }
173
+
174
+ $font-stack-hoefler-text: (
175
+ "Hoefler Text",
176
+ "Baskerville Old Face",
177
+ "Garamond",
178
+ "Times New Roman",
179
+ serif,
180
+ );
181
+
182
+ /// A variable that outputs a Consolas font stack.
183
+ ///
184
+ /// @link https://goo.gl/iKrtqv
185
+ ///
186
+ /// @type list
187
+ ///
188
+ /// @example scss
189
+ /// .element {
190
+ /// font-family: $font-stack-consolas;
191
+ /// }
192
+ ///
193
+ /// // CSS Output
194
+ /// .element {
195
+ /// font-family: "Consolas", "monaco", monospace;
196
+ /// }
197
+
198
+ $font-stack-consolas: (
199
+ "Consolas",
200
+ "monaco",
201
+ monospace,
202
+ );
203
+
204
+ /// A variable that outputs a Courier New font stack.
205
+ ///
206
+ /// @link https://goo.gl/bHfWMP
207
+ ///
208
+ /// @type list
209
+ ///
210
+ /// @example scss
211
+ /// .element {
212
+ /// font-family: $font-stack-courier-new;
213
+ /// }
214
+ ///
215
+ /// // CSS Output
216
+ /// .element {
217
+ /// font-family: "Courier New", "Courier", "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
218
+ /// }
219
+
220
+ $font-stack-courier-new: (
221
+ "Courier New",
222
+ "Courier",
223
+ "Lucida Sans Typewriter",
224
+ "Lucida Typewriter",
225
+ monospace,
226
+ );
227
+
228
+ /// A variable that outputs a Monaco font stack.
229
+ ///
230
+ /// @link https://goo.gl/9PgKDO
231
+ ///
232
+ /// @type list
233
+ ///
234
+ /// @example scss
235
+ /// .element {
236
+ /// font-family: $font-stack-monaco;
237
+ /// }
238
+ ///
239
+ /// // CSS Output
240
+ /// .element {
241
+ /// font-family: "Monaco", "Consolas", "Lucida Console", monospace;
242
+ /// }
243
+
244
+ $font-stack-monaco: (
245
+ "Monaco",
246
+ "Consolas",
247
+ "Lucida Console",
248
+ monospace,
249
+ );
@@ -0,0 +1,24 @@
1
+ @charset "UTF-8";
2
+
3
+ /// Hides the text in an element, commonly used to show an image instead. Some
4
+ /// elements will need block-level styles applied.
5
+ ///
6
+ /// @link https://goo.gl/EvLRIu
7
+ ///
8
+ /// @example scss
9
+ /// .element {
10
+ /// @include hide-text;
11
+ /// }
12
+ ///
13
+ /// // CSS Output
14
+ /// .element {
15
+ /// overflow: hidden;
16
+ /// text-indent: 101%;
17
+ /// white-space: nowrap;
18
+ /// }
19
+
20
+ @mixin hide-text {
21
+ overflow: hidden;
22
+ text-indent: 101%;
23
+ white-space: nowrap;
24
+ }