소스 검색

Varia: Revise #wpstats styles to appear on frontend only, update CSS hiding method

Allan Cole 6 년 전
부모
커밋
dd88a55d92
6개의 변경된 파일35개의 추가작업 그리고 40개의 파일을 삭제
  1. 2 0
      varia/sass/components/_imports.scss
  2. 11 0
      varia/sass/components/utilities/_utilities.scss
  3. 0 10
      varia/sass/elements/_media.scss
  4. 0 10
      varia/style-editor.css
  5. 11 10
      varia/style-rtl.css
  6. 11 10
      varia/style.css

+ 2 - 0
varia/sass/components/_imports.scss

@@ -15,3 +15,5 @@
 @import "comments/comments";
 
 @import "widgets/widgets";
+
+@import "utilities/utilities";

+ 11 - 0
varia/sass/components/utilities/_utilities.scss

@@ -0,0 +1,11 @@
+/* WP Stats */
+
+img#wpstats {
+	position: absolute !important;
+	clip: rect(0, 0, 0, 0);
+	padding: 0 !important;
+	border: 0 !important;
+	height: 0 !important;
+	width: 0 !important;
+	overflow: hidden;
+}

+ 0 - 10
varia/sass/elements/_media.scss

@@ -26,16 +26,6 @@ figcaption {
 	padding: 0;
 }
 
-/* WP Stats */
-img#wpstats {
-	position: absolute;
-	opacity: 0;
-	left: 100%;
-	top: 100%;
-	height: 0;
-	width: 0;
-}
-
 /* Make sure embeds and iframes fit their containers. */
 embed,
 iframe,

+ 0 - 10
varia/style-editor.css

@@ -233,16 +233,6 @@ figcaption {
 	padding: 0;
 }
 
-/* WP Stats */
-img#wpstats {
-	position: absolute;
-	opacity: 0;
-	left: 100%;
-	top: 100%;
-	height: 0;
-	width: 0;
-}
-
 /* Make sure embeds and iframes fit their containers. */
 embed,
 iframe,

+ 11 - 10
varia/style-rtl.css

@@ -992,16 +992,6 @@ figcaption {
 	padding: 0;
 }
 
-/* WP Stats */
-img#wpstats {
-	position: absolute;
-	opacity: 0;
-	right: 100%;
-	top: 100%;
-	height: 0;
-	width: 0;
-}
-
 /* Make sure embeds and iframes fit their containers. */
 embed,
 iframe,
@@ -2826,6 +2816,17 @@ table th,
 	flex: 0 0 100%;
 }
 
+/* WP Stats */
+img#wpstats {
+	position: absolute !important;
+	clip: rect(0, 0, 0, 0);
+	padding: 0 !important;
+	border: 0 !important;
+	height: 0 !important;
+	width: 0 !important;
+	overflow: hidden;
+}
+
 /**
  * Site Pages
  * - Page specific styles

+ 11 - 10
varia/style.css

@@ -992,16 +992,6 @@ figcaption {
 	padding: 0;
 }
 
-/* WP Stats */
-img#wpstats {
-	position: absolute;
-	opacity: 0;
-	left: 100%;
-	top: 100%;
-	height: 0;
-	width: 0;
-}
-
 /* Make sure embeds and iframes fit their containers. */
 embed,
 iframe,
@@ -2831,6 +2821,17 @@ table th,
 	flex: 0 0 100%;
 }
 
+/* WP Stats */
+img#wpstats {
+	position: absolute !important;
+	clip: rect(0, 0, 0, 0);
+	padding: 0 !important;
+	border: 0 !important;
+	height: 0 !important;
+	width: 0 !important;
+	overflow: hidden;
+}
+
 /**
  * Site Pages
  * - Page specific styles