Przeglądaj źródła

Spearhead: Update RTL config

Ben Dwyer 4 lat temu
rodzic
commit
17ff612a34

+ 6 - 6
spearhead/navigation-rtl.css

@@ -41,12 +41,12 @@
 
 .has-marketing-bar.lock-scrolling .menu-button-container > .button,
 .has-marketing-bar:not(.primary-navigation-open) .menu-button-container {
-	top: var(--marketing-bar--height);
+	top: var(--wpcom-marketing-bar--height);
 }
 
 .admin-bar.has-marketing-bar.lock-scrolling .menu-button-container > .button,
 .admin-bar.has-marketing-bar:not(.primary-navigation-open) .menu-button-container {
-	top: calc(var(--wpadmin-bar--height) + var(--marketing-bar--height));
+	top: calc(var(--wpadmin-bar--height) + var(--wpcom-marketing-bar--height));
 }
 
 .menu-button-container .button,
@@ -76,7 +76,7 @@
 .has-marketing-bar .menu-button-container .button.close, .has-marketing-bar
 .primary-navigation .button.close, .has-marketing-bar
 .woo-navigation .button.close {
-	top: calc(-1 * var(--marketing-bar--height));
+	top: calc(-1 * var(--wpcom-marketing-bar--height));
 }
 
 .admin-bar .menu-button-container .button.close, .admin-bar
@@ -88,7 +88,7 @@
 .admin-bar.has-marketing-bar .menu-button-container .button.close, .admin-bar.has-marketing-bar
 .primary-navigation .button.close, .admin-bar.has-marketing-bar
 .woo-navigation .button.close {
-	top: calc(-1 * (var(--wpadmin-bar--height) + var(--marketing-bar--height)));
+	top: calc(-1 * (var(--wpadmin-bar--height) + var(--wpcom-marketing-bar--height)));
 }
 
 .menu-button-container .button#woo-open-menu,
@@ -223,7 +223,7 @@
 .woo-navigation,
 .has-marketing-bar
 .woo-navigation > div {
-	top: var(--marketing-bar--height);
+	top: var(--wpcom-marketing-bar--height);
 }
 
 .admin-bar .primary-navigation,
@@ -239,7 +239,7 @@
 .woo-navigation,
 .admin-bar.has-marketing-bar
 .woo-navigation > div {
-	top: calc(var(--wpadmin-bar--height) + var(--marketing-bar--height));
+	top: calc(var(--wpadmin-bar--height) + var(--wpcom-marketing-bar--height));
 }
 
 @media only screen and (min-width: 830px) {

+ 6 - 6
spearhead/navigation.css

@@ -41,12 +41,12 @@
 
 .has-marketing-bar.lock-scrolling .menu-button-container > .button,
 .has-marketing-bar:not(.primary-navigation-open) .menu-button-container {
-	top: var(--marketing-bar--height);
+	top: var(--wpcom-marketing-bar--height);
 }
 
 .admin-bar.has-marketing-bar.lock-scrolling .menu-button-container > .button,
 .admin-bar.has-marketing-bar:not(.primary-navigation-open) .menu-button-container {
-	top: calc(var(--wpadmin-bar--height) + var(--marketing-bar--height));
+	top: calc(var(--wpadmin-bar--height) + var(--wpcom-marketing-bar--height));
 }
 
 .menu-button-container .button,
@@ -76,7 +76,7 @@
 .has-marketing-bar .menu-button-container .button.close, .has-marketing-bar
 .primary-navigation .button.close, .has-marketing-bar
 .woo-navigation .button.close {
-	top: calc(-1 * var(--marketing-bar--height));
+	top: calc(-1 * var(--wpcom-marketing-bar--height));
 }
 
 .admin-bar .menu-button-container .button.close, .admin-bar
@@ -88,7 +88,7 @@
 .admin-bar.has-marketing-bar .menu-button-container .button.close, .admin-bar.has-marketing-bar
 .primary-navigation .button.close, .admin-bar.has-marketing-bar
 .woo-navigation .button.close {
-	top: calc(-1 * (var(--wpadmin-bar--height) + var(--marketing-bar--height)));
+	top: calc(-1 * (var(--wpadmin-bar--height) + var(--wpcom-marketing-bar--height)));
 }
 
 .menu-button-container .button#woo-open-menu,
@@ -223,7 +223,7 @@
 .woo-navigation,
 .has-marketing-bar
 .woo-navigation > div {
-	top: var(--marketing-bar--height);
+	top: var(--wpcom-marketing-bar--height);
 }
 
 .admin-bar .primary-navigation,
@@ -239,7 +239,7 @@
 .woo-navigation,
 .admin-bar.has-marketing-bar
 .woo-navigation > div {
-	top: calc(var(--wpadmin-bar--height) + var(--marketing-bar--height));
+	top: calc(var(--wpadmin-bar--height) + var(--wpcom-marketing-bar--height));
 }
 
 @media only screen and (min-width: 830px) {

Plik diff jest za duży
+ 0 - 0
spearhead/navigation.css.map


Plik diff jest za duży
+ 0 - 810
spearhead/package-lock.json


+ 13 - 0
spearhead/package.json

@@ -17,6 +17,19 @@
     "npm-run-all": "^4.1.5",
     "rtlcss": "^2.4.0"
   },
+  "rtlcssConfig": {
+    "options": {
+      "autoRename": false,
+      "autoRenameStrict": false,
+      "blacklist": {},
+      "clean": true,
+      "greedy": false,
+      "processUrls": false,
+      "stringMap": []
+    },
+    "plugins": [],
+    "map": false
+  },
   "scripts": {
     "start": "npm run watch",
     "build:style": "node-sass assets/sass/style.scss style.css --output-style expanded --indent-type tab --indent-width 1  --source-map true",

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików