just-the-docs 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 (43) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +48 -0
  4. data/Rakefile +1 -0
  5. data/_includes/head.html +11 -0
  6. data/_includes/nav.html +24 -0
  7. data/_layouts/default.html +68 -0
  8. data/_layouts/post.html +5 -0
  9. data/_sass/base.scss +104 -0
  10. data/_sass/buttons.scss +114 -0
  11. data/_sass/code.scss +121 -0
  12. data/_sass/content.scss +64 -0
  13. data/_sass/custom/custom.scss +112 -0
  14. data/_sass/labels.scss +35 -0
  15. data/_sass/layout.scss +121 -0
  16. data/_sass/navigation.scss +134 -0
  17. data/_sass/normalize.scss/README.md +78 -0
  18. data/_sass/normalize.scss/normalize.scss +427 -0
  19. data/_sass/normalize.scss/package.json +70 -0
  20. data/_sass/search.scss +88 -0
  21. data/_sass/support/_functions.scss +10 -0
  22. data/_sass/support/_variables.scss +122 -0
  23. data/_sass/support/mixins/_buttons.scss +25 -0
  24. data/_sass/support/mixins/_layout.scss +34 -0
  25. data/_sass/support/mixins/_typography.scss +81 -0
  26. data/_sass/support/mixins/mixins.scss +3 -0
  27. data/_sass/support/support.scss +3 -0
  28. data/_sass/tables.scss +77 -0
  29. data/_sass/typography.scss +54 -0
  30. data/_sass/utilities/_colors.scss +231 -0
  31. data/_sass/utilities/_layout.scss +38 -0
  32. data/_sass/utilities/_lists.scss +11 -0
  33. data/_sass/utilities/_spacing.scss +121 -0
  34. data/_sass/utilities/_typography.scss +91 -0
  35. data/_sass/utilities/utilities.scss +5 -0
  36. data/assets/css/just-the-docs.scss +33 -0
  37. data/assets/images/just-the-docs.png +0 -0
  38. data/assets/images/search.svg +1 -0
  39. data/assets/js/just-the-docs.js +150 -0
  40. data/assets/js/vendor/lunr.min.js +6 -0
  41. data/bin/just-the-docs +16 -0
  42. data/lib/tasks/search.rake +22 -0
  43. metadata +129 -0
@@ -0,0 +1,70 @@
1
+ {
2
+ "_args": [
3
+ [
4
+ "normalize.scss",
5
+ "/Users/pmarsceill/_projects/just-the-docs"
6
+ ]
7
+ ],
8
+ "_from": "normalize.scss@*",
9
+ "_id": "normalize.scss@0.1.0",
10
+ "_inCache": true,
11
+ "_installable": true,
12
+ "_location": "/normalize.scss",
13
+ "_nodeVersion": "0.10.32",
14
+ "_npmUser": {
15
+ "email": "alexguerrero1092@gmail.com",
16
+ "name": "alexguerrero"
17
+ },
18
+ "_npmVersion": "2.0.2",
19
+ "_phantomChildren": {},
20
+ "_requested": {
21
+ "name": "normalize.scss",
22
+ "raw": "normalize.scss",
23
+ "rawSpec": "",
24
+ "scope": null,
25
+ "spec": "*",
26
+ "type": "range"
27
+ },
28
+ "_requiredBy": [
29
+ "#DEV:/"
30
+ ],
31
+ "_resolved": "https://registry.npmjs.org/normalize.scss/-/normalize.scss-0.1.0.tgz",
32
+ "_shasum": "4a21dc25bd4c019c857785f829b658aba2a8f9ab",
33
+ "_shrinkwrap": null,
34
+ "_spec": "normalize.scss",
35
+ "_where": "/Users/pmarsceill/_projects/just-the-docs",
36
+ "author": "",
37
+ "bugs": {
38
+ "url": "https://github.com/guerrero/normalize.scss/issues"
39
+ },
40
+ "dependencies": {},
41
+ "description": "Normalize.scss as a node packaged module",
42
+ "devDependencies": {},
43
+ "directories": {},
44
+ "dist": {
45
+ "shasum": "4a21dc25bd4c019c857785f829b658aba2a8f9ab",
46
+ "tarball": "https://registry.npmjs.org/normalize.scss/-/normalize.scss-0.1.0.tgz"
47
+ },
48
+ "files": [
49
+ "normalize.scss"
50
+ ],
51
+ "gitHead": "d67d517e28615a873066438af1d4845c157c9baf",
52
+ "homepage": "https://github.com/guerrero/normalize.scss",
53
+ "license": "MIT",
54
+ "maintainers": [
55
+ {
56
+ "name": "alexguerrero",
57
+ "email": "alexguerrero1092@gmail.com"
58
+ }
59
+ ],
60
+ "name": "normalize.scss",
61
+ "optionalDependencies": {},
62
+ "readme": "ERROR: No README data found!",
63
+ "repository": {
64
+ "type": "git",
65
+ "url": "git://github.com/guerrero/normalize.scss.git"
66
+ },
67
+ "scripts": {},
68
+ "style": "normalize.scss",
69
+ "version": "0.1.0"
70
+ }
data/_sass/search.scss ADDED
@@ -0,0 +1,88 @@
1
+ //
2
+ // Search input and autocomplete
3
+ //
4
+
5
+ .search {
6
+ display: none;
7
+
8
+ @include mq(md) {
9
+ position: relative;
10
+ z-index: 99;
11
+ display: block;
12
+ flex-grow: 1;
13
+ padding-top: $sp-1;
14
+ padding-bottom: $gutter-spacing / 2;
15
+ }
16
+ }
17
+
18
+ .search-results-wrap {
19
+ display: none;
20
+
21
+ &.active {
22
+ position: absolute;
23
+ top: $sp-1;
24
+ z-index: 100;
25
+ display: block;
26
+ width: 300px;
27
+ margin-top: $gutter-spacing;
28
+ background: $white;
29
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 14px rgba(0, 0, 0, 0.05);
30
+ }
31
+ }
32
+
33
+ .search-input-wrap {
34
+ display: flex;
35
+ background-color: $white;
36
+ }
37
+
38
+ .search-input {
39
+ width: 100%;
40
+ padding-top: $sp-1;
41
+ padding-bottom: $sp-1;
42
+ border-top: 0;
43
+ border-right: 0;
44
+ border-bottom: 0;
45
+ border-left: 0;
46
+ order: 2;
47
+
48
+ &:focus {
49
+ outline: 0;
50
+ box-shadow: none;
51
+
52
+ + .search-icon {
53
+ fill: $purple-000;
54
+ }
55
+ }
56
+ }
57
+
58
+ .search-icon {
59
+ align-self: center;
60
+ margin-right: $sp-2;
61
+ fill: $grey-dk-000;
62
+ order: 1;
63
+ }
64
+
65
+ .search-results-list {
66
+ padding-left: 0;
67
+ margin-top: $sp-1;
68
+ margin-bottom: $sp-1;
69
+ list-style: none;
70
+ @include fs-3;
71
+ }
72
+
73
+ .search-results-list-item {
74
+ padding: 0;
75
+ margin: 0;
76
+ }
77
+
78
+ .search-results-link {
79
+ display: block;
80
+ padding-top: $sp-1;
81
+ padding-right: $sp-3;
82
+ padding-bottom: $sp-1;
83
+ padding-left: $sp-3;
84
+
85
+ &:hover {
86
+ background-color: $grey-lt-000;
87
+ }
88
+ }
@@ -0,0 +1,10 @@
1
+ @function rem($size, $unit:"") {
2
+ $remSize: $size / $root-font-size;
3
+
4
+ @if ($unit == false) {
5
+ @return #{$remSize};
6
+ }
7
+ @else {
8
+ @return #{$remSize}rem;
9
+ }
10
+ }
@@ -0,0 +1,122 @@
1
+ //
2
+ // Typography
3
+ //
4
+
5
+ $body-font-family: -apple-system, BlinkMacSystemFont, "helvetica neue", helvetica, roboto, noto, "segoe ui", arial, sans-serif !default;
6
+ $mono-font-family: "SFMono-Regular", Menlo, Consolas, Monospace !default;
7
+ $root-font-size: 16px !default; // Base font-size for rems
8
+ $body-line-height: 1.4 !default;
9
+ $body-heading-line-height: 1.15 !default !default;
10
+
11
+ //
12
+ // Colors
13
+ //
14
+
15
+ $white: #fff !default;
16
+
17
+ $grey-dk-000: #959396 !default;
18
+ $grey-dk-100: #5c5962 !default;
19
+ $grey-dk-200: #44434d !default;
20
+ $grey-dk-300: #27262b !default;
21
+
22
+ $grey-lt-000: #f5f6fa !default;
23
+ $grey-lt-100: #eeebee !default;
24
+ $grey-lt-200: #ecebed !default;
25
+ $grey-lt-300: #e6e1e8 !default;
26
+
27
+ $purple-000: #7253ed !default;
28
+ $purple-100: #5e41d0 !default;
29
+ $purple-200: #4e26af !default;
30
+ $purple-300: #381885 !default;
31
+
32
+ $blue-000: #2c84fa !default;
33
+ $blue-100: #2869e6 !default;
34
+ $blue-200: #264caf !default;
35
+ $blue-300: #183385 !default;
36
+
37
+ $green-000: #41d693 !default;
38
+ $green-100: #11b584 !default;
39
+ $green-200: #009c7b !default;
40
+ $green-300: #026e57 !default;
41
+
42
+ $yellow-000: #ffeb82 !default;
43
+ $yellow-100: #fadf50 !default;
44
+ $yellow-200: #f7d12e !default;
45
+ $yellow-300: #e7af06 !default;
46
+
47
+ $red-000: #f77e7e !default;
48
+ $red-100: #f96e65 !default;
49
+ $red-200: #e94c4c !default;
50
+ $red-300: #dd2e2e !default;
51
+
52
+ $body-text-color: $grey-dk-100 !default;
53
+ $body-heading-color: $grey-dk-300 !default;
54
+ $link-color: $purple-000 !default;
55
+
56
+ //
57
+ // Media queries in pixels
58
+ //
59
+
60
+ $media-queries: (
61
+ xs: 320px,
62
+ sm: 500px,
63
+ md: 740px,
64
+ lg: 1120px,
65
+ xl: 1400px
66
+ ) !default;
67
+
68
+ //
69
+ // Spacing
70
+ //
71
+
72
+ $spacing-unit: 1rem; // 1rem == 16px
73
+
74
+ $spacers: (
75
+ sp-0: 0,
76
+ sp-1: $spacing-unit * 0.25,
77
+ sp-2: $spacing-unit * 0.5,
78
+ sp-3: $spacing-unit * 0.75,
79
+ sp-4: $spacing-unit,
80
+ sp-5: $spacing-unit * 1.5,
81
+ sp-6: $spacing-unit * 2,
82
+ sp-7: $spacing-unit * 2.5,
83
+ sp-8: $spacing-unit * 3,
84
+ sp-9: $spacing-unit * 3.5,
85
+ sp-10: $spacing-unit * 4
86
+ ) !default;
87
+
88
+ $sp-1: map-get($spacers, sp-1) !default; // 0.25 rem == 4px
89
+ $sp-2: map-get($spacers, sp-2) !default; // 0.5 rem == 8px
90
+ $sp-3: map-get($spacers, sp-3) !default; // 0.75 rem == 12px
91
+ $sp-4: map-get($spacers, sp-4) !default; // 1 rem == 16px
92
+ $sp-5: map-get($spacers, sp-5) !default; // 1.5 rem == 24px
93
+ $sp-6: map-get($spacers, sp-6) !default; // 2 rem == 32px
94
+ $sp-7: map-get($spacers, sp-7) !default; // 2.5 rem == 40px
95
+ $sp-8: map-get($spacers, sp-8) !default; // 3 rem == 48px
96
+ $sp-9: map-get($spacers, sp-9) !default; // 4 rem == 48px
97
+ $sp-10: map-get($spacers, sp-10) !default; // 4.5 rem == 48px
98
+
99
+ //
100
+ // Borders
101
+ //
102
+
103
+ $border: 1px solid !default;
104
+ $border-radius: 4px !default;
105
+ $border-color: $grey-lt-100 !default;
106
+
107
+ //
108
+ // Grid system
109
+ //
110
+
111
+ $gutter-spacing: $sp-6 !default;
112
+ $gutter-spacing-sm: $sp-4 !default;
113
+ $nav-width: 232px !default;
114
+ $content-width: 800px !default;
115
+
116
+ $media-queries: (
117
+ xs: 320px,
118
+ sm: 500px,
119
+ md: 740px,
120
+ lg: 800px,
121
+ xl: 1316px
122
+ ) !default;
@@ -0,0 +1,25 @@
1
+ // Colored button
2
+
3
+ @mixin btn-color($fg, $bg) {
4
+ color: $fg;
5
+ background-image: linear-gradient(lighten($bg, 5%), darken($bg, 2%));
6
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.12);
7
+
8
+ &:hover,
9
+ &.zeroclipboard-is-hover {
10
+ color: $fg;
11
+ background-image: linear-gradient((lighten($bg, 2%), darken($bg, 4%)));
12
+ }
13
+
14
+ &:active,
15
+ &.selected,
16
+ &.zeroclipboard-is-active {
17
+ background-color: darken($bg, 5%);
18
+ background-image: none;
19
+ box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
20
+ }
21
+
22
+ &.selected:hover {
23
+ background-color: darken($bg, 10%);
24
+ }
25
+ }
@@ -0,0 +1,34 @@
1
+ // Media query
2
+
3
+ // Media query mixin
4
+ // Usage:
5
+ // @include mq(md) {
6
+ // ..medium and up styles
7
+ // }
8
+ @mixin mq($name) {
9
+ // Retrieves the value from the key
10
+ $value: map-get($media-queries, $name);
11
+
12
+ // If the key exists in the map
13
+ @if $value != null {
14
+ // Prints a media query based on the value
15
+ @media (min-width: rem($value)) {
16
+ @content;
17
+ }
18
+ } @else {
19
+ @warn "No value could be retrieved from `#{$media-query}`. "
20
+ + "Please make sure it is defined in `$media-queries` map.";
21
+ }
22
+ }
23
+
24
+ // Responsive container
25
+
26
+ @mixin container {
27
+ padding-left: $gutter-spacing-sm;
28
+ padding-right: $gutter-spacing-sm;
29
+
30
+ @include mq(md) {
31
+ padding-left: $gutter-spacing;
32
+ padding-right: $gutter-spacing;
33
+ }
34
+ }
@@ -0,0 +1,81 @@
1
+ // Font size
2
+
3
+ @mixin fs-1 {
4
+ font-size: 9px !important;
5
+
6
+ @include mq(sm) {
7
+ font-size: 10px !important;
8
+ }
9
+ }
10
+
11
+ @mixin fs-2 {
12
+ font-size: 11px !important;
13
+
14
+ @include mq(sm) {
15
+ font-size: 12px !important;
16
+ }
17
+ }
18
+
19
+ @mixin fs-3 {
20
+ font-size: 12px !important;
21
+
22
+ @include mq(sm) {
23
+ font-size: 14px !important;
24
+ }
25
+ }
26
+
27
+ @mixin fs-4 {
28
+ font-size: 14px !important;
29
+
30
+ @include mq(sm) {
31
+ font-size: 16px !important;
32
+ }
33
+ }
34
+
35
+ @mixin fs-5 {
36
+ font-size: 16px !important;
37
+
38
+ @include mq(sm) {
39
+ font-size: 18px !important;
40
+ }
41
+ }
42
+
43
+ @mixin fs-6 {
44
+ font-size: 18px !important;
45
+
46
+ @include mq(sm) {
47
+ font-size: 24px !important;
48
+ }
49
+ }
50
+
51
+ @mixin fs-7 {
52
+ font-size: 24px !important;
53
+
54
+ @include mq(sm) {
55
+ font-size: 32px !important;
56
+ }
57
+ }
58
+
59
+ @mixin fs-8 {
60
+ font-size: 32px !important;
61
+
62
+ @include mq(sm) {
63
+ font-size: 36px !important;
64
+ }
65
+ }
66
+
67
+ @mixin fs-9 {
68
+ font-size: 36px !important;
69
+
70
+ @include mq(sm) {
71
+ font-size: 42px !important;
72
+ }
73
+ }
74
+
75
+ @mixin fs-10 {
76
+ font-size: 42px !important;
77
+
78
+ @include mq(sm) {
79
+ font-size: 48px !important;
80
+ }
81
+ }
@@ -0,0 +1,3 @@
1
+ @import "./layout";
2
+ @import "./buttons";
3
+ @import "./typography";
@@ -0,0 +1,3 @@
1
+ @import "./variables";
2
+ @import "./functions";
3
+ @import "./mixins/mixins";