⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 288495 in webkit


Ignore:
Timestamp:
Jan 24, 2022, 5:54:37 PM (5 years ago)
Author:
Russell Epstein
Message:

Cherry-pick r287870. rdar://problem/86543279

Web Inspector: Increase padding around icons in Alignment editor
​https://bugs.webkit.org/show_bug.cgi?id=234036
<rdar://problem/86543279>

Reviewed by Devin Rousso.

Increase margin and padding around the icons, making the icons more visually appealing
and easier to distinguish and from each other.

  • UserInterface/Images/AlignContentStretch.svg: The gap between rectangles was only 0.5px. Increase it to 2px.
  • UserInterface/Views/AlignmentEditor.css: (.alignment-editor .glyph): (.alignment-editor .glyph:not(:first-child)): (.alignment-editor .glyph.selected): (.alignment-editor .glyph.selected:active): (.alignment-editor .glyph:not(:last-child)): Deleted. (.alignment-editor .glyph.selected + .glyph): Deleted.

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@287870 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-613-branch/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-613-branch/Source/WebInspectorUI/ChangeLog

    r287787 r288495  
     12022-01-24  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r287870. rdar://problem/86543279
     4
     5    Web Inspector: Increase padding around icons in Alignment editor
     6    https://bugs.webkit.org/show_bug.cgi?id=234036
     7    <rdar://problem/86543279>
     8   
     9    Reviewed by Devin Rousso.
     10   
     11    Increase margin and padding around the icons, making the icons more visually appealing
     12    and easier to distinguish and from each other.
     13   
     14    * UserInterface/Images/AlignContentStretch.svg:
     15    The gap between rectangles was only 0.5px. Increase it to 2px.
     16   
     17    * UserInterface/Views/AlignmentEditor.css:
     18    (.alignment-editor .glyph):
     19    (.alignment-editor .glyph:not(:first-child)):
     20    (.alignment-editor .glyph.selected):
     21    (.alignment-editor .glyph.selected:active):
     22    (.alignment-editor .glyph:not(:last-child)): Deleted.
     23    (.alignment-editor .glyph.selected + .glyph): Deleted.
     24   
     25   
     26    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287870 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     27
     28    2022-01-10  Nikita Vasilyev  <nvasilyev@apple.com>
     29
     30            Web Inspector: Increase padding around icons in Alignment editor
     31            https://bugs.webkit.org/show_bug.cgi?id=234036
     32            <rdar://problem/86543279>
     33
     34            Reviewed by Devin Rousso.
     35
     36            Increase margin and padding around the icons, making the icons more visually appealing
     37            and easier to distinguish and from each other.
     38
     39            * UserInterface/Images/AlignContentStretch.svg:
     40            The gap between rectangles was only 0.5px. Increase it to 2px.
     41
     42            * UserInterface/Views/AlignmentEditor.css:
     43            (.alignment-editor .glyph):
     44            (.alignment-editor .glyph:not(:first-child)):
     45            (.alignment-editor .glyph.selected):
     46            (.alignment-editor .glyph.selected:active):
     47            (.alignment-editor .glyph:not(:last-child)): Deleted.
     48            (.alignment-editor .glyph.selected + .glyph): Deleted.
     49
    1502022-01-07  Alexey Shvayka  <ashvayka@apple.com>
    251
  • branches/safari-613-branch/Source/WebInspectorUI/UserInterface/Images/AlignContentStretch.svg

    r286875 r288495  
    11<!-- Copyright © 2021 Apple Inc. All rights reserved. -->
    22<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" id="root">
    3     <rect x="2" y="1" width="12" height="6.5" fill="currentColor"/>
    4     <rect x="2" y="8" width="12" height="6.5" fill="currentColor"/>
     3    <rect x="2" y="1" width="12" height="6" fill="currentColor"/>
     4    <rect x="2" y="9" width="12" height="6" fill="currentColor"/>
    55</svg>
  • branches/safari-613-branch/Source/WebInspectorUI/UserInterface/Views/AlignmentEditor.css

    r286885 r288495  
    2828    width: 16px;
    2929    height: 16px;
     30    padding: 2px;
    3031    background-color: var(--background-color-content);
    3132    box-sizing: content-box;
    … …  
    3435}
    3536
    36 .alignment-editor .glyph:not(:last-child) {
    37     border-inline-end-width: 0;
     37.alignment-editor .glyph:not(:first-child) {
     38    margin-inline-start: 2px;
    3839}
    3940
    … …  
    4344
    4445.alignment-editor .glyph.selected {
    45     color: var(--glyph-color-active);
     46    background-color: var(--glyph-color-active);
    4647    border-color: var(--glyph-color-active);
    47 }
    48 
    49 .alignment-editor .glyph.selected + .glyph {
    50     border-inline-start-color: var(--glyph-color-active);
     48    color: var(--selected-foreground-color);
    5149}
    5250
    5351.alignment-editor .glyph.selected:active {
    54     color: var(--glyph-color-active-pressed);
    55     outline-color: var(--glyph-color-active-pressed);
     52    background-color: var(--glyph-color-active-pressed);
     53    border-color: var(--glyph-color-active-pressed);
    5654}
    5755
Note: See TracChangeset for help on using the changeset viewer.