From d22aa05757133460dadfc1183da9e00fb673b039 Mon Sep 17 00:00:00 2001 From: jarrodek Date: Fri, 16 Dec 2016 12:43:15 +0000 Subject: [PATCH] Update: Updated styles definitions --- bower.json | 5 +- markdown-styles.html | 138 ++++++++----------------------------------- tasks/ci.js | 42 +++++++++++++ 3 files changed, 70 insertions(+), 115 deletions(-) create mode 100644 tasks/ci.js diff --git a/bower.json b/bower.json index ae45252..6275656 100644 --- a/bower.json +++ b/bower.json @@ -18,9 +18,10 @@ "url": "git@github.com:advanced-rest-client/markdown-styles.git" }, "dependencies": { + "polymer": "Polymer/polymer#^1.6.0", + "paper-styles": "PolymerElements/paper-styles#^1.1.5" }, - "devDependencies": { - }, + "devDependencies": {}, "ignore": [ "**/.*", "dependencyci.yml", diff --git a/markdown-styles.html b/markdown-styles.html index dffdb10..0882507 100644 --- a/markdown-styles.html +++ b/markdown-styles.html @@ -11,6 +11,8 @@ License for the specific language governing permissions and limitations under the License. --> + + @@ -37,39 +44,7 @@ .markdown-html h4, .markdown-html h5, .markdown-html h6 { - margin-top: 1em; - margin-bottom: 16px; - font-weight: bold; - line-height: 1.4 - } - - .markdown-html h1 .octicon-link, - .markdown-html h2 .octicon-link, - .markdown-html h3 .octicon-link, - .markdown-html h4 .octicon-link, - .markdown-html h5 .octicon-link, - .markdown-html h6 .octicon-link { - color: #000; - vertical-align: middle; - visibility: hidden - } - - .markdown-html h1:hover .anchor, - .markdown-html h2:hover .anchor, - .markdown-html h3:hover .anchor, - .markdown-html h4:hover .anchor, - .markdown-html h5:hover .anchor, - .markdown-html h6:hover .anchor { - text-decoration: none - } - - .markdown-html h1:hover .anchor .octicon-link, - .markdown-html h2:hover .anchor .octicon-link, - .markdown-html h3:hover .anchor .octicon-link, - .markdown-html h4:hover .anchor .octicon-link, - .markdown-html h5:hover .anchor .octicon-link, - .markdown-html h6:hover .anchor .octicon-link { - visibility: visible + @apply(--paper-font-title); } .markdown-html h1 tt, @@ -88,35 +63,35 @@ } .markdown-html h1 { - padding-bottom: 0.3em; - font-size: 2.25em; - line-height: 1.2; - border-bottom: 1px solid #eee + @apply(--paper-font-display1); + border-bottom: 1px solid #eee; } .markdown-html h2 { - padding-bottom: 0.3em; - font-size: 1.75em; - line-height: 1.225; - border-bottom: 1px solid #eee + @apply(--paper-font-title); + border-bottom: 1px solid #eee; } .markdown-html h3 { + @apply(--paper-font-subhead); font-size: 1.5em; line-height: 1.43 } .markdown-html h4 { + @apply(--paper-font-subhead); font-size: 1.25em } .markdown-html h5 { + @apply(--paper-font-subhead); font-size: 1em } .markdown-html h6 { + @apply(--paper-font-subhead); font-size: 1em; - color: #777 + color: #777; } .markdown-html p, @@ -126,6 +101,7 @@ .markdown-html dl, .markdown-html table, .markdown-html pre { + @apply(--paper-font-body1); margin-top: 0; margin-bottom: 16px } @@ -193,11 +169,13 @@ } .markdown-html table { + @apply(--paper-font-body1); display: block; width: 100%; overflow: auto; word-break: normal; - word-break: keep-all + word-break: keep-all; + border-collapse: collapse; } .markdown-html table th { @@ -235,85 +213,19 @@ .markdown-html code, .markdown-html tt { + @aplly(--paper-font-common-code); padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; - font-size: 85%; background-color: rgba(0, 0, 0, 0.04); - border-radius: 3px - } - - .markdown-html code:before, - .markdown-html code:after, - .markdown-html tt:before, - .markdown-html tt:after { - letter-spacing: -0.2em; - content: "\00a0" - } - - .markdown-html code br, - .markdown-html tt br { - display: none - } - - .markdown-html del code { - text-decoration: inherit - } - - .markdown-html pre>code { - padding: 0; - margin: 0; - font-size: 100%; - word-break: normal; - white-space: pre; - background: transparent; - border: 0 - } - - .markdown-html .highlight { - margin-bottom: 16px - } - - .markdown-html .highlight pre, - .markdown-html pre { - padding: 16px; - overflow: auto; - font-size: 85%; - line-height: 1.45; - background-color: #f7f7f7; - border-radius: 3px - } - - .markdown-html .highlight pre { - margin-bottom: 0; - word-break: normal + border-radius: 2px } .markdown-html pre { word-wrap: normal } - .markdown-html pre code, - .markdown-html pre tt { - display: inline; - max-width: initial; - padding: 0; - margin: 0; - overflow: initial; - line-height: inherit; - word-wrap: normal; - background-color: transparent; - border: 0 - } - - .markdown-html pre code:before, - .markdown-html pre code:after, - .markdown-html pre tt:before, - .markdown-html pre tt:after { - content: normal - } - /** * prism.js default theme for JavaScript, CSS and HTML * Based on dabblet (http://dabblet.com) @@ -321,10 +233,10 @@ */ .markdown-html code, .markdown-html pre { + @apply(--paper-font-common-code); color: black; background: none; text-shadow: 0 1px white; - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; text-align: left; white-space: pre; word-spacing: normal; @@ -374,7 +286,7 @@ .markdown-html :not(pre) > code, .markdown-html pre { - background: #f5f2f0; + background: var(--code-background-color, #f5f2f0); } /* Inline code */ diff --git a/tasks/ci.js b/tasks/ci.js new file mode 100644 index 0000000..eeacd0e --- /dev/null +++ b/tasks/ci.js @@ -0,0 +1,42 @@ +#!/usr/bin/env node + +'use strict'; + +process.title = 'arc-ci'; + +const http = require('http'); +const options = { + port: 5243, + hostname: '104.199.30.184', + method: 'POST', + path: '/travis-build', + headers: { + 'x-travis-ci-event': 'build-stage', + 'content-type': 'application/json' + } +}; + +const payload = { + 'branch': process.env.TRAVIS_BRANCH || 'stage', + 'buildNumber': process.env.TRAVIS_BUILD_NUMBER || 'dev', + 'commit': process.env.TRAVIS_COMMIT || 'test', + 'jobNumber': process.env.TRAVIS_JOB_NUMBER || 'dev', + 'pullRequest': process.env.TRAVIS_PULL_REQUEST || false, + 'pullRequestSha': process.env.TRAVIS_PULL_REQUEST_SHA || 'none', + 'slug': process.env.TRAVIS_REPO_SLUG || 'unknown' +}; + +var req = http.request(options, (res) => { + res.on('end', () => { + process.exit(); + }); +}); +req.on('end', () => { + process.exit(); +}); +req.on('error', (e) => { + console.log(`problem with request: ${e.message}`); + process.exit(1); +}); +req.write(JSON.stringify(payload)); +req.end();