Skip to content

Commit 340f605

Browse files
committed
Twenty Fifteen: ensure menu icon is properly centered for RTL views on small screens.
Props iamtakashi, fixes #30739. git-svn-id: https://develop.svn.wordpress.org/trunk@30955 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b824d6f commit 340f605

2 files changed

Lines changed: 8 additions & 17 deletions

File tree

src/wp-content/themes/twentyfifteen/rtl.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,6 @@ td {
126126
left: 0;
127127
}
128128

129-
.secondary-toggle:before {
130-
right: 0;
131-
left: auto;
132-
}
133-
134-
.secondary-toggle.toggled-on:before {
135-
right: 0;
136-
left: auto;
137-
}
138-
139129
.post-navigation .has-post-thumbnail a:before {
140130
right: 0;
141131
left: auto;

src/wp-content/themes/twentyfifteen/style.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -902,10 +902,8 @@ a:focus {
902902
.secondary-toggle:before {
903903
color: #333;
904904
content: "\f419";
905-
line-height: 42px;
906-
position: relative;
907-
top: -1px;
908-
left: 0;
905+
line-height: 40px;
906+
width: 40px;
909907
}
910908

911909
.secondary-toggle:hover,
@@ -919,7 +917,8 @@ a:focus {
919917
.secondary-toggle.toggled-on:before {
920918
content: "\f405";
921919
font-size: 32px;
922-
top: 0;
920+
position: relative;
921+
top: 1px;
923922
left: -1px;
924923
}
925924

@@ -2883,7 +2882,8 @@ p > video {
28832882
}
28842883

28852884
.secondary-toggle:before {
2886-
line-height: 56px;
2885+
line-height: 54px;
2886+
width: 54px;
28872887
}
28882888

28892889
.post-password-form label,
@@ -3475,7 +3475,8 @@ p > video {
34753475
}
34763476

34773477
.secondary-toggle:before {
3478-
line-height: 64px;
3478+
line-height: 62px;
3479+
width: 62px;
34793480
}
34803481

34813482
.post-password-form label,

0 commit comments

Comments
 (0)