start css

This commit is contained in:
L3D 2019-07-01 00:33:29 +02:00
parent 8f18d4eb0c
commit 103ff54e19
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 120 additions and 39 deletions

66
assets/css/xml.css Normal file
View file

@ -0,0 +1,66 @@
/* This CSS stylesheet is an example of how we can style XML with CSS */
/* Group behavior */
channel {
display:block;
border: 1px solid gray;
margin:0.5em;
padding:0.5em;
background-color:whitesmoke;
list-style: none;
color: black;
}
item {
display:block;
border: 1px solid silver;
margin:0.5em;
padding:0.5em;
background-color:whitesmoke;
}
/* single items */
title {
color: #ee7402;
font-size: 120%;
}
title:before,
link:after{
content: '\a';
white-space: pre;
}
title:after{
content: '\a\a';
white-space: pre;
}
link{
color: navy;
text-decoration: underline;
}
link:before{ content: "Link: "; }
description{
color: #f94f22;
}
language:before{ content:" In "; }
language:after{ content:"utscher Sprache."; }
description:before{ content: "Beschreibung:"; }
id,
copyright,
generator,
updated,
pubDate,
lastBuildDate{ display: none; }
itunes\:owner{ display: none; }
name {color:red; text-decoration: underline}
price {color:green}
stock {color:brown}
country {color:blue}
/* IE supports the ID selector also for XML */
product#p4 {text-align:right}
/* Alternative in: Firefox, Opera, Google Chrome *
/product[id=p4] {text-align:right}
/* IE supports the class attribute for XML */
product.special {background-color:mistyrose}
/* Alternative in: Firefox, Opera, Google Chrome */
product[class=special] {background-color:mistyrose}

View file

@ -1,6 +1,17 @@
{%- set baseurl = "https://podcast.c3woc.de" -%}
{%- set search = "eisen" -%}
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href=
{%- if '/css/xml.min.css'|asseturl == empty -%}
{%- if '/css/xml.css'|asseturl == empty -%}
"https://{{ baseurl }}/css/main.min.css"
{%- else -%}
"{{ '/css/xml.css'|asseturl }}"
{%- endif -%}
{%- else -%}
"{{ '/css/xml.min.css'|asseturl }}"
{%- endif -%}
type="text/css"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel>
<title type="text">

View file

@ -18,13 +18,17 @@
<link rel="stylesheet" href="{{ '/css/font-awesome.min.css'|asseturl }}" />
<link rel="stylesheet" href="{{ '/fonts/roboto.css'|asseturl }}" />{%
endif %}
<link rel="stylesheet" href={%
if '/css/main.min.css'|asseturl == empty %}{%
if '/css/main.css'|asseturl == empty %}"https://{{ fqdn }}/css/main.min.css"{%
else %}"{{ '/css/main.css'|asseturl }}"{%
endif %}{%
else %}"{{ '/css/main.min.css'|asseturl }}"{%
endif %} />
<link rel="stylesheet" href=
{%- if '/css/main.min.css'|asseturl == empty -%}
{%- if '/css/main.css'|asseturl == empty -%}
"https://{{ fqdn }}/css/main.min.css"
{%- else -%}
"{{ '/css/main.css'|asseturl }}"
{%- endif -%}
{%- else -%}
"{{ '/css/main.min.css'|asseturl }}"
{%- endif -%}
/>
<!--[if lte IE 9]><link rel="stylesheet" href={%
if '/css/ie9.min.css'|asseturl == empty %}"https://{{ fqdn }}/css/ie9.min.css"{%
else %}"{{ '/css/ie9.min.css'|asseturl }}"{%