Skip to content

Commit caf8814

Browse files
committed
Add devtools icons, change website code bg
1 parent 2237169 commit caf8814

File tree

9 files changed

+29
-10
lines changed

9 files changed

+29
-10
lines changed

docs/index.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ code {
3333
}
3434

3535
.hljs {
36-
background: #022f46;
36+
background: #333333;
3737
}
3838

3939
pre code {
@@ -257,6 +257,10 @@ body.home layer#main ul {
257257
list-style: none;
258258
}
259259

260+
body.home #content {
261+
margin-bottom: 20px;
262+
}
263+
260264
layer#main table li:not(:first-child) {
261265
padding-top: 10px;
262266
}

packages/diffhtml-devtools/chrome-extension/manifest.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "diffhtml-devtools",
3-
"version": "0.1.0",
2+
"name": "diffHTML DevTools",
3+
"version": "1.0.0.15",
44
"description": "Official diffHTML Chrome DevTools Extension",
55
"permissions": [
66
"tabs",
@@ -23,8 +23,15 @@
2323
"styles/**/*",
2424
"node_modules/**/*",
2525
"markup/*",
26-
"markup/**/*"
26+
"markup/**/*",
27+
"icons/*",
28+
"icons/**/*"
2729
],
30+
"icons": {
31+
"16": "icons/logo-16.png",
32+
"48": "icons/logo-48.png",
33+
"128": "icons/logo-128.png"
34+
},
2835
"devtools_page": "markup/devtools.html",
2936
"manifest_version": 2,
3037
"default_locale": "en"
Loading
Loading
Loading

packages/diffhtml-devtools/shared/markup/panel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</head>
77
<body>
88
<main id="main">
9-
<h1 id="not-found">Could not locate &lt;&#xB1;/&gt; diffHTML <i onclick="location.reload()" class="icon sync"></i></h1>
9+
<h1 id="not-found">Could not locate <img src="../icons/logo-48.png"> <strong>diffHTML</strong></h1>
1010
</main>
1111

1212
<!-- Main entry -->

packages/diffhtml-devtools/shared/scripts/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,7 @@ const fadeIn = el => {
9999

100100
const render = () => outerHTML(main, html`<main id="main" data-theme=${state.theme}>
101101
${!state.version && html`
102-
<h1 id="not-found">
103-
Could not locate &lt;&#xB1;/&gt; diffHTML
104-
<i onclick=${refresh} class="icon sync"></i>
105-
</h1>
102+
<h1 id="not-found">Could not locate <img src="../icons/logo-48.png"> <strong>diffHTML</strong></h1>
106103
`}
107104
108105
${state.version && html`

packages/diffhtml-devtools/shared/styles/index.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ h1:first-child {
5555
line-height: 100vh;
5656
}
5757

58+
#not-found img {
59+
position: relative;
60+
top: 17px;
61+
margin-left: 5px;
62+
margin-right: 5px;
63+
}
64+
5865
[data-theme="dark"] #not-found {
5966
color: #FFF;
6067
background: transparent;

packages/diffhtml-website/public/index.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ code {
3333
}
3434

3535
.hljs {
36-
background: #022f46;
36+
background: #333333;
3737
}
3838

3939
pre code {
@@ -257,6 +257,10 @@ body.home layer#main ul {
257257
list-style: none;
258258
}
259259

260+
body.home #content {
261+
margin-bottom: 20px;
262+
}
263+
260264
layer#main table li:not(:first-child) {
261265
padding-top: 10px;
262266
}

0 commit comments

Comments
 (0)