Introducing Site Icon, favicon management for WordPress.
This v1 marries Jetpack's Site Icon module with the Media Modal, reusing code
from the Custom Header admin. For now, the core-provided icons will be limited
to a favicon, an iOS app icon, and a Windows tile icon, leaving `.ico` support
and additional icons to plugins to add.
Props obenland, tyxla, flixos90, jancbeck, markjaquith, scruffian.
See #16434.
Built from https://develop.svn.wordpress.org/trunk@32994
git-svn-id: http://core.svn.wordpress.org/trunk@32965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-06-29 14:58:25 +02:00
|
|
|
/*------------------------------------------------------------------------------
|
|
|
|
28.0 - Site Icon
|
|
|
|
------------------------------------------------------------------------------*/
|
|
|
|
|
2015-07-20 17:57:25 +02:00
|
|
|
.site-icon-preview .favicon-preview {
|
2015-07-20 21:01:50 +02:00
|
|
|
margin: 5px 0 20px;
|
2015-07-20 17:57:25 +02:00
|
|
|
overflow: hidden;
|
Introducing Site Icon, favicon management for WordPress.
This v1 marries Jetpack's Site Icon module with the Media Modal, reusing code
from the Custom Header admin. For now, the core-provided icons will be limited
to a favicon, an iOS app icon, and a Windows tile icon, leaving `.ico` support
and additional icons to plugins to add.
Props obenland, tyxla, flixos90, jancbeck, markjaquith, scruffian.
See #16434.
Built from https://develop.svn.wordpress.org/trunk@32994
git-svn-id: http://core.svn.wordpress.org/trunk@32965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-06-29 14:58:25 +02:00
|
|
|
position: relative;
|
2015-07-20 17:57:25 +02:00
|
|
|
max-width: 180px;
|
Introducing Site Icon, favicon management for WordPress.
This v1 marries Jetpack's Site Icon module with the Media Modal, reusing code
from the Custom Header admin. For now, the core-provided icons will be limited
to a favicon, an iOS app icon, and a Windows tile icon, leaving `.ico` support
and additional icons to plugins to add.
Props obenland, tyxla, flixos90, jancbeck, markjaquith, scruffian.
See #16434.
Built from https://develop.svn.wordpress.org/trunk@32994
git-svn-id: http://core.svn.wordpress.org/trunk@32965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-06-29 14:58:25 +02:00
|
|
|
}
|
|
|
|
|
2015-07-20 17:57:25 +02:00
|
|
|
.site-icon-preview .favicon,
|
|
|
|
.site-icon-preview .browser-title {
|
Introducing Site Icon, favicon management for WordPress.
This v1 marries Jetpack's Site Icon module with the Media Modal, reusing code
from the Custom Header admin. For now, the core-provided icons will be limited
to a favicon, an iOS app icon, and a Windows tile icon, leaving `.ico` support
and additional icons to plugins to add.
Props obenland, tyxla, flixos90, jancbeck, markjaquith, scruffian.
See #16434.
Built from https://develop.svn.wordpress.org/trunk@32994
git-svn-id: http://core.svn.wordpress.org/trunk@32965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-06-29 14:58:25 +02:00
|
|
|
height: 16px;
|
|
|
|
left: 88px;
|
|
|
|
overflow: hidden;
|
|
|
|
position: absolute;
|
|
|
|
top: 16px;
|
|
|
|
}
|
|
|
|
|
2015-07-20 17:57:25 +02:00
|
|
|
.site-icon-preview .favicon {
|
Introducing Site Icon, favicon management for WordPress.
This v1 marries Jetpack's Site Icon module with the Media Modal, reusing code
from the Custom Header admin. For now, the core-provided icons will be limited
to a favicon, an iOS app icon, and a Windows tile icon, leaving `.ico` support
and additional icons to plugins to add.
Props obenland, tyxla, flixos90, jancbeck, markjaquith, scruffian.
See #16434.
Built from https://develop.svn.wordpress.org/trunk@32994
git-svn-id: http://core.svn.wordpress.org/trunk@32965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-06-29 14:58:25 +02:00
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
|
2015-07-20 17:57:25 +02:00
|
|
|
.site-icon-preview .browser-title {
|
Introducing Site Icon, favicon management for WordPress.
This v1 marries Jetpack's Site Icon module with the Media Modal, reusing code
from the Custom Header admin. For now, the core-provided icons will be limited
to a favicon, an iOS app icon, and a Windows tile icon, leaving `.ico` support
and additional icons to plugins to add.
Props obenland, tyxla, flixos90, jancbeck, markjaquith, scruffian.
See #16434.
Built from https://develop.svn.wordpress.org/trunk@32994
git-svn-id: http://core.svn.wordpress.org/trunk@32965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-06-29 14:58:25 +02:00
|
|
|
left: 109px;
|
2016-03-09 22:19:27 +01:00
|
|
|
width: 72px;
|
|
|
|
white-space: nowrap;
|
Introducing Site Icon, favicon management for WordPress.
This v1 marries Jetpack's Site Icon module with the Media Modal, reusing code
from the Custom Header admin. For now, the core-provided icons will be limited
to a favicon, an iOS app icon, and a Windows tile icon, leaving `.ico` support
and additional icons to plugins to add.
Props obenland, tyxla, flixos90, jancbeck, markjaquith, scruffian.
See #16434.
Built from https://develop.svn.wordpress.org/trunk@32994
git-svn-id: http://core.svn.wordpress.org/trunk@32965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-06-29 14:58:25 +02:00
|
|
|
}
|
|
|
|
|
2015-07-20 17:57:25 +02:00
|
|
|
.site-icon-preview .app-icon-preview {
|
2015-07-02 19:16:26 +02:00
|
|
|
background-color: #000;
|
Introducing Site Icon, favicon management for WordPress.
This v1 marries Jetpack's Site Icon module with the Media Modal, reusing code
from the Custom Header admin. For now, the core-provided icons will be limited
to a favicon, an iOS app icon, and a Windows tile icon, leaving `.ico` support
and additional icons to plugins to add.
Props obenland, tyxla, flixos90, jancbeck, markjaquith, scruffian.
See #16434.
Built from https://develop.svn.wordpress.org/trunk@32994
git-svn-id: http://core.svn.wordpress.org/trunk@32965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-06-29 14:58:25 +02:00
|
|
|
border-radius: 16px;
|
|
|
|
height: 64px;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 64px;
|
2015-07-20 21:01:50 +02:00
|
|
|
margin-top: 5px;
|
2015-07-02 23:16:24 +02:00
|
|
|
}
|
2016-03-09 22:19:27 +01:00
|
|
|
|
2016-07-05 14:42:27 +02:00
|
|
|
/* rtl:ignore */
|
|
|
|
.site-icon-preview .favicon,
|
|
|
|
.site-icon-preview .app-icon-preview {
|
|
|
|
direction: ltr;
|
|
|
|
}
|
|
|
|
|
2016-03-09 22:19:27 +01:00
|
|
|
.customize-control-site_icon .favicon-preview {
|
|
|
|
float: left;
|
|
|
|
margin-right: 12px;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.customize-control-site_icon .app-icon-preview {
|
|
|
|
margin-top: 9px;
|
|
|
|
}
|
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 22:57:09 +01:00
|
|
|
|
|
|
|
.site-icon-section button.reset {
|
|
|
|
color: #b32d2e;
|
|
|
|
text-decoration: none;
|
|
|
|
border-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-icon-section button.reset:focus,
|
|
|
|
.site-icon-section button.reset:hover {
|
|
|
|
background: #b32d2e;
|
|
|
|
color: #fff;
|
|
|
|
border-color: #b32d2e;
|
|
|
|
box-shadow: 0 0 0 1px #b32d2e;
|
|
|
|
}
|
2024-02-13 14:09:07 +01:00
|
|
|
|
|
|
|
.site-icon-section .action-buttons {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 10px;
|
|
|
|
}
|