com.mchange.feedletter.default.email.style-css-untemplate.scala Maven / Gradle / Ivy
// DO NOT HAND EDIT -- Autogenerated from 'style.css.untemplate' at 2024-01-22T21:31:23.507912Z
package com.mchange.feedletter.default.email
import java.io.{Writer,StringWriter}
import scala.collection.{immutable,mutable}
import com.mchange.feedletter.*
import com.mchange.feedletter.style.*
val Untemplate_style_css = new untemplate.Untemplate[immutable.Map[String,Any],Nothing]:
val UntemplateFunction : untemplate.Untemplate[immutable.Map[String,Any],Nothing] = this
val UntemplateName : String = "style_css"
val UntemplatePackage : String = "com.mchange.feedletter.default.email"
val UntemplateInputName : String = "input"
val UntemplateInputTypeDeclared : String = "immutable.Map[String,Any]"
val UntemplateInputTypeCanonical : Option[String] = untemplate.Macro.nonEmptyStringOption( untemplate.Macro.recursiveCanonicalName[immutable.Map[String,Any]] )
val UntemplateInputDefaultArgument : Option[immutable.Map[String,Any]] = Some(immutable.Map.empty)
val UntemplateOutputMetadataTypeDeclared : String = "Nothing"
val UntemplateOutputMetadataTypeCanonical : Option[String] = untemplate.Macro.nonEmptyStringOption( untemplate.Macro.recursiveCanonicalName[Nothing] )
val UntemplateHeaderNote : String = ""
val UntemplateAttributes : immutable.Map[String,Any] = immutable.Map.empty
def apply(input : immutable.Map[String,Any] = immutable.Map.empty) : untemplate.Result[Nothing] =
val writer : StringWriter = new StringWriter(20860)
val attrs : immutable.Map[String,Any] = UntemplateAttributes
var mbMetadata : Option[Nothing] = None
var outputTransformer : Function1[untemplate.Result[Nothing],untemplate.Result[Nothing]] = identity
val block0 = new Function0[String]:
def apply() : String =
" :root {\n font-size: 15pt;\n }\n body {\n padding-left: 1rem;\n padding-right: 1rem;\n color: black;\n background-color: #eff3f5;\n font-family: Garamond, serif;\n line-height: 150%;\n }\n body.confirm-body {\n background-color: #eeeef8;\n }\n h1, h2, h3, h4, h5 {\n font-family: Verdana, sans-serif;\n font-weight: bold;\n line-height: 120%;\n }\n code {\n font-size: 70%;\n }\n .item {\n background-color: white;\n margin-top: 2rem;\n margin-left: 10%;\n margin-right: 10%;\n padding-top: 1rem;\n padding-bottom: 1rem;\n padding-left: 2rem;\n padding-right: 2rem;\n border: 1px solid #aaaaaa;\n line-height: 150%;\n }\n .item-title {\n font-size: 150%;\n font-family: Verdana, sans-serif;\n font-weight: bold;\n padding-top: 1rem;\n }\n .item-title a {\n text-decoration: none;\n color: black;\n line-height: 120%;\n }\n .item-title a:hover {\n text-decoration: underline;\n }\n .item-author {\n margin-top: 0.25rem;\n margin-bottom: 1rem;\n font-family: Verdana, sans-serif;\n font-style: italic;\n font-size: 80%;\n border-bottom: 1px solid black;\n }\n .item-date {\n margin-top: 0.4rem;\n border-top: 1px solid black;\n text-align: right;\n font-family: Verdana, sans-serif;\n font-style: italic;\n font-size: 60%;\n }\n .item-contents {\n }\n .item-contents blockquote {\n margin-left: 0;\n padding-left: 1em;\n border-left: 2px solid black;\n }\n .media-image {\n width: 100%;\n }\n .media-image img {\n width: 100%;\n }\n .unsubscribe {\n padding-top: 0.5rem;\n }\n .confirm-main {\n background-color: white;\n border: 1px solid black;\n margin-left: 10%;\n margin-right: 10%;\n padding-left: 2rem;\n padding-right: 2rem;\n margin-top: 1rem;\n }\n .confirm-user {\n font-weight: bold;\n color: #008800;\n }\n @media screen and (max-width: 600px) {\n body {\n line-height: 120%;\n padding-left: 0.3rem;\n padding-right: 0.3rem;\n }\n .item {\n margin-top: 1rem;\n margin-left: 0;\n margin-right: 0;\n padding-left: 3.5%;\n padding-right: 3.5%;\n }\n .confirm-main {\n margin-left: 2%;\n margin-right: 2%;\n }\n }\n"
writer.write(block0())
outputTransformer( untemplate.Result( mbMetadata, writer.toString ) )
end apply
end Untemplate_style_css
def style_css(input : immutable.Map[String,Any] = immutable.Map.empty) : untemplate.Result[Nothing] = Untemplate_style_css( input )
© 2015 - 2025 Weber Informatics LLC | Privacy Policy