Alternate Stylesheets
One page of HTML and SVG restyled by switching between three CSS stylesheets.
What you are seeing
A row of three text controls sits above a logo reading svg wow across a rounded cloud. In the colored style the panel is crimson with a green cloud, in black and white it is a plain outline, and in neutral it is gray with a soft shadow.
How it works
The page links three stylesheets and marks two of them as alternates.
A small script sets the disabled property so that only the chosen sheet applies.
Each sheet sets fills, strokes and filters on the SVG by ID, and styles the HTML around it.
Gradients and filters stay in the document, so the sheets can refer to them by URL.
History
Posted on August 14, 2010, to show that one stylesheet can restyle HTML and inline SVG together.
Source
/alternate-stylesheet/alternate-stylesheet.xhtml
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>Alternate stylesheets</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="One page of HTML and SVG restyled by switching between three alternate CSS stylesheets." />
<link rel="icon" href="../res/2.0/images/favicon.svg" />
<link rel="icon alternate" href="../res/2.0/images/favicon.png" />
<link rel="alternate stylesheet" type="text/css" href="neutral.css" title="neutral"/>
<link rel="alternate stylesheet" type="text/css" href="bw.css" title="bw" />
<link rel="stylesheet" type="text/css" href="colored.css" title="colored" />
</head>
<body>
<script>
<![CDATA[
function setActiveStyleSheet(title) {
var link, main, links, nLinks, rel, linkTitle;
links = document.getElementsByTagName("link");
nLinks = links.length;
for(var i=0; i < nLinks ; i++) {
link = links[i];
rel = link.getAttribute("rel");
linkTitle = link.getAttribute("title");
if(rel.indexOf("style") != -1 && linkTitle !== null) {
link.disabled = true;
if (linkTitle == title) {
link.disabled = false;
}
}
}
var names = ["bw", "neutral", "colored"];
for (var j = 0; j < names.length; j++) {
document.getElementById(names[j] + "Selector")
.setAttribute("aria-pressed", names[j] == title ? "true" : "false");
}
}
function selectorKey(evt, title) {
if (evt.key === "Enter" || evt.key === " ") {
evt.preventDefault();
setActiveStyleSheet(title);
}
}
]]>
</script>
<div>
<div id="stylesheetSelector">
<p>select stylesheet:
<span id="bwSelector" role="button" tabindex="0" aria-pressed="false" onclick="setActiveStyleSheet('bw')" onkeydown="selectorKey(event, 'bw')">black & white</span> |
<span id="neutralSelector" role="button" tabindex="0" aria-pressed="false" onclick="setActiveStyleSheet('neutral')" onkeydown="selectorKey(event, 'neutral')">neutral</span> |
<span id="coloredSelector" role="button" tabindex="0" aria-pressed="true" onclick="setActiveStyleSheet('colored')" onkeydown="selectorKey(event, 'colored')">colored</span>
</p>
</div>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="800px" height="600px" viewBox="0 0 800 600" enable-background="new 0 0 800 600" xml:space="preserve">
<title>SVG Wow logo</title>
<desc>The words SVG Wow on a rounded cloud. Its colors, strokes, filters and page background all come from the active stylesheet.</desc>
<defs>
<linearGradient id="highlight_1_" gradientUnits="userSpaceOnUse" x1="225.9287" y1="117.9365" x2="227.225" y2="307.2275">
<stop offset="0" style="stop-color:#FFFFFF;stop-opacity:0"/>
<stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0.31"/>
</linearGradient>
<linearGradient id="colored-background" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" style="stop-color:crimson;stop-opacity:1"/>
<stop offset="1" style="stop-color:#800000;stop-opacity:1"/>
</linearGradient>
<linearGradient id="colored-background-stroke" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" style="stop-color:#808080;stop-opacity:1"/>
<stop offset="1" style="stop-color:crimson;stop-opacity:1"/>
</linearGradient>
<linearGradient id="text-stroke-thin" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" style="stop-color:#808080;stop-opacity:1"/>
<stop offset="1" style="stop-color:white;stop-opacity:1"/>
</linearGradient>
<linearGradient id="colored-text-stroke-thin" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" style="stop-color:black;stop-opacity:0.5"/>
<stop offset="1" style="stop-color:#96ff98;stop-opacity:1"/>
</linearGradient>
<linearGradient id="text-gradient" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" style="stop-color:white;stop-opacity:1"/>
<stop offset="1" style="stop-color:black;stop-opacity:1"/>
</linearGradient>
<linearGradient id="colored-text-gradient" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="0.5" y2="1.2">
<stop offset="0" style="stop-color:crimson;stop-opacity:1"/>
<stop offset="1" style="stop-color:#800000;stop-opacity:1"/>
</linearGradient>
<radialGradient id="cloud-gradient" gradientUnits="objectBoundingBox" cx="0.2" cy="0.2" r="1">
<stop offset="0" style="stop-color:#d0d0d0;stop-opacity:1"/>
<stop offset="1" style="stop-color:black;stop-opacity:1"/>
</radialGradient>
<radialGradient id="colored-cloud-gradient" gradientUnits="objectBoundingBox" cx="0.2" cy="0.2" r="1">
<stop offset="0" style="stop-color:#d0d0d0;stop-opacity:1"/>
<stop offset="0.5" style="stop-color:#96ff98" />
<stop offset="1" style="stop-color:#026002;stop-opacity:1"/>
</radialGradient>
<filter id="dropShadow" x="-10%" y="-30%" width="150%" height="200%">
<feFlood id="dropShadowColor" flood-color="black" flood-opacity="0.7" result="floodFill"/>
<feComposite in2="SourceAlpha" in="floodFill" operator="in" result="coloredAlpha" />
<feGaussianBlur in="coloredAlpha" stdDeviation="8" result="blur"/>
<feOffset dx="4" dy="4" result="offsetBlur"/>
<feComposite in2="offsetBlur" in="SourceGraphic" operator="over" />
</filter>
<pattern id="stripes" patternUnits="userSpaceOnUse" x="0" y="0" width="40" height="80" >
<g shape-rendering="crispEdges">
<line x1="5" x2="5" y2="80" stroke="black" stroke-opacity="0.04" />
<line x1="15" x2="15" y2="80" stroke="black" stroke-width="4" stroke-opacity="0.03" />
<line x1="25" x2="25" y2="80" stroke="black" stroke-opacity="0.05" />
<line x1="35" x2="35" y2="80" stroke="black" stroke-width="4" stroke-opacity="0.03" />
</g>
</pattern>
</defs>
<rect id="background" x="2" y="2" width="796" height="596" rx="5" ry="5" stroke="none" fill="none"/>
<rect id="backgroundPattern" x="2" y="2" width="796" height="596" rx="5" ry="5" stroke="none" fill="none"/>
<defs>
<g id="svgWowText">
<path d="M290.44,299.71c0,4.78-1.16,8.88-3.49,12.28c-2.33,3.41-5.77,5.99-10.32,7.74s-10.08,2.63-16.6,2.63
c-6.22,0-11.55-0.95-16-2.86s-7.72-4.29-9.84-7.14c-2.12-2.86-3.17-5.72-3.17-8.6c0-1.9,0.68-3.53,2.03-4.89
c1.35-1.35,3.07-2.03,5.14-2.03c1.82,0,3.22,0.44,4.19,1.33c0.97,0.89,1.9,2.14,2.79,3.75c1.78,3.09,3.9,5.39,6.38,6.92
c2.47,1.52,5.85,2.29,10.12,2.29c3.47,0,6.32-0.77,8.54-2.32c2.22-1.54,3.33-3.31,3.33-5.3c0-3.05-1.15-5.27-3.46-6.67
c-2.31-1.4-6.11-2.73-11.39-4c-5.97-1.48-10.82-3.04-14.57-4.67c-3.74-1.63-6.74-3.78-8.98-6.44c-2.24-2.67-3.36-5.95-3.36-9.84
c0-3.47,1.04-6.75,3.11-9.84c2.07-3.09,5.13-5.55,9.17-7.4c4.04-1.84,8.92-2.76,14.63-2.76c4.49,0,8.52,0.47,12.09,1.4
c3.58,0.93,6.56,2.18,8.95,3.75c2.39,1.57,4.21,3.3,5.46,5.21c1.25,1.9,1.87,3.77,1.87,5.59c0,1.99-0.67,3.62-2,4.89
c-1.33,1.27-3.23,1.9-5.68,1.9c-1.78,0-3.29-0.51-4.54-1.52s-2.68-2.54-4.28-4.57c-1.31-1.69-2.86-3.05-4.63-4.06
s-4.19-1.52-7.24-1.52c-3.13,0-5.73,0.67-7.81,2c-2.07,1.33-3.11,2.99-3.11,4.98c0,1.82,0.76,3.31,2.29,4.48s3.58,2.13,6.16,2.89
c2.58,0.76,6.14,1.69,10.66,2.79c5.37,1.31,9.76,2.88,13.17,4.7c3.41,1.82,5.99,3.97,7.74,6.44
C289.56,293.72,290.44,296.54,290.44,299.71z M317.35,262.71l14.03,39.36l15.11-41.07c1.18-3.3,2.35-5.64,3.49-7.01c1.14-1.37,2.88-2.06,5.21-2.06
c2.2,0,4.07,0.74,5.62,2.22c1.54,1.48,2.32,3.2,2.32,5.14c0,0.76-0.14,1.65-0.41,2.67s-0.59,1.97-0.95,2.86
c-0.36,0.89-0.77,1.9-1.24,3.05l-16.63,41.26c-0.47,1.19-1.07,2.69-1.81,4.51c-0.74,1.82-1.57,3.38-2.48,4.66
c-0.91,1.29-2.03,2.3-3.36,3.02c-1.33,0.72-2.95,1.08-4.86,1.08c-2.46,0-4.41-0.56-5.87-1.68c-1.46-1.12-2.54-2.35-3.24-3.68
c-0.7-1.33-1.87-3.97-3.52-7.9l-16.5-40.82c-0.38-1.02-0.77-2.03-1.17-3.05c-0.4-1.02-0.74-2.05-1.02-3.11
c-0.28-1.06-0.41-1.97-0.41-2.73c0-1.18,0.36-2.36,1.08-3.52c0.72-1.16,1.71-2.12,2.98-2.86c1.27-0.74,2.64-1.11,4.13-1.11
c2.88,0,4.86,0.83,5.94,2.48C314.84,256.04,316.04,258.81,317.35,262.71z M439.3,264.61v50.34c0,5.76-0.61,10.71-1.84,14.85s-3.2,7.57-5.91,10.28s-6.26,4.72-10.64,6.03
c-4.38,1.31-9.83,1.97-16.35,1.97c-5.97,0-11.3-0.84-16-2.51s-8.32-3.83-10.85-6.47s-3.81-5.36-3.81-8.16
c0-2.12,0.72-3.84,2.16-5.17c1.44-1.33,3.17-2,5.21-2c2.54,0,4.76,1.12,6.67,3.36c0.93,1.14,1.89,2.29,2.89,3.46
c0.99,1.16,2.09,2.16,3.3,2.98c1.21,0.82,2.65,1.44,4.35,1.84c1.69,0.4,3.64,0.6,5.84,0.6c4.49,0,7.97-0.62,10.44-1.87
c2.48-1.25,4.21-2.99,5.21-5.24c1-2.24,1.58-4.64,1.75-7.21c0.17-2.56,0.3-6.67,0.38-12.35c-2.67,3.72-5.75,6.56-9.24,8.51
c-3.49,1.95-7.65,2.92-12.47,2.92c-5.8,0-10.87-1.48-15.2-4.44c-4.34-2.96-7.67-7.11-10-12.44c-2.33-5.33-3.49-11.49-3.49-18.47
c0-5.21,0.71-9.9,2.13-14.09c1.42-4.19,3.44-7.72,6.06-10.6c2.62-2.88,5.65-5.05,9.08-6.51s7.19-2.19,11.3-2.19
c4.91,0,9.16,0.94,12.76,2.82c3.6,1.88,6.94,4.83,10.03,8.85v-2.35c0-3,0.74-5.33,2.22-6.98c1.48-1.65,3.39-2.48,5.72-2.48
c3.34,0,5.57,1.09,6.67,3.27C438.75,257.36,439.3,260.51,439.3,264.61z M389.08,286.57c0,7.03,1.53,12.34,4.6,15.93
c3.07,3.6,7.04,5.4,11.9,5.4c2.88,0,5.6-0.77,8.16-2.32c2.56-1.54,4.65-3.87,6.25-6.98c1.61-3.11,2.41-6.89,2.41-11.33
c0-7.07-1.56-12.57-4.67-16.5c-3.11-3.94-7.21-5.9-12.28-5.9c-4.95,0-8.92,1.88-11.9,5.65
C390.57,274.28,389.08,279.63,389.08,286.57 M467.63,262.71l11.3,38.72l10.29-35.99c1.1-3.77,1.91-6.34,2.44-7.71c0.53-1.37,1.52-2.69,2.98-3.94
c1.46-1.25,3.46-1.87,6-1.87c2.58,0,4.6,0.62,6.06,1.87c1.46,1.25,2.49,2.6,3.08,4.06c0.59,1.46,1.42,3.99,2.48,7.59l10.28,35.99
l11.43-38.72c0.76-2.79,1.38-4.81,1.84-6.06c0.46-1.25,1.25-2.35,2.35-3.3c1.1-0.95,2.69-1.43,4.76-1.43c2.07,0,3.87,0.72,5.4,2.16
c1.52,1.44,2.29,3.13,2.29,5.08c0,1.78-0.66,4.47-1.97,8.06l-14.16,41.52c-1.23,3.51-2.18,6.05-2.86,7.62
c-0.68,1.57-1.75,2.96-3.21,4.19c-1.46,1.23-3.46,1.84-6,1.84c-2.62,0-4.69-0.66-6.19-1.97c-1.5-1.31-2.61-2.92-3.33-4.82
c-0.72-1.9-1.5-4.38-2.35-7.43l-9.9-33.77l-9.58,33.77c-1.27,4.7-2.65,8.24-4.13,10.63c-1.48,2.39-4.08,3.59-7.81,3.59
c-1.91,0-3.53-0.37-4.86-1.11c-1.33-0.74-2.45-1.8-3.33-3.17c-0.89-1.38-1.67-3-2.35-4.89c-0.68-1.88-1.21-3.37-1.59-4.47
l-14.04-41.52c-1.4-3.89-2.1-6.58-2.1-8.06c0-1.86,0.74-3.53,2.22-5.01c1.48-1.48,3.3-2.22,5.46-2.22c2.88,0,4.83,0.82,5.84,2.44
C465.41,255.99,466.49,258.77,467.63,262.71 M625.69,287.15c0,5.16-0.8,9.92-2.41,14.28c-1.61,4.36-3.94,8.1-6.98,11.23
c-3.05,3.13-6.69,5.53-10.92,7.21c-4.23,1.67-8.99,2.51-14.28,2.51c-5.25,0-9.97-0.85-14.16-2.54c-4.19-1.69-7.82-4.12-10.89-7.27
c-3.07-3.15-5.4-6.88-6.98-11.17c-1.59-4.3-2.38-9.05-2.38-14.25c0-5.25,0.8-10.05,2.41-14.41c1.61-4.36,3.91-8.08,6.92-11.17
c3-3.09,6.64-5.47,10.92-7.14c4.27-1.67,8.99-2.51,14.16-2.51c5.25,0,10.01,0.85,14.28,2.54c4.27,1.69,7.93,4.1,10.98,7.24
c3.05,3.13,5.36,6.86,6.95,11.17C624.9,277.18,625.69,281.94,625.69,287.15z M608.3,287.15c0-7.07-1.56-12.57-4.67-16.5
c-3.11-3.94-7.29-5.9-12.54-5.9c-3.39,0-6.37,0.88-8.95,2.63c-2.58,1.76-4.57,4.35-5.97,7.78s-2.09,7.43-2.09,12
c0,4.53,0.69,8.49,2.06,11.87c1.38,3.39,3.34,5.98,5.9,7.78c2.56,1.8,5.57,2.7,9.04,2.7c5.25,0,9.43-1.98,12.54-5.94
C606.74,299.6,608.3,294.13,608.3,287.15 M650.13,262.71l11.3,38.72l10.28-35.99c1.1-3.77,1.91-6.34,2.44-7.71c0.53-1.37,1.52-2.69,2.98-3.94
c1.46-1.25,3.46-1.87,6-1.87c2.58,0,4.6,0.62,6.06,1.87c1.46,1.25,2.49,2.6,3.08,4.06c0.59,1.46,1.42,3.99,2.48,7.59l10.28,35.99
l11.43-38.72c0.76-2.79,1.38-4.81,1.84-6.06c0.46-1.25,1.25-2.35,2.35-3.3c1.1-0.95,2.69-1.43,4.76-1.43c2.07,0,3.87,0.72,5.4,2.16
c1.52,1.44,2.29,3.13,2.29,5.08c0,1.78-0.66,4.47-1.97,8.06l-14.16,41.52c-1.23,3.51-2.18,6.05-2.86,7.62
c-0.68,1.57-1.75,2.96-3.21,4.19c-1.46,1.23-3.46,1.84-6,1.84c-2.62,0-4.69-0.66-6.19-1.97c-1.5-1.31-2.61-2.92-3.33-4.82
c-0.72-1.9-1.5-4.38-2.35-7.43l-9.9-33.77l-9.58,33.77c-1.27,4.7-2.65,8.24-4.13,10.63c-1.48,2.39-4.08,3.59-7.81,3.59
c-1.9,0-3.52-0.37-4.86-1.11c-1.33-0.74-2.44-1.8-3.33-3.17s-1.67-3-2.35-4.89c-0.68-1.88-1.21-3.37-1.59-4.47l-14.03-41.52
c-1.4-3.89-2.09-6.58-2.09-8.06c0-1.86,0.74-3.53,2.22-5.01c1.48-1.48,3.3-2.22,5.46-2.22c2.88,0,4.82,0.82,5.84,2.44
C647.91,255.99,648.99,258.77,650.13,262.71z"/>
</g>
</defs>
<path id="cloud" stroke="#FFFFFF" stroke-width="11.0463" d="M348.53,188.97c-7.77-27.51-33.04-47.68-63.05-47.68
c-33.06,0-60.38,24.48-64.86,56.3c-13.01-9.95-29.26-15.87-46.9-15.87c-42.68,0-77.28,34.6-77.28,77.28
c0,20.19,7.75,38.56,20.42,52.32c-0.06,0-0.12-0.01-0.19-0.01c-17.28,0-31.29,14.01-31.29,31.29c0,17.28,14.01,31.29,31.29,31.29
c3.87,0,7.55-0.73,10.97-2.02c10.05,42.69,48.36,74.48,94.13,74.48c19.63,0,37.88-5.86,53.13-15.91c6,3.08,12.79,4.82,19.99,4.82
c24.24,0,43.89-19.65,43.89-43.89c0-3.25-0.36-6.42-1.03-9.46c0.35,0,0.69,0.03,1.03,0.03c53.42,0,96.76-43.31,96.76-96.73
C435.54,235.07,397.37,193.85,348.53,188.97z"/>
<path id="highlight" fill="url(#highlight_1_)" d="M348.53,188.97c-7.77-27.51-33.04-47.68-63.05-47.68
c-33.06,0-60.38,24.48-64.86,56.3c-13.01-9.95-29.26-15.87-46.9-15.87c-42.68,0-77.28,34.6-77.28,77.28
c0,20.19,7.75,38.56,20.42,52.32c-0.06,0-0.12-0.01-0.19-0.01c-2.84,0-5.59,0.41-8.2,1.12c38.72,11.64,85.21,18.43,135.22,18.43
c77.74,0,147-16.4,191.76-41.95c0.05-1.23,0.09-2.46,0.09-3.7C435.54,235.07,397.37,193.85,348.53,188.97z"/>
<g id="title">
<use xlink:href="#svgWowText" id="title-background"/>
<use xlink:href="#svgWowText" id="title-foreground"/>
</g>
</svg>
</div>
</body>
</html>/alternate-stylesheet/colored.css
html {
background: linear-gradient(to bottom, #e2ffe2 0, #96ff98 260px) no-repeat;
background-color: #96ff98;
width: 100%;
height: 100%;
}
svg {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
margin-left: auto;
margin-right: auto;
display: block;
margin-top: auto;
margin-bottom: auto;
-moz-box-shadow:0 0 10px rgba(0,0,0,0.5);
-webkit-box-shadow:0 0 10px rgba(0,0,0,0.5);
box-shadow:5px 5px 12px rgba(0,0,0,.25);
width: 600px;
max-width: calc(100% - 8px);
height: auto;
}
#stylesheetSelector {
width: 580px;
max-width: calc(100% - 20px);
box-sizing: content-box;
padding: 10px;
margin-bottom: 20px;
font-family: Tahoma, Verdana, Geneva, sans-serif;
font-size: 12px;
margin-left: auto;
margin-right: auto;
display: block;
color: rgba(0,0,0,0.25);
}
#background {
fill: url(alternate-stylesheet.xhtml#colored-background);
stroke: url(alternate-stylesheet.xhtml#colored-background-stroke);
stroke-width: 3px;
}
#backgroundPattern {
fill: url(alternate-stylesheet.xhtml#stripes);
}
#stylesheetSelector span {
cursor: pointer;
color: rgba(0,0,0,0.5);
font-weight: bold;
text-shadow: none;
}
#stylesheetSelector span:hover, #stylesheetSelector span#coloredSelector:hover {
color: #a00000;
font-weight: bold;
text-decoration: underline;
cursor: pointer;
}
#cameraTarget {
visibility: hidden;
}
#stylesheetSelector span#coloredSelector {
color: #a00000;
}
#cloud {
fill: url(alternate-stylesheet.xhtml#colored-cloud-gradient);
stroke: none;
stroke-opacity: 1;
filter: url(alternate-stylesheet.xhtml#dropShadow);
stroke-width: 12;
}
#highlight {
fill: url(alternate-stylesheet.xhtml#highlight_1_);
}
#title {
filter: url(alternate-stylesheet.xhtml#dropShadow);
}
#title-background {
fill: #96ff98;
stroke: url(alternate-stylesheet.xhtml#colored-cloud-gradient);
stroke-width: 20;
stroke-linejoin: round;
}
#title-foreground {
fill: url(alternate-stylesheet.xhtml#colored-text-gradient);
fill-opacity: 1;
stroke: url(alternate-stylesheet.xhtml#colored-text-stroke-thin);
}/alternate-stylesheet/neutral.css
html {
background-color: #f0f0f0;
background: linear-gradient(135deg, #f0f0f0, #a0a0a0) fixed;
width: 100%;
height: 100%;
}
svg {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
background: white;
border-radius: 5px;
margin-left: auto;
margin-right: auto;
display: block;
margin-top: auto;
margin-bottom: auto;
-moz-box-shadow:0 0 10px #808080;
-webkit-box-shadow:0 0 10px #808080;
box-shadow:0 0 10px #808080;
width: 600px;
max-width: calc(100% - 8px);
height: auto;
}
#stylesheetSelector {
width: 580px;
max-width: calc(100% - 20px);
box-sizing: content-box;
padding: 10px;
margin-bottom: 20px;
font-family: Tahoma, Verdana, Geneva, sans-serif;
font-size: 12px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
background: white;
border-radius: 5px;
margin-left: auto;
margin-right: auto;
display: block;
-moz-box-shadow:0 0 5px #808080;
-webkit-box-shadow:0 0 5px #808080;
box-shadow:0 0 5px #808080;
color: #808080;
}
#stylesheetSelector span {
cursor: pointer;
color: #303030;
font-weight: bold;
}
#stylesheetSelector span:hover, #stylesheetSelector span#neutralSelector:hover {
color: crimson;
font-weight: bold;
}
#cameraTarget {
visibility: hidden;
}
#stylesheetSelector span#neutralSelector {
color: orange;
}
#cloud {
fill: url(alternate-stylesheet.xhtml#cloud-gradient);
stroke: white;
filter: url(alternate-stylesheet.xhtml#dropShadow);
stroke-width: 12;
}
#highlight {
fill: url(alternate-stylesheet.xhtml#highlight_1_);
}
#title {
filter: url(alternate-stylesheet.xhtml#dropShadow);
}
#title-background {
fill: #FFFFFF;
stroke: white;
stroke-width: 20;
stroke-linejoin: round;
}
#title-foreground {
fill: url(alternate-stylesheet.xhtml#text-gradient);
stroke: url(alternate-stylesheet.xhtml#text-stroke-thin);
}/alternate-stylesheet/bw.css
html {
background-color: white;
width: 100%;
height: 100%;
}
svg {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
background: white;
border-radius: 5px;
margin-left: auto;
margin-right: auto;
display: block;
margin-top: auto;
margin-bottom: auto;
border: 1px solid #a0a0a0;
width: 600px;
max-width: calc(100% - 8px);
height: auto;
}
#stylesheetSelector {
width: 580px;
max-width: calc(100% - 20px);
box-sizing: content-box;
padding: 10px;
margin-bottom: 20px;
font-family: Tahoma, Verdana, Geneva, sans-serif;
font-size: 12px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
background: white;
border-radius: 5px;
margin-left: auto;
margin-right: auto;
display: block;
color: #808080;
}
#stylesheetSelector span {
cursor: pointer;
color: #303030;
font-weight: bold;
}
#stylesheetSelector span:hover, #stylesheetSelector span#bwSelector:hover {
color: #d0d0d0;
font-weight: bold;
}
#cameraTarget {
visibility: hidden;
}
#stylesheetSelector span#bwSelector {
color: #a0a0a0;
}
#cloud {
fill: white;
stroke: black;
filter: none;
stroke-width: 12;
}
#highlight {
fill: none;
stroke: black;
stroke-width: 2;
}
#title {
filter: none
}
#title-background {
fill: black;
stroke: black;
stroke-width: 20;
stroke-linejoin: round;
}
#title-foreground {
fill: white;
stroke: url(#text-stroke-thin);
}