sitespeed.io 32.2.0 → 33.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 (61) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/Dockerfile +1 -1
  3. package/bin/sitespeed.js +1 -3
  4. package/lib/cli/cli.js +7 -1
  5. package/lib/plugins/browsertime/index.js +46 -42
  6. package/lib/plugins/compare/index.js +10 -3
  7. package/lib/plugins/html/assets/css/index-dark.min.css +1 -0
  8. package/lib/plugins/html/defaultConfig.js +1 -0
  9. package/lib/plugins/html/src/sass/dark/components/buttons.scss +57 -0
  10. package/lib/plugins/html/src/sass/dark/components/groupitem.scss +24 -0
  11. package/lib/plugins/html/src/sass/dark/components/sortable.scss +21 -0
  12. package/lib/plugins/html/src/sass/dark/components/summarybox.scss +51 -0
  13. package/lib/plugins/html/src/sass/dark/components/tabs.scss +69 -0
  14. package/lib/plugins/html/src/sass/dark/components/waterfall.scss +240 -0
  15. package/lib/plugins/html/src/sass/dark/foundations/tables.scss +161 -0
  16. package/lib/plugins/html/src/sass/dark/foundations/typography.scss +109 -0
  17. package/lib/plugins/html/src/sass/dark/utilities/settings.scss +41 -0
  18. package/lib/plugins/html/src/sass/light/components/chartist-plugin-tooltip.scss +34 -0
  19. package/lib/plugins/html/src/sass/light/components/chartist.scss +646 -0
  20. package/lib/plugins/html/src/sass/light/components/chartistExtras.scss +155 -0
  21. package/lib/plugins/html/src/sass/light/components/filmstrip.scss +32 -0
  22. package/lib/plugins/html/src/sass/light/components/loader.scss +59 -0
  23. package/lib/plugins/html/src/sass/light/components/misc.scss +74 -0
  24. package/lib/plugins/html/src/sass/light/components/navigation.scss +133 -0
  25. package/lib/plugins/html/src/sass/light/components/screenshot.scss +11 -0
  26. package/lib/plugins/html/src/sass/light/components/waterfallExtras.scss +73 -0
  27. package/lib/plugins/html/src/sass/light/foundations/base.scss +66 -0
  28. package/lib/plugins/html/src/sass/light/foundations/grid.scss +198 -0
  29. package/lib/plugins/html/src/sass/light/foundations/normalize.scss +420 -0
  30. package/lib/plugins/html/src/sass/light/foundations/utilies.scss +31 -0
  31. package/lib/plugins/html/src/sass/main-dark.scss +44 -0
  32. package/lib/plugins/html/src/sass/main-light.scss +44 -0
  33. package/lib/plugins/html/templates/layout.pug +4 -1
  34. package/lib/plugins/html/templates/url/thirdparty/index.pug +83 -82
  35. package/lib/plugins/sustainable/index.js +1 -1
  36. package/npm-shrinkwrap.json +54 -54
  37. package/package.json +6 -4
  38. package/lib/plugins/html/src/sass/main.scss +0 -44
  39. /package/lib/plugins/html/assets/css/{index.min.css → index-light.min.css} +0 -0
  40. /package/lib/plugins/html/src/sass/{components → dark/components}/chartist-plugin-tooltip.scss +0 -0
  41. /package/lib/plugins/html/src/sass/{components → dark/components}/chartist.scss +0 -0
  42. /package/lib/plugins/html/src/sass/{components → dark/components}/chartistExtras.scss +0 -0
  43. /package/lib/plugins/html/src/sass/{components → dark/components}/filmstrip.scss +0 -0
  44. /package/lib/plugins/html/src/sass/{components → dark/components}/loader.scss +0 -0
  45. /package/lib/plugins/html/src/sass/{components → dark/components}/misc.scss +0 -0
  46. /package/lib/plugins/html/src/sass/{components → dark/components}/navigation.scss +0 -0
  47. /package/lib/plugins/html/src/sass/{components → dark/components}/screenshot.scss +0 -0
  48. /package/lib/plugins/html/src/sass/{components → dark/components}/waterfallExtras.scss +0 -0
  49. /package/lib/plugins/html/src/sass/{foundations → dark/foundations}/base.scss +0 -0
  50. /package/lib/plugins/html/src/sass/{foundations → dark/foundations}/grid.scss +0 -0
  51. /package/lib/plugins/html/src/sass/{foundations → dark/foundations}/normalize.scss +0 -0
  52. /package/lib/plugins/html/src/sass/{foundations → dark/foundations}/utilies.scss +0 -0
  53. /package/lib/plugins/html/src/sass/{components → light/components}/buttons.scss +0 -0
  54. /package/lib/plugins/html/src/sass/{components → light/components}/groupitem.scss +0 -0
  55. /package/lib/plugins/html/src/sass/{components → light/components}/sortable.scss +0 -0
  56. /package/lib/plugins/html/src/sass/{components → light/components}/summarybox.scss +0 -0
  57. /package/lib/plugins/html/src/sass/{components → light/components}/tabs.scss +0 -0
  58. /package/lib/plugins/html/src/sass/{components → light/components}/waterfall.scss +0 -0
  59. /package/lib/plugins/html/src/sass/{foundations → light/foundations}/tables.scss +0 -0
  60. /package/lib/plugins/html/src/sass/{foundations → light/foundations}/typography.scss +0 -0
  61. /package/lib/plugins/html/src/sass/{utilities → light/utilities}/settings.scss +0 -0
@@ -0,0 +1,240 @@
1
+ /*! github.com/micmro/PerfCascade Version:2.11.0 (24/11/2021) */
2
+ .water-fall-chart {width:100%; overflow: visible; font-size: 12px; line-height: 1em;}
3
+ .water-fall-chart * {box-sizing: border-box;}
4
+ .water-fall-chart button {cursor: pointer;}
5
+
6
+ .water-fall-holder {fill:#ccc;}
7
+
8
+ .water-fall-chart .left-fixed-holder {overflow: visible; fill: #ddd;}
9
+ .water-fall-chart .marker-holder {width:100%; fill: #ddd;}
10
+ .water-fall-chart .line-label-holder {cursor: pointer;}
11
+ .water-fall-chart .line-holder {stroke-width:1; stroke: #ccc; stroke-opacity:0.5; transition: all 60ms;}
12
+ .water-fall-chart .line-holder .line-mark {fill: #69009e; opacity: 0.01; stroke-width: 0; transition: all 60ms;}
13
+ .water-fall-chart .line-holder.active {stroke: #69009e; stroke-width:2; stroke-opacity:1;}
14
+ .water-fall-chart .line-holder.active .line-mark {opacity: 0.4;}
15
+ .water-fall-chart .type-onload .line-holder {stroke: #c0c0ff;}
16
+ .water-fall-chart .type-oncontentload .line-holder {stroke: #d888df;}
17
+
18
+ .water-fall-chart .labels {width:100%;}
19
+ .water-fall-chart .labels .inner-label {pointer-events: none;}
20
+ .water-fall-chart .time-block.active {opacity: 0.8;}
21
+ .water-fall-chart .line-end,
22
+ .water-fall-chart .line-start {display: none; stroke-width:1; stroke-opacity:0.5; stroke: #000;}
23
+ .water-fall-chart .line-end.active,
24
+ .water-fall-chart .line-start.active {display: block;}
25
+
26
+ .left-fixed-holder .label-full-bg {fill: #111; opacity: 0.9;}
27
+
28
+ .time-scale line {stroke:#0cc; stroke-width:1;}
29
+ .time-scale line.sub-second-line {stroke: #ccc; opacity: 0.75; stroke-width:0.50;}
30
+ .time-scale text {font-weight:bold; fill: #ddd;}
31
+
32
+ .row-item {cursor: pointer;}
33
+ .row-item .even {fill: #222; opacity: 1;}
34
+ .row-item .odd {fill: #333; opacity: 1;}
35
+ .row-item:hover .odd,
36
+ .row-item:hover .even {fill: #444; opacity: 1;}
37
+
38
+ .row-item:focus {outline: solid 1.5px #aaa; outline-offset: -1.5px}
39
+ .row-item:focus .odd,
40
+ .row-item:focus .even {fill: #000; opacity: 0.2;}
41
+
42
+ .row-item .rect-holder text {fill: #aaa}
43
+ .row-item.status0 .even,
44
+ .row-item.status5xx .even {fill: #f66;}
45
+ .row-item.status0 .odd,
46
+ .row-item.status5xx .odd {fill: #f00;}
47
+ .row-item.status4xx .even{fill: #c33;}
48
+ .row-item.status4xx .odd {fill: #c00;}
49
+ .row-item.status3xx .even {fill: #ff6;}
50
+ .row-item.status3xx .odd {fill: #ff0;}
51
+
52
+ .row-item.potentiallyRenderBlocking .even,
53
+ .row-item.potentiallyRenderBlocking .odd {fill: #e5a331;}
54
+ .row-item.renderBlocking .even,
55
+ .row-item.renderBlocking .odd {fill: #e57231; stroke-dasharray: 5; stroke: black; stroke-width: 2px;}
56
+ .row-item.largestContentfulPaint .even,
57
+ .row-item.largestContentfulPaint .odd {fill: #c9e531; stroke-dasharray: 8; stroke-width: 2px; stroke: black;}
58
+
59
+ .row-item.status0 .even,
60
+ .row-item.status0 .odd,
61
+ .row-item.status5xx .even,
62
+ .row-item.status5xx .odd,
63
+ .row-item.status4xx .even,
64
+ .row-item.status4xx .odd,
65
+ .row-item.renderBlocking .even,
66
+ .row-item.renderBlocking .odd,
67
+ .row-item.potentiallyRenderBlocking .even,
68
+ .row-item.potentiallyRenderBlocking .odd,
69
+ .row-item.largestContentfulPaint .even,
70
+ .row-item.largestContentfulPaint .odd,
71
+ .row-item.status3xx .even,
72
+ .row-item.status3xx .odd {opacity: 0.3;}
73
+ .row-item.status0:hover .even,
74
+ .row-item.status0:hover .odd,
75
+ .row-item.status5xx:hover .even,
76
+ .row-item.status5xx:hover .odd,
77
+ .row-item.status4xx:hover .even,
78
+ .row-item.status4xx:hover .odd,
79
+ .row-item.renderBlocking:hover .even,
80
+ .row-item.renderBlocking:hover .odd,
81
+ .row-item.potentiallyRenderBlocking:hover .even,
82
+ .row-item.potentiallyRenderBlocking:hover .odd,
83
+ .row-item.largestContentfulPaint:hover .even,
84
+ .row-item.largestContentfulPaint:hover .odd,
85
+ .row-item.status3xx:hover .even,
86
+ .row-item.status3xx:hover .odd {opacity: 0.5;}
87
+
88
+
89
+
90
+
91
+ .tooltip-holder {overflow: visible;}
92
+ .tooltip * {padding: 0; margin:0;}
93
+ .tooltip html {font-size: 10px; line-height: 1.2em;}
94
+ .tooltip body {position: relative;}
95
+ .tooltip-payload {position: absolute; top:0; left:0; padding: 0.25em; font-size: 10px; display: inline-block; background: #111111dd; border: solid 1px #555; word-break: break-all; overflow-wrap: break-word; transition: opacity 300ms;}
96
+ .tooltip-payload.no-anim {transition: none;}
97
+
98
+ /** overlay animation settings **/
99
+ .water-fall-chart .line-label-holder,
100
+ .row-item,
101
+ .water-fall-chart .line-holder line,
102
+ .time-scale line,
103
+ .time-scale text {transition:transform 60ms;}
104
+ .water-fall-chart.closing {transition-delay: 60ms;}
105
+
106
+ .labels {overflow: hidden;}
107
+
108
+ /*block colours for MIME types*/
109
+ .block-css {fill: #a6d18f;}
110
+ .block-iframe,
111
+ .block-html,
112
+ .block-svg,
113
+ .block-internal {fill: #82a8de;}
114
+ .block-img,
115
+ .block-image {fill: #b394cf;}
116
+ .block-script,
117
+ .block-javascript,
118
+ .block-js {fill: #e0b483;}
119
+ .block-link {fill: #89afe6;}
120
+ .block-swf,
121
+ .block-flash {fill: #42aab1;}
122
+ .block-font {fill: #e15d4e;}
123
+ .block-xmlhttprequest,
124
+ .block-ajax {fill: #f00;} /*remove?*/
125
+ .block-plain,
126
+ .block-other {fill: #b3b3b3;}
127
+
128
+ /*block colours for Timing*/
129
+ .block-blocked {fill: #aaa;}
130
+ .block-dns {fill: #159588;}
131
+ .block-connect {fill: #fd9727;}
132
+ .block-ssl {fill:#c141cd;}
133
+ .block-send {fill: #b0bec5;}
134
+ .block-wait {fill: #1ec659;}
135
+ .block-receive {fill: #1eaaf1;}
136
+ .block-receive-chunk {fill: #a1c3fa;}
137
+ .block-undefined {fill: #0f0;}
138
+
139
+ /* Info overlay SVG - wrapper */
140
+ .info-overlay-bg {fill: #fff; stroke: #cdcdcd;}
141
+ .info-overlay-close-btn {fill: rgba(205, 205, 205, 0.8); transform: translate(-23px, -23px); cursor: pointer;}
142
+ .info-overlay-close-btn text {fill: #111; pointer-events: none;}
143
+ .info-overlay-close-btn:focus {border: solid 1px #36c;}
144
+
145
+ /* Info overlay SVG - timings tab */
146
+ .info-overlay-holder .connect {border-right: solid 5px #fd9727; padding-right: 5px;}
147
+ .info-overlay-holder .blocked {border-right: solid 5px #aaa; padding-right: 5px;}
148
+ .info-overlay-holder .ssltls {border-right: solid 5px #c141cd; padding-right: 5px;}
149
+ .info-overlay-holder .send {border-right: solid 5px #b0bec5; padding-right: 5px;}
150
+ .info-overlay-holder .wait {border-right: solid 5px #1ec659; padding-right: 5px;}
151
+ .info-overlay-holder .receive {border-right: solid 5px #1eaaf1; padding-right: 5px;}
152
+ .info-overlay-holder .dns {border-right: solid 5px #159588; padding-right: 5px;}
153
+
154
+ /* Info overlay HTML - types */
155
+ .type-css {background: #406B29;}/*a6d18f - 40%*/
156
+ .type-iframe,
157
+ .type-html,
158
+ .type-svg,
159
+ .type-internal {background: #1C4278;} /*82a8de - 40%*/
160
+ .type-img,
161
+ .type-image {background: #4D2E69;} /*b394cf - 40%*/
162
+ .type-script,
163
+ .type-javascript,
164
+ .type-js {background: #7A4E1D;} /*e0b483 - 40%*/
165
+ .type-link {background: #89afe6;} /*89afe6 - 40%*/
166
+ .type-swf,
167
+ .type-flash {background: #234980;} /*#42aab1 - 40%*/
168
+ .type-font {background: #AE2A1B;} /*#e15d4e - 40%*/
169
+ .type-xmlhttprequest,
170
+ .type-ajax {background: #CC0000;} /* f00 40%*/
171
+ .type-plain,
172
+ .type-other {background: #808080;} /*#b3b3b3 - 40%*/
173
+
174
+ /* Info overlay HTML - base */
175
+ .info-overlay-holder * {padding: 0; margin:0; font-size: 12px;}
176
+ .info-overlay-holder body {position: relative; height: 450px; clear: both; padding: 0; margin:0; width:100%; background: $color--black; color: $color--white;}
177
+ .info-overlay-holder body .wrapper {height: 450px; width: 100%; overflow: scroll;}
178
+
179
+ /* Info overlay HTML - header */
180
+ .info-overlay-holder header {position: relative; box-shadow: 0px 0px 2px 2px rgba(0,0,0,0.25);}
181
+ .info-overlay-holder header,
182
+ .info-overlay-holder header a,
183
+ .info-overlay-holder header button {color: #fff; text-decoration: none;}
184
+ .info-overlay-holder header a:hover,
185
+ .info-overlay-holder header a:focus {text-decoration: underline;}
186
+ .info-overlay-holder .requestID {font-weight: bold;}
187
+ .info-overlay-holder h3,
188
+ .info-overlay-holder h3 a {font-size: 1.1em; padding: 1em; margin:0; font-weight: normal; overflow-wrap: break-word;}
189
+ .info-overlay-holder h3 strong {font-size: 1.1em;}
190
+ .info-overlay-holder .tab-nav ul {margin: 0; padding: 0;}
191
+ .info-overlay-holder .tab-nav li {margin: 0; padding: 0; display: inline-block;}
192
+ .info-overlay-holder button {background: transparent; outline:0; border:0; border-bottom: solid 2px transparent; padding: 0.5em 1em; margin:0 0.25em;}
193
+ .info-overlay-holder li:first-child button {margin-left: 1em;}
194
+ .info-overlay-holder button:focus,
195
+ .info-overlay-holder button.active:focus,
196
+ .info-overlay-holder button:hover {border-color: rgba(255,255,255, 0.6);}
197
+ .info-overlay-holder button.active {border-color: #fff; cursor: default;}
198
+ .info-overlay-holder button.active:focus {border-color: rgba(255,255,255, 0.8);}
199
+ .info-overlay-holder button.copy-tab-data {position: absolute; top:0.5em; right: 0.5em; border: 0; margin: 0; border-radius: 1em; background: #555; color: #ccc;}
200
+ .info-overlay-holder button.copy-tab-data:focus,
201
+ .info-overlay-holder button.copy-tab-data:hover {background: #777; color: $color--white}
202
+
203
+ /* Info overlay HTML - content */
204
+ .info-overlay-holder dt {float: left; clear: both; margin-top: 0.5em; width: 25%; text-align: right; font-weight: bold;}
205
+ .info-overlay-holder dd {float: left; width:73%; margin: 0.5em 0 0 2%; padding: 0 0 0.5em 0;}
206
+ .info-overlay-holder dt:after {content: ":";}
207
+ .info-overlay-holder pre {font-size: 11px; line-height: 23px; border-radius: 0; background: #f6f3f3;}
208
+
209
+ .info-overlay-holder .tab {float: left; position: relative; width:100%; height: 350px; padding:12px 12px 24px;}
210
+ .info-overlay-holder .tab h2 {font-size: 1.2em; margin:0.5em 0 0; padding: 0.5em 0 0.5em 1em; clear: both; border-top: solid 1px #efefef;}
211
+ .info-overlay-holder .tab h2:first-child {border-top: 0; padding-top: 0;}
212
+ .info-overlay-holder .tab pre {overflow-y: hidden; width:100%; min-height: 100%;}
213
+ .info-overlay-holder .tab .preview {width: auto; max-width: 100%; max-height: 500px; border: solid 1px #666;}
214
+ .info-overlay-holder .tab dl:after {content: ""; display: table; clear: both;}
215
+ .info-overlay-holder .tab.rendered-data {padding: 0;}
216
+ .info-overlay-holder .tab.rendered-data pre {padding:12px 12px 24px; background-color: #111;}
217
+ .info-overlay-holder .tab.rendered-data pre > code {white-space: pre-wrap;}
218
+
219
+ /** Legend */
220
+ .resource-legend {margin: 0; padding: 0; font-size: 0.75em; line-height: 1.5em; display: inline-block;}
221
+ .resource-legend li {margin: 0 1em 0 0; padding: 0; white-space: nowrap; display: inline-block;}
222
+ .resource-legend li:before {content:''; width: 1em; height: 1em; margin: 0 0.5em 0 0; vertical-align: text-top; display: inline-block;}
223
+
224
+ .resource-legend .legend-blocked:before {background: #aaa;}
225
+ .resource-legend .legend-dns:before {background: #159588;}
226
+ .resource-legend .legend-connect:before {background: #fd9727;}
227
+ .resource-legend .legend-ssl:before {background: #c141cd;}
228
+ .resource-legend .legend-send:before {background: #b0bec5;}
229
+ .resource-legend .legend-wait:before {background: #1ec659;}
230
+ .resource-legend .legend-receive:before {background: #1eaaf1;}
231
+
232
+ .icon {fill: #ccc;}
233
+
234
+ .icon-4xx,
235
+ .icon-5xx,
236
+ .icon-no-cache,
237
+ .icon-no-gzip,
238
+ .icon-warning {fill: #b55;}
239
+
240
+ .full-label {background-color: #222; fill: #eee;}
@@ -0,0 +1,161 @@
1
+ //
2
+ // TABLES
3
+ // ===============
4
+ //
5
+
6
+ table {
7
+ width: 100%;
8
+ margin-bottom: 2.5rem;
9
+ border-collapse: separate;
10
+ border-spacing: 1px;
11
+ background-color: #222;
12
+ }
13
+
14
+ th,
15
+ td {
16
+ padding: 4px 1rem;
17
+ vertical-align: top;
18
+ text-align: left;
19
+ }
20
+
21
+ th:first-child,
22
+ td:first-child {
23
+ padding-left: 1rem;
24
+ }
25
+
26
+ th:last-child,
27
+ td:last-child {
28
+ padding-right: 1rem;
29
+ }
30
+
31
+ tr {
32
+ &:nth-child(odd) {
33
+ background: #333;
34
+ // background: lighten($color--black, 10%);
35
+ }
36
+ &:nth-child(even) {
37
+ background: $color--black;
38
+ }
39
+ &.odd {
40
+ background: #333;
41
+ // background: lighten($color--black, 10%);
42
+ }
43
+ &.even {
44
+ background: $color--black;
45
+ }
46
+ }
47
+
48
+ th {
49
+ background: darken($color--blue, 20%);
50
+ }
51
+
52
+ td.number, th.number {
53
+ text-align: right;
54
+ }
55
+
56
+ td.right {
57
+ text-align: right;
58
+ }
59
+
60
+ /* Hack for long URLs in tables, please help us with a better way to do this! */
61
+ td.url {
62
+ overflow-wrap: break-word;
63
+ word-wrap: break-word;
64
+ -webkit-hyphens: auto;
65
+ -ms-hyphens: auto;
66
+ -moz-hyphens: auto;
67
+ hyphens: auto;
68
+ }
69
+
70
+ td.assetsurl {
71
+ max-width: 400px;
72
+ }
73
+
74
+ td.pagesurl {
75
+ max-width: 350px;
76
+ }
77
+
78
+ td.offendingurl {
79
+ max-width: 900px;
80
+ }
81
+
82
+ td.break {
83
+ word-break: break-all;
84
+ }
85
+
86
+ td.extraheader {
87
+ font-weight: bold;
88
+ background: #004d6c;
89
+ }
90
+
91
+ /** Responsive tables, wrap them in a div
92
+ * We use Chris Coyiers (old) hide the table
93
+ * solution https://css-tricks.com/responsive-data-tables/
94
+ */
95
+ @media only screen and (max-width: 800px) {
96
+ /* Force table to not be like tables anymore */
97
+ .responsive table,
98
+ .responsive thead,
99
+ .responsive tbody,
100
+ .responsive th,
101
+ .responsive td,
102
+ .responsive tr {
103
+ display: block;
104
+ }
105
+
106
+ /* Hide/show in coach offending */
107
+ .responsive tr.u-hideable {
108
+ display: none;
109
+ }
110
+
111
+ /* Hide table headers (but not display: none;, for accessibility) */
112
+ .responsive thead tr {
113
+ position: absolute;
114
+ top: -9999px;
115
+ left: -9999px;
116
+ }
117
+
118
+ .responsive tr {
119
+ border: 2px solid $color--grey;
120
+ }
121
+
122
+ .responsive td {
123
+ /* Behave like a "row" */
124
+ border: none;
125
+ border-bottom: 1px solid $color--grey;
126
+ position: relative;
127
+ padding-left: 50%;
128
+ white-space: normal;
129
+ text-align: left;
130
+ max-width: none;
131
+ }
132
+
133
+ .responsive td:before {
134
+ /* Now like a table header */
135
+ position: absolute;
136
+ /* Top/left values mimic padding */
137
+ top: 6px;
138
+ left: 6px;
139
+ width: 30%;
140
+ padding-right: 10px;
141
+ white-space: nowrap;
142
+ text-align: left;
143
+ font-weight: bold;
144
+ }
145
+
146
+ /*
147
+ Label the data
148
+ */
149
+ .responsive td:before {
150
+ content: attr(data-title);
151
+ }
152
+
153
+ .responsive td.url.offendingurl {
154
+ word-break: break-all;
155
+ padding-left: 2px;
156
+ }
157
+
158
+ .hidden-small {
159
+ display: none;
160
+ }
161
+ }
@@ -0,0 +1,109 @@
1
+ //
2
+ // TYPOGRAPHY
3
+ // ===============
4
+ //
5
+
6
+ //
7
+ // BASE STYLES
8
+ //
9
+ html {
10
+ font-size: $base--font-size;
11
+ }
12
+
13
+ body {
14
+ font-size: 1em;
15
+ line-height: $base--line-height;
16
+ font-weight: $base--font-weight;
17
+ font-family: $base--font-family;
18
+ color: $color--white;
19
+ background-color: $color--black;
20
+ }
21
+
22
+ //
23
+ // HEADINGS
24
+ //
25
+
26
+ h1,
27
+ h2,
28
+ h3,
29
+ h4,
30
+ h5,
31
+ h6 {
32
+ margin-top: 1rem;
33
+ margin-bottom: 2rem;
34
+ font-weight: 300;
35
+ }
36
+
37
+ h1 {
38
+ font-size: 3rem;
39
+ line-height: 1.2;
40
+ }
41
+
42
+ h2 {
43
+ font-size: 2.8rem;
44
+ line-height: 1.25;
45
+ }
46
+
47
+ h3 {
48
+ font-size: 2.6rem;
49
+ line-height: 1.3;
50
+ }
51
+
52
+ h4 {
53
+ font-size: 2.4rem;
54
+ line-height: 1.35;
55
+ }
56
+
57
+ h5 {
58
+ font-size: 1.8rem;
59
+ line-height: 1.5;
60
+ }
61
+
62
+ h6 {
63
+ font-size: 1.5rem;
64
+ line-height: 1.6;
65
+ letter-spacing: 0;
66
+ }
67
+
68
+ p {
69
+ margin-top: 0;
70
+ }
71
+
72
+ //
73
+ // LINKS
74
+ //
75
+
76
+ a {
77
+ color: $color--blue;
78
+ }
79
+
80
+ a:hover {
81
+ color: darken($color--blue, 10%);
82
+ }
83
+
84
+ pre,
85
+ blockquote,
86
+ dl,
87
+ p {
88
+ margin-bottom: 2.5rem;
89
+ }
90
+
91
+ //
92
+ // PRE-FORMATTED TEXT / CODE BLOCKS
93
+ //
94
+ code {
95
+ padding: 0.2rem 0.5rem;
96
+ margin: 0 0.2rem;
97
+ font-size: 0.9rem;
98
+ white-space: nowrap;
99
+ background: darken($color--black, 2);
100
+ border: 1px solid #444;
101
+ border-radius: 4px;
102
+ }
103
+
104
+ pre > code {
105
+ display: block;
106
+ padding: 1rem 1.5rem;
107
+ white-space: pre;
108
+ overflow: auto;
109
+ }
@@ -0,0 +1,41 @@
1
+ //
2
+ // SETTINGS
3
+ // ========
4
+ // Specific settings which can be changed to modify the basic look and
5
+ // feel of the project with little effort.
6
+ //
7
+ // 1. COLOURS
8
+ // 2. TYPEFACES
9
+ // 3. BASE STYLES
10
+ //
11
+
12
+ //
13
+ // 1. COLOURS
14
+ //
15
+ $color--blue: #0095d2;
16
+ $color--white: #ffffff;
17
+ $color--grey: #e1e1e1;
18
+ $color--black: #222222;
19
+
20
+ //
21
+ // 2. TYPEFACES
22
+ //
23
+
24
+ $font--versions: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica,
25
+ Arial, sans-serif;
26
+
27
+ $font--weight--light: 300;
28
+ $font--weight--regular: 400;
29
+ $font--weight--heavy: 800;
30
+
31
+ //
32
+ // 3. BASE STYLES
33
+ //
34
+
35
+ $base--font-family: $font--versions;
36
+ $base--font-weight: $font--weight--regular;
37
+ $base--font-color: $color--white;
38
+ $base--font-size: 100%;
39
+ $base--line-height: 1.6;
40
+ $base--spacing: 20px;
41
+ $base--body-bg: $color--black;
@@ -0,0 +1,34 @@
1
+ .chartist-tooltip {
2
+ position: absolute;
3
+ display: inline-block;
4
+ opacity: 0;
5
+ min-width: 5em;
6
+ padding: .5em;
7
+ background: #F4C63D;
8
+ color: #453D3F;
9
+ font-family: Oxygen,Helvetica,Arial,sans-serif;
10
+ font-weight: 700;
11
+ text-align: center;
12
+ pointer-events: none;
13
+ z-index: 1;
14
+ -webkit-transition: opacity .2s linear;
15
+ -moz-transition: opacity .2s linear;
16
+ -o-transition: opacity .2s linear;
17
+ transition: opacity .2s linear; }
18
+ .chartist-tooltip:before {
19
+ content: "";
20
+ position: absolute;
21
+ top: 100%;
22
+ left: 50%;
23
+ width: 0;
24
+ height: 0;
25
+ margin-left: -15px;
26
+ border: 15px solid transparent;
27
+ border-top-color: #F4C63D; }
28
+ .chartist-tooltip.tooltip-show {
29
+ opacity: 1; }
30
+
31
+ .ct-area, .ct-line {
32
+ pointer-events: none; }
33
+
34
+ /*# sourceMappingURL=chartist-plugin-tooltip.css.map */