Title: [212339] trunk/Source/WebInspectorUI
- Revision
- 212339
- Author
- [email protected]
- Date
- 2017-02-14 17:50:27 -0800 (Tue, 14 Feb 2017)
Log Message
Web Inspector: RTL: adjust padding of dashboard icons
https://bugs.webkit.org/show_bug.cgi?id=168340
Reviewed by Matt Baker.
Extract the direction-dependent padding into a "local" variable.
Use two rules to apply it to whichever is the leading side.
While we tend to use leading/trailing in Apple layout technologies,
I think the CSS logical properties specification sticks to using
-start and -end, so let's use that nomenclature where we can.
* UserInterface/Views/DefaultDashboardView.css:
(.toolbar .dashboard.default > .item > div):
(body[dir=ltr] .toolbar .dashboard.default > .item > div):
(body[dir=rtl] .toolbar .dashboard.default > .item > div):
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (212338 => 212339)
--- trunk/Source/WebInspectorUI/ChangeLog 2017-02-15 01:23:39 UTC (rev 212338)
+++ trunk/Source/WebInspectorUI/ChangeLog 2017-02-15 01:50:27 UTC (rev 212339)
@@ -1,3 +1,22 @@
+2017-02-14 Brian Burg <[email protected]>
+
+ Web Inspector: RTL: adjust padding of dashboard icons
+ https://bugs.webkit.org/show_bug.cgi?id=168340
+
+ Reviewed by Matt Baker.
+
+ Extract the direction-dependent padding into a "local" variable.
+ Use two rules to apply it to whichever is the leading side.
+
+ While we tend to use leading/trailing in Apple layout technologies,
+ I think the CSS logical properties specification sticks to using
+ -start and -end, so let's use that nomenclature where we can.
+
+ * UserInterface/Views/DefaultDashboardView.css:
+ (.toolbar .dashboard.default > .item > div):
+ (body[dir=ltr] .toolbar .dashboard.default > .item > div):
+ (body[dir=rtl] .toolbar .dashboard.default > .item > div):
+
2017-02-14 Eric Carlson <[email protected]>
[MediaStream] add navigator.getUserMedia for compatibility with legacy content
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.css (212338 => 212339)
--- trunk/Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.css 2017-02-15 01:23:39 UTC (rev 212338)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.css 2017-02-15 01:50:27 UTC (rev 212339)
@@ -93,9 +93,17 @@
flex: 1;
color: hsla(0, 0%, 0%, 0.2);
- padding-left: 2px;
+ --dashboard-item-padding-start: 2px;
}
+body[dir=ltr] .toolbar .dashboard.default > .item > div {
+ padding-left: var(--dashboard-item-padding-start);
+}
+
+body[dir=rtl] .toolbar .dashboard.default > .item > div {
+ padding-right: var(--dashboard-item-padding-start);
+}
+
.toolbar .dashboard.default > .item.enabled > div {
color: hsla(0, 0%, 0%, 0.7);
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes