8
0
Marek Lewandowski 6 лет назад
Родитель
Сommit
dd828b9788

+ 3 - 0
packages/ckeditor5-ui/.stylelintrc

@@ -0,0 +1,3 @@
+{
+	"extends": "stylelint-config-ckeditor5"
+}

+ 8 - 2
packages/ckeditor5-ui/package.json

@@ -31,7 +31,9 @@
     "eslint": "^5.5.0",
     "eslint-config-ckeditor5": "^2.0.0",
     "husky": "^1.3.1",
-    "lint-staged": "^7.0.0"
+    "lint-staged": "^7.0.0",
+    "stylelint": "^11.1.1",
+    "stylelint-config-ckeditor5": "^1.0.0"
   },
   "engines": {
     "node": ">=8.0.0",
@@ -51,11 +53,15 @@
     "theme"
   ],
   "scripts": {
-    "lint": "eslint --quiet '**/*.js'"
+    "lint": "eslint --quiet '**/*.js'",
+    "stylelint": "stylelint --quiet --allow-empty-input 'theme/**/*.css' 'docs/**/*.css'"
   },
   "lint-staged": {
     "**/*.js": [
       "eslint --quiet"
+    ],
+    "**/*.css": [
+      "stylelint --quiet --allow-empty-input"
     ]
   },
   "eslintIgnore": [

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

@@ -16,6 +16,10 @@ a.ck.ck-button {
 	align-items: center;
 	justify-content: left;
 
+	& .ck-button__label {
+		display: none;
+	}
+
 	&.ck-button_with-text {
 		& .ck-button__label {
 			display: inline-block;
@@ -35,8 +39,4 @@ a.ck.ck-button {
 	&:focus:not(:hover) {
 		@mixin ck-tooltip_disabled;
 	}
-
-	& .ck-button__label {
-		display: none;
-	}
 }

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

@@ -15,7 +15,7 @@
 	-webkit-backface-visibility: hidden;
 }
 
-.ck-tooltip {
+.ck.ck-tooltip {
 	/* Tooltip is hidden by default. */
 	visibility: hidden;
 	opacity: 0;