| 1 |
/** |
| 2 |
* Performance Tab Styles |
| 3 |
* |
| 4 |
* Styles for Chart.js performance charts and layout |
| 5 |
* |
| 6 |
* @package ThinkRank |
| 7 |
* @since 1.0.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
// Performance charts - Chart stats styling with higher specificity |
| 11 |
.components-card .thinkrank-chart-stats { |
| 12 |
display: flex !important; |
| 13 |
justify-content: space-between !important; |
| 14 |
align-items: center !important; |
| 15 |
margin-top: 16px !important; |
| 16 |
padding-top: 16px !important; |
| 17 |
border-top: 1px solid #e0e0e0 !important; |
| 18 |
|
| 19 |
.thinkrank-current-value { |
| 20 |
font-size: 1.5rem !important; |
| 21 |
font-weight: 600 !important; |
| 22 |
color: #1f2937 !important; |
| 23 |
line-height: 1.2 !important; |
| 24 |
} |
| 25 |
|
| 26 |
.thinkrank-current-label { |
| 27 |
font-size: 0.875rem !important; |
| 28 |
color: #6b7280 !important; |
| 29 |
margin-top: 4px !important; |
| 30 |
} |
| 31 |
|
| 32 |
.thinkrank-trend { |
| 33 |
text-align: right !important; |
| 34 |
} |
| 35 |
|
| 36 |
.thinkrank-trend-value { |
| 37 |
font-size: 0.875rem !important; |
| 38 |
font-weight: 500 !important; |
| 39 |
line-height: 1.2 !important; |
| 40 |
|
| 41 |
&.status-good { |
| 42 |
color: #22c55e !important; |
| 43 |
} |
| 44 |
|
| 45 |
&.status-poor { |
| 46 |
color: #ef4444 !important; |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
.thinkrank-trend-label { |
| 51 |
font-size: 0.75rem !important; |
| 52 |
color: #6b7280 !important; |
| 53 |
margin-top: 2px !important; |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
// Chart container styling |
| 58 |
.thinkrank-chart-container { |
| 59 |
margin-bottom: 16px; |
| 60 |
border-radius: 8px; |
| 61 |
overflow: hidden; |
| 62 |
} |
| 63 |
|
| 64 |
// Performance status indicators |
| 65 |
.thinkrank-performance-status { |
| 66 |
display: inline-flex; |
| 67 |
align-items: center; |
| 68 |
padding: 4px 8px; |
| 69 |
border-radius: 4px; |
| 70 |
font-size: 12px; |
| 71 |
font-weight: 500; |
| 72 |
|
| 73 |
&.status-good { |
| 74 |
background-color: #e8f5e8; |
| 75 |
color: #34a853; |
| 76 |
} |
| 77 |
|
| 78 |
&.status-needs-improvement { |
| 79 |
background-color: #fef7e0; |
| 80 |
color: #fbbc04; |
| 81 |
} |
| 82 |
|
| 83 |
&.status-poor { |
| 84 |
background-color: #fce8e6; |
| 85 |
color: #ea4335; |
| 86 |
} |
| 87 |
} |
| 88 |
|
| 89 |
// Chart.js custom styles |
| 90 |
.thinkrank-performance-chart { |
| 91 |
canvas { |
| 92 |
border-radius: 8px; |
| 93 |
} |
| 94 |
} |
| 95 |
|
| 96 |
// Performance monitoring section |
| 97 |
.thinkrank-performance-monitoring { |
| 98 |
.thinkrank-monitoring-grid { |
| 99 |
display: grid; |
| 100 |
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); |
| 101 |
gap: 16px; |
| 102 |
|
| 103 |
@media (max-width: 768px) { |
| 104 |
grid-template-columns: 1fr; |
| 105 |
} |
| 106 |
} |
| 107 |
|
| 108 |
.thinkrank-monitoring-item { |
| 109 |
padding: 16px; |
| 110 |
background: #f9f9f9; |
| 111 |
border-radius: 8px; |
| 112 |
border-left: 4px solid #0073aa; |
| 113 |
|
| 114 |
h4 { |
| 115 |
margin: 0 0 8px 0; |
| 116 |
font-size: 14px; |
| 117 |
font-weight: 600; |
| 118 |
color: #1e1e1e; |
| 119 |
} |
| 120 |
|
| 121 |
.thinkrank-monitoring-list { |
| 122 |
list-style: none; |
| 123 |
margin: 0; |
| 124 |
padding: 0; |
| 125 |
|
| 126 |
li { |
| 127 |
font-size: 14px; |
| 128 |
margin-bottom: 4px; |
| 129 |
display: flex; |
| 130 |
align-items: center; |
| 131 |
|
| 132 |
&:before { |
| 133 |
content: '� |
| 134 |
'; |
| 135 |
margin-right: 8px; |
| 136 |
} |
| 137 |
|
| 138 |
&.warning:before { |
| 139 |
content: '⚠️'; |
| 140 |
} |
| 141 |
|
| 142 |
&.error:before { |
| 143 |
content: '❌'; |
| 144 |
} |
| 145 |
} |
| 146 |
} |
| 147 |
} |
| 148 |
} |
| 149 |
|
| 150 |
// Performance recommendations |
| 151 |
.thinkrank-performance-recommendations { |
| 152 |
.thinkrank-recommendation-item { |
| 153 |
padding: 12px 16px; |
| 154 |
margin-bottom: 8px; |
| 155 |
background: #fff; |
| 156 |
border: 1px solid #e0e0e0; |
| 157 |
border-radius: 6px; |
| 158 |
border-left: 4px solid #0073aa; |
| 159 |
|
| 160 |
&.priority-high { |
| 161 |
border-left-color: #ea4335; |
| 162 |
} |
| 163 |
|
| 164 |
&.priority-medium { |
| 165 |
border-left-color: #fbbc04; |
| 166 |
} |
| 167 |
|
| 168 |
&.priority-low { |
| 169 |
border-left-color: #34a853; |
| 170 |
} |
| 171 |
|
| 172 |
.thinkrank-recommendation-title { |
| 173 |
font-weight: 600; |
| 174 |
margin-bottom: 4px; |
| 175 |
color: #1e1e1e; |
| 176 |
} |
| 177 |
|
| 178 |
.thinkrank-recommendation-description { |
| 179 |
font-size: 14px; |
| 180 |
color: #666; |
| 181 |
line-height: 1.4; |
| 182 |
} |
| 183 |
} |
| 184 |
} |
| 185 |
|