Files
WPS3Media/assets/css/media.css
Malin 3248cbb029 feat: add S3-compatible storage provider (MinIO, Ceph, R2, etc.)
Adds a new 'S3-Compatible Storage' provider that works with any
S3-API-compatible object storage service, including MinIO, Ceph,
Cloudflare R2, Backblaze B2, and others.

Changes:
- New provider class: classes/providers/storage/s3-compatible-provider.php
  - Provider key: s3compatible
  - Reads user-configured endpoint URL from settings
  - Uses path-style URL access (required by most S3-compatible services)
  - Supports credentials via AS3CF_S3COMPAT_ACCESS_KEY_ID /
    AS3CF_S3COMPAT_SECRET_ACCESS_KEY wp-config.php constants
  - Disables AWS-specific features (Block Public Access, Object Ownership)
- New provider SVG icons (s3compatible.svg, -link.svg, -round.svg)
- Registered provider in main plugin class with endpoint setting support
- Updated StorageProviderSubPage to show endpoint URL input for S3-compatible
- Built pro settings bundle with rollup (Svelte 4.2.19)
- Added package.json and updated rollup.config.mjs for pro-only builds
2026-03-03 12:30:18 +01:00

129 lines
3.3 KiB
CSS

body.as3cf-pro .media-toolbar-mode-select {
overflow: visible;
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary {
max-width: 100%;
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons {
margin-right: 10px;
position: relative;
display: none !important;
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons.visible {
display: inline-block !important;
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons .button {
margin: 0;
text-align: left;
}
@media screen and (max-width: 782px) {
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons .button {
min-height: 40px;
}
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons__action-default {
width: calc(100% - 32px);
position: relative;
z-index: 2;
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons__toggle {
width: 32px;
position: relative;
border-left: 1px solid rgba(255, 255, 255, 0.2);
z-index: 2;
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons__toggle:focus {
box-shadow: none;
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons__toggle::after {
content: "";
display: inline-block;
width: 0;
height: 0;
vertical-align: 0.255em;
border-top: 0.3em solid;
border-right: 0.3em solid transparent;
border-bottom: 0;
border-left: 0.3em solid transparent;
transition: 0.2s all ease;
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons__toggle.opened::after {
transform: rotate(180deg);
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons__submenu {
position: absolute;
left: 0;
top: 0;
z-index: 1;
transform: translateY(33px);
border-radius: 3px;
overflow: hidden;
box-shadow: 0 2px 5px 2px rgba(0, 0, 0, 0.3);
}
@media screen and (max-width: 782px) {
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons__submenu {
transform: translateY(41px);
}
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons__action {
display: block;
width: 100%;
margin: 0;
border-radius: 0;
text-align-last: left;
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons__action:last-child {
border: none;
}
body.as3cf-pro .attachments-browser .media-toolbar-secondary .offload-buttons__action:focus {
box-shadow: none;
}
.as3cfpro_remove a.local-warning {
color: #a00;
}
.as3cfpro_remove a.local-warning:hover {
color: #f00;
text-decoration: none;
border: none;
}
.media-modal a.local-warning {
color: #bc0b0b;
}
.media-modal a.local-warning:hover {
color: red;
}
.attachment-info .attachment-s3-details {
font-weight: bold;
margin-bottom: 5px;
}
.table-view-list.media th.column-as3cf_bucket {
width: 11%;
}
.table-view-list.media th.column-as3cf_access {
width: 8%;
}
.table-view-list.media .row-actions span.as3cf-warning:before {
background: url(../img/icon/error.svg) no-repeat;
background-size: 18px;
content: "";
display: block;
width: 18px;
height: 18px;
margin: 1px 1px 0 -3px;
float: left;
}
.table-view-list.media .row-actions span.as3cf-warning {
color: #50575e;
}
/*# sourceMappingURL=media.css.map */