Skip to content

Commit

Permalink
Add devtools icons, change website code bg
Browse files Browse the repository at this point in the history
  • Loading branch information
tbranyen committed Apr 23, 2020
1 parent 2237169 commit caf8814
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 10 deletions.
6 changes: 5 additions & 1 deletion docs/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ code {
}

.hljs {
background: #022f46;
background: #333333;
}

pre code {
Expand Down Expand Up @@ -257,6 +257,10 @@ body.home layer#main ul {
list-style: none;
}

body.home #content {
margin-bottom: 20px;
}

layer#main table li:not(:first-child) {
padding-top: 10px;
}
Expand Down
13 changes: 10 additions & 3 deletions packages/diffhtml-devtools/chrome-extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "diffhtml-devtools",
"version": "0.1.0",
"name": "diffHTML DevTools",
"version": "1.0.0.15",
"description": "Official diffHTML Chrome DevTools Extension",
"permissions": [
"tabs",
Expand All @@ -23,8 +23,15 @@
"styles/**/*",
"node_modules/**/*",
"markup/*",
"markup/**/*"
"markup/**/*",
"icons/*",
"icons/**/*"
],
"icons": {
"16": "icons/logo-16.png",
"48": "icons/logo-48.png",
"128": "icons/logo-128.png"
},
"devtools_page": "markup/devtools.html",
"manifest_version": 2,
"default_locale": "en"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/diffhtml-devtools/shared/markup/panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</head>
<body>
<main id="main">
<h1 id="not-found">Could not locate &lt;&#xB1;/&gt; diffHTML <i onclick="location.reload()" class="icon sync"></i></h1>
<h1 id="not-found">Could not locate <img src="../icons/logo-48.png"> <strong>diffHTML</strong></h1>
</main>

<!-- Main entry -->
Expand Down
5 changes: 1 addition & 4 deletions packages/diffhtml-devtools/shared/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ const fadeIn = el => {

const render = () => outerHTML(main, html`<main id="main" data-theme=${state.theme}>
${!state.version && html`
<h1 id="not-found">
Could not locate &lt;&#xB1;/&gt; diffHTML
<i onclick=${refresh} class="icon sync"></i>
</h1>
<h1 id="not-found">Could not locate <img src="../icons/logo-48.png"> <strong>diffHTML</strong></h1>
`}
${state.version && html`
Expand Down
7 changes: 7 additions & 0 deletions packages/diffhtml-devtools/shared/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ h1:first-child {
line-height: 100vh;
}

#not-found img {
position: relative;
top: 17px;
margin-left: 5px;
margin-right: 5px;
}

[data-theme="dark"] #not-found {
color: #FFF;
background: transparent;
Expand Down
6 changes: 5 additions & 1 deletion packages/diffhtml-website/public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ code {
}

.hljs {
background: #022f46;
background: #333333;
}

pre code {
Expand Down Expand Up @@ -257,6 +257,10 @@ body.home layer#main ul {
list-style: none;
}

body.home #content {
margin-bottom: 20px;
}

layer#main table li:not(:first-child) {
padding-top: 10px;
}
Expand Down

0 comments on commit caf8814

Please sign in to comment.