Selaa lähdekoodia

Docs: Improved the design of dynamic text statistics boxes in the feature guide. [skip ci]

Aleksander Nowodzinski 6 vuotta sitten
vanhempi
commit
4c434cb123

+ 17 - 0
packages/ckeditor5-word-count/docs/_snippets/features/build-word-count-source.html

@@ -0,0 +1,17 @@
+<style>
+	.word-count {
+		padding: 10px 20px;
+		margin-bottom: 15px;
+		background: var(--ck-color-toolbar-background);
+		border-left: 10px hsl(291, 64%, 42%) solid;
+		box-shadow: 2px 2px 2px hsla(0,0%,0%,0.1);
+	}
+
+	.word-count::before {
+		content: "Text statistics";
+		display: block;
+		font-weight: bold;
+		font-size: 1.2em;
+		margin-bottom: .4em;
+	}
+</style>

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 10 - 11
packages/ckeditor5-word-count/docs/_snippets/features/word-count-update.html


+ 6 - 4
packages/ckeditor5-word-count/docs/_snippets/features/word-count.html

@@ -1,8 +1,10 @@
 <style>
-	.word-count {
-		border: 3px solid #333;
-		padding-left: 5px;
-		margin-bottom: 15px;
+	#demo-word-count .ck-word-count * {
+		display: inline-block;
+	}
+
+	#demo-word-count .ck-word-count .ck-word-count__words {
+		margin-right: 1em;
 	}
 </style>
 <div id="demo-editor">