Changeset 193913 in webkit


Ignore:
Timestamp:
Dec 10, 2015 10:14:16 AM (8 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: [Meta] Unify z-index values in Inspector's CSS
https://bugs.webkit.org/show_bug.cgi?id=151978

Introduce CSS variables for z-index due to recurring issues with incorrectly overlapping elements.

From now on, all z-index values >= 64 must be defined as variables.
Values below 64 must not.

Reviewed by Timothy Hatcher.

  • UserInterface/Views/Variables.css:

(:root):
Introduce z-index variables.

  • UserInterface/Debug/UncaughtExceptionReporter.css:

(.sheet-container):

  • UserInterface/Views/BoxModelDetailsSectionRow.css:

(.details-section .row.box-model .editing):

  • UserInterface/Views/CompletionSuggestionsView.css:

(.completion-suggestions):

  • UserInterface/Views/DashboardContainerView.css:

(.dashboard-container .advance-arrow):

  • UserInterface/Views/DataGrid.css:

(.data-grid .resizer):

  • UserInterface/Views/DetailsSection.css:

(.details-section > .header):
(.details-section .details-section > .header):

  • UserInterface/Views/FindBanner.css:

(.find-banner):
(.find-banner > button.segmented:active):

  • UserInterface/Views/Main.css:

(#docked-resizer):
(.message-text-view):
(.bouncy-highlight):

  • UserInterface/Views/Popover.css:

(.popover):

  • UserInterface/Views/Resizer.css:

(.resizer):
(.glass-pane-for-drag):

  • UserInterface/Views/TimelineOverview.css:

(.timeline-overview > .scroll-container):

  • UserInterface/Views/VisualStyleSelectorSection.css:

(.details-section.visual-style-selector-section > .content > .selectors > .selector-list > .section-divider):

Location:
trunk/Source/WebInspectorUI
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r193872 r193913  
     12015-12-10  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        Web Inspector: [Meta] Unify z-index values in Inspector's CSS
     4        https://bugs.webkit.org/show_bug.cgi?id=151978
     5
     6        Introduce CSS variables for z-index due to recurring issues with incorrectly overlapping elements.
     7
     8        From now on, all z-index values >= 64 must be defined as variables.
     9        Values below 64 must not.
     10
     11        Reviewed by Timothy Hatcher.
     12
     13        * UserInterface/Views/Variables.css:
     14        (:root):
     15        Introduce z-index variables.
     16
     17        * UserInterface/Debug/UncaughtExceptionReporter.css:
     18        (.sheet-container):
     19        * UserInterface/Views/BoxModelDetailsSectionRow.css:
     20        (.details-section .row.box-model .editing):
     21        * UserInterface/Views/CompletionSuggestionsView.css:
     22        (.completion-suggestions):
     23        * UserInterface/Views/DashboardContainerView.css:
     24        (.dashboard-container .advance-arrow):
     25        * UserInterface/Views/DataGrid.css:
     26        (.data-grid .resizer):
     27        * UserInterface/Views/DetailsSection.css:
     28        (.details-section > .header):
     29        (.details-section .details-section > .header):
     30        * UserInterface/Views/FindBanner.css:
     31        (.find-banner):
     32        (.find-banner > button.segmented:active):
     33        * UserInterface/Views/Main.css:
     34        (#docked-resizer):
     35        (.message-text-view):
     36        (.bouncy-highlight):
     37        * UserInterface/Views/Popover.css:
     38        (.popover):
     39        * UserInterface/Views/Resizer.css:
     40        (.resizer):
     41        (.glass-pane-for-drag):
     42        * UserInterface/Views/TimelineOverview.css:
     43        (.timeline-overview > .scroll-container):
     44        * UserInterface/Views/VisualStyleSelectorSection.css:
     45        (.details-section.visual-style-selector-section > .content > .selectors > .selector-list > .section-divider):
     46
    1472015-12-09  Matt Baker  <mattbaker@apple.com>
    248
  • trunk/Source/WebInspectorUI/UserInterface/Debug/UncaughtExceptionReporter.css

    r193646 r193913  
    3030    top: 0;
    3131    bottom: 0;
    32     z-index: 10000;
     32    z-index: var(--z-index-uncaught-exception-sheet);
    3333    background-color: hsl(0, 0%, 96%);
    3434}
  • trunk/Source/WebInspectorUI/UserInterface/Views/BoxModelDetailsSectionRow.css

    r188029 r193913  
    9393.details-section .row.box-model .editing {
    9494    position: relative;
    95     z-index: 100;
     95    z-index: 2;
    9696}
    9797
  • trunk/Source/WebInspectorUI/UserInterface/Views/CompletionSuggestionsView.css

    r187105 r193913  
    3131    border-radius: 5px;
    3232
    33     z-index: 100;
     33    z-index: var(--z-index-tooltip);
    3434
    3535    margin-top: -1px;
  • trunk/Source/WebInspectorUI/UserInterface/Views/DashboardContainerView.css

    r188837 r193913  
    131131    opacity: 0.6;
    132132
    133     z-index: 1000;
     133    z-index: 2;
    134134    background-repeat: no-repeat;
    135135    background-size: 8px;
  • trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.css

    r191488 r193913  
    302302
    303303.data-grid .resizer {
    304     z-index: 500;
    305 }
     304    z-index: var(--z-index-resizer);
     305}
  • trunk/Source/WebInspectorUI/UserInterface/Views/DetailsSection.css

    r192594 r193913  
    6161
    6262    /* Ensure the headers are displayed above scrollbars. */
    63     z-index: 200;
     63    z-index: var(--z-index-header);
    6464}
    6565
     
    8181
    8282    /* Ensure these headers are displayed below the parent header but above scrollbars. */
    83     z-index: 100;
     83    z-index: var(--z-index-header);
    8484}
    8585
  • trunk/Source/WebInspectorUI/UserInterface/Views/FindBanner.css

    r191488 r193913  
    4242    transition-timing-function: ease-in;
    4343
    44     z-index: 500;
     44    z-index: var(--z-index-header);
    4545}
    4646
     
    181181
    182182.find-banner > button.segmented:active {
    183     z-index: 100;
     183    z-index: var(--z-index-header);
    184184    position: relative;
    185185}
  • trunk/Source/WebInspectorUI/UserInterface/Views/Main.css

    r191714 r193913  
    7979    display: none;
    8080
    81     z-index: 100;
     81    z-index: var(--z-index-resizer);
    8282}
    8383
     
    202202.message-text-view {
    203203    display: flex;
    204     z-index: 1000;
     204    z-index: var(--z-index-popover);
    205205
    206206    position: absolute;
     
    323323.bouncy-highlight {
    324324    position: absolute;
    325     z-index: 100;
     325    z-index: var(--z-index-highlight);
    326326
    327327    box-shadow: inset hsl(50, 91%, 76%) 0 -1px 0, hsl(52, 56%, 60%) 0 1px 1px, hsla(0, 0%, 0%, 0.33) 0 1px 2px 1px;
  • trunk/Source/WebInspectorUI/UserInterface/Views/Popover.css

    r173715 r193913  
    3030    box-sizing: border-box;
    3131    pointer-events: none;
    32     z-index: 100;
     32    z-index: var(--z-index-popover);
    3333}
    3434
  • trunk/Source/WebInspectorUI/UserInterface/Views/Resizer.css

    r181903 r193913  
    2626.resizer {
    2727    position: absolute;
    28     z-index: 1000;
     28    z-index: var(--z-index-resizer);
    2929}
    3030
     
    5353
    5454    opacity: 0;
    55     z-index: 1;
     55    z-index: var(--z-index-glass-pane-for-drag);
    5656}
  • trunk/Source/WebInspectorUI/UserInterface/Views/TimelineOverview.css

    r191703 r193913  
    3535
    3636 /* Allows the horizontal scroll bar to be interacted with. */
    37     z-index: 1000;
     37    z-index: calc(var(--z-index-resizer) + 1);
    3838}
    3939
  • trunk/Source/WebInspectorUI/UserInterface/Views/Variables.css

    r191399 r193913  
    2525
    2626:root {
     27    --z-index-highlight: 64;
     28    --z-index-header: 128;
     29    --z-index-resizer: 256;
     30    --z-index-tooltip: 512;
     31    --z-index-popover: 1024;
     32    --z-index-glass-pane-for-drag: 2048;
     33    --z-index-uncaught-exception-sheet: 4096;
     34
    2735    --console-secondary-text-color: hsla(0, 0%, 0%, 0.33);
    2836
  • trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleSelectorSection.css

    r191693 r193913  
    109109    border-style: solid;
    110110    border-width: 1px 0;
    111     z-index: 100;
     111    z-index: var(--z-index-header);
    112112}
    113113
Note: See TracChangeset for help on using the changeset viewer.