Make WordPress Core

Changeset 38963


Ignore:
Timestamp:
10/26/2016 05:24:06 PM (9 years ago)
Author:
davidakennedy
Message:

Twenty Seventeen: Make table styles more consistent

  • Removes the left padding on the first cell in a row, and the right padding on the last cell in each row - the padding is still there between cells, so the contents don't meet.
  • Does the opposite for RTL, and fixes some spacing issues.
  • Updates the editor styles to match.

Props laurelfulford, snacking.

Fixes #38447.

Location:
trunk/src/wp-content/themes/twentyseventeen
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/assets/css/editor-style.css

    r38833 r38963  
    265265
    266266table {
     267    border-collapse: collapse;
    267268    margin: 0 0 1.5em;
    268269    width: 100%;
     270}
     271
     272thead th {
     273    border-bottom: 2px solid #bbb;
     274    padding-bottom: 0.5em;
     275}
     276
     277th {
     278    padding: 0.4em;
     279    text-align: left;
     280}
     281
     282tr {
     283    border-bottom: 1px solid #eee;
     284}
     285
     286td {
     287    padding: 0.4em;
     288}
     289
     290th:first-child,
     291td:first-child {
     292    padding-left: 0;
     293}
     294
     295th:last-child,
     296td:last-child {
     297    padding-right: 0;
    269298}
    270299
  • trunk/src/wp-content/themes/twentyseventeen/rtl.css

    r38962 r38963  
    4747    margin-left: 0;
    4848    margin-right: 1.5em;
     49}
     50
     51th:first-child,
     52td:first-child {
     53    padding-left: 0.4em;
     54    padding-right: 0;
     55}
     56
     57th:last-child,
     58td:last-child {
     59    padding-left: 0;
     60    padding-right: 0.4em;
    4961}
    5062
     
    497509}
    498510
    499 @media screen and ( min-width: 67em ) {
     511@media screen and (min-width: 67em) {
    500512
    501513    /* Sticky posts */
     
    507519}
    508520
    509 @media screen and ( min-width: 79em ) {
     521@media screen and (min-width: 79em) {
    510522
    511523    .has-sidebar #primary .entry-content blockquote.alignright,
  • trunk/src/wp-content/themes/twentyseventeen/style.css

    r38962 r38963  
    11151115
    11161116th {
    1117     padding: 0.4em 0;
     1117    padding: 0.4em;
    11181118    text-align: left;
    11191119}
     
    11251125td {
    11261126    padding: 0.4em;
     1127}
     1128
     1129th:first-child,
     1130td:first-child {
     1131    padding-left: 0;
     1132}
     1133
     1134th:last-child,
     1135td:last-child {
     1136    padding-right: 0;
    11271137}
    11281138
Note: See TracChangeset for help on using the changeset viewer.