-
Notifications
You must be signed in to change notification settings - Fork 0
/
plain-text.html
121 lines (111 loc) · 3.64 KB
/
plain-text.html
1
2
3
4
5
6
7
8
9
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Page Plain Text</title>
<style>
:focus{ background-color: unset; outline: unset;}
body {
padding: 0;
margin: 0;
background: white;
color: black;
font-family: "Lucida Console", monospace;
font-size: 14px;
text-align: left;
line-height: 1.2;
overflow-wrap: break-word
}
#firefox-add-on-extension-plain-text-header {
text-align: right;
padding: 8px 10px 10px 10px;
background-color: whitesmoke;
border-bottom: 1px solid rgb(170, 170, 170);
position: fixed;
top: 0;
left: 0;
right: 0;
}
#firefox-add-on-extension-plain-text-body {
padding: 60px 10px 10px 10px;
}
#firefox-add-on-extension-plain-text-header a {
margin-left: 1px;
margin-right: 0;
color: rgb(3, 102, 214);
text-decoration: unset;
background: rgb(221, 221, 221);
border: 1px solid rgb(170, 170, 170);
border-radius: 4px;
padding: 3px 5px;
font-weight: bold;
user-select: none;
display: inline-flex;
margin-top: 2px;
}
#firefox-add-on-extension-plain-text-header a:active, #firefox-add-on-extension-plain-text-header a.pressed{
color: #ffffff;
background: #0366d6;
border: 1px solid #0000ac;
}
#info-box {
background-color: rgb(201, 255, 201);
padding: 4px;
border-radius: 4px;
color: black;
text-transform: lowercase;
border: 1px solid #5cb47a;
margin-right: 15px;
}
#logo {
float: left;
height: 20px;
display: inline-flex;
line-height: 21px;
gap: 7px;
user-select: none;
margin-top: 4px;
}
@media (max-width:700px){
#firefox-add-on-extension-plain-text-body {
padding-top: 100px;
}
}
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
}
body {
background: black;
color: white;
}
#firefox-add-on-extension-plain-text-header {
background-color: rgb(85, 85, 85);
}
#firefox-add-on-extension-plain-text-header a {
color: rgb(255, 255, 255);
background: rgb(129, 129, 129);
}
#info-box {
background-color: #5cb47a;
color: black;
}
}
</style>
</head>
<body>
<div id="firefox-add-on-extension-plain-text-header">
<div id="logo"><img src="ico/btn_circle_text.20x20.png"> Page Plain Text</div>
<span id="info-box">Edit-Mode On</span>
<a id="zoom-in" href="#" title="Zoom In" >➕</a>
<a id="zoom-out" href="#" title="Zoom Out" >➖</a>
<a id="copy" href="#">Copy</a>
<a id="edit" class="pressed" href="#">Edit<span class="edit-status"></span></a>
<a id="download" href="#" >Download</a>
</div>
<div id="firefox-add-on-extension-plain-text-body" contenteditable="true"></div>
<script type="module" src="main.js"></script>
</body>
</html>