Changeset 201454 in webkit


Ignore:
Timestamp:
May 27, 2016 11:33:58 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Add indicators to show nesting levels inside DOM Tree
https://bugs.webkit.org/show_bug.cgi?id=157468
<rdar://problem/26162640>

Patch by Devin Rousso <Devin Rousso> on 2016-05-27
Reviewed by Timothy Hatcher.

Add CSS rules to give all expanded node children lists a small line on the
left border indicating that all items under the line are descendants.

  • UserInterface/Views/DOMTreeOutline.css:

(.tree-outline.dom li .selection):
(.tree-outline.dom li > span):
(.tree-outline.dom ol):
(.tree-outline.dom .tree-outline.dom li:matches(.hovered, .selected) + ol.children.expanded):
(.tree-outline.dom li.selected + ol.children.expanded):
(.tree-outline.dom li.parent::before):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r201438 r201454  
     12016-05-27  Devin Rousso  <dcrousso+webkit@gmail.com>
     2
     3        Web Inspector: Add indicators to show nesting levels inside DOM Tree
     4        https://bugs.webkit.org/show_bug.cgi?id=157468
     5        <rdar://problem/26162640>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        Add CSS rules to give all expanded node children lists a small line on the
     10        left border indicating that all items under the line are descendants.
     11
     12        * UserInterface/Views/DOMTreeOutline.css:
     13        (.tree-outline.dom li .selection):
     14        (.tree-outline.dom li > span):
     15        (.tree-outline.dom ol):
     16        (.tree-outline.dom .tree-outline.dom li:matches(.hovered, .selected) + ol.children.expanded):
     17        (.tree-outline.dom li.selected + ol.children.expanded):
     18        (.tree-outline.dom li.parent::before):
     19
    1202016-05-26  Matt Baker  <mattbaker@apple.com>
    221
  • trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.css

    r197029 r201454  
    4949    right: 0;
    5050    height: 15px;
    51     z-index: -1;
     51    z-index: 10;
    5252}
    5353
     
    6363.tree-outline.dom:focus li.selected .selection {
    6464    background-color: hsl(209, 100%, 49%);
     65}
     66
     67.tree-outline.dom li > span {
     68    position: relative;
     69    z-index: 20;
    6570}
    6671
     
    7883.tree-outline.dom ol {
    7984    list-style-type: none;
    80     padding-left: 1.2em;
     85    padding-left: 14px;
    8186    margin: 0;
    8287}
     
    8893.tree-outline.dom ol.children.expanded {
    8994    display: block;
     95}
     96
     97.tree-outline.dom li:matches(.hovered, .selected) + ol.children.expanded {
     98    margin-left: 4px;
     99    padding-left: 1px;
     100    border-left: 9px solid hsla(0, 0%, 83%, 0.5);
     101}
     102
     103.tree-outline.dom li.selected + ol.children.expanded {
     104    border-left-color: hsl(0, 0%, 83%);
    90105}
    91106
     
    132147
    133148.tree-outline.dom li.parent::before {
     149    position: relative;
     150    z-index: 20;
     151
    134152    float: left;
    135153
Note: See TracChangeset for help on using the changeset viewer.