2019-10-25 20:17:07 -04:00
|
|
|
/*! This file is auto-generated */
|
2019-09-23 12:21:58 -04:00
|
|
|
/*------------------------------------------------------------------------------
|
|
|
|
28.0 - Site Icon
|
|
|
|
------------------------------------------------------------------------------*/
|
|
|
|
|
2024-08-23 18:47:16 -04:00
|
|
|
.site-icon-section {
|
|
|
|
--site-icon-removal: #b32d2e;
|
2019-09-23 12:21:58 -04:00
|
|
|
}
|
|
|
|
|
2024-08-23 18:47:16 -04:00
|
|
|
.site-icon-preview {
|
|
|
|
--site-icon-input-border: #8c8f94;
|
|
|
|
--site-icon-preview-background: #fff;
|
|
|
|
--site-icon-preview-browser-top: #dcdcde;
|
|
|
|
--site-icon-preview-browser-bottom: #a7aaad;
|
|
|
|
--site-icon-preview-browser-border: rgba(255, 255, 255, 0.2);
|
|
|
|
--site-icon-address-bar-background: #f0f0f1;
|
|
|
|
--site-icon-address-bar-close: #646970;
|
|
|
|
--site-icon-address-bar-text: #3c434a;
|
|
|
|
--site-icon-shadow-1: rgba(0, 0, 0, 0.1);
|
|
|
|
--site-icon-shadow-2: rgba(0, 0, 0, 0.2);
|
|
|
|
--site-icon-shadow-3: rgba(0, 0, 0, 0.5);
|
|
|
|
|
|
|
|
direction: initial;
|
|
|
|
display: flex;
|
|
|
|
height: 60px;
|
|
|
|
padding: 8px 8px 0 0;
|
|
|
|
align-items: flex-start;
|
|
|
|
position: relative;
|
2019-09-23 12:21:58 -04:00
|
|
|
overflow: hidden;
|
2024-08-23 18:47:16 -04:00
|
|
|
box-sizing: border-box;
|
|
|
|
border: 1px solid var(--site-icon-input-border);
|
|
|
|
border-radius: 4px;
|
|
|
|
background-color: var(--site-icon-preview-background);
|
|
|
|
width: 275px;
|
2019-09-23 12:21:58 -04:00
|
|
|
}
|
|
|
|
|
2024-08-23 18:47:16 -04:00
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
.site-icon-preview {
|
|
|
|
--site-icon-preview-browser-top: #2c3338;
|
|
|
|
--site-icon-preview-browser-bottom: #111;
|
|
|
|
--site-icon-address-bar-background: #3c434a;
|
|
|
|
--site-icon-address-bar-close: #f0f0f1;
|
|
|
|
--site-icon-address-bar-text: #f0f0f1;
|
|
|
|
}
|
2019-09-23 12:21:58 -04:00
|
|
|
}
|
|
|
|
|
2024-08-23 18:47:16 -04:00
|
|
|
.site-icon-preview.settings {
|
|
|
|
height: 88px;
|
|
|
|
padding: 16px 16px 0 0;
|
|
|
|
width: 350px;
|
|
|
|
margin: 0 0 16px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview.crop {
|
|
|
|
width: 258px;
|
|
|
|
height: 100%;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 8px 1fr;
|
|
|
|
grid-template-rows: 64px 1fr;
|
|
|
|
padding-right: 0;
|
|
|
|
row-gap: 16px;
|
|
|
|
direction: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview .direction-wrap {
|
|
|
|
grid-template-columns: 44px 1fr;
|
|
|
|
gap: 8px;
|
|
|
|
display: grid;
|
|
|
|
direction: rtl;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview.settings .direction-wrap {
|
|
|
|
grid-template-columns: 58px 1fr;
|
|
|
|
gap: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview:after {
|
|
|
|
--after-size: 150%;
|
|
|
|
aspect-ratio: 1/1;
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
width: var(--after-size);;
|
|
|
|
transform: translate(calc(-1*(var(--after-size) * -0.125)), calc(var(--after-size) * -0.125));
|
|
|
|
filter: blur(5px);
|
|
|
|
opacity: 0.5;
|
|
|
|
background: var(--site-icon-url);
|
2019-09-23 12:21:58 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview .app-icon-preview {
|
2024-08-23 18:47:16 -04:00
|
|
|
aspect-ratio: 1/1;
|
|
|
|
border-radius: 10px;
|
|
|
|
box-shadow: 0 1px 5px 0 var(--site-icon-shadow-3);
|
|
|
|
flex-shrink: 0;
|
|
|
|
width: 100%;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview-browser {
|
|
|
|
display: flex;
|
|
|
|
padding: 4px 12px 0 4px;
|
|
|
|
align-items: flex-start;
|
|
|
|
gap: 16px;
|
|
|
|
flex: 1 0 0;
|
|
|
|
z-index: 1;
|
|
|
|
border-top-right-radius: 10px;
|
|
|
|
border-top: 1px solid var(--site-icon-preview-browser-border);
|
|
|
|
border-right: 1px solid var(--site-icon-preview-browser-border);
|
|
|
|
background: linear-gradient(-180deg, var(--site-icon-preview-browser-top) 0%, var(--site-icon-preview-browser-bottom) 100%);
|
|
|
|
box-shadow: 0 10px 22px 0 var(--site-icon-shadow-2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview .browser-buttons {
|
|
|
|
width: 48px;
|
|
|
|
height: 40px;
|
|
|
|
fill: var(--site-icon-input-border);
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview-tab {
|
|
|
|
padding: 8px;
|
|
|
|
align-items: center;
|
|
|
|
gap: 8px;
|
|
|
|
flex: 1 0 0;
|
|
|
|
border-radius: 4px;
|
|
|
|
background-color: var(--site-icon-address-bar-background);
|
|
|
|
box-shadow: 0 1px 3px 0 var(--site-icon-shadow-1);
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 24px auto 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview-browser .browser-icon-preview {
|
|
|
|
box-shadow: 0 0 20px 0 var(--site-icon-shadow-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview-tab > img,
|
|
|
|
.site-icon-preview-tab > svg {
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview-tab > svg {
|
|
|
|
fill: var(--site-icon-address-bar-close);
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview-site-title {
|
|
|
|
color: var(--site-icon-address-bar-text);
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2019-09-23 12:21:58 -04:00
|
|
|
overflow: hidden;
|
2024-08-23 18:47:16 -04:00
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-preview-crop-modal .image-preview-wrap.app-icon-preview {
|
2019-09-23 12:21:58 -04:00
|
|
|
width: 64px;
|
2024-08-23 18:47:16 -04:00
|
|
|
height: 64px;
|
|
|
|
margin: 0;
|
|
|
|
grid-column: 2;
|
2019-09-23 12:21:58 -04:00
|
|
|
}
|
|
|
|
|
2024-08-23 18:47:16 -04:00
|
|
|
.site-icon-preview-crop-modal .site-icon-preview-browser {
|
|
|
|
grid-column: 2;
|
2019-09-23 12:21:58 -04:00
|
|
|
}
|
|
|
|
|
2024-08-23 18:47:16 -04:00
|
|
|
.site-icon-preview-crop-modal .image-preview-wrap {
|
|
|
|
overflow: hidden;
|
|
|
|
aspect-ratio: 1/1;
|
2019-09-23 12:21:58 -04:00
|
|
|
}
|
|
|
|
|
2024-08-23 18:47:16 -04:00
|
|
|
.site-icon-preview-crop-modal .image-preview-wrap.browser {
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2019-09-23 12:21:58 -04:00
|
|
|
}
|
General: Add an option to configure the site icon in general settings.
This restores the site icon setting to its original home on the settings page where it lives with the title and tagline.
The base for this code was originally added in [32994] and then removed in [33329]. The majority of the modification to that version are to remove the no-js pieces and make the workflow completely inline rather than putting the cropping on a separate page.
Additionally, since image crops rely on the ability to upload an image, this setting is gated by the `upload_files` capability.
Follow-up to: [32994], [33329].
Props jorbin, audrasjb, mukesh27, joedolson, afercia, kebbet, swissspidy, obenland, jameskoster, kjellr, andraganescu, stacimc, mikeschroder, h71, krupajnanda, huzaifaalmesbah.
Fixes #54370.
See #16434.
Built from https://develop.svn.wordpress.org/trunk@57602
git-svn-id: http://core.svn.wordpress.org/trunk@57103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-12 16:57:09 -05:00
|
|
|
|
2024-08-23 18:47:16 -04:00
|
|
|
button.reset.remove-site-icon {
|
|
|
|
color: var(--site-icon-removal);
|
General: Add an option to configure the site icon in general settings.
This restores the site icon setting to its original home on the settings page where it lives with the title and tagline.
The base for this code was originally added in [32994] and then removed in [33329]. The majority of the modification to that version are to remove the no-js pieces and make the workflow completely inline rather than putting the cropping on a separate page.
Additionally, since image crops rely on the ability to upload an image, this setting is gated by the `upload_files` capability.
Follow-up to: [32994], [33329].
Props jorbin, audrasjb, mukesh27, joedolson, afercia, kebbet, swissspidy, obenland, jameskoster, kjellr, andraganescu, stacimc, mikeschroder, h71, krupajnanda, huzaifaalmesbah.
Fixes #54370.
See #16434.
Built from https://develop.svn.wordpress.org/trunk@57602
git-svn-id: http://core.svn.wordpress.org/trunk@57103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-12 16:57:09 -05:00
|
|
|
text-decoration: none;
|
|
|
|
border-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
2024-08-23 18:47:16 -04:00
|
|
|
button.reset.remove-site-icon:focus,
|
|
|
|
button.reset.remove-site-icon:hover {
|
|
|
|
background: var(--site-icon-removal);
|
General: Add an option to configure the site icon in general settings.
This restores the site icon setting to its original home on the settings page where it lives with the title and tagline.
The base for this code was originally added in [32994] and then removed in [33329]. The majority of the modification to that version are to remove the no-js pieces and make the workflow completely inline rather than putting the cropping on a separate page.
Additionally, since image crops rely on the ability to upload an image, this setting is gated by the `upload_files` capability.
Follow-up to: [32994], [33329].
Props jorbin, audrasjb, mukesh27, joedolson, afercia, kebbet, swissspidy, obenland, jameskoster, kjellr, andraganescu, stacimc, mikeschroder, h71, krupajnanda, huzaifaalmesbah.
Fixes #54370.
See #16434.
Built from https://develop.svn.wordpress.org/trunk@57602
git-svn-id: http://core.svn.wordpress.org/trunk@57103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-12 16:57:09 -05:00
|
|
|
color: #fff;
|
2024-08-23 18:47:16 -04:00
|
|
|
border-color: var(--site-icon-removal);
|
|
|
|
box-shadow: 0 0 0 1px var(--site-icon-removal);
|
General: Add an option to configure the site icon in general settings.
This restores the site icon setting to its original home on the settings page where it lives with the title and tagline.
The base for this code was originally added in [32994] and then removed in [33329]. The majority of the modification to that version are to remove the no-js pieces and make the workflow completely inline rather than putting the cropping on a separate page.
Additionally, since image crops rely on the ability to upload an image, this setting is gated by the `upload_files` capability.
Follow-up to: [32994], [33329].
Props jorbin, audrasjb, mukesh27, joedolson, afercia, kebbet, swissspidy, obenland, jameskoster, kjellr, andraganescu, stacimc, mikeschroder, h71, krupajnanda, huzaifaalmesbah.
Fixes #54370.
See #16434.
Built from https://develop.svn.wordpress.org/trunk@57602
git-svn-id: http://core.svn.wordpress.org/trunk@57103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-12 16:57:09 -05:00
|
|
|
}
|
2024-02-13 08:09:07 -05:00
|
|
|
|
2024-08-23 18:47:16 -04:00
|
|
|
.site-icon-action-buttons {
|
2024-02-13 08:09:07 -05:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 10px;
|
|
|
|
}
|