Make WordPress Core

Ticket #26689: 26689-2.patch

File 26689-2.patch, 2.2 KB (added by iammattthomas, 11 years ago)

Add a border to pointers for better contrast with the background.

  • src/wp-includes/css/wp-pointer.css

     
    33        position: relative;
    44        font-size: 13px;
    55        background: #fff;
    6         border: none;
     6        border: 1px solid #dfdfdf;
    77        -webkit-box-shadow: 0 3px 6px rgba(0,0,0,0.075);
    88        box-shadow:         0 3px 6px rgba(0,0,0,0.075);
    99}
    1010
    1111.wp-pointer-content h3 {
    1212        position: relative;
    13         margin: 0 0 5px;
     13        margin: -1px -1px 5px;
    1414        padding: 15px 18px 14px 60px;
     15        border: 1px solid #3592b6;
     16        border-bottom: none;
    1517        line-height: 1.4em;
    1618        font-size: 14px;
    1719        color: #fff;
     
    126128.wp-pointer-top .wp-pointer-arrow,
    127129.wp-pointer-undefined .wp-pointer-arrow {
    128130        top: 0;
    129         border-width: 0 17px 15px 17px;
     131        border-width: 0 13px 13px 13px;
     132        border-bottom-color: #3592b6;
     133}
     134
     135.wp-pointer-top .wp-pointer-arrow:before,
     136.wp-pointer-undefined .wp-pointer-arrow:before {
     137        margin-left: -13px;
     138        margin-top: -11px;
     139        border: 13px solid transparent;
    130140        border-bottom-color: #2ea2cc;
     141        display: block;
     142        content: ' ';
    131143}
    132144
    133145.wp-pointer-bottom .wp-pointer-arrow {
    134146        bottom: 0;
    135         border-width: 15px 17px 0 17px;
     147        border-width: 13px 13px 0 13px;
     148        border-top-color: #ccc;
     149}
     150
     151.wp-pointer-bottom .wp-pointer-arrow:before {
     152        margin-left: -13px;
     153        margin-top: -14px;
     154        border: 13px solid transparent;
    136155        border-top-color: #fff;
     156        display: block;
     157        content: ' ';
    137158}
    138159
    139160/* @noflip */
    140161.wp-pointer-left .wp-pointer-arrow {
    141162        left: 0;
    142         border-width: 17px 15px 17px 0;
     163        border-width: 13px 13px 13px 0;
     164        border-right-color: #ccc;
     165}
     166
     167.wp-pointer-left .wp-pointer-arrow:before {
     168        margin-left: -12px;
     169        margin-top: -13px;
     170        border: 13px solid transparent;
    143171        border-right-color: #fff;
     172        display: block;
     173        content: ' ';
    144174}
    145175
    146176/* @noflip */
    147177.wp-pointer-right .wp-pointer-arrow {
    148178        right:0;
    149         border-width: 17px 0 17px 15px;
     179        border-width: 13px 0 13px 13px;
     180        border-left-color: #ccc;
     181}
     182
     183.wp-pointer-right .wp-pointer-arrow:before {
     184        margin-left: -14px;
     185        margin-top: -13px;
     186        border: 13px solid transparent;
    150187        border-left-color: #fff;
     188        display: block;
     189        content: ' ';
    151190}
    152191
    153192/* Disable pointers at responsive sizes */