-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
409 lines (400 loc) · 17.6 KB
/
index.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MarinDeckThemeGenerator</title>
<link rel="stylesheet" href="./web/css/normalize.css">
<link rel="stylesheet" href="./web/css/histyle.css">
<link rel="stylesheet" href="./web/css/iota/iota.css">
<link rel="stylesheet" href="./web/css/style.css">
<link href="https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<header>
<div class="headericon" id="open-menu">
<div class="animated-icon menu-cross" id="button-menu">
<div class="ani"></div>
</div>
</div>
<div class="title">ThemeGenerator (v<span id="mdtg-ver"></span>)</div>
<div class="headermenu">
<b class="menutitle">Menu</b>
<a class="menuitem" id="open-about" onclick="togglemenu()">このWebアプリについて(仮作成)</a>
</div>
</header>
<div class="ctr">
<h2 style="color: red;">注意!このサイトは現在工事中です。</h2>
<h2>全体設定(仮置き)</h2>
<div class="editor-input" style="height: auto;">
<div>
<h3>インポート</h3>
<input type="text" class="td-css-import" style="width: calc(100% - 7rem - 15px);" placeholder="Jsonを入力">
<input type="button" class="td-css-import" value="インポート" style="width: 6rem;">
<p class="stylecaution">出力したJsonを入力することでテーマの編集状況を復元することが出来ます。</p>
<h3>テーマ</h3>
<div id="change-theme">
<input type="radio" checked="checked" name="td-theme" id="td-theme-light" value="0"><label
for="td-theme-light">ライトモード</label>
<input type="radio" name="td-theme" id="td-theme-dark" value="1"><label for="td-theme-dark">ダークモード</label>
</div>
<h3 class="td-theme-light">共通</h3>
<div class="grid editor-input-grid td-theme-light">
<div>
<span class="styletext">文字</span>
<div class="styleform">
<input type="text" class="td-css" data-sel="html" data-prop="color" placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel="html" data-prop="color">
</div>
</div>
<div>
<span class="styletext">文字(薄)</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".txt-mute" data-prop="color" placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".txt-mute" data-prop="color">
</div>
</div>
<div>
<span class="styletext">文字(リンク)</span>
<div class="styleform">
<input type="text" class="td-css" data-sel="a" data-prop="color" placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel="a" data-prop="color">
</div>
<span class="stylecaution">注:!important非推奨</span>
</div>
<div>
<span class="styletext">背景</span>
<div class="styleform">
<input type="text" class="td-css" data-sel="body" data-prop="background-color" placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel="body" data-prop="background-color">
</div>
</div>
<div>
<span class="styletext">丸み(ユーザーアイコン)</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".avatar" data-prop="border-radius" placeholder="数値と単位を入力">
</div>
</div>
</div>
</div>
</div>
<h2>編集箇所</h2>
<div class="grid nav">
<span class="nav-item" data-edit="col">カラム</span>
<!--<span class="nav-item" data-edit="tweetdetail">ツイート詳細(未)</span>-->
<span class="nav-item" data-edit="newtweet">新規ツイート</span>
<!--<span class="nav-item" data-edit="account">アカウント管理(未)</span>-->
<!--<span class="nav-item" data-edit="drop">ドロップメニュー(未)</span>-->
<span class="nav-item" data-edit="mdl">モーダル</span>
<span class="nav-item" data-edit="dm">DM</span>
<span class="nav-item" data-edit="prf">プロフィール</span>
<!--<span class="nav-item" data-edit="search">検索(未)</span>-->
<!--<span class="nav-item" data-edit="imgviewer">画像ビューア(未)</span>-->
</div>
<section class="editor" id="col">
<h2>カラム</h2>
<div class="grid editor">
<div class="editor-td">
<iframe class="td-preview" src="./web/deck/col.html" frameborder="0"></iframe>
</div>
<div class="editor-input td-theme-light">
<h3>本体</h3>
<div class="grid editor-input-grid">
<div>
<span class="styletext">背景</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".column-panel" data-prop="background-color"
placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".column-panel" data-prop="background-color">
</div>
</div>
</div>
<h3>ヘッダー</h3>
<div class="grid editor-input-grid">
<div>
<span class="styletext">文字</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".column-header" data-prop="color" placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".column-header" data-prop="color">
</div>
</div>
<div>
<span class="styletext">背景</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".column-header" data-prop="background-color"
placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".column-header" data-prop="background-color">
</div>
</div>
<div>
<span class="styletext">丸み</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".column-header" data-prop="border-radius"
placeholder="数値と単位を入力">
</div>
</div>
<div>
<span class="styletext">設定アイコン</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".column-header-link" data-prop="color"
placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".column-header-link" data-prop="color">
</div>
</div>
</div>
<h3>ツイート</h3>
<div class="grid editor-input-grid">
<div>
<span class="styletext">文字</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".stream-item" data-prop="color" placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".stream-item" data-prop="color">
</div>
</div>
<div>
<span class="styletext">背景</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".stream-item" data-prop="background-color"
placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".stream-item" data-prop="background-color">
</div>
</div>
<div>
<span class="styletext">丸み</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".stream-item" data-prop="border-radius"
placeholder="数値と単位を入力">
</div>
</div>
</div>
<h3>ツイート-埋め込み</h3>
<div class="grid editor-input-grid">
<div>
<span class="styletext">丸み(画像)</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".media-item,.media-grid-container" data-prop="border-radius"
placeholder="数値と単位を入力">
</div>
<span class="stylecaution">注:数値の後に!importantの追加を推奨</span>
</div>
<div>
<span class="styletext">縁の色(引用)</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".quoted-tweet" data-prop="border-color"
placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".quoted-tweet" data-prop="border-color">
</div>
</div>
<div>
<span class="styletext">丸み(引用)</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".quoted-tweet" data-prop="border-radius"
placeholder="数値と単位を入力">
</div>
</div>
</div>
<h3>ツイートアクション</h3>
<div class="grid editor-input-grid">
<div>
<span class="styletext">全体(通常時)</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".tweet-action" data-prop="color" placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".tweet-action" data-prop="color">
</div>
<span class="stylecaution">注:数値の後に!importantの追加を推奨</span>
</div>
<div>
<span class="styletext">リプライ(通常時)</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".tweet-action[rel='reply']" data-prop="color"
placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".tweet-action[rel='reply']" data-prop="color">
</div>
<span class="stylecaution">注:数値の後に!importantの追加を推奨</span>
</div>
<div>
<span class="styletext">リツイート(通常時)</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".tweet-action[rel='retweet']" data-prop="color"
placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".tweet-action[rel='retweet']" data-prop="color">
</div>
<span class="stylecaution">注:数値の後に!importantの追加を推奨</span>
</div>
<div>
<span class="styletext">いいね(通常時)</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".tweet-action[rel='favorite']" data-prop="color"
placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".tweet-action[rel='favorite']" data-prop="color">
</div>
<span class="stylecaution">注:数値の後に!importantの追加を推奨</span>
</div>
<div>
<span class="styletext">メニュー(通常時)</span>
<div class="styleform">
<input type="text" class="td-css" data-sel=".tweet-action[rel='actionsMenu']" data-prop="color"
placeholder="カラーコードを入力">
<input type="color" class="td-css" data-sel=".tweet-action[rel='actionsMenu']" data-prop="color">
</div>
<span class="stylecaution">注:数値の後に!importantの追加を推奨</span>
</div>
</div>
</div>
</div>
</section>
<section class="editor displaynone" id="newtweet">
<h2>ツイート</h2>
<div class="grid editor">
<div class="editor-td">
<iframe class="td-preview" src="./web/deck/tweet.html" frameborder="0"></iframe>
</div>
<div class="editor-input td-theme-light">
<h3>本体</h3>
仮作成
</div>
</div>
</section>
<section class="editor displaynone" id="mdl">
<h2>モーダル</h2>
<div class="grid editor">
<div class="editor-td">
<iframe class="td-preview" src="./web/deck/mdl.html" frameborder="0"></iframe>
</div>
<div class="editor-input td-theme-light">
<h3>本体</h3>
仮作成
</div>
</div>
</section>
<section class="editor displaynone" id="dm">
<h2>DM</h2>
<div class="grid editor">
<div class="editor-td">
<iframe class="td-preview" src="./web/deck/dm.html" frameborder="0"></iframe>
</div>
<div class="editor-input td-theme-light">
<h3>本体</h3>
仮作成
</div>
</div>
</section>
<section class="editor displaynone" id="prf">
<h2>プロフィール</h2>
<div class="grid editor">
<div class="editor-td">
<iframe class="td-preview" src="./web/deck/prf.html" frameborder="0"></iframe>
</div>
<div class="editor-input td-theme-light">
<h3>本体</h3>
仮作成
</div>
</div>
</section>
<h2>出力</h2>
<div class="editor-input" style="height: auto;">
<h3>設定</h3>
<div class="grid editor-input-grid">
<div>
<span class="styletext">テーマID</span>
<div class="styleform">
<input type="text" class="md-theme-info" data-prop="suffix" placeholder="半角英数字を推奨">
</div>
</div>
<div>
<span class="styletext">テーマ名</span>
<div class="styleform">
<input type="text" class="md-theme-info" data-prop="name">
</div>
</div>
<div>
<span class="styletext">バージョン</span>
<div class="styleform">
<input type="text" class="md-theme-info" data-prop="version" placeholder="半角英数字を推奨">
</div>
</div>
<div>
<span class="styletext">製作者</span>
<div class="styleform">
<input type="text" class="md-theme-info" data-prop="author">
</div>
</div>
</div>
<input type="checkbox" id="add-html-dark"><label for="add-html-dark">ダークモードによるテーマの上書きを防ぐ</label>
<h3>インポート可能形式(Json)</h3>
<input type="text" class="td-css-obj" onclick="outputCopy(this.value)">
<p class="stylecaution">このJsonを保管することでテーマの編集状況を保存することが出来ます。</p>
<div class="grid half">
<div>
<h3>CSS</h3>
<textarea class="td-css-text" onclick="outputCopy(this.value)"></textarea>
</div>
<div>
<h3>CSS(改行なし)</h3>
<textarea class="td-css-text-min" onclick="outputCopy(this.value)"></textarea>
</div>
</div>
<div class="grid half">
<div>
<h3>JavaScript</h3>
<textarea class="td-js" onclick="outputCopy(this.value)"></textarea>
</div>
<div>
<h3>JavaScript(改行なし・テーマ提出用)</h3>
<textarea class="td-js-min" onclick="outputCopy(this.value)"></textarea>
</div>
</div>
</div>
<h2>CSS→JS変換(仮実装)</h2>
<div class="editor-input" style="height: auto;">
<h3>CSS</h3>
<input type="text" class="td-css-to-js" style="width: calc(100% - 15px);" placeholder="CSSを入力">
<h3>設定</h3>
<div class="grid editor-input-grid">
<div>
<span class="styletext">テーマID</span>
<div class="styleform">
<input type="text" class="md-theme-info2" data-prop="suffix" placeholder="半角英数字を推奨">
</div>
</div>
<div>
<span class="styletext">テーマ名</span>
<div class="styleform">
<input type="text" class="md-theme-info2" data-prop="name">
</div>
</div>
<div>
<span class="styletext">バージョン</span>
<div class="styleform">
<input type="text" class="md-theme-info2" data-prop="version" placeholder="半角英数字を推奨">
</div>
</div>
<div>
<span class="styletext">製作者</span>
<div class="styleform">
<input type="text" class="md-theme-info2" data-prop="author">
</div>
</div>
</div>
<div class="grid half">
<div>
<h3>JavaScript</h3>
<textarea class="td-js2" onclick="outputCopy(this.value)"></textarea>
</div>
<div>
<h3>JavaScript(改行なし・テーマ提出用)</h3>
<textarea class="td-js2-min" onclick="outputCopy(this.value)"></textarea>
</div>
</div>
</div>
</div>
<div class="point"></div>
<div class="mdl displaynone" id="mdl-about">
<div class="mdl-content">
</div>
</div>
<script src="./web/js/jquery-3.5.1.min.js"></script>
<script src="./web/js/mdtg.js"></script>
</body>
</html>