reprogl
1package style
2
3func GenerateIndexStyles() string {
4style := "<style>\n"
5style += commonStyle() + "\n"
6style += indexBackground() + "\n"
7style += " </style>"
8
9return cdnReplace(style)
10}
11
12func indexBackground() string {
13return ` .big-header-container .main-header{background-size:cover;background-position:50% 50%;background-repeat:no-repeat;background-color:#23222d;background-image:url(%cdn%/images/1500x500.jpg)}
14@supports (background-image:url(%cdn%/images/1500x500.webp)){.big-header-container .main-header{background-image:url(%cdn%/images/1500x500.webp)}}
15@media only screen and (max-width:752px){.big-header-container .main-header{background-image:url(%cdn%/images/kravchik.jpg)}
16@supports (background-image:url(%cdn%/images/kravchik.webp)){.big-header-container .main-header{background-image:url(%cdn%/images/kravchik.webp)}}}`
17}
18