podcast-webseite/assets/css/xml.css

75 lines
1.5 KiB
CSS
Raw Normal View History

2019-07-01 00:33:29 +02:00
/* 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;
}
2019-07-01 18:21:40 +02:00
.itunes_author { display:none; }
2019-07-01 00:33:29 +02:00
/* single items */
title {
2019-07-01 18:21:40 +02:00
display:block;
2019-07-01 00:33:29 +02:00
color: #ee7402;
font-size: 120%;
}
title:before,
2019-07-01 18:21:40 +02:00
link:after,
.itunes_subtitle:after,
.itunes_subtitle:before{
2019-07-01 00:33:29 +02:00
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;
}
2019-07-01 18:21:40 +02:00
language:before{ content:" (In "; }
language:after{ content:"utscher Sprache)"; }
description:before{ content: "Beschreibung: "; }
2019-07-01 00:33:29 +02:00
id,
copyright,
generator,
updated,
pubDate,
2019-07-01 18:21:40 +02:00
.itunes_summary,
.itunes_keywords,
.itunes_explicit,
.itunes_owner,
2019-07-01 00:33:29 +02:00
lastBuildDate{ display: none; }
name {color:red; text-decoration: underline}
price {color:green}
stock {color:brown}
country {color:blue}
2019-07-01 18:21:40 +02:00
.itunes_subtitle{ font-size: 70%;}
2019-07-01 00:33:29 +02:00
/* 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}