You've already forked wc-licensed-product
Update frontend CSS to match Twenty Twenty-Five theme
- Use CSS custom properties matching theme.json design tokens - Apply theme color palette (base, contrast, accent colors) - Use Fira Code monospace font for code elements - Apply pill-shaped badges and buttons matching theme style - Add subtle hover effects and transitions - Improve responsive design breakpoints - Add backdrop blur to modal overlay Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,68 +1,112 @@
|
|||||||
/**
|
/**
|
||||||
* WC Licensed Product - Frontend Styles
|
* WC Licensed Product - Frontend Styles
|
||||||
|
* Designed to match Twenty Twenty-Five theme
|
||||||
*
|
*
|
||||||
* @package Jeremias\WcLicensedProduct
|
* @package Jeremias\WcLicensedProduct
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* License Status Badges */
|
/* ========================================
|
||||||
|
CSS Custom Properties (matching theme.json)
|
||||||
|
======================================== */
|
||||||
|
.woocommerce-licenses,
|
||||||
|
.wclp-modal {
|
||||||
|
--wclp-color-base: #FFFFFF;
|
||||||
|
--wclp-color-contrast: #111111;
|
||||||
|
--wclp-color-accent-4: #686868;
|
||||||
|
--wclp-color-accent-5: #FBFAF3;
|
||||||
|
--wclp-color-accent-6: color-mix(in srgb, currentColor 20%, transparent);
|
||||||
|
--wclp-font-family: inherit;
|
||||||
|
--wclp-font-family-mono: "Fira Code", monospace;
|
||||||
|
--wclp-font-size-small: 0.875rem;
|
||||||
|
--wclp-font-size-medium: 1rem;
|
||||||
|
--wclp-spacing-20: 10px;
|
||||||
|
--wclp-spacing-30: 20px;
|
||||||
|
--wclp-spacing-40: 30px;
|
||||||
|
--wclp-border-radius: 0.25rem;
|
||||||
|
--wclp-border-radius-pill: 3.125rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ========================================
|
||||||
|
License Status Badges
|
||||||
|
======================================== */
|
||||||
.license-status {
|
.license-status {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0.25em 0.6em;
|
padding: 0.35em 0.85em;
|
||||||
font-size: 0.85em;
|
font-size: var(--wclp-font-size-small);
|
||||||
font-weight: 600;
|
font-weight: 500;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
border-radius: 0.25rem;
|
border-radius: var(--wclp-border-radius-pill);
|
||||||
|
letter-spacing: 0.02em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-status-active {
|
.license-status-active {
|
||||||
background-color: #d4edda;
|
background-color: #e8f5e9;
|
||||||
color: #155724;
|
color: #2e7d32;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-status-inactive {
|
.license-status-inactive {
|
||||||
background-color: #fff3cd;
|
background-color: #fff8e1;
|
||||||
color: #856404;
|
color: #f57f17;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-status-expired {
|
.license-status-expired {
|
||||||
background-color: #f8d7da;
|
background-color: #ffebee;
|
||||||
color: #721c24;
|
color: #c62828;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-status-revoked {
|
.license-status-revoked {
|
||||||
background-color: #d6d8db;
|
background-color: var(--wclp-color-accent-5);
|
||||||
color: #383d41;
|
color: var(--wclp-color-accent-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* License Cards */
|
/* ========================================
|
||||||
|
License Cards Container
|
||||||
|
======================================== */
|
||||||
.woocommerce-licenses {
|
.woocommerce-licenses {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1.5em;
|
gap: var(--wclp-spacing-40);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.woocommerce-licenses > p:first-child:last-child {
|
||||||
|
color: var(--wclp-color-accent-4);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ========================================
|
||||||
|
License Card
|
||||||
|
======================================== */
|
||||||
.license-card {
|
.license-card {
|
||||||
border: 1px solid #e5e5e5;
|
border: 1px solid var(--wclp-color-accent-6);
|
||||||
border-radius: 8px;
|
border-radius: var(--wclp-border-radius);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: #fff;
|
background: var(--wclp-color-base);
|
||||||
|
transition: border-color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.license-card:hover {
|
||||||
|
border-color: color-mix(in srgb, currentColor 40%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* License Header */
|
||||||
.license-header {
|
.license-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 1em 1.5em;
|
padding: var(--wclp-spacing-30);
|
||||||
background: #f8f9fa;
|
background: var(--wclp-color-accent-5);
|
||||||
border-bottom: 1px solid #e5e5e5;
|
border-bottom: 1px solid var(--wclp-color-accent-6);
|
||||||
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-header h3 {
|
.license-header h3 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 1.1em;
|
font-size: var(--wclp-font-size-medium);
|
||||||
|
font-weight: 500;
|
||||||
|
letter-spacing: -0.1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-header h3 a {
|
.license-header h3 a {
|
||||||
@@ -74,48 +118,59 @@
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* License Details */
|
||||||
.license-details {
|
.license-details {
|
||||||
padding: 1.5em;
|
padding: var(--wclp-spacing-30);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* License Key Row */
|
||||||
.license-key-row {
|
.license-key-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.75em;
|
gap: 0.75rem;
|
||||||
margin-bottom: 1em;
|
margin-bottom: var(--wclp-spacing-30);
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-key-row label {
|
.license-key-row label {
|
||||||
font-weight: 600;
|
font-weight: 500;
|
||||||
|
font-size: var(--wclp-font-size-small);
|
||||||
|
color: var(--wclp-color-accent-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-key-row code {
|
.license-key-row code,
|
||||||
font-family: 'SF Mono', Monaco, Consolas, monospace;
|
.license-key {
|
||||||
background-color: #f5f5f5;
|
font-family: var(--wclp-font-family-mono);
|
||||||
padding: 0.4em 0.8em;
|
background-color: var(--wclp-color-accent-5);
|
||||||
border-radius: 4px;
|
padding: 0.5em 1em;
|
||||||
font-size: 1em;
|
border-radius: var(--wclp-border-radius);
|
||||||
|
font-size: var(--wclp-font-size-small);
|
||||||
|
font-weight: 400;
|
||||||
letter-spacing: 0.05em;
|
letter-spacing: 0.05em;
|
||||||
|
color: var(--wclp-color-contrast);
|
||||||
|
border: 1px solid var(--wclp-color-accent-6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Copy Button */
|
||||||
.copy-license-btn {
|
.copy-license-btn {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 32px;
|
width: 36px;
|
||||||
height: 32px;
|
height: 36px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: #f0f0f0;
|
background: var(--wclp-color-base);
|
||||||
border: 1px solid #ddd;
|
border: 1px solid var(--wclp-color-accent-6);
|
||||||
border-radius: 4px;
|
border-radius: var(--wclp-border-radius);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
|
color: var(--wclp-color-accent-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy-license-btn:hover {
|
.copy-license-btn:hover {
|
||||||
background: #e5e5e5;
|
background: var(--wclp-color-accent-5);
|
||||||
border-color: #ccc;
|
border-color: color-mix(in srgb, currentColor 40%, transparent);
|
||||||
|
color: var(--wclp-color-contrast);
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy-license-btn .dashicons {
|
.copy-license-btn .dashicons {
|
||||||
@@ -127,54 +182,75 @@
|
|||||||
.copy-feedback {
|
.copy-feedback {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 0.5em;
|
margin-left: 0.5em;
|
||||||
padding: 0.25em 0.5em;
|
padding: 0.35em 0.75em;
|
||||||
font-size: 0.85em;
|
font-size: var(--wclp-font-size-small);
|
||||||
border-radius: 3px;
|
border-radius: var(--wclp-border-radius-pill);
|
||||||
|
animation: fadeIn 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
from { opacity: 0; transform: translateY(-5px); }
|
||||||
|
to { opacity: 1; transform: translateY(0); }
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy-feedback.success {
|
.copy-feedback.success {
|
||||||
background: #d4edda;
|
background: #e8f5e9;
|
||||||
color: #155724;
|
color: #2e7d32;
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy-feedback.error {
|
.copy-feedback.error {
|
||||||
background: #f8d7da;
|
background: #ffebee;
|
||||||
color: #721c24;
|
color: #c62828;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* License Info Row */
|
||||||
.license-info-row {
|
.license-info-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 2em;
|
gap: 2rem;
|
||||||
color: #666;
|
color: var(--wclp-color-accent-4);
|
||||||
font-size: 0.95em;
|
font-size: var(--wclp-font-size-small);
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.license-info-row strong {
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--wclp-color-contrast);
|
||||||
|
}
|
||||||
|
|
||||||
.license-domain-display {
|
.license-domain-display {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5em;
|
gap: 0.75rem;
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Transfer Button */
|
.domain-value {
|
||||||
|
font-family: var(--wclp-font-family-mono);
|
||||||
|
font-size: var(--wclp-font-size-small);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ========================================
|
||||||
|
Transfer Button
|
||||||
|
======================================== */
|
||||||
.wclp-transfer-btn {
|
.wclp-transfer-btn {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.25em;
|
gap: 0.35em;
|
||||||
padding: 0.2em 0.6em;
|
padding: 0.4em 0.8em;
|
||||||
background: #f0f0f0;
|
background: var(--wclp-color-base);
|
||||||
border: 1px solid #ddd;
|
border: 1px solid var(--wclp-color-accent-6);
|
||||||
border-radius: 3px;
|
border-radius: var(--wclp-border-radius-pill);
|
||||||
font-size: 0.85em;
|
font-size: var(--wclp-font-size-small);
|
||||||
color: #555;
|
font-weight: 500;
|
||||||
|
color: var(--wclp-color-accent-4);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-transfer-btn:hover {
|
.wclp-transfer-btn:hover {
|
||||||
background: #e5e5e5;
|
background: var(--wclp-color-accent-5);
|
||||||
border-color: #ccc;
|
border-color: color-mix(in srgb, currentColor 40%, transparent);
|
||||||
color: #333;
|
color: var(--wclp-color-contrast);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-transfer-btn .dashicons {
|
.wclp-transfer-btn .dashicons {
|
||||||
@@ -183,17 +259,22 @@
|
|||||||
height: 14px;
|
height: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Download Section */
|
/* ========================================
|
||||||
|
Downloads Section
|
||||||
|
======================================== */
|
||||||
.license-downloads {
|
.license-downloads {
|
||||||
padding: 1em 1.5em;
|
padding: var(--wclp-spacing-30);
|
||||||
background: #f8f9fa;
|
background: var(--wclp-color-accent-5);
|
||||||
border-top: 1px solid #e5e5e5;
|
border-top: 1px solid var(--wclp-color-accent-6);
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-downloads h4 {
|
.license-downloads h4 {
|
||||||
margin: 0 0 0.75em 0;
|
margin: 0 0 var(--wclp-spacing-20) 0;
|
||||||
font-size: 0.95em;
|
font-size: var(--wclp-font-size-small);
|
||||||
color: #333;
|
font-weight: 500;
|
||||||
|
color: var(--wclp-color-contrast);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-list {
|
.download-list {
|
||||||
@@ -205,22 +286,29 @@
|
|||||||
.download-list li {
|
.download-list li {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 1em;
|
gap: 1rem;
|
||||||
padding: 0.5em 0;
|
padding: 0.75rem 0;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid var(--wclp-color-accent-6);
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-list li:last-child {
|
.download-list li:last-child {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-list li:first-child {
|
||||||
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-link {
|
.download-link {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5em;
|
gap: 0.5em;
|
||||||
color: #2271b1;
|
color: var(--wclp-color-contrast);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
font-size: var(--wclp-font-size-medium);
|
||||||
|
transition: color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-link:hover {
|
.download-link:hover {
|
||||||
@@ -228,94 +316,123 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.download-link .dashicons {
|
.download-link .dashicons {
|
||||||
font-size: 16px;
|
font-size: 18px;
|
||||||
width: 16px;
|
width: 18px;
|
||||||
height: 16px;
|
height: 18px;
|
||||||
|
color: var(--wclp-color-accent-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-version {
|
.download-version {
|
||||||
background: #e7f3ff;
|
background: var(--wclp-color-base);
|
||||||
padding: 0.2em 0.5em;
|
padding: 0.25em 0.65em;
|
||||||
border-radius: 3px;
|
border-radius: var(--wclp-border-radius-pill);
|
||||||
font-size: 0.85em;
|
font-size: var(--wclp-font-size-small);
|
||||||
color: #2271b1;
|
font-family: var(--wclp-font-family-mono);
|
||||||
|
color: var(--wclp-color-accent-4);
|
||||||
|
border: 1px solid var(--wclp-color-accent-6);
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-date {
|
.download-date {
|
||||||
color: #999;
|
color: var(--wclp-color-accent-4);
|
||||||
font-size: 0.85em;
|
font-size: var(--wclp-font-size-small);
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Domain Field */
|
/* ========================================
|
||||||
|
Domain Field at Checkout
|
||||||
|
======================================== */
|
||||||
#licensed-product-domain-field {
|
#licensed-product-domain-field {
|
||||||
margin-top: 2em;
|
margin-top: var(--wclp-spacing-40);
|
||||||
padding: 1.5em;
|
padding: var(--wclp-spacing-30);
|
||||||
background-color: #f8f9fa;
|
background-color: var(--wclp-color-accent-5);
|
||||||
border: 1px solid #e5e5e5;
|
border: 1px solid var(--wclp-color-accent-6);
|
||||||
border-radius: 4px;
|
border-radius: var(--wclp-border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
#licensed-product-domain-field h3 {
|
#licensed-product-domain-field h3 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 1em;
|
margin-bottom: var(--wclp-spacing-20);
|
||||||
font-size: 1.1em;
|
font-size: var(--wclp-font-size-medium);
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
#licensed-product-domain-field .description {
|
#licensed-product-domain-field .description {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
font-size: 0.9em;
|
font-size: var(--wclp-font-size-small);
|
||||||
color: #666;
|
color: var(--wclp-color-accent-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Legacy License Table (kept for backwards compatibility) */
|
#licensed-product-domain-field input[type="text"] {
|
||||||
|
border-radius: var(--wclp-border-radius);
|
||||||
|
border-color: var(--wclp-color-accent-6);
|
||||||
|
padding: 0.75em 1em;
|
||||||
|
font-size: var(--wclp-font-size-medium);
|
||||||
|
}
|
||||||
|
|
||||||
|
#licensed-product-domain-field input[type="text"]:focus {
|
||||||
|
border-color: var(--wclp-color-contrast);
|
||||||
|
outline: none;
|
||||||
|
box-shadow: 0 0 0 1px var(--wclp-color-contrast);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ========================================
|
||||||
|
Legacy Table (backwards compatibility)
|
||||||
|
======================================== */
|
||||||
.woocommerce-licenses-table {
|
.woocommerce-licenses-table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
|
font-size: var(--wclp-font-size-medium);
|
||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce-licenses-table th,
|
.woocommerce-licenses-table th,
|
||||||
.woocommerce-licenses-table td {
|
.woocommerce-licenses-table td {
|
||||||
padding: 0.75em;
|
padding: 0.75em;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border-bottom: 1px solid #e5e5e5;
|
border-bottom: 1px solid var(--wclp-color-accent-6);
|
||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce-licenses-table th {
|
.woocommerce-licenses-table th {
|
||||||
font-weight: 600;
|
font-weight: 500;
|
||||||
background-color: #f8f8f8;
|
background-color: var(--wclp-color-accent-5);
|
||||||
|
font-size: var(--wclp-font-size-small);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce-licenses-table code {
|
.woocommerce-licenses-table code {
|
||||||
font-family: monospace;
|
font-family: var(--wclp-font-family-mono);
|
||||||
background-color: #f5f5f5;
|
background-color: var(--wclp-color-accent-5);
|
||||||
padding: 0.2em 0.4em;
|
padding: 0.3em 0.6em;
|
||||||
border-radius: 3px;
|
border-radius: var(--wclp-border-radius);
|
||||||
font-size: 0.9em;
|
font-size: var(--wclp-font-size-small);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive */
|
/* ========================================
|
||||||
|
Responsive Design
|
||||||
|
======================================== */
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
.license-header {
|
.license-header {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
gap: 0.5em;
|
gap: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-key-row {
|
.license-key-row {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-info-row {
|
.license-info-row {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.5em;
|
gap: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-list li {
|
.download-list li {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-date {
|
.download-date {
|
||||||
@@ -339,14 +456,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce-licenses-table tr {
|
.woocommerce-licenses-table tr {
|
||||||
border: 1px solid #e5e5e5;
|
border: 1px solid var(--wclp-color-accent-6);
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
|
border-radius: var(--wclp-border-radius);
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce-licenses-table td {
|
.woocommerce-licenses-table td {
|
||||||
border: none;
|
border: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-left: 50%;
|
padding-left: 50%;
|
||||||
|
border-bottom: 1px solid var(--wclp-color-accent-6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.woocommerce-licenses-table td:last-child {
|
||||||
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce-licenses-table td:before {
|
.woocommerce-licenses-table td:before {
|
||||||
@@ -354,7 +478,9 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0.75em;
|
left: 0.75em;
|
||||||
width: 45%;
|
width: 45%;
|
||||||
font-weight: 600;
|
font-weight: 500;
|
||||||
|
font-size: var(--wclp-font-size-small);
|
||||||
|
color: var(--wclp-color-accent-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-domain-display {
|
.license-domain-display {
|
||||||
@@ -366,7 +492,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Transfer Modal */
|
/* ========================================
|
||||||
|
Transfer Modal
|
||||||
|
======================================== */
|
||||||
.wclp-modal {
|
.wclp-modal {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -385,66 +513,76 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: rgba(0, 0, 0, 0.5);
|
background: rgba(0, 0, 0, 0.4);
|
||||||
|
backdrop-filter: blur(2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-modal-content {
|
.wclp-modal-content {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #fff;
|
background: var(--wclp-color-base);
|
||||||
padding: 2em;
|
padding: var(--wclp-spacing-40);
|
||||||
border-radius: 8px;
|
border-radius: var(--wclp-border-radius);
|
||||||
max-width: 450px;
|
max-width: 450px;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
max-height: 90vh;
|
max-height: 90vh;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-modal-close {
|
.wclp-modal-close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0.5em;
|
top: var(--wclp-spacing-20);
|
||||||
right: 0.5em;
|
right: var(--wclp-spacing-20);
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #666;
|
color: var(--wclp-color-accent-4);
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
padding: 0.25em;
|
padding: 0.25em;
|
||||||
|
border-radius: var(--wclp-border-radius);
|
||||||
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-modal-close:hover {
|
.wclp-modal-close:hover {
|
||||||
color: #333;
|
color: var(--wclp-color-contrast);
|
||||||
|
background: var(--wclp-color-accent-5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-modal-content h3 {
|
.wclp-modal-content h3 {
|
||||||
margin: 0 0 1.5em 0;
|
margin: 0 0 var(--wclp-spacing-30) 0;
|
||||||
font-size: 1.25em;
|
font-size: 1.25rem;
|
||||||
|
font-weight: 500;
|
||||||
|
letter-spacing: -0.1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Form Styles */
|
||||||
.wclp-form-row {
|
.wclp-form-row {
|
||||||
margin-bottom: 1.5em;
|
margin-bottom: var(--wclp-spacing-30);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-form-row label {
|
.wclp-form-row label {
|
||||||
display: block;
|
display: block;
|
||||||
font-weight: 600;
|
font-weight: 500;
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
color: #333;
|
font-size: var(--wclp-font-size-small);
|
||||||
|
color: var(--wclp-color-contrast);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-form-row input[type="text"] {
|
.wclp-form-row input[type="text"] {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0.75em;
|
padding: 0.875em 1em;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid var(--wclp-color-accent-6);
|
||||||
border-radius: 4px;
|
border-radius: var(--wclp-border-radius);
|
||||||
font-size: 1em;
|
font-size: var(--wclp-font-size-medium);
|
||||||
|
font-family: inherit;
|
||||||
|
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-form-row input[type="text"]:focus {
|
.wclp-form-row input[type="text"]:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: #2271b1;
|
border-color: var(--wclp-color-contrast);
|
||||||
box-shadow: 0 0 0 1px #2271b1;
|
box-shadow: 0 0 0 1px var(--wclp-color-contrast);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-current-domain {
|
.wclp-current-domain {
|
||||||
@@ -452,33 +590,43 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wclp-current-domain code {
|
.wclp-current-domain code {
|
||||||
background: #f5f5f5;
|
font-family: var(--wclp-font-family-mono);
|
||||||
padding: 0.4em 0.8em;
|
background: var(--wclp-color-accent-5);
|
||||||
border-radius: 4px;
|
padding: 0.5em 1em;
|
||||||
font-size: 1em;
|
border-radius: var(--wclp-border-radius);
|
||||||
|
font-size: var(--wclp-font-size-medium);
|
||||||
|
border: 1px solid var(--wclp-color-accent-6);
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-field-description {
|
.wclp-field-description {
|
||||||
margin: 0.5em 0 0 0;
|
margin: 0.5em 0 0 0;
|
||||||
font-size: 0.85em;
|
font-size: var(--wclp-font-size-small);
|
||||||
color: #666;
|
color: var(--wclp-color-accent-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Form Actions */
|
||||||
.wclp-form-actions {
|
.wclp-form-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1em;
|
gap: 1rem;
|
||||||
margin-top: 2em;
|
margin-top: var(--wclp-spacing-40);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Primary Button - matches theme button style */
|
||||||
.wclp-btn-primary {
|
.wclp-btn-primary {
|
||||||
background: #2271b1 !important;
|
background: var(--wclp-color-contrast) !important;
|
||||||
border-color: #2271b1 !important;
|
border: none !important;
|
||||||
color: #fff !important;
|
color: var(--wclp-color-base) !important;
|
||||||
|
padding: 1rem 2.25rem !important;
|
||||||
|
border-radius: var(--wclp-border-radius) !important;
|
||||||
|
font-size: var(--wclp-font-size-medium) !important;
|
||||||
|
font-weight: 500 !important;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-btn-primary:hover {
|
.wclp-btn-primary:hover {
|
||||||
background: #135e96 !important;
|
background: color-mix(in srgb, var(--wclp-color-contrast) 85%, transparent) !important;
|
||||||
border-color: #135e96 !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-btn-primary:disabled {
|
.wclp-btn-primary:disabled {
|
||||||
@@ -486,21 +634,38 @@
|
|||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Secondary/Cancel Button - outline style */
|
||||||
|
.wclp-modal-cancel {
|
||||||
|
background: transparent !important;
|
||||||
|
border: 1px solid currentColor !important;
|
||||||
|
color: var(--wclp-color-contrast) !important;
|
||||||
|
padding: calc(1rem - 1px) calc(2.25rem - 1px) !important;
|
||||||
|
border-radius: var(--wclp-border-radius) !important;
|
||||||
|
font-size: var(--wclp-font-size-medium) !important;
|
||||||
|
font-weight: 500 !important;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wclp-modal-cancel:hover {
|
||||||
|
background: var(--wclp-color-accent-5) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Message Styles */
|
||||||
.wclp-message {
|
.wclp-message {
|
||||||
margin-top: 1em;
|
margin-top: var(--wclp-spacing-20);
|
||||||
padding: 0.75em 1em;
|
padding: 1em 1.25em;
|
||||||
border-radius: 4px;
|
border-radius: var(--wclp-border-radius);
|
||||||
font-size: 0.95em;
|
font-size: var(--wclp-font-size-small);
|
||||||
|
animation: fadeIn 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-message.success {
|
.wclp-message.success {
|
||||||
background: #d4edda;
|
background: #e8f5e9;
|
||||||
color: #155724;
|
color: #2e7d32;
|
||||||
border: 1px solid #c3e6cb;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.wclp-message.error {
|
.wclp-message.error {
|
||||||
background: #f8d7da;
|
background: #ffebee;
|
||||||
color: #721c24;
|
color: #c62828;
|
||||||
border: 1px solid #f5c6cb;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user