nexmo-oas-renderer 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env.example +1 -0
- data/.gitignore +5 -0
- data/CHANGELOG.md +2 -0
- data/CONTRIBUTING.md +46 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +183 -0
- data/LICENSE.txt +21 -0
- data/README.md +73 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/nexmo-oas-renderer +5 -0
- data/lib/nexmo/oas/engine.rb +9 -0
- data/lib/nexmo/oas/renderer.rb +13 -0
- data/lib/nexmo/oas/renderer/app.rb +116 -0
- data/lib/nexmo/oas/renderer/config.ru +7 -0
- data/lib/nexmo/oas/renderer/config/code_languages.yml +138 -0
- data/lib/nexmo/oas/renderer/config/dynamic_content.yml +1 -0
- data/lib/nexmo/oas/renderer/config/redirects.yml +8 -0
- data/lib/nexmo/oas/renderer/constraints/open_api.rb +76 -0
- data/lib/nexmo/oas/renderer/constraints/redirector.rb +17 -0
- data/lib/nexmo/oas/renderer/decorators/response_parser_decorator.rb +55 -0
- data/lib/nexmo/oas/renderer/filters/anchor.rb +17 -0
- data/lib/nexmo/oas/renderer/filters/audio.rb +21 -0
- data/lib/nexmo/oas/renderer/filters/block_escape.rb +24 -0
- data/lib/nexmo/oas/renderer/filters/break.rb +13 -0
- data/lib/nexmo/oas/renderer/filters/code.rb +64 -0
- data/lib/nexmo/oas/renderer/filters/code_snippet.rb +194 -0
- data/lib/nexmo/oas/renderer/filters/code_snippet_list.rb +33 -0
- data/lib/nexmo/oas/renderer/filters/code_snippets.rb +158 -0
- data/lib/nexmo/oas/renderer/filters/collapsible.rb +27 -0
- data/lib/nexmo/oas/renderer/filters/columns.rb +50 -0
- data/lib/nexmo/oas/renderer/filters/concept_list.rb +33 -0
- data/lib/nexmo/oas/renderer/filters/dynamic_content.rb +30 -0
- data/lib/nexmo/oas/renderer/filters/external_link.rb +32 -0
- data/lib/nexmo/oas/renderer/filters/frontmatter.rb +14 -0
- data/lib/nexmo/oas/renderer/filters/heading.rb +61 -0
- data/lib/nexmo/oas/renderer/filters/icon.rb +22 -0
- data/lib/nexmo/oas/renderer/filters/indent.rb +20 -0
- data/lib/nexmo/oas/renderer/filters/inline_escape.rb +17 -0
- data/lib/nexmo/oas/renderer/filters/js_sequence_diagram.rb +21 -0
- data/lib/nexmo/oas/renderer/filters/label.rb +32 -0
- data/lib/nexmo/oas/renderer/filters/language.rb +15 -0
- data/lib/nexmo/oas/renderer/filters/markdown.rb +85 -0
- data/lib/nexmo/oas/renderer/filters/modal.rb +41 -0
- data/lib/nexmo/oas/renderer/filters/partial.rb +28 -0
- data/lib/nexmo/oas/renderer/filters/php_inliner.rb +15 -0
- data/lib/nexmo/oas/renderer/filters/screenshot.rb +26 -0
- data/lib/nexmo/oas/renderer/filters/tab.rb +250 -0
- data/lib/nexmo/oas/renderer/filters/techio.rb +24 -0
- data/lib/nexmo/oas/renderer/filters/tooltip.rb +22 -0
- data/lib/nexmo/oas/renderer/filters/tutorial_link.rb +27 -0
- data/lib/nexmo/oas/renderer/filters/tutorials.rb +28 -0
- data/lib/nexmo/oas/renderer/filters/unfreeze.rb +20 -0
- data/lib/nexmo/oas/renderer/filters/user_personalization.rb +43 -0
- data/lib/nexmo/oas/renderer/helpers/navigation.rb +66 -0
- data/lib/nexmo/oas/renderer/helpers/render.rb +24 -0
- data/lib/nexmo/oas/renderer/helpers/summary.rb +30 -0
- data/lib/nexmo/oas/renderer/helpers/url.rb +17 -0
- data/lib/nexmo/oas/renderer/lib/core_ext/string.rb +14 -0
- data/lib/nexmo/oas/renderer/lib/redcarpet.rb +14 -0
- data/lib/nexmo/oas/renderer/models/code_snippet.rb +75 -0
- data/lib/nexmo/oas/renderer/models/tutorial.rb +83 -0
- data/lib/nexmo/oas/renderer/pipelines/markdown_pipeline.rb +52 -0
- data/lib/nexmo/oas/renderer/presenters/api_specification.rb +42 -0
- data/lib/nexmo/oas/renderer/presenters/groups.rb +35 -0
- data/lib/nexmo/oas/renderer/presenters/navigation.rb +24 -0
- data/lib/nexmo/oas/renderer/presenters/open_api_specification.rb +68 -0
- data/lib/nexmo/oas/renderer/presenters/versions.rb +40 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Black.woff +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Black.woff2 +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Heavy.woff +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Heavy.woff2 +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Regular.woff +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Regular.woff2 +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Semibold.woff +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Semibold.woff2 +0 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/android.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/curl.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/dotnet.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/ios.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/java.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/javascript.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/node.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/php.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/python.svg +11 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/ruby.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/lost.svg +37 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/components/format.js +42 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.accordion.js +249 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.core.js +230 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.modal.js +300 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.tabs.js +139 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/api.css +95 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/buttons.css +80 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/core.css +79 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/mediaqueries.css +2 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/mediaqueries.css.map +7 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/navigation.css +79 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/nexmo.css +68 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/api.scss +147 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/core.scss +133 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/mediaqueries.scss +48 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/navigation.scss +106 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/nexmo.scss +61 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/style.scss +10 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/syntax.scss +63 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/typography.scss +248 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/variables.scss +91 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/volta-templates.scss +119 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/style.css +2 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/style.css.map +7 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/syntax.css +79 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/typography.css +86 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/variables.css +2 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/variables.css.map +7 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/volta-templates.css +2 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/volta-templates.css.map +7 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/volta.min.css +1 -0
- data/lib/nexmo/oas/renderer/public/assets/symbol/volta-icons.svg +1 -0
- data/lib/nexmo/oas/renderer/public/favicon.ico +0 -0
- data/lib/nexmo/oas/renderer/services/code_language_api.rb +98 -0
- data/lib/nexmo/oas/renderer/services/oas_parser.rb +21 -0
- data/lib/nexmo/oas/renderer/services/open_api_definition_resolver.rb +33 -0
- data/lib/nexmo/oas/renderer/version.rb +7 -0
- data/lib/nexmo/oas/renderer/views/api/show.erb +1 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_application_messages_dispatch.html.erb +9 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_application_rtc.html.erb +41 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_application_voice.html.erb +24 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_code_only.html.erb +6 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_configure_client.html.erb +20 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_dependencies.html.erb +11 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_write_code.html.erb +13 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/list/plain.html.erb +10 -0
- data/lib/nexmo/oas/renderer/views/concepts/list/plain.html.erb +5 -0
- data/lib/nexmo/oas/renderer/views/layouts/_head.erb +4 -0
- data/lib/nexmo/oas/renderer/views/layouts/_javascripts.erb +9 -0
- data/lib/nexmo/oas/renderer/views/layouts/api.erb +23 -0
- data/lib/nexmo/oas/renderer/views/layouts/open_api.erb +10 -0
- data/lib/nexmo/oas/renderer/views/open_api/_callback.erb +5 -0
- data/lib/nexmo/oas/renderer/views/open_api/_callback_endpoint.erb +48 -0
- data/lib/nexmo/oas/renderer/views/open_api/_code_examples.erb +16 -0
- data/lib/nexmo/oas/renderer/views/open_api/_endpoint.erb +156 -0
- data/lib/nexmo/oas/renderer/views/open_api/_model.erb +38 -0
- data/lib/nexmo/oas/renderer/views/open_api/_navigation.erb +80 -0
- data/lib/nexmo/oas/renderer/views/open_api/_parameter_groups.erb +50 -0
- data/lib/nexmo/oas/renderer/views/open_api/_parameters.erb +165 -0
- data/lib/nexmo/oas/renderer/views/open_api/_response_description_parameters.erb +61 -0
- data/lib/nexmo/oas/renderer/views/open_api/_response_descriptions.erb +41 -0
- data/lib/nexmo/oas/renderer/views/open_api/show.erb +104 -0
- data/lib/nexmo/oas/renderer/views/static/404.erb +6 -0
- data/lib/nexmo/oas/renderer/views/tutorials/_index.html.erb +32 -0
- data/lib/nexmo/oas/renderer/views/tutorials/index.html.erb +7 -0
- data/lib/nexmo/oas/renderer/views/tutorials/list/plain.html.erb +5 -0
- data/lib/nexmo/oas/renderer/views/tutorials/show.html.erb +8 -0
- data/nexmo-oas-renderer.gemspec +49 -0
- metadata +399 -0
@@ -0,0 +1,68 @@
|
|
1
|
+
/*
|
2
|
+
Error: Undefined variable: "$blue".
|
3
|
+
on line 1 of ./public/stylesheets/sass/nexmo.scss
|
4
|
+
|
5
|
+
1: $blue-light: $blue;
|
6
|
+
2: $pink: #E6547B;
|
7
|
+
3: $peach: #F88175;
|
8
|
+
4: $ice: #f9fbfd;
|
9
|
+
5: $mint: #E4EEF3;
|
10
|
+
6: $atom: #282c34;
|
11
|
+
|
12
|
+
Backtrace:
|
13
|
+
./public/stylesheets/sass/nexmo.scss:1
|
14
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/script/tree/variable.rb:49:in `_perform'
|
15
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/script/tree/node.rb:50:in `perform'
|
16
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:478:in `visit_variable'
|
17
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:36:in `visit'
|
18
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:158:in `block in visit'
|
19
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/stack.rb:79:in `block in with_base'
|
20
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/stack.rb:135:in `with_frame'
|
21
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/stack.rb:79:in `with_base'
|
22
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:158:in `visit'
|
23
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:52:in `block in visit_children'
|
24
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:52:in `map'
|
25
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:52:in `visit_children'
|
26
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:167:in `block in visit_children'
|
27
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:179:in `with_environment'
|
28
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:166:in `visit_children'
|
29
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:36:in `block in visit'
|
30
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:186:in `visit_root'
|
31
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:36:in `visit'
|
32
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:157:in `visit'
|
33
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:10:in `visit'
|
34
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/root_node.rb:36:in `css_tree'
|
35
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/tree/root_node.rb:29:in `render_with_sourcemap'
|
36
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/engine.rb:389:in `_render_with_sourcemap'
|
37
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/engine.rb:307:in `render_with_sourcemap'
|
38
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/plugin/compiler.rb:462:in `update_stylesheet'
|
39
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/plugin/compiler.rb:215:in `block in update_stylesheets'
|
40
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/plugin/compiler.rb:209:in `each'
|
41
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/plugin/compiler.rb:209:in `update_stylesheets'
|
42
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/plugin.rb:82:in `update_stylesheets'
|
43
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/plugin.rb:54:in `check_for_updates'
|
44
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sass-3.7.4/lib/sass/plugin/rack.rb:51:in `call'
|
45
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/lint.rb:49:in `_call'
|
46
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/lint.rb:37:in `call'
|
47
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/show_exceptions.rb:23:in `call'
|
48
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/common_logger.rb:33:in `call'
|
49
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:231:in `call'
|
50
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:86:in `proceed_as_child'
|
51
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:31:in `call!'
|
52
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:18:in `call'
|
53
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/favicon.rb:12:in `call'
|
54
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/static.rb:14:in `call'
|
55
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/urlmap.rb:68:in `block in call'
|
56
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `each'
|
57
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `call'
|
58
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:153:in `call'
|
59
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/puma-3.12.1/lib/puma/configuration.rb:227:in `call'
|
60
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/puma-3.12.1/lib/puma/server.rb:660:in `handle_request'
|
61
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/puma-3.12.1/lib/puma/server.rb:474:in `process_client'
|
62
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/puma-3.12.1/lib/puma/server.rb:334:in `block in run'
|
63
|
+
/Users/frodriguez/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/puma-3.12.1/lib/puma/thread_pool.rb:135:in `block in spawn_thread'
|
64
|
+
*/
|
65
|
+
body:before {
|
66
|
+
white-space: pre;
|
67
|
+
font-family: monospace;
|
68
|
+
content: "Error: Undefined variable: \"$blue\".\A on line 1 of ./public/stylesheets/sass/nexmo.scss\A \A 1: $blue-light: $blue;\A 2: $pink: #E6547B;\A 3: $peach: #F88175;\A 4: $ice: #f9fbfd;\A 5: $mint: #E4EEF3;\A 6: $atom: #282c34;"; }
|
@@ -0,0 +1,147 @@
|
|
1
|
+
.Nxd-content {
|
2
|
+
display: flex;
|
3
|
+
}
|
4
|
+
|
5
|
+
.Nxd-menu__indent {
|
6
|
+
margin-left: 31px !important;
|
7
|
+
}
|
8
|
+
|
9
|
+
.Nxd-method-badge {
|
10
|
+
text-transform: uppercase;
|
11
|
+
|
12
|
+
&--post {
|
13
|
+
background: $green;
|
14
|
+
}
|
15
|
+
|
16
|
+
&--get {
|
17
|
+
background: $blue-dark;
|
18
|
+
}
|
19
|
+
|
20
|
+
&--delete {
|
21
|
+
background: $red;
|
22
|
+
}
|
23
|
+
|
24
|
+
&--patch {
|
25
|
+
background: $teal;
|
26
|
+
}
|
27
|
+
|
28
|
+
&--put {
|
29
|
+
background: $purple-dark;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.table-no-line {
|
34
|
+
td {
|
35
|
+
border-bottom: none !important;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.Vlt-table {
|
40
|
+
.Vlt-table {
|
41
|
+
table thead {
|
42
|
+
th {
|
43
|
+
background-color: $grey-lighter;
|
44
|
+
border-bottom-color: $grey;
|
45
|
+
border-top-color: $grey-light;
|
46
|
+
color: $grey-darker;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.Nxd-api {
|
53
|
+
padding-top: 0;
|
54
|
+
padding-right: $unit2;
|
55
|
+
|
56
|
+
@media #{$S-only} {
|
57
|
+
padding-left: $unit2;
|
58
|
+
}
|
59
|
+
|
60
|
+
&__code {
|
61
|
+
background: $grey-light;
|
62
|
+
border-bottom: 1px solid $grey-lighter;
|
63
|
+
padding: $unit2;
|
64
|
+
|
65
|
+
h4,
|
66
|
+
h5 {
|
67
|
+
color: $grey-darker;
|
68
|
+
}
|
69
|
+
|
70
|
+
&__header {
|
71
|
+
margin: -#{$unit3} -#{$unit2} #{$unit2} -#{$unit2};
|
72
|
+
|
73
|
+
.Vlt-native-dropdown {
|
74
|
+
margin-right: $unit2;
|
75
|
+
float: right;
|
76
|
+
}
|
77
|
+
|
78
|
+
&--sticky {
|
79
|
+
position: fixed;
|
80
|
+
top: 135px;
|
81
|
+
width: 27.5%;
|
82
|
+
z-index: 1000;
|
83
|
+
|
84
|
+
@media #{$S-only} {
|
85
|
+
left: 0;
|
86
|
+
padding: 0 $unit1;
|
87
|
+
top: 52px;
|
88
|
+
width: 100vw;
|
89
|
+
margin: 0;
|
90
|
+
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
.Vlt-accordion__trigger {
|
96
|
+
&:after {
|
97
|
+
background-color: rgba($white, 0.2);
|
98
|
+
border-radius: 100%;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
&__docs {
|
104
|
+
padding-top: $unit3;
|
105
|
+
|
106
|
+
@media #{$M-plus} {
|
107
|
+
border-bottom: 1px solid $grey-light;
|
108
|
+
padding-top: $unit5;
|
109
|
+
}
|
110
|
+
|
111
|
+
.Vlt-tooltip {
|
112
|
+
white-space: nowrap;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
&--noborder {
|
117
|
+
margin-bottom: -$unit2;
|
118
|
+
|
119
|
+
.Nxd-api__docs {
|
120
|
+
border: 0;
|
121
|
+
}
|
122
|
+
|
123
|
+
.Nxd-api__code {
|
124
|
+
border: 0;
|
125
|
+
|
126
|
+
@media #{$S-only} {
|
127
|
+
display: none;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
.Nxd-version {
|
135
|
+
p {
|
136
|
+
text-transform: uppercase;
|
137
|
+
font-size: 1.3rem !important;
|
138
|
+
}
|
139
|
+
|
140
|
+
a {
|
141
|
+
font-size: 1.3rem !important;
|
142
|
+
color: #005282 !important;
|
143
|
+
&.active {
|
144
|
+
font-weight: bold;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
@@ -0,0 +1,133 @@
|
|
1
|
+
* {
|
2
|
+
box-sizing: border-box;
|
3
|
+
font-smoothing: antialiased;
|
4
|
+
-webkit-font-smoothing: antialiased;
|
5
|
+
}
|
6
|
+
|
7
|
+
body {
|
8
|
+
display: flex;
|
9
|
+
min-height: 100vh;
|
10
|
+
flex-direction: column;
|
11
|
+
}
|
12
|
+
|
13
|
+
.Nxd-template {
|
14
|
+
display: flex;
|
15
|
+
flex-flow: row wrap;
|
16
|
+
width: 100%;
|
17
|
+
justify-content: center;
|
18
|
+
}
|
19
|
+
|
20
|
+
.Nxd-main {
|
21
|
+
outline: none;
|
22
|
+
}
|
23
|
+
|
24
|
+
@media #{$M-plus} {
|
25
|
+
.Nxd-main {
|
26
|
+
height: calc(100vh - 111px);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.Nxd-landing-main {
|
31
|
+
padding: $unit3 $unit4;
|
32
|
+
}
|
33
|
+
|
34
|
+
.container {
|
35
|
+
max-width: 1300px;
|
36
|
+
padding: $unit3 $spacing 0;
|
37
|
+
margin: auto;
|
38
|
+
}
|
39
|
+
|
40
|
+
.row {
|
41
|
+
max-width: 1300px;
|
42
|
+
margin-left: -0.9375rem;
|
43
|
+
margin-right: -0.9375rem;
|
44
|
+
}
|
45
|
+
|
46
|
+
img {
|
47
|
+
max-width: 100%;
|
48
|
+
}
|
49
|
+
|
50
|
+
table {
|
51
|
+
code {
|
52
|
+
white-space: nowrap;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
.spacious {
|
57
|
+
padding: $spacing*2 0;
|
58
|
+
}
|
59
|
+
|
60
|
+
.clearfix {
|
61
|
+
content: "";
|
62
|
+
display: table;
|
63
|
+
clear: both;
|
64
|
+
}
|
65
|
+
|
66
|
+
@keyframes spin {
|
67
|
+
0% {-webkit-transform: rotate(0deg)}
|
68
|
+
100% {-webkit-transform: rotate(359deg)}
|
69
|
+
}
|
70
|
+
|
71
|
+
.spinner {
|
72
|
+
width: 100%;
|
73
|
+
margin: $spacing*2 0;
|
74
|
+
text-align: center;
|
75
|
+
animation: spin 1.2s infinite ease-in-out;
|
76
|
+
i {
|
77
|
+
font-size: 40px;
|
78
|
+
color: $mint;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
.flex {
|
83
|
+
display: flex;
|
84
|
+
}
|
85
|
+
|
86
|
+
.flex--auto {
|
87
|
+
> * { flex: 1; }
|
88
|
+
}
|
89
|
+
|
90
|
+
.hide {
|
91
|
+
display: none;
|
92
|
+
}
|
93
|
+
|
94
|
+
.grecaptcha-badge {
|
95
|
+
display: none;
|
96
|
+
}
|
97
|
+
|
98
|
+
.float-right {
|
99
|
+
float: right;
|
100
|
+
}
|
101
|
+
|
102
|
+
.Nxd-header-notices {
|
103
|
+
.Vlt-callout {
|
104
|
+
margin-bottom: $unit4;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
table {
|
109
|
+
.Vlt-icon:not(.Vlt-icon--smaller) {
|
110
|
+
display: block;
|
111
|
+
margin: 0 auto;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
.Vlt-title--icon {
|
116
|
+
position: relative
|
117
|
+
}
|
118
|
+
|
119
|
+
.heading-permalink {
|
120
|
+
opacity: 0;
|
121
|
+
transition: opacity 0.2s;
|
122
|
+
position: absolute;
|
123
|
+
left: -20px;
|
124
|
+
|
125
|
+
svg {
|
126
|
+
height: 18px !important;
|
127
|
+
width: 18px !important;
|
128
|
+
}
|
129
|
+
|
130
|
+
.Vlt-title--icon:hover & {
|
131
|
+
opacity: 1;
|
132
|
+
}
|
133
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
// We only use 2 breakpoints because normally we design for 3 screen: phone, tablet and desktop
|
2
|
+
// There's no point in having more than these breakpoints if we're not going to provide design for them
|
3
|
+
|
4
|
+
$big-screen: 768px;
|
5
|
+
$small-screen: 576px;
|
6
|
+
|
7
|
+
$big-screen-w-sidenav: 1038px;
|
8
|
+
$small-screen-w-sidenav: 846px;
|
9
|
+
|
10
|
+
$S-only: 'only screen and (max-width: #{$small-screen - 1})';
|
11
|
+
$M-only: 'only screen and (min-width: #{$small-screen} ) and (max-width: #{$big-screen - 1})';
|
12
|
+
$M-plus: 'only screen and (min-width: #{$small-screen} )';
|
13
|
+
$M-less: 'only screen and (max-width: #{$big-screen - 1})';
|
14
|
+
$L-plus: 'only screen and (min-width: #{$big-screen})';
|
15
|
+
|
16
|
+
.Vlt-S-only {
|
17
|
+
@media #{$M-plus} {
|
18
|
+
display: none !important;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.Vlt-M-only {
|
23
|
+
@media #{$S-only} {
|
24
|
+
display: none !important;
|
25
|
+
}
|
26
|
+
|
27
|
+
@media #{$L-plus} {
|
28
|
+
display: none !important;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.Vlt-L-plus {
|
33
|
+
@media #{$M-less} {
|
34
|
+
display: none !important;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.Vlt-M-plus {
|
39
|
+
@media #{$S-only} {
|
40
|
+
display: none !important;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
.Vlt-M-less {
|
45
|
+
@media #{$L-plus} {
|
46
|
+
display: none !important;
|
47
|
+
}
|
48
|
+
}
|
@@ -0,0 +1,106 @@
|
|
1
|
+
@mixin highlighted-navigation($color) {
|
2
|
+
a, span {
|
3
|
+
color: $color;
|
4
|
+
opacity: 0.8;
|
5
|
+
transition: opacity 200ms ease-in-out;
|
6
|
+
|
7
|
+
&:hover {
|
8
|
+
opacity: 1;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
.Vlt-sidenav {
|
14
|
+
flex: 0 0 300px;
|
15
|
+
width: 300px;
|
16
|
+
}
|
17
|
+
|
18
|
+
.Vlt-sidemenu--flat {
|
19
|
+
.Vlt-sidemenu__link {
|
20
|
+
padding: 4px 10px;
|
21
|
+
}
|
22
|
+
|
23
|
+
li {
|
24
|
+
a {
|
25
|
+
font-weight: 900;
|
26
|
+
}
|
27
|
+
|
28
|
+
li {
|
29
|
+
a {
|
30
|
+
font-weight: 600;
|
31
|
+
}
|
32
|
+
|
33
|
+
li {
|
34
|
+
a {
|
35
|
+
font-weight: 400;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
.Vlt-sidemenu__title + ul > li {
|
43
|
+
margin-left: 0 !important;
|
44
|
+
}
|
45
|
+
|
46
|
+
@media #{$M-plus} {
|
47
|
+
.Vlt-sidenav {
|
48
|
+
height: calc(100vh - 111px);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.navigation--documentation {
|
53
|
+
.navigation-item--tutorials a {
|
54
|
+
color: $green-dark;
|
55
|
+
}
|
56
|
+
|
57
|
+
.navigation-item--api-reference a {
|
58
|
+
color: $blue-dark;
|
59
|
+
}
|
60
|
+
|
61
|
+
.navigation-item--sdk-documentation > a {
|
62
|
+
color: $green
|
63
|
+
}
|
64
|
+
|
65
|
+
.navigation-item--ncco-reference a {
|
66
|
+
color: $teal;
|
67
|
+
|
68
|
+
.navigation-item--ncco-reference a {
|
69
|
+
color: $teal;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
#Vlt-sidenav-mobile-trigger {
|
75
|
+
display: inline-block;
|
76
|
+
margin-top: $unit0;
|
77
|
+
margin-right: $unit2;
|
78
|
+
|
79
|
+
svg {
|
80
|
+
height: 24px;
|
81
|
+
width: 24px;
|
82
|
+
}
|
83
|
+
|
84
|
+
@media #{$M-plus} {
|
85
|
+
display: none;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.Nxd-tutorial {
|
90
|
+
border-right: 1px solid silver;
|
91
|
+
}
|
92
|
+
.Nxd-tutorial-sidenav {
|
93
|
+
a {
|
94
|
+
color: black;
|
95
|
+
}
|
96
|
+
padding: 0px;
|
97
|
+
|
98
|
+
li li {
|
99
|
+
margin-left: 10px !important;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
|
104
|
+
.Vlt-sidemenu__link_active {
|
105
|
+
color: white !important;
|
106
|
+
}
|