-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
181 lines (149 loc) · 18 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="./content.css" charset="utf-8" />
<link rel="stylesheet" href="./flexbox.css" />
<link rel="stylesheet" href="./chrome.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<svg style="display: none" xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
<defs>
<g id="split-section-icon">
<path d="M8 26h12v-4H8v4zm32 8H8v4h32v-4zm-6-24H8v4h26.5c2.21 0 4 1.79 4 4s-1.79 4-4 4H30v-4l-6 6 6 6v-4h4c4.41 0 8-3.59 8-8s-3.59-8-8-8z"/></g>
<g id="resize-section-icon">
<path d="M9,30 L39,30 L39,26 L9,26 L9,30 Z M9,16 L9,20 L39,20 L39,16 L9,16 Z" /></g>
<g id="zoom-out-icon">
<path d="M30.2995998,27.3836478 L28.7638651,27.3836478 L28.219554,26.8587764 C30.1246427,24.6426529 31.2715838,21.7655803 31.2715838,18.6357919 C31.2715838,11.6569468 25.6146369,6 18.6357919,6 C11.6569468,6 6,11.6569468 6,18.6357919 C6,25.6146369 11.6569468,31.2715838 18.6357919,31.2715838 C21.7655803,31.2715838 24.6426529,30.1246427 26.8587764,28.219554 L27.3836478,28.7638651 L27.3836478,30.2995998 L37.1034877,40 L40,37.1034877 L30.2995998,27.3836478 L30.2995998,27.3836478 Z M18.6357919,27.3836478 C13.7953116,27.3836478 9.88793596,23.4762722 9.88793596,18.6357919 C9.88793596,13.7953116 13.7953116,9.88793596 18.6357919,9.88793596 C23.4762722,9.88793596 27.3836478,13.7953116 27.3836478,18.6357919 C27.3836478,23.4762722 23.4762722,27.3836478 18.6357919,27.3836478 Z M13.7758719,17.6638079 L23.4957118,17.6638079 L23.4957118,19.6077759 L13.7758719,19.6077759 L13.7758719,17.6638079 Z"></path></g>
<g id="zoom-in-icon">
<path d="M30.2995998,27.3836478 L28.7638651,27.3836478 L28.219554,26.8587764 C30.1246427,24.6426529 31.2715838,21.7655803 31.2715838,18.6357919 C31.2715838,11.6569468 25.6146369,6 18.6357919,6 C11.6569468,6 6,11.6569468 6,18.6357919 C6,25.6146369 11.6569468,31.2715838 18.6357919,31.2715838 C21.7655803,31.2715838 24.6426529,30.1246427 26.8587764,28.219554 L27.3836478,28.7638651 L27.3836478,30.2995998 L37.1034877,40 L40,37.1034877 L30.2995998,27.3836478 L30.2995998,27.3836478 Z M18.6357919,27.3836478 C13.7953116,27.3836478 9.88793596,23.4762722 9.88793596,18.6357919 C9.88793596,13.7953116 13.7953116,9.88793596 18.6357919,9.88793596 C23.4762722,9.88793596 27.3836478,13.7953116 27.3836478,18.6357919 C27.3836478,23.4762722 23.4762722,27.3836478 18.6357919,27.3836478 Z M23.4957118,19.6077759 L19.6077759,19.6077759 L19.6077759,23.4957118 L17.6638079,23.4957118 L17.6638079,19.6077759 L13.7758719,19.6077759 L13.7758719,17.6638079 L17.6638079,17.6638079 L17.6638079,13.7758719 L19.6077759,13.7758719 L19.6077759,17.6638079 L23.4957118,17.6638079 L23.4957118,19.6077759 Z"></path></g>
<g id="palette-icon">
<path d="M24,5 C14.06,5 6,13.06 6,23 C6,32.94 14.06,41 24,41 C25.66,41 27,39.66 27,38 C27,37.22 26.7,36.52 26.22,35.98 C25.76,35.46 25.46,34.76 25.46,34 C25.46,32.34 26.8,31 28.46,31 L32,31 C37.52,31 42,26.52 42,21 C42,12.16 33.94,5 24,5 Z M13,23 C11.34,23 10,21.66 10,20 C10,18.34 11.34,17 13,17 C14.66,17 16,18.34 16,20 C16,21.66 14.66,23 13,23 Z M19,15 C17.34,15 16,13.66 16,12 C16,10.34 17.34,9 19,9 C20.66,9 22,10.34 22,12 C22,13.66 20.66,15 19,15 Z M29,15 C27.34,15 26,13.66 26,12 C26,10.34 27.34,9 29,9 C30.66,9 32,10.34 32,12 C32,13.66 30.66,15 29,15 Z M35,23 C33.34,23 32,21.66 32,20 C32,18.34 33.34,17 35,17 C36.66,17 38,18.34 38,20 C38,21.66 36.66,23 35,23 Z"></path>
</g>
<g id="settings-icon">
<path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3c-1.22.51-2.35 1.17-3.38 1.97L9.9 10.1c-.45-.17-.97 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3c1.22-.51 2.35-1.17 3.38-1.97l4.98 2.01c.45.17.97 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"/>
</g>
<g id="move-down-icon">
<path d="M38,26 L30,26 L30,14 L18,14 L18,26 L10,26 L24,40 L38,26 Z M10,6 L10,10 L38,10 L38,6 L10,6 Z" fill-rule="evenodd"></path>
</g>
<g id="split-icon">
<path d="M33,10.6153846 L27.8571429,10.6153846 L27.8571429,18 L20.1428571,18 L20.1428571,10.6153846 L15,10.6153846 L24,2 L33,10.6153846 Z M33,36.8461538 L27.8571429,36.8461538 L27.8571429,29 L20.1428571,29 L20.1428571,36.8461538 L15,36.8461538 L24,46 L33,36.8461538 Z M5,21 L5,26 L43,26 L43,21 L5,21 Z"></path>
</g>
<g id="move-up-icon">
<path d="M18 32h12V20h8L24 6 10 20h8zm-8 4h28v4H10z"/>
</g>
<g id="star-icon">
<path d="M22,32.54L34.36 40 31.08 25.94 42 16.48 27.62 15.26 22 2 16.38 15.26 2 16.48 12.92 25.94 9.64 40z"/>
</g>
<g id="unstar-icon">
<path d="M42,16.48 L27.62,15.24 L22,2 L16.38,15.26 L2,16.48 L12.92,25.94 L9.64,40 L22,32.54 L34.36,40 L31.1,25.94 L42,16.48 Z M22,28.8 L14.48,33.34 L16.48,24.78 L9.84,19.02 L18.6,18.26 L22,10.2 L25.42,18.28 L34.18,19.04 L27.54,24.8 L29.54,33.36 L22,28.8 Z"></path>
</g>
<g id="move-icon">
<path d="M20 18h8v-6h6L24 2 14 12h6v6zm-2 2h-6v-6L2 24l10 10v-6h6v-8zm28 4L36 14v6h-6v8h6v6l10-10zm-18 6h-8v6h-6l10 10 10-10h-6v-6z"/>
</g>
<g id="menu-icon">
<path d="M12 20c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm24 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-12 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"/>
</g>
</defs></svg>
<div id="formatting" hidden></div>
<div id="sectionizer" hidden>
<svg viewBox="-2 0 48 48" class="unstar icon"><use xlink:href="#unstar-icon"></use></svg>
<svg viewBox="-2 0 48 48" class="star icon"><use xlink:href="#star-icon"></use></svg>
<svg viewBox="-1 0 50 50" class="pick palette icon"><use xlink:href="#palette-icon"></use></svg>
<svg viewBox="0 0 48 48" class="split handler icon"><use xlink:href="#split-section-icon"></use></svg>
<svg viewBox="-1 0 50 50" class="pick settings icon"><use xlink:href="#settings-icon"></use></svg>
<svg viewBox="-2 2 48 48" class="shrink zoomer icon"><use xlink:href="#zoom-out-icon"></use></svg>
<svg viewBox="-2 2 48 48" class="enlarge zoomer icon"><use xlink:href="#zoom-in-icon"></use></svg>
</div>
<article class="content" contenteditable autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
<section class="forced large starred" schema="2_0">
<picture>
<img src="./images/arlberg-pass-833326_1280.jpg" palette="LV#ffc07b#ffcb8f#ffd699 V#bf6100#b25e00#a35400 DV#893f00#713200#662c00 DM#050305" />
</picture>
<h1>CSS Zen Garden</h1><h2>The Beauty of CSS Design</h2><p>A demonstration of what can be accomplished through CSS-based design. Select any style sheet from the list to load it into this page.</p><p>Download the example <a title="This page's source HTML code, not to be modified." href="http://www.csszengarden.com/examples/index">html file</a> and <a title="This page's sample CSS, the file you may modify." href="http://www.csszengarden.com/examples/style.css">css file</a></p>
</section>
<section schema="4_2"><h2>The Road to Enlightenment</h2><p>Littering a dark and dreary road lay the past relics of browser-specific tags, incompatible DOMs, broken CSS support, and abandoned browsers.</p><p>We must clear the mind of the past. Web enlightenment has been achieved thanks to the tireless efforts of folk like the W3C, WaSP, and the major browser creators.</p><p>The CSS Zen Garden invites you to relax and meditate on the important lessons of the masters. Begin to see with clarity. Learn to use the time-honored techniques in new and invigorating fashion. Become one with the web.</p></section>
<section class="forced" schema="4_2">
<a href="#">
<picture><img src="./images/Nice-wallpapers-the_dolomites_alps_italy-other.jpg" palette="LV#fffdae#fef1ff#fdca5a V#fb7a28#fef64e#e95231 DV#4a0202#260001#6b0406 LM#c3b499#ac9c82#c7c7c7 M#a49169#897468#958670 DM#5f3e3d#403029#635342" /></picture>
</a>
<p> This is <a href="#">serious</a> text</p>
</section>
<section class="forced starred" schema="0_4">
<h2>Participation</h2>
<blockquote>
<p>Strong visual design has always been our focus. You are modifying this page, so strong CSS skills are necessary too, but the example files are commented well enough that even CSS novices can use them as starting points. Please see the CSS Resource Guidefor advanced tutorials and tips on working with CSS.</p>
</blockquote>
<p>
You may modify the style sheet in any way you wish, but not the HTML. This may seem daunting at first if you’ve never worked this way before, but follow the listed links to learn more, and use the sample files as a guide.</p>
<ul>
<li>This layout is applied</li>
<li> when there's a portrait image</li>
<li> with medium sized text.</li>
</ul>
<a href="#">
<picture><img src="./images/27dfcc17a8cefe56c99277d63be0d815.jpg" palette="LV#fffff8#edd6ba#f9f5ec V#885c36#9a7045#784d27 DV#080000#502a0f#694c29 LM#cdbaa2#d4c1a9#c4b199 M#a2815a#987754#ae8967 DM#5b4c34#4e363a#63543c" /></picture>
</a>
</section>
<section class="large" ><h2>So What is This About?</h2><blockquote><p>There is a continuing need to show the power of CSS. The Zen Garden aims to excite, inspire, and encourage participation. To begin, view some of the existing designs in the list. Clicking on any one will load the style sheet into this very page. The HTMLremains the same, the only thing that has changed is the external CSS file. Yes, really.</p></blockquote>
</section>
<section class="forced starred" schema="4_0">
<p>CSS allows complete and total control over the style of a hypertext document. The only way this can be illustrated in a way that gets people excited is by demonstrating what it can truly be, once the reins are placed in the hands of those able to create beauty from structure. Designers and coders alike have contributed to the beauty of the web; we can always push it further.</p>
</section>
<section class="forced small starred" schema="3_4">
<picture>
<img src="images/cute-baby-animals-2-2.jpg" />
</picture>
</section>
<section class="forced small starred">
<picture>
<img src="images/IMG_3387.JPG.jpg" />
</picture>
</section>
<section class="forced large"><h2>Participation</h2>
<blockquote>
<p>Strong visual design has always been our focus. You are modifying this page, so strong CSS skills are necessary too, but the example files are commented well enough that even CSS novices can use them as starting points. Please see the <a title="A listing of CSS-related resources" href="http://www.mezzoblue.com/zengarden/resources/">CSS Resource Guide</a>for advanced tutorials and tips on working with CSS.</p>
</blockquote>
<p>You may modify the style sheet in any way you wish, but not the HTML. This may seem daunting at first if you’ve never worked this way before, but follow the listed links to learn more, and use the sample files as a guide.</p>
<ul>
<li>Download the sample <a title="This page's source HTML code, not to be modified." href="http://www.csszengarden.com/examples/index">HTML</a></li>
<li>
and <a title="This page's sample CSS, the file you may modify." href="http://www.csszengarden.com/examples/style.css">CSS</a> to work on a copy locally. </li>
</ul>
<p>Once you have completed your masterpiece (and please, don’t submit half-finished work) upload your CSS file to a web server under your control. <a title="Use the contact form to send us your CSS file" href="http://www.mezzoblue.com/zengarden/submit/">Send us a link</a> to an archive of that file and all associated assets, and if we choose to use it we will download it and place it on our server.</p><h3>Benefits</h3><p>Why participate? For recognition, inspiration, and a resource we can all refer to showing people how amazing CSS really can be. This site serves as equal parts inspiration for those working on the web today, learning tool for those who will be tomorrow, and gallery of future techniques we can all look forward to.</p><h3>Requirements</h3><p>Where possible, we would like to see mostly CSS 1 & 2 usage. CSS 3 & 4 should be limited to widely-supported elements only, or strong fallbacks should be provided. The CSS Zen Garden is about functional, practical CSS and not the latest bleeding-edge tricks viewable by 2% of the browsing public. The only real requirement we have is that your CSS validates.</p><p>Luckily, designing this way shows how well various browsers have implemented CSS by now. When sticking to the guidelines you should see fairly consistent results across most modern browsers. Due to the sheer number of user agents on the web these days — especially when you factor in mobile — pixel-perfect layouts may not be possible across every platform. That’s okay, but do test in as many as you can. Your design should work in at least IE9+ and the latest Chrome, Firefox, iOS and Android browsers (run by over 90% of the population).</p><p>We ask that you submit original artwork. Please respect copyright laws. Please keep objectionable material to a minimum, and try to incorporate unique and interesting visual themes to your work. We’re well past the point of needing another garden-related design.</p><p>This is a learning exercise as well as a demonstration. You retain full copyright on your graphics (with limited exceptions, see <a href="http://www.mezzoblue.com/zengarden/submit/guidelines/">submission guidelines</a>), but we ask you release your CSS under a Creative Commons license identical to the <a title="View the Zen Garden's license information." href="http://creativecommons.org/licenses/by-nc-sa/3.0/">one on this site</a> so that others may learn from your work.</p><p>By<a href="http://www.mezzoblue.com/">DAVE SHEA</a>. Bandwidth graciously donated by<a href="http://www.mediatemple.net/">MEDIATEMPLE</a>. Now available:<a href="http://www.amazon.com/exec/obidos/ASIN/0321303474/mezzoblue-20/">ZEN GARDEN, THE BOOK</a>.</p><p><a title="Check the validity of this site’s HTML" href="http://validator.w3.org/check/referer">HTML</a> <a title="Check the validity of this site’s CSS" href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> <a title="View the Creative Commons license of this site: Attribution-NonCommercial-ShareAlike." href="http://creativecommons.org/licenses/by-nc-sa/3.0/">CC</a> <a title="Read about the accessibility of this site" href="http://mezzoblue.com/zengarden/faq/#aaa">A11Y</a> <a title="Fork this site on Github" href="https://github.com/mezzoblue/csszengarden.com">GH</a></p><h2>Select a Design:</h2><ul><li><a href="http://www.csszengarden.com/221/">Mid Century Modern</a>by <a href="http://andrewlohman.com/">Andrew Lohman</a></li><li><a href="http://www.csszengarden.com/220/">Garments</a>by <a href="http://danielmall.com/">Dan Mall</a></li><li><a href="http://www.csszengarden.com/219/">Steel</a>by <a href="http://steffen-knoeller.de/">Steffen Knoeller</a></li><li><a href="http://www.csszengarden.com/218/">Apothecary</a>by <a href="http://trentwalton.com/">Trent Walton</a></li><li><a href="http://www.csszengarden.com/217/">Screen Filler</a>by <a href="http://elliotjaystocks.com/">Elliot Jay Stocks</a></li><li><a href="http://www.csszengarden.com/216/">Fountain Kiss</a>by <a href="http://jeremycarlson.com/">Jeremy Carlson</a></li><li><a href="http://www.csszengarden.com/215/">A Robot Named Jimmy</a>by <a href="http://meltmedia.com/">meltmedia</a></li><li><a href="http://www.csszengarden.com/214/">Verde Moderna</a>by <a href="http://www.mezzoblue.com/">Dave Shea</a></li></ul><h3>Archives:</h3><ul><li><a href="http://www.csszengarden.com/213/page1">Next Designs ›</a></li><li><a title="View every submission to the Zen Garden." href="http://www.mezzoblue.com/zengarden/alldesigns/">View All Designs</a></li></ul><h3>Resources:</h3><ul><li><a title="View the source CSS file of the currently-viewed design." href="http://www.csszengarden.com/213/213.css">View This Design’s CSS</a></li><li><a title="Links to great sites with information on using CSS." href="http://www.mezzoblue.com/zengarden/resources/">CSS Resources</a></li><li><a title="A list of Frequently Asked Questions about the Zen Garden." href="http://www.mezzoblue.com/zengarden/faq/">FAQ</a></li><li><a title="Send in your own CSS file." href="http://www.mezzoblue.com/zengarden/submit/">Submit a Design</a></li><li><a title="View translated versions of this page." href="http://www.mezzoblue.com/zengarden/translations/">Translations<span style="display:none"> </span></a></li></ul>
</article>
<script src="./ckeditor/ckeditor.js"></script>
<script src="colors/rgbquant.js"></script>
<script src="colors/quantize.js"></script>
<script src="colors/vibrant.js"></script>
<script src="colors/pallete.js"></script>
<script src="colors/resize.js"></script>
<script src="colors/unsharp.js"></script>
<script src="colors/crop.js"></script>
<script src="editor/hammer.js"></script>
<script src="editor/editor.js"></script>
<script src="editor/gestures.js"></script>
<script src="editor/dtd.js"></script>
<script src="editor/commands.js"></script>
<script src="editor/keys.js"></script>
<script src="editor/selection.js"></script>
<script src="editor/clipboard.js"></script>
<script src="editor/keys.js"></script>
<script src="worker.js"></script>
<script src="editor/container.js"></script>
<script src="editor/snapshot.js"></script>
<script src="editor/picker.js"></script>
<script src="editor/chrome.js"></script>
<script src="editor/content.js"></script>
<script src="editor/section.js"></script>
<script src="editor/style.js"></script>
<script src="editor/observer.js"></script>
<script src="editor/image.js"></script>
<script src="editor/spring.js"></script>
<script>
var editors = document.querySelectorAll('article[contenteditable]');
for (var i = 0; i < editors.length; i++)
new Editor(editors[i])
</script>
</body>
</html>