浏览代码

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

Allan Cole 6 年之前
父节点
当前提交
dd88a55d92

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

@@ -15,3 +15,5 @@
 @import "comments/comments";
 @import "comments/comments";
 
 
 @import "widgets/widgets";
 @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;
 	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. */
 /* Make sure embeds and iframes fit their containers. */
 embed,
 embed,
 iframe,
 iframe,

+ 0 - 10
varia/style-editor.css

@@ -233,16 +233,6 @@ figcaption {
 	padding: 0;
 	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. */
 /* Make sure embeds and iframes fit their containers. */
 embed,
 embed,
 iframe,
 iframe,

+ 11 - 10
varia/style-rtl.css

@@ -992,16 +992,6 @@ figcaption {
 	padding: 0;
 	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. */
 /* Make sure embeds and iframes fit their containers. */
 embed,
 embed,
 iframe,
 iframe,
@@ -2826,6 +2816,17 @@ table th,
 	flex: 0 0 100%;
 	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
  * Site Pages
  * - Page specific styles
  * - Page specific styles

+ 11 - 10
varia/style.css

@@ -992,16 +992,6 @@ figcaption {
 	padding: 0;
 	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. */
 /* Make sure embeds and iframes fit their containers. */
 embed,
 embed,
 iframe,
 iframe,
@@ -2831,6 +2821,17 @@ table th,
 	flex: 0 0 100%;
 	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
  * Site Pages
  * - Page specific styles
  * - Page specific styles