-
Notifications
You must be signed in to change notification settings - Fork 3
/
popup.html
155 lines (154 loc) · 4.34 KB
/
popup.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="utf-8">
<style>
img[src="icons/64.png"] {
width: 32px;
height: 32px;
}
img[alt="Favicon"] {
margin-right: .618ch;
}
/* don't ask why the browser_style examples are made of lies */
.panel-section-footer-button {
border-width: 0px;
}
.reexpand {
margin: -16px -16px 16px -16px;
padding: 4px 8px;
font-size: 0.8em;
}
.bar {
background-color: #F00D;
font-weight: bold;
text-transform: uppercase;
}
.barsub {
background-color: #F006;
}
#warning {
background-color: #FB06;
}
.panel {
min-width: 480px;
}
pre {
margin-top: 0px;
margin-bottom: 0px;
}
.dnd {
display: none;
}
.icon-section-header.bep {
float: right;
}
[disabled] {
pointer-events: none;
opacity: 0.8;
color: #999;
}
.ghost > img {
image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
width: 16px;
height: 16px;
opacity: 0.8;
display: block;
}
.ghost {
position: absolute;
padding: 8px 8px 8px 8px;
margin-right: 16px;
right: 0;
border-radius: 4px;
border: 0;
background-color: transparent;
}
.ghost:hover {
background-color: rgba(12, 12, 13, 0.1);
}
.ghost:active {
background-color: rgba(12, 12, 13, 0.2);
}
.ghost:focus {
box-shadow: 0 0 0 1px #0a84ff inset, 0 0 0 1px #0a84ff, 0 0 0 4px rgba(10, 132, 255, 0.3)
}
textarea {
flex: 1;
resize: none;
box-sizing: border-box!important;
overflow: hidden;
}
input[type="text"] {
box-sizing: content-box;
height: initial!important;
}
/* some of the default styling choices are just indefensible */
textarea, input[type="text"] {
border: 0.5px solid #b1b1b1!important;
padding-top: 3px;
padding-bottom: 3px;
font-size: 0.8em;
}
</style>
</head>
<body>
<div class="panel">
<header class="panel-section panel-section-header">
<div class="icon-section-header"><img src="icons/64.png" alt="TiddlyMarker Logo"></div>
<div class="text-section-header">TiddlyMarker</div>
<button class="ghost" id="settings"><img src="icons/settings.png"></button>
</header>
<section class="panel-section panel-section-formElements">
<div id="errortitle" class="panel-formElements-item reexpand bar dnd">
<span></span>
</div>
<div id="reason" class="panel-formElements-item reexpand barsub dnd">
<span></span>
</div>
<div id="details" class="panel-formElements-item reexpand barsub dnd">
<pre></pre>
</div>
<div id="advice" class="panel-formElements-item reexpand barsub dnd">
<span></span>
</div>
<div id="warning" class="panel-formElements-item reexpand barsub dnd">
<span></span>
</div>
<div class="panel-formElements-item">
<img id="icon" src="icons/no_favicon.png" alt="Favicon" width=16 height=16>
<span id="rawtitle"><span style="opacity: 0.5" data-msg="siteTitlePlaceholder"></span></span>
</div>
<div class="panel-formElements-item browser-style">
<label for="title" data-msg="popupTiddlerTitleLabel"></label>
<input type="text" value="" id="title" />
</div>
<div class="panel-formElements-item browser-style">
<label for="url" data-msg="popupUrlLabel"></label>
<input type="text" value="" id="url" />
</div>
<div class="panel-formElements-item browser-style dnd" id="tagscontainer">
<label for="tags" data-msg="popupTagsLabel"></label>
<input type="text" value="" id="tags" />
</div>
<div class="panel-formElements-item dnd" id="textcontainer">
<textarea class="browser-style" id="text" data-msg="popupTiddlerTextLabel"></textarea>
</div>
</section>
<footer class="panel-section panel-section-footer">
<button id="cancel" class="panel-section-footer-button" data-msg="popupCancelButton"></button>
<div class="panel-section-footer-separator"></div>
<button id="go" disabled class="panel-section-footer-button default" data-msg="popupBookmarkButton"></button>
</footer>
</div>
<script src="strings.js"></script>
<script src="textarea_autoresize.js"></script>
<script src="storage.js"></script>
<script src="util.js"></script>
<script src="fields.js"></script>
<script src="popup.js"></script>
</body>
</html>