Changeset 214906 in webkit


Ignore:
Timestamp:
Apr 4, 2017 3:23:46 PM (7 years ago)
Author:
BJ Burg
Message:

Web Inspector: RTL: layout issues in Type Profiler popovers
https://bugs.webkit.org/show_bug.cgi?id=170467

Reviewed by Timothy Hatcher.

Flip some margins and padding. Remove the -1px leading margin for
the prototype disclosure button, as it is unnecessary and looks
(more) wrong when in RTL.

  • UserInterface/Views/TypeTreeElement.css:

(.item.type-tree-element > .disclosure-button):
(.item.type-tree-element.prototype):
(body[dir=ltr] .item.type-tree-element.prototype):
(body[dir=rtl] .item.type-tree-element.prototype):

  • UserInterface/Views/TypeTreeView.css:

(.tree-outline.type):
(body[dir=ltr] .tree-outline.type):
(body[dir=rtl] .tree-outline.type):
(.tree-outline.type li .empty-message):
(body[dir=ltr] .tree-outline.type li .empty-message):
(body[dir=rtl] .tree-outline.type li .empty-message):

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r214903 r214906  
     12017-04-04  Brian Burg  <bburg@apple.com>
     2
     3        Web Inspector: RTL: layout issues in Type Profiler popovers
     4        https://bugs.webkit.org/show_bug.cgi?id=170467
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        Flip some margins and padding. Remove the -1px leading margin for
     9        the prototype disclosure button, as it is unnecessary and looks
     10        (more) wrong when in RTL.
     11
     12        * UserInterface/Views/TypeTreeElement.css:
     13        (.item.type-tree-element > .disclosure-button):
     14        (.item.type-tree-element.prototype):
     15        (body[dir=ltr] .item.type-tree-element.prototype):
     16        (body[dir=rtl] .item.type-tree-element.prototype):
     17        * UserInterface/Views/TypeTreeView.css:
     18        (.tree-outline.type):
     19        (body[dir=ltr] .tree-outline.type):
     20        (body[dir=rtl] .tree-outline.type):
     21        (.tree-outline.type li .empty-message):
     22        (body[dir=ltr] .tree-outline.type li .empty-message):
     23        (body[dir=rtl] .tree-outline.type li .empty-message):
     24
    1252017-04-04  Joseph Pecoraro  <pecoraro@apple.com>
    226
  • trunk/Source/WebInspectorUI/UserInterface/Views/TypeTreeElement.css

    r198748 r214906  
    11/*
    2  * Copyright (C) 2015 Apple Inc. All rights reserved.
     2 * Copyright (C) 2015-2017 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    4747    width: 15px;
    4848
    49     margin-left: -1px;
    5049    border: 0;
    5150    background: none;
     
    7675    border-radius: 3px;
    7776
    78     padding: 0 10px 1px 0;
    79     margin: 3px 0 2px -1px;
     77    padding-bottom: 1px;
     78    margin-top: 3px;
     79    margin-bottom: 2px;
     80
     81    --type-tree-element-prototype-padding-end: 10px;
     82    --type-tree-element-prototype-margin-start: -1px;
     83}
     84
     85body[dir=ltr] .item.type-tree-element.prototype {
     86    padding-right: var(--type-tree-element-prototype-padding-end);
     87    margin-left: var(--type-tree-element-prototype-margin-start);
     88}
     89
     90body[dir=rtl] .item.type-tree-element.prototype {
     91    padding-left: var(--type-tree-element-prototype-padding-end);
     92    margin-right: var(--type-tree-element-prototype-margin-start);
    8093}
    8194
  • trunk/Source/WebInspectorUI/UserInterface/Views/TypeTreeView.css

    r198748 r214906  
    11/*
    2  * Copyright (C) 2015 Apple Inc. All rights reserved.
     2 * Copyright (C) 2015-2017 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    3535.tree-outline.type {
    3636    margin: 0;
    37     padding: 0 6px 2px;
     37    padding-bottom: 2px;
     38    min-height: 18px;
     39
    3840    list-style: none;
    39     min-height: 18px;
    4041    outline: none;
     42
     43    --type-tree-outline-padding-end: 6px;
     44}
     45
     46body[dir=ltr] .tree-outline.type {
     47    padding-right: var(--type-tree-outline-padding-end);
     48}
     49
     50body[dir=rtl] .tree-outline.type {
     51    padding-left: var(--type-tree-outline-padding-end);
    4152}
    4253
     
    6374.tree-outline.type li .empty-message {
    6475    color: hsl(0, 0%, 60%);
    65     margin-left: 13px;
     76
     77    --type-tree-outline-empty-message-margin-start: 13px;
    6678}
     79
     80body[dir=ltr] .tree-outline.type li .empty-message {
     81    margin-left: var(--type-tree-outline-empty-message-margin-start);
     82}
     83
     84body[dir=rtl] .tree-outline.type li .empty-message {
     85    margin-right: var(--type-tree-outline-empty-message-margin-start);
     86}
Note: See TracChangeset for help on using the changeset viewer.