This commit is contained in:
2026-04-22 13:20:32 +02:00
parent 94569539d7
commit 27fc4829e0
6 changed files with 142 additions and 250 deletions
+105
View File
@@ -99,3 +99,108 @@
#gpx_parse_status .spinner {
margin-top: -2px;
}
/* ==========================================================================
Material Design Styles dla Panelu Administracyjnego
========================================================================== */
/* Zmiana głównej czcionki i nagłówków w kontenerze wtyczki */
#wpbody-content { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.wrap h1, .wrap h2 { font-weight: 400; color: #202124; }
/* Material Cards (karty) */
.wrap .postbox, .wrap .wp-list-table {
border: none !important;
border-radius: 8px;
box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15) !important;
background: #fff;
}
.wrap .postbox-header { border-bottom: 1px solid #dadce0; }
.wrap .postbox-header h2 { font-weight: 500; font-size: 16px; color: #202124; }
/* Tabele danych */
.wrap .wp-list-table { overflow: hidden; border-spacing: 0; }
.wrap .wp-list-table thead th { background: #f8f9fa; font-weight: 500; text-transform: uppercase; font-size: 12px; color: #5f6368; border-bottom: 1px solid #dadce0; padding: 16px 12px; }
.wrap .wp-list-table tbody td { border-bottom: 1px solid #e8eaed; padding: 14px 12px; vertical-align: middle; color: #3c4043; font-size: 14px; }
.wrap .wp-list-table.striped>tbody>:nth-child(odd), .wrap .wp-list-table>tbody>:nth-child(odd) { background-color: #ffffff; }
.wrap .wp-list-table tbody tr:hover { background-color: #f1f3f4; }
/* Przyciski */
.wrap .button.button-primary {
background: #1a73e8 !important; /* Google Blue */
border: none !important;
border-radius: 4px !important;
box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15) !important;
color: #fff !important;
text-transform: uppercase;
font-weight: 500;
letter-spacing: 0.25px;
transition: all 0.2s;
text-shadow: none !important;
padding: 4px 16px !important;
}
.wrap .button.button-primary:hover, .wrap .button.button-primary:focus {
background: #174ea6 !important;
box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15) !important;
transform: translateY(-1px);
}
.wrap .button {
border-radius: 4px;
text-transform: uppercase;
font-weight: 500;
font-size: 13px;
border: 1px solid #dadce0 !important;
color: #1a73e8 !important;
background: transparent;
transition: all 0.2s;
box-shadow: none !important;
padding: 4px 16px;
}
.wrap .button:hover { background: #f8f9fa !important; border-color: #dadce0 !important; color: #174ea6 !important; }
.wrap .button-link-delete { color: #d93025 !important; border-color: #fce8e6 !important; background: #fce8e6 !important; }
.wrap .button-link-delete:hover { background: #fad2cf !important; border-color: #fad2cf !important; color: #b31412 !important; }
/* Pola formularzy (Inputs) */
.wrap .form-table th { font-weight: 500; color: #3c4043; }
.wrap input[type="text"], .wrap input[type="number"], .wrap input[type="date"], .wrap input[type="time"], .wrap select, .wrap textarea, .wrap input[type="url"] {
border: 1px solid #dadce0;
border-radius: 4px;
padding: 8px 12px;
box-shadow: none;
transition: border-color 0.2s, box-shadow 0.2s;
color: #202124;
font-size: 14px;
background: #fff;
}
.wrap input:focus, .wrap select:focus, .wrap textarea:focus {
border-color: #1a73e8;
box-shadow: inset 0 0 0 2px #1a73e8;
outline: none;
}
/* Zakładki (Tabs) */
.wrap .nav-tab-wrapper { border-bottom: 1px solid #dadce0; margin-bottom: 20px; padding-top: 10px; }
.wrap .nav-tab { border: none; background: transparent; font-weight: 500; text-transform: uppercase; color: #5f6368; padding: 12px 16px; margin: 0; font-size: 14px; }
.wrap .nav-tab:hover { background: #f1f3f4; color: #202124; }
.wrap .nav-tab-active, .wrap .nav-tab-active:hover { border-bottom: 3px solid #1a73e8; color: #1a73e8; background: transparent; }
/* Notyfikacje */
.wrap .notice { border-radius: 8px; border-left-width: 6px; box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3); border-color: #1a73e8; background: #fff; margin-bottom: 20px; }
.wrap .notice-success { border-color: #188038; }
.wrap .notice-error { border-color: #d93025; }
.wrap .notice-warning { border-color: #f9ab00; }
/* Paski postępu (Progress Bars) w Celach / Podsumowaniach */
.statpress-goals-list { list-style: none; margin: 0; padding: 0; }
.statpress-goal-item { margin-bottom: 15px; }
.statpress-goal-info { display: flex; justify-content: space-between; margin-bottom: 5px; }
.statpress-progress-bar-container { background: #e8eaed; border-radius: 10px; height: 20px; width: 100%; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); }
/* Wariant mały paska (używany np. na liście wpisów w celach) */
.statpress-progress-bar-container.small { height: 12px; margin-bottom: 4px; }
.statpress-progress-bar { background: #1a73e8; height: 100%; border-radius: 10px; transition: width 0.5s ease-in-out; text-align: center; color: white; font-size: 12px; line-height: 20px; font-weight: 500; }
.statpress-progress-bar-container.small .statpress-progress-bar { line-height: 12px; font-size: 0; }
/* Inne */
.wrap hr { border: 0; height: 1px; background: #dadce0; margin: 24px 0; }
+36 -96
View File
@@ -1,103 +1,43 @@
/* Styles for WordPress Activity Stats Plugin - Frontend Shortcodes */
/* Shortcode [statpress_summary] */
.statpress-shortcode-container table {
width: 100%;
border-collapse: collapse;
margin-bottom: 2em;
}
.statpress-shortcode-container th,
.statpress-shortcode-container td {
padding: 8px 12px;
border: 1px solid #ddd;
text-align: left;
}
.statpress-shortcode-container th {
background-color: #f4f4f4;
}
/* Globalne ustawienia frontendu MD */
.statpress-md-container { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.statpress-md-container h3 { color: #202124; font-weight: 400; margin: 24px 0 16px; font-size: 20px; }
.statpress-activity-table td:nth-child(4),
.statpress-activity-table td:nth-child(5) {
text-align: right;
}
/* Karty podsumowania */
.statpress-summary-cards { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.statpress-summary-card { background: #fff; border-radius: 8px; padding: 20px; flex: 1; min-width: 140px; box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15); border-left: 4px solid #1a73e8; }
.statpress-summary-card-title { font-size: 12px; color: #5f6368; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; letter-spacing: 0.5px; }
.statpress-summary-card-value { font-size: 28px; color: #202124; font-weight: 400; }
/* Styles for the nested details table */
.statpress-activity-details-row > .statpress-activity-details-cell {
padding: 0 !important;
border-top: none;
border-bottom: 1px solid #ddd;
}
/* Karty aktywności z listy */
.statpress-activity-list { display: flex; flex-direction: column; gap: 16px; }
.statpress-activity-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15); display: flex; padding: 16px 20px; align-items: center; flex-wrap: wrap; gap: 20px; transition: transform 0.2s, box-shadow 0.2s; }
.statpress-activity-card:hover { transform: translateY(-2px); box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15); }
.statpress-activity-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.statpress-activity-icon .material-icons { font-size: 24px; }
.statpress-activity-info { flex: 1; min-width: 200px; }
.statpress-activity-title { font-size: 16px; font-weight: 500; color: #202124; margin: 0 0 6px 0; line-height: 1.3; }
.statpress-activity-meta { font-size: 13px; color: #5f6368; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.statpress-activity-meta-dot { font-size: 8px; color: #dadce0; }
.statpress-activity-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.statpress-stat-item { display: flex; flex-direction: column; }
.statpress-stat-label { font-size: 11px; color: #5f6368; text-transform: uppercase; font-weight: 500; margin-bottom: 2px; }
.statpress-stat-value { font-size: 15px; color: #202124; font-weight: 500; }
.statpress-nested-details-table {
width: 100%;
margin: 0;
background-color: #fdfdfd;
border: none !important;
border-collapse: collapse;
}
/* Karta pojedynczej aktywności (Single) */
.statpress-single-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15); padding: 24px; margin-bottom: 24px; font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.statpress-single-header { border-bottom: 1px solid #e8eaed; padding-bottom: 16px; margin-bottom: 20px; }
.statpress-single-header h4 { margin: 0 0 8px 0; font-size: 22px; color: #202124; font-weight: 400; }
.statpress-single-header p { margin: 0; color: #5f6368; font-size: 14px; }
.statpress-single-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }
.statpress-single-data-item { display: flex; flex-direction: column; }
.statpress-single-data-label { font-size: 12px; color: #5f6368; text-transform: uppercase; font-weight: 500; margin-bottom: 4px; }
.statpress-single-data-value { font-size: 16px; color: #202124; font-weight: 500; }
.statpress-nested-details-table th,
.statpress-nested-details-table td {
border: none !important;
padding: 6px 12px;
text-align: center;
font-size: 0.9em;
width: 33.33%;
}
.statpress-nested-details-table th {
background-color: transparent;
font-weight: normal;
color: #777;
padding-top: 8px;
padding-bottom: 2px;
}
.statpress-nested-details-table td {
font-weight: bold;
padding-top: 0;
padding-bottom: 8px;
}
/* Shortcode [statpress_activity] */
.statpress-single-activity-shortcode {
border: 1px solid #eee;
padding: 15px;
margin-bottom: 1.5em;
border-radius: 5px;
background: #f9f9f9;
}
.statpress-single-activity-shortcode h4 {
margin-top: 0;
}
.statpress-single-activity-shortcode p em {
color: #777;
font-size: 0.9em;
}
.statpress-single-columns-container {
display: flex;
flex-wrap: wrap;
gap: 30px;
margin-bottom: 15px;
}
.statpress-single-col {
flex: 1;
min-width: 240px;
}
.statpress-single-summary-table {
width: 100%;
border-collapse: collapse;
}
.statpress-single-summary-table th,
.statpress-single-summary-table td {
padding: 4px 0;
border: none;
text-align: left;
vertical-align: top;
}
.statpress-single-summary-table th {
font-weight: bold;
padding-right: 1em;
white-space: nowrap;
width: 1%;
/* Responsywność frontendu */
@media (max-width: 600px) {
.statpress-activity-card { align-items: flex-start; padding: 16px; gap: 16px; }
.statpress-activity-stats { width: 100%; justify-content: space-between; border-top: 1px solid #f1f3f4; padding-top: 16px; margin-top: 4px; }
.statpress-summary-card { min-width: 100%; border-left: none; border-top: 4px solid #1a73e8; }
}