-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit adds support for switching WordPress versions via a query parameter, e.g. `?wp=5.9`. After applying: * WordPress data module is built to a file with a specified name, e.g. `build/wp-6.0.js` and `build/wp-6.0.data` * WordPress static assets are moved to a subdirectory, e.g. `build/wp-6.0` * Service Worker rewrites any static-looking requests from `/scope:<number>/` to appropriate subdirectory, e.g. `/wp-6.0/` This PR comes with prebuilt assets for WordPress `5.9`, `6.0`, `6.1`, and the current `nightly` release.
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/*! This file is auto-generated */ | ||
.wrap [class*="CodeMirror-lint-marker"], | ||
.wp-core-ui [class*="CodeMirror-lint-message"], | ||
.wrap .CodeMirror-lint-marker-multiple { | ||
background-image: none; | ||
} | ||
|
||
.wp-core-ui .CodeMirror-lint-marker-error, | ||
.wp-core-ui .CodeMirror-lint-marker-warning { | ||
cursor: help; | ||
} | ||
|
||
.wrap .CodeMirror-lint-marker-multiple { | ||
position: absolute; | ||
top: 0; | ||
} | ||
|
||
.wrap [class*="CodeMirror-lint-marker"]:before { | ||
font: normal 18px/1 dashicons; | ||
position: relative; | ||
top: -2px; | ||
} | ||
|
||
.wp-core-ui [class*="CodeMirror-lint-message"]:before { | ||
font: normal 16px/1 dashicons; | ||
right: 16px; | ||
position: absolute; | ||
} | ||
|
||
.wp-core-ui .CodeMirror-lint-message-error, | ||
.wp-core-ui .CodeMirror-lint-message-warning { | ||
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); | ||
margin: 5px 0 2px; | ||
padding: 3px 28px 3px 12px; | ||
} | ||
|
||
.wp-core-ui .CodeMirror-lint-message-warning { | ||
background-color: #fcf9e8; | ||
border-right: 4px solid #dba617; | ||
} | ||
|
||
.wrap .CodeMirror-lint-marker-warning:before, | ||
.wp-core-ui .CodeMirror-lint-message-warning:before { | ||
content: "\f534"; | ||
color: #dba617; | ||
} | ||
|
||
.wp-core-ui .CodeMirror-lint-message-error { | ||
background-color: #fcf0f1; | ||
border-right: 4px solid #d63638; | ||
} | ||
|
||
.wrap .CodeMirror-lint-marker-error:before, | ||
.wp-core-ui .CodeMirror-lint-message-error:before { | ||
content: "\f153"; | ||
color: #d63638; | ||
} | ||
|
||
.wp-core-ui .CodeMirror-lint-tooltip { | ||
background: none; | ||
border: none; | ||
border-radius: 0; | ||
direction: rtl; | ||
} | ||
|
||
.wrap .CodeMirror .CodeMirror-matchingbracket { | ||
background: rgba(219, 166, 23, 0.3); | ||
color: inherit; | ||
} | ||
|
||
.CodeMirror { | ||
text-align: right; | ||
} | ||
|
||
.wrap .CodeMirror .CodeMirror-linenumber { | ||
color: #646970; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
.wrap [class*="CodeMirror-lint-marker"], | ||
.wp-core-ui [class*="CodeMirror-lint-message"], | ||
.wrap .CodeMirror-lint-marker-multiple { | ||
background-image: none; | ||
} | ||
|
||
.wp-core-ui .CodeMirror-lint-marker-error, | ||
.wp-core-ui .CodeMirror-lint-marker-warning { | ||
cursor: help; | ||
} | ||
|
||
.wrap .CodeMirror-lint-marker-multiple { | ||
position: absolute; | ||
top: 0; | ||
} | ||
|
||
.wrap [class*="CodeMirror-lint-marker"]:before { | ||
font: normal 18px/1 dashicons; | ||
position: relative; | ||
top: -2px; | ||
} | ||
|
||
.wp-core-ui [class*="CodeMirror-lint-message"]:before { | ||
font: normal 16px/1 dashicons; | ||
left: 16px; | ||
position: absolute; | ||
} | ||
|
||
.wp-core-ui .CodeMirror-lint-message-error, | ||
.wp-core-ui .CodeMirror-lint-message-warning { | ||
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); | ||
margin: 5px 0 2px; | ||
padding: 3px 12px 3px 28px; | ||
} | ||
|
||
.wp-core-ui .CodeMirror-lint-message-warning { | ||
background-color: #fcf9e8; | ||
border-left: 4px solid #dba617; | ||
} | ||
|
||
.wrap .CodeMirror-lint-marker-warning:before, | ||
.wp-core-ui .CodeMirror-lint-message-warning:before { | ||
content: "\f534"; | ||
color: #dba617; | ||
} | ||
|
||
.wp-core-ui .CodeMirror-lint-message-error { | ||
background-color: #fcf0f1; | ||
border-left: 4px solid #d63638; | ||
} | ||
|
||
.wrap .CodeMirror-lint-marker-error:before, | ||
.wp-core-ui .CodeMirror-lint-message-error:before { | ||
content: "\f153"; | ||
color: #d63638; | ||
} | ||
|
||
.wp-core-ui .CodeMirror-lint-tooltip { | ||
background: none; | ||
border: none; | ||
border-radius: 0; | ||
direction: ltr; | ||
} | ||
|
||
.wrap .CodeMirror .CodeMirror-matchingbracket { | ||
background: rgba(219, 166, 23, 0.3); | ||
color: inherit; | ||
} | ||
|
||
.CodeMirror { | ||
text-align: left; | ||
} | ||
|
||
.wrap .CodeMirror .CodeMirror-linenumber { | ||
color: #646970; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
/*! This file is auto-generated */ | ||
/* rtl:ignore */ | ||
.wp-color-picker { | ||
width: 80px; | ||
direction: ltr; | ||
} | ||
|
||
.wp-picker-container .hidden { | ||
display: none; | ||
} | ||
|
||
/* Needs higher specificiity. */ | ||
.wp-picker-container .wp-color-result.button { | ||
min-height: 30px; | ||
margin: 0 0 6px 6px; | ||
padding: 0 30px 0 0; | ||
font-size: 11px; | ||
} | ||
|
||
.wp-color-result-text { | ||
background: #f6f7f7; | ||
border-radius: 2px 0 0 2px; | ||
border-right: 1px solid #c3c4c7; | ||
color: #50575e; | ||
display: block; | ||
line-height: 2.54545455; /* 28px */ | ||
padding: 0 6px; | ||
text-align: center; | ||
} | ||
|
||
.wp-color-result:hover, | ||
.wp-color-result:focus { | ||
background: #f6f7f7; | ||
border-color: #8c8f94; | ||
color: #1d2327; | ||
} | ||
|
||
.wp-color-result:hover:after, | ||
.wp-color-result:focus:after { | ||
color: #1d2327; | ||
border-color: #a7aaad; | ||
border-right: 1px solid #8c8f94; | ||
} | ||
|
||
.wp-picker-container { | ||
display: inline-block; | ||
} | ||
|
||
.wp-color-result:focus { | ||
border-color: #4f94d4; | ||
box-shadow: 0 0 3px rgba(34, 113, 177, 0.8); | ||
} | ||
|
||
.wp-color-result:active { | ||
/* See Trac ticket #39662 */ | ||
transform: none !important; | ||
} | ||
|
||
.wp-picker-open + .wp-picker-input-wrap { | ||
display: inline-block; | ||
vertical-align: top; | ||
} | ||
|
||
.wp-picker-input-wrap label { | ||
display: inline-block; | ||
vertical-align: top; | ||
} | ||
|
||
/* For the old `custom-background` page, to override the inline-block and margins from `.form-table td fieldset label`. */ | ||
.form-table .wp-picker-input-wrap label { | ||
margin: 0 !important; | ||
} | ||
|
||
.wp-picker-input-wrap .button.wp-picker-default, | ||
.wp-picker-input-wrap .button.wp-picker-clear, | ||
.wp-customizer .wp-picker-input-wrap .button.wp-picker-default, | ||
.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear { | ||
margin-right: 6px; | ||
padding: 0 8px; | ||
line-height: 2.54545455; /* 28px */ | ||
min-height: 30px; | ||
} | ||
|
||
.wp-picker-container .iris-square-slider .ui-slider-handle:focus { | ||
background-color: #50575e | ||
} | ||
|
||
.wp-picker-container .iris-picker { | ||
border-radius: 0; | ||
border-color: #dcdcde; | ||
margin-top: 6px; | ||
} | ||
|
||
.wp-picker-container input[type="text"].wp-color-picker { | ||
width: 4rem; | ||
font-size: 12px; | ||
font-family: monospace; | ||
line-height: 2.33333333; /* 28px */ | ||
margin: 0; | ||
padding: 0 5px; | ||
vertical-align: top; | ||
min-height: 30px; | ||
} | ||
|
||
.wp-color-picker::-webkit-input-placeholder { | ||
color: #646970; | ||
} | ||
|
||
.wp-color-picker::-moz-placeholder { | ||
color: #646970; | ||
opacity: 1; | ||
} | ||
|
||
.wp-color-picker:-ms-input-placeholder { | ||
color: #646970; | ||
} | ||
|
||
.wp-picker-container input[type="text"].iris-error { | ||
background-color: #fcf0f1; | ||
border-color: #d63638; | ||
color: #000; | ||
} | ||
|
||
.iris-picker .ui-square-handle:focus, | ||
.iris-picker .iris-strip .ui-slider-handle:focus { | ||
border-color: #3582c4; | ||
border-style: solid; | ||
box-shadow: 0 0 0 1px #3582c4; | ||
outline: 2px solid transparent; | ||
} | ||
|
||
.iris-picker .iris-palette:focus { | ||
box-shadow: 0 0 0 2px #3582c4; | ||
} | ||
|
||
@media screen and (max-width: 782px) { | ||
.wp-picker-container input[type="text"].wp-color-picker { | ||
width: 5rem; | ||
font-size: 16px; | ||
line-height: 1.875; /* 30px */ | ||
min-height: 32px; | ||
} | ||
|
||
.wp-customizer .wp-picker-container input[type="text"].wp-color-picker { | ||
padding: 0 5px; | ||
} | ||
|
||
.wp-picker-input-wrap .button.wp-picker-default, | ||
.wp-picker-input-wrap .button.wp-picker-clear { | ||
padding: 0 8px; | ||
line-height: 2.14285714; /* 30px */ | ||
min-height: 32px; | ||
} | ||
|
||
.wp-customizer .wp-picker-input-wrap .button.wp-picker-default, | ||
.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear { | ||
padding: 0 8px; | ||
font-size: 14px; | ||
line-height: 2.14285714; /* 30px */ | ||
min-height: 32px; | ||
} | ||
|
||
.wp-picker-container .wp-color-result.button { | ||
padding: 0 40px 0 0; | ||
font-size: 14px; | ||
line-height: 2.14285714; /* 30px */ | ||
} | ||
|
||
.wp-customizer .wp-picker-container .wp-color-result.button { | ||
font-size: 14px; | ||
line-height: 2.14285714; /* 30px */ | ||
} | ||
|
||
.wp-picker-container .wp-color-result-text { | ||
padding: 0 14px; | ||
font-size: inherit; | ||
line-height: inherit; | ||
} | ||
|
||
.wp-customizer .wp-picker-container .wp-color-result-text { | ||
padding: 0 10px; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.