wp-plugin-swiss-football-ma.../assets/blocks.css
Reindl David (IT-PTR-CEN2-SL10) fbd595aa36 initial state
2026-03-18 19:58:24 +01:00

382 lines
6.5 KiB
CSS

/* Swiss Football Blocks Styles - Minimal */
/* Editor block wrapper - identifies blocks in editor */
.swi-foot-editor-block {
background-color: #f5f5f5;
border: 0.5px solid #d0d0d0;
padding: 20px;
margin: 20px 0;
border-radius: 4px;
}
/* Block container styles */
.swi-foot-standings,
.swi-foot-schedule,
.swi-foot-match-container {
margin: 20px 0;
padding: 20px;
border: 0.5px solid #d0d0d0;
border-radius: 4px;
background-color: #f5f5f5;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Table styles */
.swi-foot-table {
width: 100%;
border-collapse: collapse;
margin-top: 15px;
font-size: 14px;
}
.swi-foot-table th,
.swi-foot-table td {
padding: 10px 8px;
text-align: left;
border-bottom: 1px solid #eee;
}
.swi-foot-table th {
background-color: #f8f9fa;
font-weight: 600;
color: #495057;
border-bottom: 2px solid #dee2e6;
font-size: 13px;
text-transform: uppercase;
}
.swi-foot-table tr.highlight {
background-color: #fff3cd;
font-weight: 600;
}
/* Event item styles */
.swi-foot-event {
padding: 16px;
margin-bottom: 12px;
border: 1px solid #e9ecef;
border-left: 4px solid #007cba;
border-radius: 6px;
background-color: #fdfdfe;
}
.event-date {
font-weight: 600;
color: #495057;
font-size: 14px;
margin-bottom: 6px;
}
.event-teams {
font-size: 16px;
font-weight: 600;
margin: 8px 0;
color: #212529;
}
/* Match container - center aligned */
.swi-foot-match-container {
text-align: center;
max-width: 450px;
margin: 20px auto;
}
.match-teams {
font-size: 20px;
font-weight: 700;
margin-bottom: 16px;
color: #212529;
}
.match-teams .vs {
margin: 0 15px;
color: #6c757d;
font-weight: 400;
}
.match-date {
font-size: 16px;
color: #495057;
font-weight: 500;
}
.match-score {
font-size: 28px;
font-weight: 800;
color: #007cba;
margin: 15px 0;
padding: 12px 16px;
border-radius: 8px;
display: inline-block;
}
.match-status {
font-size: 12px;
padding: 6px 12px;
border-radius: 15px;
background-color: #e7f3ff;
color: #007cba;
font-weight: 600;
}
/* Inline shortcodes */
.swi-foot-inline {
display: inline;
}
.swi-foot-inline.home-team,
.swi-foot-inline.away-team {
font-weight: 600;
color: #007cba;
}
.swi-foot-inline.score {
font-weight: 700;
color: #007cba;
}
.swi-foot-inline.status {
background: #007cba;
color: white;
padding: 2px 8px;
border-radius: 4px;
font-weight: 600;
}
/* Error messages */
.swi-foot-error {
color: #721c24;
padding: 12px 16px;
background-color: #f8d7da;
border: 1px solid #f5c6cb;
border-radius: 6px;
margin: 15px 0;
font-weight: 500;
}
/* Responsive design */
@media (max-width: 768px) {
.swi-foot-table {
font-size: 12px;
}
.swi-foot-table th,
.swi-foot-table td {
padding: 6px 4px;
}
.swi-foot-table th:nth-child(n+6),
.swi-foot-table td:nth-child(n+6) {
display: none;
}
}
@media (max-width: 480px) {
.swi-foot-table th:nth-child(n+4),
.swi-foot-table td:nth-child(n+4) {
display: none;
}
}
/* Enhanced Events Display Styles */
.swi-foot-events {
margin: 20px 0;
padding: 20px;
background-color: #fafafa;
border: 1px solid #e0e0e0;
border-radius: 6px;
}
.swi-foot-events h3 {
margin-top: 0;
margin-bottom: 20px;
font-size: 18px;
font-weight: 600;
color: #333;
}
.events-timeline {
display: flex;
flex-direction: column;
gap: 12px;
}
.event-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 12px;
background-color: white;
border-left: 4px solid #007cba;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
transition: box-shadow 0.2s ease;
}
.event-item:hover {
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.event-minute {
display: flex;
align-items: center;
justify-content: center;
min-width: 70px;
padding: 8px 10px;
background-color: #f0f6ff;
border-radius: 4px;
font-weight: 600;
color: #007cba;
font-size: 16px;
white-space: nowrap;
}
.minute-time {
display: flex;
align-items: center;
gap: 4px;
letter-spacing: 0.5px;
}
.event-main {
flex: 1;
display: flex;
flex-direction: column;
gap: 8px;
}
.event-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
}
.event-type-info {
flex: 1;
min-width: 150px;
}
.event-type {
font-size: 15px;
color: #222;
}
.event-subtype {
font-size: 13px;
color: #666;
font-weight: normal;
}
.team-logo {
display: flex;
align-items: center;
justify-content: center;
min-width: 50px;
height: 50px;
background-color: #f5f5f5;
border-radius: 4px;
overflow: hidden;
}
.team-logo img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
padding: 2px;
}
.team-name-fallback {
display: inline-block;
padding: 4px 8px;
font-size: 11px;
font-weight: 600;
color: #666;
background-color: #e8e8e8;
border-radius: 3px;
white-space: nowrap;
}
.event-details {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 12px;
font-size: 13px;
color: #555;
}
.player-info {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
background-color: #f0f0f0;
border-radius: 3px;
}
.substitute-info {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
background-color: #fff3cd;
border-radius: 3px;
color: #856404;
}
/* Team Logo Shortcodes */
.swi-foot-team-logo {
max-width: 120px;
max-height: 120px;
height: auto;
object-fit: contain;
border-radius: 4px;
}
.swi-foot-team-logo.home-team {
margin-right: 10px;
}
.swi-foot-team-logo.away-team {
margin-left: 10px;
}
/* Responsive Design for Events */
@media (max-width: 768px) {
.event-item {
flex-wrap: wrap;
}
.event-header {
width: 100%;
}
.team-logo {
order: -1;
margin-bottom: 8px;
}
.minute-time {
font-size: 14px;
}
}
@media (max-width: 480px) {
.event-minute {
min-width: 60px;
font-size: 14px;
}
.event-details {
font-size: 12px;
gap: 8px;
}
.swi-foot-team-logo {
max-width: 80px;
max-height: 80px;
}
}