livingstyleguide 2.0.0.pre.3 → 2.0.0.pre.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/bin/livingstyleguide +1 -1
  3. data/lib/livingstyleguide/command_line_interface.rb +14 -11
  4. data/lib/livingstyleguide/commands/colors.rb +16 -16
  5. data/lib/livingstyleguide/commands/default.rb +1 -1
  6. data/lib/livingstyleguide/commands/font_example.rb +2 -1
  7. data/lib/livingstyleguide/commands/full_width.rb +1 -1
  8. data/lib/livingstyleguide/commands/import_and_use.rb +16 -4
  9. data/lib/livingstyleguide/commands/layout.rb +22 -20
  10. data/lib/livingstyleguide/commands/options.rb +9 -9
  11. data/lib/livingstyleguide/commands/sass.rb +5 -11
  12. data/lib/livingstyleguide/commands/search_box.rb +6 -3
  13. data/lib/livingstyleguide/commands/style.rb +1 -1
  14. data/lib/livingstyleguide/document.rb +64 -41
  15. data/lib/livingstyleguide/integration/compass.rb +5 -2
  16. data/lib/livingstyleguide/integration/rails.rb +5 -3
  17. data/lib/livingstyleguide/integration/sass.rb +1 -1
  18. data/lib/livingstyleguide/integration/sprockets.rb +9 -4
  19. data/lib/livingstyleguide/markdown_extensions.rb +20 -11
  20. data/lib/livingstyleguide/templates/code.html.erb +1 -1
  21. data/lib/livingstyleguide/templates/example.html.erb +2 -2
  22. data/lib/livingstyleguide/templates/font-example.html.erb +3 -3
  23. data/lib/livingstyleguide/templates/javascript.html.erb +1 -1
  24. data/lib/livingstyleguide/templates/layout.html.erb +32 -38
  25. data/lib/livingstyleguide/templates/logo.html.erb +1 -1
  26. data/lib/livingstyleguide/templates/scripts/copy.js.erb +12 -12
  27. data/lib/livingstyleguide/templates/scripts/copy_code.js.erb +7 -7
  28. data/lib/livingstyleguide/templates/scripts/copy_colors.js.erb +14 -14
  29. data/lib/livingstyleguide/templates/scripts/search.js.erb +30 -30
  30. data/lib/livingstyleguide/templates/scripts/toggle_code.js.erb +23 -23
  31. data/lib/livingstyleguide/templates/search-box.html.erb +1 -1
  32. data/lib/livingstyleguide/templates/toggle-code.html.erb +1 -1
  33. data/lib/livingstyleguide/tilt_template.rb +17 -19
  34. data/lib/livingstyleguide/version.rb +1 -1
  35. data/lib/livingstyleguide.rb +12 -2
  36. data/stylesheets/_livingstyleguide.scss +76 -65
  37. data/stylesheets/livingstyleguide/_code.scss +51 -51
  38. data/stylesheets/livingstyleguide/_color-swatches.scss +38 -38
  39. data/stylesheets/livingstyleguide/_content.scss +73 -73
  40. data/stylesheets/livingstyleguide/_functions.scss +1 -1
  41. data/stylesheets/livingstyleguide/_layout.scss +22 -22
  42. data/stylesheets/livingstyleguide/_reset.scss +1 -1
  43. data/stylesheets/livingstyleguide/_search-box.scss +14 -14
  44. data/stylesheets/livingstyleguide/_toggle-code.scss +10 -11
  45. metadata +21 -6
@@ -1,5 +1,5 @@
1
1
  // scss-lint:disable VendorPrefix
2
- %lsg--reset {
2
+ %lsg-reset {
3
3
  background: transparent;
4
4
  border: none;
5
5
  border-collapse: collapse;
@@ -1,35 +1,35 @@
1
- .lsg--search-box {
1
+ .lsg-search-box {
2
2
  -webkit-appearance: none;
3
- background: $lsg--code-background;
3
+ background: $lsg-code-background;
4
4
  border: 0;
5
- border-radius: $lsg--border-radius;
6
- color: $lsg--code-color;
5
+ border-radius: $lsg-border-radius;
6
+ color: $lsg-code-color;
7
7
  display: block;
8
- font-family: $lsg--headline-font;
9
- font-size: $lsg--sub-headline-font-size;
8
+ font-family: $lsg-headline-font-family;
9
+ font-size: $lsg-sub-headline-font-size;
10
10
  line-height: inherit;
11
- margin: (2 * $lsg--gap-width) auto;
12
- max-width: $lsg--width;
11
+ margin: (2 * $lsg-gutter) auto;
12
+ max-width: $lsg-width;
13
13
  outline: 0;
14
- padding: $lsg--gap-width;
14
+ padding: $lsg-gutter;
15
15
  width: 100%;
16
16
 
17
- $placeholder-color: mix($lsg--code-background, $lsg--code-color, 67%);
17
+ $lsg-placeholder-color: mix($lsg-code-background, $lsg-code-color, 67%);
18
18
 
19
19
  // scss-lint:disable VendorPrefix
20
20
  &::-moz-placeholder {
21
- color: $placeholder-color;
21
+ color: $lsg-placeholder-color;
22
22
  }
23
23
 
24
24
  &::-webkit-input-placeholder {
25
- color: $placeholder-color;
25
+ color: $lsg-placeholder-color;
26
26
  }
27
27
 
28
28
  &:-ms-input-placeholder {
29
- color: $placeholder-color;
29
+ color: $lsg-placeholder-color;
30
30
  }
31
31
 
32
32
  &::placeholder {
33
- color: $placeholder-color;
33
+ color: $lsg-placeholder-color;
34
34
  }
35
35
  }
@@ -1,21 +1,20 @@
1
-
2
- .lsg--code-switch {
3
- background-color: $lsg--background-color;
4
- background-image: $lsg--code-switch-show;
1
+ .lsg-code-switch {
2
+ background-color: $lsg-background-color;
3
+ background-image: $lsg-code-switch-show;
5
4
  background-position: 50%;
6
5
  background-repeat: no-repeat;
7
6
  background-size: 90%;
8
- border-radius: $lsg--border-radius;
9
- height: $lsg--button-height;
10
- width: $lsg--button-width;
7
+ border-radius: $lsg-border-radius;
8
+ height: $lsg-button-height;
9
+ width: $lsg-button-width;
11
10
  }
12
11
 
13
- .lsg--hide-code {
14
- .lsg--code-switch {
15
- background-image: $lsg--code-switch-hide;
12
+ .lsg-hide-code {
13
+ .lsg-code-switch {
14
+ background-image: $lsg-code-switch-hide;
16
15
  }
17
16
 
18
- .lsg--code-block {
17
+ .lsg-code-block {
19
18
  display: none;
20
19
  }
21
20
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livingstyleguide
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.3
4
+ version: 2.0.0.pre.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Hagenburger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-13 00:00:00.000000000 Z
11
+ date: 2016-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minisyntax
@@ -193,7 +193,7 @@ dependencies:
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
- name: scss_lint
196
+ name: scss-lint
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - ">="
@@ -206,8 +206,23 @@ dependencies:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
- description: Automatically generate beautiful front-end style guides with Sass and
210
- Markdown. See http://livingstyleguide.org for details.
209
+ - !ruby/object:Gem::Dependency
210
+ name: rubocop
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ description: |-
224
+ Automaticaly generate beautiful front-end style guides with Sas and
225
+ Markdown. Se htps:/livingstyleguide.org for details.
211
226
  email:
212
227
  - nico@hagenburger.net
213
228
  executables:
@@ -274,7 +289,7 @@ files:
274
289
  - stylesheets/livingstyleguide/_reset.scss
275
290
  - stylesheets/livingstyleguide/_search-box.scss
276
291
  - stylesheets/livingstyleguide/_toggle-code.scss
277
- homepage: http://livingstyleguide.org
292
+ homepage: https://livingstyleguide.org
278
293
  licenses: []
279
294
  metadata: {}
280
295
  post_install_message: