2020-11-29 11:32:52 +00:00
|
|
|
// Code generated by qtc from "asset.qtpl". DO NOT EDIT.
|
2020-10-25 18:02:52 +00:00
|
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:1
|
2020-10-25 18:02:52 +00:00
|
|
|
package templates
|
|
|
|
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:1
|
2020-10-25 18:02:52 +00:00
|
|
|
import (
|
|
|
|
qtio422016 "io"
|
|
|
|
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
|
|
)
|
|
|
|
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:1
|
2020-10-25 18:02:52 +00:00
|
|
|
var (
|
|
|
|
_ = qtio422016.Copy
|
|
|
|
_ = qt422016.AcquireByteBuffer
|
|
|
|
)
|
|
|
|
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:1
|
2020-10-25 18:02:52 +00:00
|
|
|
func StreamDefaultCSS(qw422016 *qt422016.Writer) {
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:1
|
2020-10-25 18:02:52 +00:00
|
|
|
qw422016.N().S(`
|
2020-11-29 11:32:52 +00:00
|
|
|
`)
|
|
|
|
//line templates/asset.qtpl:2
|
|
|
|
qw422016.N().S(`@media screen and (min-width: 700px) {
|
2020-10-25 18:02:52 +00:00
|
|
|
main {margin: 0 auto; width: 700px;}
|
|
|
|
}
|
|
|
|
@media screen and (max-width: 700px) {
|
|
|
|
main {margin: 0; width: 100%;}
|
|
|
|
}
|
|
|
|
*, *::before, *::after {box-sizing: border-box;}
|
|
|
|
html {height:100%; padding:0; background-color:#ddd;
|
|
|
|
background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%23bbbbbb' fill-opacity='0.4'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");} /* heropatterns.com */
|
|
|
|
body {height:100%; margin:0; font-size:16px; font-family:sans-serif;}
|
2020-11-29 17:06:45 +00:00
|
|
|
main {padding:1rem; background-color: white; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2); border-radius: 0 0 .25rem .25rem; }
|
2020-10-25 18:02:52 +00:00
|
|
|
main > form {margin-bottom:1rem;}
|
|
|
|
textarea {font-size:15px;}
|
2020-10-30 13:25:48 +00:00
|
|
|
.edit {height:100%;}
|
|
|
|
.edit-form {height:90%;}
|
|
|
|
.edit-form textarea {width:100%;height:90%;}
|
2020-10-25 18:02:52 +00:00
|
|
|
|
2020-10-30 13:25:48 +00:00
|
|
|
main h1:not(.navi-title) {font-size:1.7rem;}
|
|
|
|
blockquote {border-left: 4px black solid; margin-left: 0; padding-left: 1rem;}
|
2020-10-25 18:02:52 +00:00
|
|
|
.wikilink_new {color:#a55858;}
|
|
|
|
.wikilink_new:visited {color:#a55858;}
|
|
|
|
.wikilink_external::after {content:"🌐"; margin-left: .5rem; font-size: small; text-decoration: none; align: bottom;}
|
2020-11-24 17:23:45 +00:00
|
|
|
article code {background-color:#eee; padding: .1rem .3rem; border-radius: .25rem; font-size: 90%; }
|
|
|
|
article pre.codeblock {background-color:#eee; padding:.5rem; white-space: pre-wrap; border-radius: .25rem;}
|
|
|
|
.codeblock code {padding:0; font-size:15px;}
|
2020-10-30 13:25:48 +00:00
|
|
|
.transclusion code, .transclusion .codeblock {background-color:#ddd;}
|
2020-11-24 17:23:45 +00:00
|
|
|
.transclusion {background-color:#eee; border-radius: .25rem; }
|
2020-11-02 19:04:36 +00:00
|
|
|
.transclusion__content > *:not(.binary-container) {margin: 0.5rem; }
|
2020-12-08 09:04:24 +00:00
|
|
|
.transclusion__link {display: block; text-align: right; font-style: italic; margin-top: .5rem; margin-right: .25rem; color: black; text-decoration: none;}
|
2020-11-02 19:04:36 +00:00
|
|
|
.transclusion__link::before {content: "⇐ ";}
|
2020-10-25 18:02:52 +00:00
|
|
|
|
|
|
|
.binary-container_with-img img,
|
|
|
|
.binary-container_with-video video,
|
|
|
|
.binary-container_with-audio audio {width: 100%}
|
|
|
|
.navi-title a {text-decoration:none;}
|
2020-11-29 11:32:52 +00:00
|
|
|
.img-gallery { text-align: center; margin-top: .25rem; margin-bottom: .25rem; }
|
2020-11-26 18:41:26 +00:00
|
|
|
.img-gallery_many-images { background-color: #eee; border-radius: .25rem; padding: .5rem; }
|
|
|
|
.img-gallery img { max-width: 100%; max-height: 50vh; }
|
2020-11-03 15:41:50 +00:00
|
|
|
figure { margin: 0; }
|
2020-11-26 18:41:26 +00:00
|
|
|
figcaption { padding-bottom: .5rem; }
|
2020-10-25 18:02:52 +00:00
|
|
|
|
|
|
|
nav ul {display:flex; padding-left:0; flex-wrap:wrap; margin-top:0;}
|
|
|
|
nav ul li {list-style-type:none;margin-right:1rem;}
|
|
|
|
|
|
|
|
#new-name {width:100%;}
|
2020-11-16 15:26:03 +00:00
|
|
|
.navlinks__user {font-style:italic;}
|
2020-11-04 11:00:17 +00:00
|
|
|
|
|
|
|
.rc-entry { display: grid; list-style-type: none; padding: .25rem; background-color: #eee; grid-template-columns: 1fr 1fr; }
|
|
|
|
.rc-entry__time { font-style: italic; }
|
|
|
|
.rc-entry__hash { font-style: italic; text-align: right; }
|
|
|
|
.rc-entry__links { grid-column: 1 / span 2; }
|
2020-11-18 13:27:18 +00:00
|
|
|
.rc-entry__author { font-style: italic; }
|
2020-11-29 11:32:52 +00:00
|
|
|
|
|
|
|
.prevnext__el { display: block-inline; min-width: 40%; padding: .5rem; margin-bottom: .25rem; text-decoration: none; background-color: #eee; border-radius: .25rem; }
|
|
|
|
.prevnext__prev { float: left; }
|
|
|
|
.prevnext__next { float: right; text-align: right; }
|
|
|
|
|
|
|
|
.page-separator { clear: both; }
|
2020-11-29 17:06:45 +00:00
|
|
|
.history__entries { background-color: #eee; margin: 0; padding: 0; border-radius: .25rem; }
|
|
|
|
.history__month-anchor { text-decoration: none; color: black; }
|
|
|
|
.history__entry { list-style-type: none; padding: .25rem; }
|
|
|
|
.history-entry { padding: .25rem; }
|
|
|
|
.history-entry__time { font-weight: bold; }
|
|
|
|
.history-entry__author { font-style: italic; }
|
|
|
|
|
2020-11-29 11:32:52 +00:00
|
|
|
`)
|
|
|
|
//line templates/asset.qtpl:2
|
|
|
|
qw422016.N().S(`
|
2020-10-25 18:02:52 +00:00
|
|
|
`)
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
}
|
|
|
|
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
func WriteDefaultCSS(qq422016 qtio422016.Writer) {
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
StreamDefaultCSS(qw422016)
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
}
|
|
|
|
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
func DefaultCSS() string {
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
WriteDefaultCSS(qb422016)
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
return qs422016
|
2020-11-29 11:32:52 +00:00
|
|
|
//line templates/asset.qtpl:3
|
2020-10-25 18:02:52 +00:00
|
|
|
}
|