Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Reimplement Markdown editor (#760)

* Update index.html

* Update upload.html

* Update main.css

* Update tomorrow.css

* Update tomorrow.css

Remove !important

* Update tomorrow.css

Revert
Cette révision appartient à :
MMP0 2017-05-26 23:02:19 +09:00 révisé par akuma06
Parent 566e0b7f21
révision 3bb7b94dd4
4 fichiers modifiés avec 42 ajouts et 1 suppressions

Voir le fichier

@ -25,7 +25,7 @@ body {
}
.header {
z-index: 9999;
z-index: 2;
position: fixed;
width: 100%;
top: 0; left: 0;

Voir le fichier

@ -60,3 +60,36 @@ td.tr-le { color: #cc6666; }
margin-bottom: -.5em;
}
/* Markdown editor */
.editor-toolbar a {
color: #fff !important;
}
.editor-toolbar a.active, .editor-toolbar a:hover {
background: #666;
border-color: #828282;
}
.editor-toolbar {
background: #000 !important;
}
.editor-toolbar.fullscreen::before, .editor-toolbar.fullscreen::after {
display: none;
}
.editor-preview, .editor-preview-side, .editor-toolbar.disabled-for-preview a:not(.no-disable) {
background: #141517;
}
.CodeMirror {
color: #fff;
background: #141517;
}
.CodeMirror-cursor {
border-color: #fff;
}
.CodeMirror .CodeMirror-selected {
background: #585858;
}
.CodeMirror-focused .CodeMirror-selected, .CodeMirror-line::selection, .CodeMirror-line>span::selection, .CodeMirror-line>span>span::selection {
background: #454545;
}
.CodeMirror-line::-moz-selection, .CodeMirror-line>span::-moz-selection, .CodeMirror-line>span>span::-moz-selection {
background: #454545;
}

Voir le fichier

@ -13,8 +13,15 @@
<!-- RSS Feed with Context -->
<link href="{{ block "rss_link" . }}{{ genRouteWithQuery "feed" .URL }}{{end}}" rel="alternate" type="application/rss+xml" title="Nyaa Pantsu - {{block "rsstitle" .}}Last torrents{{end}} RSS Feed" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
<link rel="stylesheet" id="style" href="{{.URL.Parse "/css/main.css"}}?v=2">
<link rel="stylesheet" id="theme" href="">
<script type="text/javascript">
var theme = localStorage.getItem("theme");
if (theme != "") document.getElementById("theme").href = "/css/" + theme;
</script>
<!-- Search Box for Google -->
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","url":"https://nyaa.pantsu.cat/","potentialAction":{"@type":"SearchAction","target":"https://nyaa.pantsu.cat/search?q={search_term_string}","query-input":"required name=search_term_string"}}</script>
<script>

Voir le fichier

@ -41,6 +41,7 @@
<button type="submit" class="form-input up-btn">{{call $.T "upload"}}</button>
</form>
<script type="text/javascript">new SimpleMDE({ element: document.getElementById("desc") });</script>
</div>
{{end}}
{{end}}