Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundled themes: Remove px unit from zero values, use CSS shorthand, remove empty space at the ends of lines #6541

Open
wants to merge 5 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/wp-content/themes/twentyeleven/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ p.has-drop-cap:not(:focus)::first-letter {
border: none;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
box-shadow: 0 1px 2px rgba(0,0,0,0.3);
color: #eee;
cursor: pointer;
font-size: 15px;
Expand Down Expand Up @@ -240,9 +240,9 @@ p.has-drop-cap:not(:focus)::first-letter {
/* Buttons */

.wp-block-button .wp-block-button__link {
-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
box-shadow: 0 1px 2px rgba(0,0,0,0.3);
cursor: pointer;
font-size: 15px;
margin: 20px 0;
Expand Down
18 changes: 9 additions & 9 deletions src/wp-content/themes/twentyeleven/colors/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -409,15 +409,15 @@ section.recent-posts .other-recent-posts .comments-link a:hover {
.widget_search #searchsubmit {
background: #222;
border-color: #333;
-webkit-box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09);
-moz-box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09);
box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09);
-webkit-box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.09);
-moz-box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.09);
box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.09);
color: #777;
}
.widget_search #searchsubmit:active {
-webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1);
-moz-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1);
box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1);
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
color: #40220c;
}

Expand Down Expand Up @@ -545,9 +545,9 @@ li.bypostauthor a.comment-reply-link:active {
}
#respond input#submit {
background: #ddd;
-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
box-shadow: 0 1px 2px rgba(0,0,0,0.3);
color: #111;
text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}
Expand Down
12 changes: 6 additions & 6 deletions src/wp-content/themes/twentyeleven/editor-blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ p.has-drop-cap:not(:focus)::first-letter {
border: none;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
box-shadow: 0 1px 2px rgba(0,0,0,0.3);
color: #eee;
cursor: pointer;
font-size: 15px;
Expand Down Expand Up @@ -399,9 +399,9 @@ p.has-drop-cap:not(:focus)::first-letter {
/* Buttons */

.wp-block-button .wp-block-button__link {
-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
box-shadow: 0 1px 2px rgba(0,0,0,0.3);
cursor: pointer;
font-size: 15px;
line-height: 24px;
Expand Down
6 changes: 3 additions & 3 deletions src/wp-content/themes/twentyeleven/rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ body {

/* Simplify the pullquotes and pull styles */
.one-column.singular .entry-meta .edit-link a {
right: 0px;
right: 0;
left: auto;
}
/* Make sure we have room for our comment avatars */
Expand Down Expand Up @@ -188,7 +188,7 @@ a.assistive-text:focus {
font-family: Arial, sans-serif;
}
.wp-caption .wp-caption-text {
padding: 10px 40px 5px 0px;
padding: 10px 40px 5px 0;
}
.wp-caption .wp-caption-text:before {
margin-right: 0;
Expand Down Expand Up @@ -515,7 +515,7 @@ section.recent-posts .other-recent-posts .comments-link > span {
}
.singular .entry-meta .edit-link a {
left: auto;
right: 0px;
right: 0;
}
/* Make sure we have room for our comment avatars */
.commentlist > li.comment,
Expand Down
24 changes: 12 additions & 12 deletions src/wp-content/themes/twentyeleven/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,9 @@ a.assistive-text:focus,
background: -o-linear-gradient(#252525, #0a0a0a);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#252525), to(#0a0a0a)); /* older webkit syntax */
background: -webkit-linear-gradient(#252525, #0a0a0a);
-webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
-moz-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
clear: both;
display: block;
float: left;
Expand Down Expand Up @@ -1868,9 +1868,9 @@ video {
.widget_search #searchsubmit {
background: #ddd;
border: 1px solid #ccc;
-webkit-box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09);
-moz-box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09);
box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09);
-webkit-box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.09);
-moz-box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.09);
box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.09);
color: #888;
font-size: 13px;
line-height: 25px;
Expand All @@ -1880,9 +1880,9 @@ video {
.widget_search #searchsubmit:active {
background: #1982d1;
border-color: #0861a5;
-webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1);
-moz-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1);
box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1);
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
color: #bfddf3;
}

Expand Down Expand Up @@ -2273,9 +2273,9 @@ a.comment-reply-link > span {
border: none;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
box-shadow: 0 1px 2px rgba(0,0,0,0.3);
color: #eee;
cursor: pointer;
font-size: 15px;
Expand Down
8 changes: 4 additions & 4 deletions src/wp-content/themes/twentynineteen/print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272
h2,
h3,
h4,
.has-regular-font-size,
.has-large-font-size,
h2.author-title,
p.author-bio,
.has-regular-font-size,
.has-large-font-size,
h2.author-title,
p.author-bio,
.comments-title, h3 {
font-size: 14pt;
margin-top: 25px;
Expand Down
13 changes: 6 additions & 7 deletions src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,9 @@
display: block;
}

// If an image does not have a left/center/right alignment,
// it's a direct child of .wp-block-image. If it has no other
// alignment added, we want to make sure the image and its
// If an image does not have a left/center/right alignment,
// it's a direct child of .wp-block-image. If it has no other
// alignment added, we want to make sure the image and its
// caption do not extend beyond the width of the text column.
&:not(.alignwide):not(.alignfull) > img,
&:not(.alignwide):not(.alignfull) > a > img,
Expand Down Expand Up @@ -840,7 +840,7 @@
//! Group
.wp-block-group {

// When the Group block is standard/wide, we need to prevent full-aligned
// When the Group block is standard/wide, we need to prevent full-aligned
// child blocks from expanding out of their container.
&:not(.alignfull) > .wp-block-group__inner-container > .alignfull,
&:not(.alignfull) > .wp-block-group__inner-container > .wp-block-image > img {
Expand Down Expand Up @@ -881,7 +881,7 @@
}
}

// If the Group block is full-width, it does not need this extra padding.
// If the Group block is full-width, it does not need this extra padding.
&.alignfull {
padding-left: 0;
padding-right: 0;
Expand All @@ -896,15 +896,14 @@
&:not(.alignfull) > .wp-block-group__inner-container > .alignfull {
width: 100%;
max-width: 100%;

@include media(tablet) {
width: calc( 100% + #{$size__spacing-unit * 2} );
max-width: calc( 100% + #{$size__spacing-unit * 2} );
margin-left: -#{$size__spacing-unit};
}
}
}

}

//! Latest Comments
Expand Down
4 changes: 2 additions & 2 deletions src/wp-content/themes/twentynineteen/style-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -1458,8 +1458,8 @@ ul.wp-block-archives li ul,
padding: 0.5rem;
text-align: left;
text-align: center;
-webkit-margin-start: 0px;
margin-inline-start: 0px;
-webkit-margin-start: 0;
margin-inline-start: 0;
}

.wp-block-freeform {
Expand Down
26 changes: 13 additions & 13 deletions src/wp-content/themes/twentynineteen/style-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ figcaption,
font-size: $font__size-sm;
font-weight: bold;
border-radius: 5px;

&:not(.has-text-color) {
color: #fff;
}
Expand Down Expand Up @@ -841,8 +841,8 @@ ul.wp-block-archives,
padding: ( $size__spacing-unit * .5 );
text-align: left;
text-align: center;
-webkit-margin-start: 0px;
margin-inline-start: 0px;
-webkit-margin-start: 0;
margin-inline-start: 0;
}
}

Expand All @@ -865,8 +865,8 @@ ul.wp-block-archives,
/** === Group Block === */

// This matches the 22px value for 1rem that used on the front end.
// It must be specified in pixels for the editor, since the root font
// size is different here.
// It must be specified in pixels for the editor, since the root font
// size is different here.
$group-block-background__padding: $font__size_base;

.wp-block-group {
Expand Down Expand Up @@ -916,7 +916,7 @@ $group-block-background__padding: $font__size_base;

// Group block with background color
&.has-background {

// Child blocks: Default alignments
> .wp-block-group__inner-container > .wp-block:not([data-align="wide"]):not([data-align="full"]):not(.alignwide):not(.alignfull) {
@include media(tablet) {
Expand All @@ -933,19 +933,19 @@ $group-block-background__padding: $font__size_base;
// Full alignment
.wp-block[data-align="full"] > .wp-block-group {

// Margins & padding are added to this container to mimic
// the style + spacing of the .editor-writing-flow global
// container. This way, child items sync up with the placement
// and size of other top-level blocks.
// Margins & padding are added to this container to mimic
// the style + spacing of the .editor-writing-flow global
// container. This way, child items sync up with the placement
// and size of other top-level blocks.
> .wp-block-group__inner-container {

// 2px of extra padding are added to each side here
// To better match up with the spacing of the whole
// document.
// To better match up with the spacing of the whole
// document.
@include media(tablet) {
width: 80%;
margin-left: 10%;
margin-right: 10%;
margin-right: 10%;
padding-left: 10px;
padding-right: 10px;
}
Expand Down
10 changes: 5 additions & 5 deletions src/wp-content/themes/twentyten/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ input[type="number"],
textarea {
background: #f9f9f9;
border: 1px solid #ccc;
box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
-moz-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
-webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
-moz-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
padding: 2px;
}
a:link {
Expand Down Expand Up @@ -418,9 +418,9 @@ div.menu li {
text-decoration: none;
}
#access ul ul {
box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
box-shadow: 0 3px 3px rgba(0,0,0,0.2);
display: none;
position: absolute;
top: 38px;
Expand Down
2 changes: 1 addition & 1 deletion src/wp-content/themes/twentythirteen/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ body:not(.sidebar) .wp-block-cover > .wp-block-cover__inner-container > * {
}

@media screen and (min-width: 665px) {
body:not(.sidebar) .wp-block-cover__inner-container > .wp-block-group.alignfull,
body:not(.sidebar) .wp-block-cover__inner-container > .wp-block-group.alignfull,
body:not(.sidebar) .wp-block-cover__inner-container > .wp-block-group.has-background.alignfull {
padding: 20px;
}
Expand Down
4 changes: 2 additions & 2 deletions src/wp-content/themes/twentytwenty/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272
.posts {
padding: 0;
}

/* Width */

.entry-content,
Expand Down Expand Up @@ -111,7 +111,7 @@ Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272
}

/* Links */

a:link,
a:visited,
a {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"number-leading-zero": null,
"no-descending-specificity": null,
"length-zero-no-unit": [true, {"ignore": ["custom-properties"]}],
"shorthand-property-no-redundant-values": true,
"value-keyword-case": ["lower", {
"ignoreKeywords": ["currentColor"]
}]
Expand Down