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

Remove empty lines and rulesets from bundled theme stylesheets #5477

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 1 addition & 23 deletions src/wp-content/themes/twentyeleven/colors/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ input#s {
background-color: #ddd;
}

/* Links */
a {
}


/* =Header
----------------------------------------------- */
Expand All @@ -60,10 +56,6 @@ a {
#site-title a {
color: #eee;
}
#site-title a:hover,
#site-title a:focus,
#site-title a:active {
}
#site-description {
color: #858585;
}
Expand Down Expand Up @@ -99,10 +91,6 @@ a {
.entry-title a {
color: #ddd;
}
.entry-title a:hover,
.entry-title a:focus,
.entry-title a:active {
}
.entry-meta {
color: #999;
}
Expand All @@ -124,8 +112,6 @@ a {
.comment-content td {
border-color: #222;
}
.page-link {
}
.page-link a {
background: #242424;
color: #bbb;
Expand Down Expand Up @@ -362,8 +348,6 @@ section.recent-posts .other-recent-posts .entry-title {
section.recent-posts .other-recent-posts a[rel="bookmark"] {
color: #ccc;
}
section.recent-posts .other-recent-posts a[rel="bookmark"]:hover {
}
section.recent-posts .other-recent-posts .comments-link a,
section.recent-posts .other-recent-posts .comments-link > span {
border-color: #959595;
Expand All @@ -373,8 +357,6 @@ section.recent-posts .other-recent-posts .comments-link > span {
border-color: #444;
color: #777;
}
section.recent-posts .other-recent-posts .comments-link a:hover {
}


/* =Attachments
Expand Down Expand Up @@ -596,10 +578,6 @@ li.bypostauthor a.comment-reply-link:active {
background: none !important;
}

/* Comments */
.commentlist > li.comment {
}

/* Post author highlighting */
.commentlist > li.bypostauthor {
color: #333;
Expand All @@ -620,4 +598,4 @@ li.bypostauthor a.comment-reply-link:active {
.commentlist .children > li.bypostauthor > article .comment-meta {
color: #959595;
}
}
}
13 changes: 0 additions & 13 deletions src/wp-content/themes/twentyeleven/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1674,8 +1674,6 @@ section.recent-posts .other-recent-posts a[rel="bookmark"]:after {
color: transparent;
font-size: 11px;
}
section.recent-posts .other-recent-posts a[rel="bookmark"]:hover {
}
section.recent-posts .other-recent-posts .comments-link a,
section.recent-posts .other-recent-posts .comments-link > span {
border-bottom: 2px solid #999;
Expand Down Expand Up @@ -1906,9 +1904,6 @@ section.ephemera ol,
line-height: 2.76333em;
text-transform: uppercase;
}
section.ephemera .entry-title .comments-link a:hover,
.widget_twentyeleven_ephemera .entry-title .comments-link a:hover {
}
section.ephemera .entry-title a span {
color: #29628d;
}
Expand Down Expand Up @@ -2094,10 +2089,6 @@ section.ephemera .entry-title a span {
.comment-meta a {
font-weight: bold;
}
.comment-meta a:focus,
.comment-meta a:active,
.comment-meta a:hover {
}
.commentlist .avatar {
-moz-border-radius: 3px;
border-radius: 3px;
Expand Down Expand Up @@ -2156,10 +2147,6 @@ a.comment-reply-link > span {
.commentlist > li.bypostauthor .comment-meta {
color: #575757;
}
.commentlist > li.bypostauthor .comment-meta a:focus,
.commentlist > li.bypostauthor .comment-meta a:active,
.commentlist > li.bypostauthor .comment-meta a:hover {
}
.commentlist > li.bypostauthor:before {
content: url(images/comment-arrow-bypostauthor.png);
}
Expand Down
3 changes: 0 additions & 3 deletions src/wp-content/themes/twentyfourteen/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,6 @@ p.has-drop-cap:not(:focus)::first-letter {
color: #41a62a;
}

.wp-block-latest-comments__comment-excerpt p:last-child {
}

.wp-block-latest-comments__comment-date {
text-transform: uppercase;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
/* Entry header */
.site-featured-image {

/* First layer: grayscale. */
.post-thumbnail img {
height: auto;
left: 50%;
Expand All @@ -90,8 +89,9 @@
width: 100%;
}

/* When image filters are active, make it grayscale to colorize it blue. */
.image-filters-enabled & {
/* First layer: grayscale. */
/* When image filters are active, make it grayscale to colorize it blue. */
filter: grayscale(100%);
}
}
Expand Down
4 changes: 0 additions & 4 deletions src/wp-content/themes/twentynineteen/style-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -1449,10 +1449,6 @@ ul.wp-block-archives li ul,
margin-inline-start: 0;
}

.wp-block-freeform {
/* Add style for galleries in classic-editor block */
}

.wp-block-freeform blockquote {
border-left: 2px solid #0073aa;
}
Expand Down
1 change: 0 additions & 1 deletion src/wp-content/themes/twentynineteen/style-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,6 @@ ul.wp-block-archives,

.wp-block-freeform {

/* Add style for galleries in classic-editor block */
blockquote {
border-left: 2px solid $color__link;

Expand Down
7 changes: 2 additions & 5 deletions src/wp-content/themes/twentynineteen/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3959,10 +3959,6 @@ body.page .main-navigation {
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.site-header.featured-image .site-featured-image {
/* First layer: grayscale. */
}

.site-header.featured-image .site-featured-image .post-thumbnail img {
height: auto;
right: 50%;
Expand All @@ -3974,7 +3970,6 @@ body.page .main-navigation {
transform: translateX(50%) translateY(-50%);
width: auto;
z-index: 1;
/* When image filters are active, make it grayscale to colorize it blue. */
}

@supports (object-fit: cover) {
Expand All @@ -3989,6 +3984,8 @@ body.page .main-navigation {
}

.image-filters-enabled .site-header.featured-image .site-featured-image .post-thumbnail img {
/* First layer: grayscale. */
/* When image filters are active, make it grayscale to colorize it blue. */
filter: grayscale(100%);
}

Expand Down
7 changes: 2 additions & 5 deletions src/wp-content/themes/twentynineteen/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3965,10 +3965,6 @@ body.page .main-navigation {
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.site-header.featured-image .site-featured-image {
/* First layer: grayscale. */
}

.site-header.featured-image .site-featured-image .post-thumbnail img {
height: auto;
left: 50%;
Expand All @@ -3980,7 +3976,6 @@ body.page .main-navigation {
transform: translateX(-50%) translateY(-50%);
width: auto;
z-index: 1;
/* When image filters are active, make it grayscale to colorize it blue. */
}

@supports (object-fit: cover) {
Expand All @@ -3995,6 +3990,8 @@ body.page .main-navigation {
}

.image-filters-enabled .site-header.featured-image .site-featured-image .post-thumbnail img {
/* First layer: grayscale. */
/* When image filters are active, make it grayscale to colorize it blue. */
filter: grayscale(100%);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ p.has-drop-cap:not(:focus)::first-letter {
.wp-block-latest-comments a {
-webkit-box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1);
box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1);

}

.wp-block-latest-comments .wp-block-latest-comments__comment {
Expand Down
17 changes: 0 additions & 17 deletions src/wp-content/themes/twentyten/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -999,8 +999,6 @@ h3#comments-title {
top: 4px;
left: 0;
}
.comment-author {
}
.comment-author cite {
color: #000;
font-style: normal;
Expand All @@ -1022,10 +1020,6 @@ h3#comments-title {
.comment-meta a:hover {
color: #ff4b33;
}
.commentlist .even {
}
.commentlist .bypostauthor {
}
.reply {
font-size: 12px;
padding: 0 0 24px 0;
Expand Down Expand Up @@ -1203,8 +1197,6 @@ h3#reply-title {
#wp-calendar thead {
font-size: 11px;
}
#wp-calendar thead th {
}
#wp-calendar tbody {
color: #aaa;
}
Expand Down Expand Up @@ -1291,15 +1283,6 @@ h3#reply-title {
list-style: square;
}

#primary {
}
#secondary {
}

/* Footer widget areas */
#footer-widget-area {
}


/* =Footer
-------------------------------------------------------------- */
Expand Down
7 changes: 0 additions & 7 deletions src/wp-content/themes/twentytwelve/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,6 @@ p.has-drop-cap:not(:focus)::first-letter {
padding-top: 0.75em;
}

[class^="wp-block-"].alignleft,
[class^="wp-block-"] .alignleft,
[class^="wp-block-"].alignright,
[class^="wp-block-"] .alignright {

}

/* Gallery */

.wp-block-gallery {
Expand Down
12 changes: 0 additions & 12 deletions src/wp-content/themes/twentytwentyone/assets/css/ie.css
Original file line number Diff line number Diff line change
Expand Up @@ -1042,11 +1042,6 @@ template,
* .entry-content children specific controls
* - Adds special margin overrides for alignment utility classes
*/
.entry-content > * {

/* Reset alignleft and alignright margins after alignfull */
}

.entry-content > *.alignleft,
.entry-content > *.alignright,
.entry-content > *.alignleft:first-child + *,
Expand Down Expand Up @@ -2820,13 +2815,6 @@ dd {
padding-left: 50px;
}

.wp-block-media-text {

/**
* Block Options
*/
}

.wp-block-media-text.alignfull {
margin-top: 0;
margin-bottom: 0;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
margin-bottom: 0;
}

/* Reset alignleft and alignright margins after alignfull */
// Reset alignleft and alignright margins after alignfull
&.alignfull + .alignleft,
&.alignfull + .alignright {
margin-top: var(--global--spacing-vertical);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@
}
}

/**
* Block Options
*/

// Block Options
&.is-stacked-on-mobile .wp-block-media-text__content {
@include media(mobile) {
padding-top: var(--global--spacing-vertical);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ pre.wp-block-preformatted {
overflow-x: auto;
white-space: pre !important;
font-size: var(--global--font-size-xs);

}
12 changes: 0 additions & 12 deletions src/wp-content/themes/twentytwentyone/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -927,11 +927,6 @@ template {
* .entry-content children specific controls
* - Adds special margin overrides for alignment utility classes
*/
.entry-content > * {

/* Reset alignleft and alignright margins after alignfull */
}

.entry-content > *.alignleft,
.entry-content > *.alignright,
.entry-content > *.alignleft:first-child + *,
Expand Down Expand Up @@ -2653,13 +2648,6 @@ dd {
padding-right: calc(2 * var(--global--spacing-horizontal));
}

.wp-block-media-text {

/**
* Block Options
*/
}

.wp-block-media-text.alignfull {
margin-top: 0;
margin-bottom: 0;
Expand Down
12 changes: 0 additions & 12 deletions src/wp-content/themes/twentytwentyone/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -935,11 +935,6 @@ template {
* .entry-content children specific controls
* - Adds special margin overrides for alignment utility classes
*/
.entry-content > * {

/* Reset alignleft and alignright margins after alignfull */
}

.entry-content > *.alignleft,
.entry-content > *.alignright,
.entry-content > *.alignleft:first-child + *,
Expand Down Expand Up @@ -2663,13 +2658,6 @@ dd {
padding-left: calc(2 * var(--global--spacing-horizontal));
}

.wp-block-media-text {

/**
* Block Options
*/
}

.wp-block-media-text.alignfull {
margin-top: 0;
margin-bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/wp-content/themes/twentytwentyone/style.css.map

Large diffs are not rendered by default.

Loading