extension-develop 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.
- package/LICENSE +21 -0
- package/dist/add-dynamic-public-path.js +3 -0
- package/dist/add-hmr-accept-code.js +3 -0
- package/dist/add-query-param-to-imported-css.js +1 -0
- package/dist/ensure-hmr-for-scripts.js +3 -0
- package/dist/extensions/manager-extension/background.js +57 -0
- package/dist/extensions/manager-extension/define-initial-tab.js +67 -0
- package/dist/extensions/manager-extension/manifest.json +17 -0
- package/dist/extensions/manager-extension/pages/sakura-dark.css +268 -0
- package/dist/extensions/manager-extension/pages/sakura.css +267 -0
- package/dist/extensions/manager-extension/pages/welcome.html +49 -0
- package/dist/extensions/manager-extension/pages/welcome.js +34 -0
- package/dist/extensions/manager-extension/public/logo.png +0 -0
- package/dist/extensions/manager-extension/reload-service.js +145 -0
- package/dist/extensions/manager-extension-firefox/background.js +68 -0
- package/dist/extensions/manager-extension-firefox/define-initial-tab.js +57 -0
- package/dist/extensions/manager-extension-firefox/manifest.json +16 -0
- package/dist/extensions/manager-extension-firefox/pages/sakura-dark.css +268 -0
- package/dist/extensions/manager-extension-firefox/pages/sakura.css +267 -0
- package/dist/extensions/manager-extension-firefox/pages/welcome.html +49 -0
- package/dist/extensions/manager-extension-firefox/pages/welcome.js +34 -0
- package/dist/extensions/manager-extension-firefox/public/logo.png +0 -0
- package/dist/extensions/manager-extension-firefox/reload-service.js +130 -0
- package/dist/inject-chromium-client-loader.js +52 -0
- package/dist/inject-content-css-during-dev.js +10 -0
- package/dist/inject-firefox-client-loader.js +48 -0
- package/dist/minimum-chromium-file.mjs +1 -0
- package/dist/minimum-content-file.mjs +1 -0
- package/dist/minimum-firefox-file.mjs +1 -0
- package/dist/minimum-script-file.mjs +0 -0
- package/dist/module.d.ts +44 -0
- package/dist/module.js +178 -0
- package/dist/resolver-loader.js +1 -0
- package/dist/resolver-module.js +1 -0
- package/dist/stylelint.config.js +7 -0
- package/dist/tailwind.config.js +25 -0
- package/dist/types/css-content.d.ts +7 -0
- package/dist/types/css-modules.d.ts +19 -0
- package/dist/types/images.d.ts +58 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.ts +7 -0
- package/dist/types/polyfill.d.ts +1 -0
- package/package.json +113 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Cezar Augusto <boss@cezaraugusto.net> (https://cezaraugusto.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var l=Object.create;var s=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var _=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var P=(t,e)=>{for(var o in e)s(t,o,{get:e[o],enumerable:!0})},m=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of g(e))!k.call(t,r)&&r!==o&&s(t,r,{get:()=>e[r],enumerable:!(i=b(e,r))||i.enumerable});return t};var y=(t,e,o)=>(o=t!=null?l(_(t)):{},m(e||!t||!t.__esModule?s(o,"default",{value:t,enumerable:!0}):o,t)),v=t=>m(s({},"__esModule",{value:!0}),t);var L={};P(L,{default:()=>f});module.exports=v(L);var n=y(require("path")),d=require("loader-utils"),u=require("schema-utils"),x={type:"object",properties:{test:{type:"string"},manifestPath:{type:"string"}}};function f(t){let e=this.getOptions(),o=e.manifestPath,i=n.default.dirname(o),r=require(o);if((0,u.validate)(x,e,{name:"scripts:add-dynamic-public-path",baseDataPath:"options"}),this._compilation?.options.mode==="production")return t;let c=(0,d.urlToRequest)(this.resourcePath),p=`
|
|
2
|
+
;__webpack_public_path__ = chrome.extension.getURL('/');
|
|
3
|
+
`;if(r.background){if(r.background.scripts)for(let a of r.background.scripts){let h=n.default.resolve(i,a);if(c.includes(h))return`${p}${t}`}if(r.background.service_worker){let a=n.default.resolve(i,r.background.service_worker);if(c.includes(a))return`${p}${t}`}}return t}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var b=Object.create;var f=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var y=(t,e)=>{for(var s in e)f(t,s,{get:e[s],enumerable:!0})},u=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of S(e))!v.call(t,o)&&o!==s&&f(t,o,{get:()=>e[o],enumerable:!(r=k(e,o))||r.enumerable});return t};var d=(t,e,s)=>(s=t!=null?b(j(t)):{},u(e||!t||!t.__esModule?f(s,"default",{value:t,enumerable:!0}):s,t)),P=t=>u(f({},"__esModule",{value:!0}),t);var x={};y(x,{default:()=>_});module.exports=P(x);var m=d(require("fs")),c=d(require("path")),l=require("loader-utils"),g=require("schema-utils");function $(t){let e=c.default.join(t,"package.json");if(!m.default.existsSync(e))return!1;let s=JSON.parse(m.default.readFileSync(e,"utf-8")),r=["react","vue","@angular/core","svelte","solid-js","preact"],o=s.dependencies||{},a=s.devDependencies||{};for(let n of r)if(o[n]||a[n])return!0;return!1}var w={type:"object",properties:{test:{type:"string"},manifestPath:{type:"string"}}};function _(t){let e=this.getOptions(),s=e.manifestPath,r=c.default.dirname(s),o=require(s);if((0,g.validate)(w,e,{name:"scripts:add-hmr-accept-code",baseDataPath:"options"}),this._compilation?.options.mode==="production")return t;let a=(0,l.urlToRequest)(this.resourcePath),n=`
|
|
2
|
+
if (import.meta.webpackHot) { import.meta.webpackHot.accept() };
|
|
3
|
+
`;if(o.background&&o.background.scripts)for(let i of o.background.scripts){let p=c.default.resolve(r,i);if(a.includes(p))return`${n}${t}`}if(o.content_scripts&&!$(r)){for(let i of o.content_scripts)if(i.js)for(let p of i.js){let h=c.default.resolve(r,p);if(a.includes(h))return`${n}${t}`}}if(o.user_scripts)for(let i of o.user_scripts){let p=c.default.resolve(r,i);if(a.includes(p))return`${n}${t}`}return t}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var l=Object.create;var n=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var _=(t,s)=>{for(var e in s)n(t,e,{get:s[e],enumerable:!0})},p=(t,s,e,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let o of P(s))!j.call(t,o)&&o!==e&&n(t,o,{get:()=>s[o],enumerable:!(r=y(s,o))||r.enumerable});return t};var b=(t,s,e)=>(e=t!=null?l(g(t)):{},p(s||!t||!t.__esModule?n(e,"default",{value:t,enumerable:!0}):e,t)),q=t=>p(n({},"__esModule",{value:!0}),t);var C={};_(C,{default:()=>f});module.exports=q(C);var i=b(require("path")),c=require("loader-utils"),m=require("schema-utils"),x={type:"object",properties:{test:{type:"string"},manifestPath:{type:"string"}}};function f(t){let s=this.getOptions(),e=s.manifestPath,r=i.default.dirname(e),o=require(e);(0,m.validate)(x,s,{name:"scripts:add-query-param-to-imported-css",baseDataPath:"options"});let h=(0,c.urlToRequest)(this.resourcePath);if(o.content_scripts){for(let a of o.content_scripts)if(a.js)for(let u of a.js){let d=i.default.resolve(r,u);if(h.includes(d))return t=t.replace(/import\s+['"](.+\.(css|less|scss|sass|stylus))['"]/g,"import '$1?is_content_css_import=true'"),t}}return t}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var A=Object.create;var m=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var P=(t,n)=>{for(var s in n)m(t,s,{get:n[s],enumerable:!0})},b=(t,n,s,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of R(n))!_.call(t,r)&&r!==s&&m(t,r,{get:()=>n[r],enumerable:!(e=I(n,r))||e.enumerable});return t};var a=(t,n,s)=>(s=t!=null?A(C(t)):{},b(n||!t||!t.__esModule?m(s,"default",{value:t,enumerable:!0}):s,t)),U=t=>b(m({},"__esModule",{value:!0}),t);var V={};P(V,{default:()=>M});module.exports=U(V);var x=a(require("path")),w=a(require("fs")),k=require("loader-utils"),O=require("schema-utils");var v=a(require("fs")),f=a(require("path")),N=a(require("parse5-utils"));var p=a(require("parse5-utils"));function g(t){try{return new URL(t),!0}catch{return!1}}function $(t,n){let{childNodes:s=[]}=t;for(let e of s)if(e.nodeName==="script"){let r=p.default.getAttribute(e,"src");if(!r||g(r))continue;n({filePath:r,childNode:e,assetType:"script"})}else if(e.nodeName==="link"){let r=p.default.getAttribute(e,"href"),i=p.default.getAttribute(e,"rel");if(!r||g(r))continue;n(i==="dns-prefetch"||i==="icon"||i==="manifest"||i==="modulepreload"||i==="preconnect"||i==="prefetch"||i==="preload"||i==="prerender"?{filePath:r,childNode:e,assetType:"staticHref"}:{filePath:r,childNode:e,assetType:"css"})}else if(e.nodeName==="a"||e.nodeName==="area"){let r=p.default.getAttribute(e,"href");if(!r||g(r))continue;n({filePath:r,childNode:e,assetType:"staticHref"})}else if(e.nodeName==="audio"||e.nodeName==="embed"||e.nodeName==="iframe"||e.nodeName==="img"||e.nodeName==="input"||e.nodeName==="source"||e.nodeName==="track"||e.nodeName==="video"){let r=p.default.getAttribute(e,"src");if(!r||g(r))continue;n({filePath:r,childNode:e,assetType:"staticSrc"})}else $(e,n)}function j(t,n){let s={css:[],js:[],static:[]};if(!t)return s;let e=n||v.default.readFileSync(t,{encoding:"utf8"}),r=N.default.parse(e),i=(o,c)=>f.default.join(f.default.dirname(o),c.startsWith("/")?f.default.relative(f.default.dirname(o),c):c);for(let o of r.childNodes)if(o.nodeName==="html"){for(let c of o.childNodes)(c.nodeName==="head"||c.nodeName==="body")&&$(c,({filePath:u,assetType:y})=>{let d=i(t,u);switch(y){case"script":s.js?.push(d);break;case"css":s.css?.push(d);break;case"staticSrc":case"staticHref":if(u.startsWith("#"))break;s.static?.push(d);break;default:break}});return{css:s.css,js:s.js,static:s.static}}}var F=a(require("path")),h=a(require("fs")),q=require("child_process"),z=require("detect-package-manager");var L=a(require("path")),l=require("@colors/colors/safe");var E=a(require("path")),H=E.default.join(process.cwd(),"node_modules/extension-develop/dist/certs");function T(t){let n=F.default.join(t,"package.json");if(!h.default.existsSync(n))return!1;let s=JSON.parse(h.default.readFileSync(n,"utf-8")),e=["react","vue","@angular/core","svelte","solid-js","preact"],r=s.dependencies||{},i=s.devDependencies||{};for(let o of e)if(r[o]||i[o])return!0;return!1}var J={type:"object",properties:{test:{type:"string"},manifestPath:{type:"string"},includeList:{type:"object"},excludeList:{type:"object"}}};function M(t){let n=this.getOptions(),s=n.manifestPath,e=x.default.dirname(s);(0,O.validate)(J,n,{name:"html:ensure-hmr-for-scripts",baseDataPath:"options"});let r=(0,k.urlToRequest)(this.resourcePath),i=`
|
|
2
|
+
if (import.meta.webpackHot) { import.meta.webpackHot.accept() };
|
|
3
|
+
`;if(T(e))return t;let o=n.includeList||{};for(let c of Object.entries(o)){let[,u]=c;if(u){if(!w.default.existsSync(u))return;let d=j(u)?.js||[];for(let S of d){let D=x.default.resolve(e,S);if(r.includes(D))return`${i}${t}`}}}return t}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import {createExtensionsPageTab, handleFirstRun} from './define-initial-tab.js'
|
|
2
|
+
import {connect, disconnect, keepAlive} from './reload-service.js'
|
|
3
|
+
|
|
4
|
+
function bgGreen(str) {
|
|
5
|
+
return `background: #0A0C10; color: #26FFB8; ${str}`
|
|
6
|
+
}
|
|
7
|
+
chrome.tabs.query({active: true}, async ([initialTab]) => {
|
|
8
|
+
console.log(
|
|
9
|
+
`%c
|
|
10
|
+
██████████████████████████████████████████████████████████
|
|
11
|
+
██████████████████████████████████████████████████████████
|
|
12
|
+
████████████████████████████ ██████████████████████████
|
|
13
|
+
█████████████████████████ ██████ ███████████████
|
|
14
|
+
███████████████████████ ███ ███ ████████████
|
|
15
|
+
██████████████████████ ██████ ███ ███████████
|
|
16
|
+
███████████████████████ ██████ ██████ ███████████
|
|
17
|
+
████████████████ ██████ ██████████████ ███████████
|
|
18
|
+
█████████████ ████ ████████████ ████████████
|
|
19
|
+
███████████ ██ █████████████ ███████████████
|
|
20
|
+
██████████ ██████ █████████████████ █████████████
|
|
21
|
+
███████████ ████████████████████████████ ███████████
|
|
22
|
+
█████████████ █████████████████ ██████ ██████████
|
|
23
|
+
███████████████ ██████████████ ██ ██████████
|
|
24
|
+
████████████ ████████████ ████ █████████████
|
|
25
|
+
███████████ █████████████ ██████ ███████████████
|
|
26
|
+
███████████ ██████ ██████ ███████████████████████
|
|
27
|
+
███████████ ████ ██████ ██████████████████████
|
|
28
|
+
████████████ ██ ███ ███████████████████████
|
|
29
|
+
███████████████ ██████ █████████████████████████
|
|
30
|
+
██████████████████████████ ████████████████████████████
|
|
31
|
+
██████████████████████████████████████████████████████████
|
|
32
|
+
██████████████████████████████████████████████████████████
|
|
33
|
+
`,
|
|
34
|
+
bgGreen('')
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
if (
|
|
38
|
+
initialTab.url === 'chrome://newtab/' ||
|
|
39
|
+
initialTab.url === 'chrome://welcome/'
|
|
40
|
+
) {
|
|
41
|
+
await handleFirstRun()
|
|
42
|
+
} else {
|
|
43
|
+
createExtensionsPageTab(initialTab, 'chrome://extensions/')
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
chrome.runtime.onInstalled.addListener(async () => {
|
|
48
|
+
let isConnected = false
|
|
49
|
+
|
|
50
|
+
if (isConnected) {
|
|
51
|
+
disconnect()
|
|
52
|
+
} else {
|
|
53
|
+
await connect()
|
|
54
|
+
isConnected = true
|
|
55
|
+
keepAlive()
|
|
56
|
+
}
|
|
57
|
+
})
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
async function getDevExtension() {
|
|
2
|
+
const allExtensions = await new Promise((resolve) => {
|
|
3
|
+
chrome.management.getAll(resolve)
|
|
4
|
+
})
|
|
5
|
+
|
|
6
|
+
const devExtensions = allExtensions.filter((extension) => {
|
|
7
|
+
return (
|
|
8
|
+
// Do not include itself
|
|
9
|
+
extension.id !== chrome.runtime.id &&
|
|
10
|
+
// Reload extension
|
|
11
|
+
extension.id !== 'igcijhgmihmjbbahdabahfbpffalcfnn' &&
|
|
12
|
+
// Show only unpackaged extensions
|
|
13
|
+
extension.installType === 'development'
|
|
14
|
+
)
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
return devExtensions[0]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Ideas here are adapted from
|
|
21
|
+
// https://github.com/jeremyben/webpack-chrome-extension-launcher
|
|
22
|
+
// Released under MIT license.
|
|
23
|
+
|
|
24
|
+
// Create a new tab and set it to background.
|
|
25
|
+
// We want the user-selected page to be active,
|
|
26
|
+
// not chrome://extensions.
|
|
27
|
+
export function createExtensionsPageTab(initialTab, url) {
|
|
28
|
+
// Check if url tab is open
|
|
29
|
+
chrome.tabs.query({url: 'chrome://extensions/'}, (tabs) => {
|
|
30
|
+
const extensionsTabExist = tabs.length > 0
|
|
31
|
+
|
|
32
|
+
// Return if url exists
|
|
33
|
+
if (extensionsTabExist) return
|
|
34
|
+
|
|
35
|
+
// Create an inactive tab
|
|
36
|
+
chrome.tabs.create(
|
|
37
|
+
{url, active: false},
|
|
38
|
+
function setBackgroundTab(extensionsTab) {
|
|
39
|
+
// Get current url tab and move it left.
|
|
40
|
+
// This action auto-activates the tab
|
|
41
|
+
chrome.tabs.move(extensionsTab.id, {index: 0}, () => {
|
|
42
|
+
// Get user-selected initial page tab and activate the right tab
|
|
43
|
+
setTimeout(() => {
|
|
44
|
+
chrome.tabs.update(initialTab.id, {active: true})
|
|
45
|
+
}, 500)
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
})
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Function to handle first run logic
|
|
53
|
+
export async function handleFirstRun() {
|
|
54
|
+
chrome.tabs.update({url: 'chrome://extensions/'})
|
|
55
|
+
|
|
56
|
+
const devExtension = await getDevExtension()
|
|
57
|
+
|
|
58
|
+
chrome.storage.local.get(devExtension.id, (result) => {
|
|
59
|
+
if (result[devExtension.id] && result[devExtension.id].didRun) {
|
|
60
|
+
return
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
chrome.tabs.create({url: 'pages/welcome.html'})
|
|
64
|
+
// Ensure the welcome page shows only once per extension installation
|
|
65
|
+
chrome.storage.local.set({[devExtension.id]: {didRun: true}})
|
|
66
|
+
})
|
|
67
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Extension.js Developer Tools",
|
|
3
|
+
"description": "Utility for developers to manage their extensions.",
|
|
4
|
+
"version": "1.0",
|
|
5
|
+
"manifest_version": 3,
|
|
6
|
+
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA02Q4Zwr24MA5XW/tGzqQnK6tUmS2VnhmomJ1oP1mHqaE7DiGzITpmvWnixUl7zJd5LEr5c0LS58tRzBckGOSE7hfEUNCztQc4ywKa1b4L+67VdvG7PZJLMd525cou82ZkAnmEvb/qgR8qAQa74Jpd4ePZV3M0Gm0nvKIajvVTWbN2lq33nE+a5Yry91RkgkVm6EZgJBUJrxZtdoU5kfCV23Uf1+t6XkDqMYy2BrJ+cE9WT3FhV5DtP1kfYkkCzUxO6pd+wVxmhkXjygLI02lc0OR7Xs69QPfNcGJoJBRH3X4srMdwSCO3JONv/yp+2GH/5mvFx07AtenKg8lGauUXwIDAQAB",
|
|
7
|
+
"background": {
|
|
8
|
+
"service_worker": "background.js",
|
|
9
|
+
"type": "module"
|
|
10
|
+
},
|
|
11
|
+
"icons": {
|
|
12
|
+
"16": "./public/logo.png",
|
|
13
|
+
"48": "./public/logo.png",
|
|
14
|
+
"128": "./public/logo.png"
|
|
15
|
+
},
|
|
16
|
+
"permissions": ["management", "tabs", "storage"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
/* $color-text: #dedce5; */
|
|
2
|
+
/* Sakura.css v1.5.0
|
|
3
|
+
* ================
|
|
4
|
+
* Minimal css theme.
|
|
5
|
+
* Project: https://github.com/oxalorg/sakura/
|
|
6
|
+
*/
|
|
7
|
+
/* Body */
|
|
8
|
+
html {
|
|
9
|
+
font-size: 62.5%;
|
|
10
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
11
|
+
'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
font-size: 1.8rem;
|
|
16
|
+
line-height: 1.618;
|
|
17
|
+
max-width: 38em;
|
|
18
|
+
margin: auto;
|
|
19
|
+
color: #c9c9c9;
|
|
20
|
+
background-color: #222222;
|
|
21
|
+
padding: 13px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media (max-width: 684px) {
|
|
25
|
+
body {
|
|
26
|
+
font-size: 1.53rem;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
@media (max-width: 382px) {
|
|
30
|
+
body {
|
|
31
|
+
font-size: 1.35rem;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
h1,
|
|
35
|
+
h2,
|
|
36
|
+
h3,
|
|
37
|
+
h4,
|
|
38
|
+
h5,
|
|
39
|
+
h6 {
|
|
40
|
+
line-height: 1.1;
|
|
41
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
42
|
+
'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
margin-top: 3rem;
|
|
45
|
+
margin-bottom: 1.5rem;
|
|
46
|
+
overflow-wrap: break-word;
|
|
47
|
+
word-wrap: break-word;
|
|
48
|
+
-ms-word-break: break-all;
|
|
49
|
+
word-break: break-word;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
h1 {
|
|
53
|
+
font-size: 2.35em;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
h2 {
|
|
57
|
+
font-size: 2em;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
h3 {
|
|
61
|
+
font-size: 1.75em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
h4 {
|
|
65
|
+
font-size: 1.5em;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
h5 {
|
|
69
|
+
font-size: 1.25em;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
h6 {
|
|
73
|
+
font-size: 1em;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
p {
|
|
77
|
+
margin-top: 0px;
|
|
78
|
+
margin-bottom: 2.5rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
small,
|
|
82
|
+
sub,
|
|
83
|
+
sup {
|
|
84
|
+
font-size: 75%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
hr {
|
|
88
|
+
border-color: #ffffff;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
a {
|
|
92
|
+
text-decoration: none;
|
|
93
|
+
color: #ffffff;
|
|
94
|
+
}
|
|
95
|
+
a:visited {
|
|
96
|
+
color: #e6e6e6;
|
|
97
|
+
}
|
|
98
|
+
a:hover {
|
|
99
|
+
color: #c9c9c9;
|
|
100
|
+
border-bottom: 2px solid #c9c9c9;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
ul {
|
|
104
|
+
padding-left: 1.4em;
|
|
105
|
+
margin-top: 0px;
|
|
106
|
+
margin-bottom: 2.5rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
li {
|
|
110
|
+
margin-bottom: 0.4em;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
blockquote {
|
|
114
|
+
margin-left: 0px;
|
|
115
|
+
margin-right: 0px;
|
|
116
|
+
padding-left: 1em;
|
|
117
|
+
padding-top: 0.8em;
|
|
118
|
+
padding-bottom: 0.8em;
|
|
119
|
+
padding-right: 0.8em;
|
|
120
|
+
border-left: 5px solid #ffffff;
|
|
121
|
+
margin-bottom: 2.5rem;
|
|
122
|
+
background-color: #4a4a4a;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
blockquote p {
|
|
126
|
+
margin-bottom: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
img,
|
|
130
|
+
video {
|
|
131
|
+
height: auto;
|
|
132
|
+
max-width: 100%;
|
|
133
|
+
margin-top: 0px;
|
|
134
|
+
margin-bottom: 2.5rem;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* Pre and Code */
|
|
138
|
+
pre {
|
|
139
|
+
background-color: #4a4a4a;
|
|
140
|
+
display: block;
|
|
141
|
+
padding: 1em;
|
|
142
|
+
overflow-x: auto;
|
|
143
|
+
margin-top: 0px;
|
|
144
|
+
margin-bottom: 2.5rem;
|
|
145
|
+
font-size: 0.9em;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
code,
|
|
149
|
+
kbd,
|
|
150
|
+
samp {
|
|
151
|
+
font-size: 0.9em;
|
|
152
|
+
padding: 0 0.5em;
|
|
153
|
+
background-color: #4a4a4a;
|
|
154
|
+
white-space: pre-wrap;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
pre > code {
|
|
158
|
+
padding: 0;
|
|
159
|
+
background-color: transparent;
|
|
160
|
+
white-space: pre;
|
|
161
|
+
font-size: 1em;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* Tables */
|
|
165
|
+
table {
|
|
166
|
+
text-align: justify;
|
|
167
|
+
width: 100%;
|
|
168
|
+
border-collapse: collapse;
|
|
169
|
+
margin-bottom: 2rem;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
td,
|
|
173
|
+
th {
|
|
174
|
+
padding: 0.5em;
|
|
175
|
+
border-bottom: 1px solid #4a4a4a;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* Buttons, forms and input */
|
|
179
|
+
input,
|
|
180
|
+
textarea {
|
|
181
|
+
border: 1px solid #c9c9c9;
|
|
182
|
+
}
|
|
183
|
+
input:focus,
|
|
184
|
+
textarea:focus {
|
|
185
|
+
border: 1px solid #ffffff;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
textarea {
|
|
189
|
+
width: 100%;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.button,
|
|
193
|
+
button,
|
|
194
|
+
input[type='submit'],
|
|
195
|
+
input[type='reset'],
|
|
196
|
+
input[type='button'],
|
|
197
|
+
input[type='file']::file-selector-button {
|
|
198
|
+
display: inline-block;
|
|
199
|
+
padding: 5px 10px;
|
|
200
|
+
text-align: center;
|
|
201
|
+
text-decoration: none;
|
|
202
|
+
white-space: nowrap;
|
|
203
|
+
background-color: #ffffff;
|
|
204
|
+
color: #222222;
|
|
205
|
+
border-radius: 1px;
|
|
206
|
+
border: 1px solid #ffffff;
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
box-sizing: border-box;
|
|
209
|
+
}
|
|
210
|
+
.button[disabled],
|
|
211
|
+
button[disabled],
|
|
212
|
+
input[type='submit'][disabled],
|
|
213
|
+
input[type='reset'][disabled],
|
|
214
|
+
input[type='button'][disabled],
|
|
215
|
+
input[type='file']::file-selector-button[disabled] {
|
|
216
|
+
cursor: default;
|
|
217
|
+
opacity: 0.5;
|
|
218
|
+
}
|
|
219
|
+
.button:hover,
|
|
220
|
+
button:hover,
|
|
221
|
+
input[type='submit']:hover,
|
|
222
|
+
input[type='reset']:hover,
|
|
223
|
+
input[type='button']:hover,
|
|
224
|
+
input[type='file']::file-selector-button:hover {
|
|
225
|
+
background-color: #c9c9c9;
|
|
226
|
+
color: #222222;
|
|
227
|
+
outline: 0;
|
|
228
|
+
}
|
|
229
|
+
.button:focus-visible,
|
|
230
|
+
button:focus-visible,
|
|
231
|
+
input[type='submit']:focus-visible,
|
|
232
|
+
input[type='reset']:focus-visible,
|
|
233
|
+
input[type='button']:focus-visible,
|
|
234
|
+
input[type='file']::file-selector-button:focus-visible {
|
|
235
|
+
outline-style: solid;
|
|
236
|
+
outline-width: 2px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
textarea,
|
|
240
|
+
select,
|
|
241
|
+
input {
|
|
242
|
+
color: #c9c9c9;
|
|
243
|
+
padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
|
|
244
|
+
margin-bottom: 10px;
|
|
245
|
+
background-color: #4a4a4a;
|
|
246
|
+
border: 1px solid #4a4a4a;
|
|
247
|
+
border-radius: 4px;
|
|
248
|
+
box-shadow: none;
|
|
249
|
+
box-sizing: border-box;
|
|
250
|
+
}
|
|
251
|
+
textarea:focus,
|
|
252
|
+
select:focus,
|
|
253
|
+
input:focus {
|
|
254
|
+
border: 1px solid #ffffff;
|
|
255
|
+
outline: 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
input[type='checkbox']:focus {
|
|
259
|
+
outline: 1px dotted #ffffff;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
label,
|
|
263
|
+
legend,
|
|
264
|
+
fieldset {
|
|
265
|
+
display: block;
|
|
266
|
+
margin-bottom: 0.5rem;
|
|
267
|
+
font-weight: 600;
|
|
268
|
+
}
|