Skip to content

Commit 8363f4a

Browse files
author
Bobscript
committed
fix #38
1 parent 3dc56ef commit 8363f4a

7 files changed

Lines changed: 1584 additions & 2124 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
**ver 2.4.3 | 04/03/2021**
2+
3+
1. Fix. Send to CodePen may not work. [#18](https://github.com/painty/CSS-Used-ChromeExt/issues/38)
4+
15
**ver 2.3.2 | 18/11/2018**
26

37
1. More friendly prompt text for first use or error display.

build/asset/css/pannel.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ form{}
1515
.pop:after{content:'';width:0px;height:100%;display:inline-block;vertical-align:middle;}
1616
.pop p{margin:auto;font-size:12px;display:inline-block;vertical-align:middle;}
1717
.pop ol{font-size:12px;text-align:left;display:inline-block;line-height:2;vertical-align:middle;}
18-
button{position:relative;font-size:12px;display:block;margin-right:10px;margin:2px;height:24px;border:1px solid rgba(0, 0, 0, 0.2);border-radius:4px;padding:0px 12px;font-weight:500;color:#1a73e8;background-color:#fff;flex:none;white-space:nowrap;height:28px;margin:8px 16px 8px 0;}
19-
button:hover{background-color:#f3f3f3;box-shadow:0 1px 2px rgba(0, 0, 0, 0.1);cursor:pointer;}
18+
.btn{position:relative;font-size:12px;display:block;margin-right:10px;margin:2px;height:24px;border:1px solid rgba(0, 0, 0, 0.2);border-radius:4px;padding:0px 12px;font-weight:500;color:#1a73e8;background-color:#fff;flex:none;white-space:nowrap;height:28px;margin:8px 16px 8px 0;}
19+
.btn:hover{background-color:#f3f3f3;box-shadow:0 1px 2px rgba(0, 0, 0, 0.1);cursor:pointer;}
2020
#issuebtn{float:right;cursor:pointer;z-index:1;margin-left:10px;}
2121
#issuebtn:hover{}
2222
form{font-size:12px;margin-right:10px;position:relative;display:block;}
23-
form button{/* margin:0; */}
23+
form .btn{/* margin:0; */}
2424
.operate{position:relative;display:flex;clear:both;margin-left:10px;flex-wrap:wrap;}
2525
#openCSSUsedSettings,#refreshPage,#issueSpan{text-decoration:underline;cursor:pointer;color:blue;}
2626
.havefileaccess #openCSSUsedSettings{display:none;}
@@ -32,8 +32,8 @@ form button{/* margin:0; */}
3232
.theme-dark ::-webkit-scrollbar-thumb{background:#333333;border:1px solid #414141;}
3333
.theme-dark ::-webkit-scrollbar-thumb:hover{cursor:default;}
3434
.theme-dark ::-webkit-scrollbar-track{background:#242424;border-left:1px solid #2b2b2b;}
35-
.theme-dark button{border-color:rgba(230,230,230,0.2);color:#cccccc;background-color:rgb(36,36,36);}
36-
.theme-dark button:hover{background-color:#333333;box-shadow:rgba(230, 230, 230, 0.1) 0px 1px 2px;}
35+
.theme-dark .btn{border-color:rgba(230,230,230,0.2);color:#cccccc;background-color:rgb(36,36,36);}
36+
.theme-dark .btn:hover{background-color:#333333;box-shadow:rgba(230, 230, 230, 0.1) 0px 1px 2px;}
3737
#copy{background-color:#1a73e8;border:none;color:#fff;}
3838
#copy:hover{background-color:#3b86e8;}
3939
.theme-dark #copy{background-color:#0e639c;border:none;color:#fff;}

build/asset/js/devtools.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ backgroundPageConnection.onMessage.addListener(function (message, sender, sendRe
130130
outp1.value = message.html;
131131
outp2.value = message.css;
132132
outp2.select();
133-
input.value = JSON.stringify(message);
133+
input.value = JSON.stringify({
134+
title: 'New Pen via CSS-Used',
135+
html:message.html,
136+
css:message.css
137+
});
134138
pop.style.display = 'none';
135139
// SideBar.setExpression(message.result);
136140
// document.getElementById('outp').value=message.result;

build/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CSS Used",
3-
"version": "2.4.2",
3+
"version": "2.4.3",
44
"permissions": ["<all_urls>","tabs"],
55
"author": "Bob",
66
"icons": {

build/pannel.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33

44
<head>
5+
<meta charset="UTF-8">
56
<link rel="stylesheet" type="text/css" href="asset/css/pannel.css">
67
</head>
78

@@ -14,11 +15,11 @@
1415
<textarea id="outp2"></textarea>
1516
</div>
1617
<div class="operate">
17-
<button id="copy">Copy</button>
18-
<button id="newwin">Preview</button>
18+
<button id="copy" class="btn">Copy</button>
19+
<button id="newwin" class="btn">Preview</button>
1920
<form action="https://codepen.io/pen/define" method="POST" target="_blank">
2021
<input type="hidden" name="data" value='{"title": "New Pen!", "html": "<div>Hello, World!</div>"}'>
21-
<button title="Send snippet to CodePen">CodePen</button>
22+
<input title="Send snippet to CodePen" type="submit" value="CodePen" class="btn">
2223
</form>
2324
</div>
2425

0 commit comments

Comments
 (0)