8
0
Просмотр исходного кода

Docs: Made samples' HTML CKE5 compliant. [skip ci]

Piotrek Koszuliński 8 лет назад
Родитель
Сommit
25441736ed

+ 17 - 7
docs/_snippets/examples/balloon-editor.html

@@ -1,20 +1,30 @@
 <div id="snippet-balloon-editor">
 	<h2>Walking the capitals of Europe: Warsaw</h2>
-	<figure class="image"><img alt="Picture of the Warsaw Old Town." height="auto" width="100%"
-	                           src="https://c.cksource.com/a/1/img/demo/warsaw.jpg">
-		<figcaption>Medieval Old Town square, destroyed in 1944 & rebuilt after WWII.</figcaption>
+
+	<figure class="image">
+		<img alt="Picture of the Warsaw Old Town." src="https://c.cksource.com/a/1/img/demo/warsaw.jpg">
+		<figcaption>Medieval Old Town square, destroyed in 1944 &amp; rebuilt after WWII.</figcaption>
 	</figure>
-	<p>If you enjoyed my previous articles in which we discussed wandering around <a href="https://en.wikipedia.org/wiki/Copenhagen" target="_blank" rel="external">Copenhagen</a> and <a href="https://en.wikipedia.org/wiki/Vilnius" target="_blank" rel="external">Vilnius</a>, you’ll definitely love exploring <a href="https://en.wikipedia.org/wiki/Warsaw" target="_blank" rel="external">Warsaw</a>.</p>
+
+	<p>If you enjoyed my previous articles in which we discussed wandering around <a href="https://en.wikipedia.org/wiki/Copenhagen">Copenhagen</a> and <a href="https://en.wikipedia.org/wiki/Vilnius">Vilnius</a>, you’ll definitely love exploring <a href="https://en.wikipedia.org/wiki/Warsaw">Warsaw</a>.</p>
+
 	<h3>Time to put comfy sandals on!</h3>
+
 	<p>Best time to visit the city is July and August, when it’s cool enough to not break a sweat and hot enough to enjoy summer. The city which has quite a combination of both old and modern textures is located by the river of Vistula.</p>
+
 	<p>The historic <strong>Old Town</strong>, which was reconstructed after the World War II, with its late 18th century characteristics, is a must-see. You can start your walk from the <strong>Nowy Świat Street</strong> which will take you straight to the Old Town.</p>
+
 	<p>Then you can go to the <strong>Powiśle</strong> area and take a walk on the newly renovated promenade on  the riverfront. There are also lots of cafes, bars and restaurants where you can shake off the exhaustion of the day. On Sundays, there are many parks where you can enjoy nature or listen to pianists from around the world playing Chopin.</p>
+
 	<p>For museum lovers, you can add these to your list:</p>
+
 	<ul>
-		<li><a href="http://www.polin.pl/en" target="_blank" rel="external">POLIN</a></li>
-		<li><a href="http://www.1944.pl/en" target="_blank" rel="external">Warsaw Uprising Museum</a></li>
-		<li><a href="http://chopin.museum/en" target="_blank" rel="external">Fryderyk Chopin Museum</a></li>
+		<li><a href="http://www.polin.pl/en">POLIN</a></li>
+		<li><a href="http://www.1944.pl/en">Warsaw Uprising Museum</a></li>
+		<li><a href="http://chopin.museum/en">Fryderyk Chopin Museum</a></li>
 	</ul>
+
 	<h3>Next destination</h3>
+
 	<p>We will go to Berlin and have a night's walk in the city that never sleeps! Make sure you subscribe to our newsletter!</p>
 </div>

+ 12 - 2
docs/_snippets/examples/classic-editor.html

@@ -1,22 +1,32 @@
 <div id="snippet-classic-editor">
 	<h2>The three greatest things you learn from traveling</h2>
+
 	<p>Like all the great things on earth traveling teaches us by example. Here are some of the most precious lessons I’ve learned over the years of traveling.</p>
-	<figure class="image illustration" style="height:400px;"><img alt="Picture of a farmer in a rice field." height="auto"
-	                                                              src="https://c.cksource.com/a/1/img/demo/vietnam.jpg" width="100%">
+
+	<figure class="image">
+		<img alt="Picture of a farmer in a rice field." src="https://c.cksource.com/a/1/img/demo/vietnam.jpg">
 		<figcaption>Leaving your comfort zone might lead you to such beautiful sceneries like this one.</figcaption>
 	</figure>
+
 	<h3>Appreciation of diversity</h3>
+
 	<p>While it’s also nice to learn about cultures online or from books, nothing comes close to experiencing cultural diversity in person. You learn to appreciate each and every single one of the differences while you become more culturally fluid.</p>
+
 	<blockquote>
 		<p>The real voyage of discovery consists not in seeking new landscapes, but having new eyes.</p>
 		<p><strong>Marcel Proust</strong></p>
 	</blockquote>
+
 	<h3>Improvisation</h3>
+
 	<p>Life doesn't allow us to execute every single plan perfectly. This especially seems to be the case when you travel. You plan it down to every minute with a big checklist; but when it comes to executing it, something always comes up and you’re left with your improvising skills. You learn to adapt as you go. Here’s how my travel checklist looks now:</p>
+
 	<ul>
 		<li>buy the ticket</li>
 		<li>start your adventure</li>
 	</ul>
+
 	<h3>Confidence</h3>
+
 	<p>Going to a new place can be quite terrifying. While change and uncertainty makes us scared, traveling teaches us how ridiculous it is to be afraid of something before it happens. The moment you face your fear and see there was nothing to be afraid of, is the moment you discover bliss.</p>
 </div>

+ 8 - 1
docs/_snippets/examples/inline-editor.html

@@ -3,14 +3,20 @@
 		<h2>Gone traveling</h2>
 		<h3>Monthly travel news and inspiration</h3>
 	</header>
+
 	<div data-inline-inject="true">
 		<h3>Destination of the Month</h3>
+
 		<h4>Valletta</h4>
-		<figure class="image image-style-left"><img alt="Picture of a sunlit facade of a Maltan building." height="auto" width="100%" src="https://c.cksource.com/a/1/img/demo/malta.jpg">
+
+		<figure class="image image-style-left">
+			<img alt="Picture of a sunlit facade of a Maltan building." src="https://c.cksource.com/a/1/img/demo/malta.jpg">
 			<figcaption>It's siesta time in Valletta.</figcaption>
 		</figure>
+
 		<p>The capital city of <a href="https://en.wikipedia.org/wiki/Malta" target="_blank" rel="external">Malta</a> is the top destination this summer. It’s home to a cutting-edge contemporary architecture, baroque masterpieces, delicious local cuisine and at least 8 months of sun. It’s also a top destination for filmmakers, so you can take a tour through locations familiar to you from Game of Thrones, Gladiator, Troy and many more.</p>
 	</div>
+
 	<div class="demo-row">
 		<div class="demo-row__half">
 			<div data-inline-inject="true">
@@ -18,6 +24,7 @@
 				<p><a href="#">Find out more</a></p>
 			</div>
 		</div>
+
 		<div class="demo-row__half">
 			<div data-inline-inject="true">
 				<h3>Walking the capitals of Europe: Warsaw</h3>