Explorar el Código

Code refactoring in various styles sheets.

Aleksander Nowodzinski hace 8 años
padre
commit
1fe1138e4f

+ 8 - 8
packages/ckeditor5-ui/theme/components/panel/balloonpanel.css

@@ -10,37 +10,37 @@
 	z-index: var(--ck-z-modal);
 
 	&.ck-balloon-panel_with-arrow {
-		&:before,
-		&:after {
+		&::before,
+		&::after {
 			content: "";
 			position: absolute;
 		}
 
-		&:before {
+		&::before {
 			z-index: var(--ck-z-default);
 		}
 
-		&:after {
+		&::after {
 			z-index: calc(var(--ck-z-default) + 1 );
 		}
 	}
 
 	&[class*="arrow_n"] {
-		&:before {
+		&::before {
 			z-index: var(--ck-z-default);
 		}
 
-		&:after {
+		&::after {
 			z-index: calc(var(--ck-z-default) + 1);
 		}
 	}
 
 	&[class*="arrow_s"] {
-		&:before {
+		&::before {
 			z-index: var(--ck-z-default);
 		}
 
-		&:after {
+		&::after {
 			z-index: calc(var(--ck-z-default) + 1);
 		}
 	}

+ 1 - 1
packages/ckeditor5-ui/theme/components/panel/stickypanel.css

@@ -6,7 +6,7 @@
 .ck-editor {
 	& .ck-sticky-panel {
 		& .ck-sticky-panel__content_sticky {
-			z-index: var(--ck-z-modal); /*#315*/
+			z-index: var(--ck-z-modal); /* #315 */
 			position: fixed;
 			top: 0;
 		}

+ 4 - 4
packages/ckeditor5-ui/theme/components/tooltip/tooltip.css

@@ -7,16 +7,16 @@
 .ck-tooltip__text::after {
 	position: absolute;
 
-	/*Without this, hovering the tooltip could keep it visible.*/
+	/* Without this, hovering the tooltip could keep it visible. */
 	pointer-events: none;
 
-	/*This is to get rid of flickering when transitioning opacity in Chrome.
-	It's weird but it works.*/
+	/* This is to get rid of flickering when transitioning opacity in Chrome.
+	It's weird but it works. */
 	-webkit-backface-visibility: hidden;
 }
 
 .ck-tooltip {
-	/*Tooltip is hidden by default.*/
+	/* Tooltip is hidden by default. */
 	visibility: hidden;
 	opacity: 0;
 	display: none;