You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
2.0 KiB
109 lines
2.0 KiB
/**
|
|
* Black Maps Block Styles
|
|
* WordPress标准地图区块样式文件
|
|
*/
|
|
|
|
.black-maps-wrapper {
|
|
background-size: 100% 100%;
|
|
background-color: #f5f5f5;
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100vh;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
|
|
.black-maps-container {
|
|
width: 100%;
|
|
height: 100vh;
|
|
position: relative;
|
|
}
|
|
|
|
#echartsMap {
|
|
width: 100%;
|
|
height: 100vh;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.black-maps-wrapper,
|
|
.black-maps-container,
|
|
#echartsMap {
|
|
height: 60vh;
|
|
min-height: 400px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.black-maps-wrapper,
|
|
.black-maps-container,
|
|
#echartsMap {
|
|
height: 50vh;
|
|
min-height: 350px;
|
|
}
|
|
}
|
|
|
|
/* 加载状态样式 */
|
|
.black-maps-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
font-size: 16px;
|
|
color: #666;
|
|
}
|
|
|
|
.black-maps-loading::after {
|
|
content: '';
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-left: 10px;
|
|
border: 2px solid #f3f3f3;
|
|
border-top: 2px solid #3498db;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* 错误状态样式 */
|
|
.black-maps-error {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
font-size: 16px;
|
|
color: #e74c3c;
|
|
text-align: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* 自定义器预览模式样式 */
|
|
.customize-preview .black-maps-wrapper {
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* 地图标题样式覆盖 */
|
|
.black-maps-wrapper .echarts-title {
|
|
font-family: inherit;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 地图工具提示样式 */
|
|
.black-maps-wrapper .echarts-tooltip {
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
border: none;
|
|
border-radius: 4px;
|
|
color: #fff;
|
|
font-size: 12px;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
/* 确保地图容器不会溢出 */
|
|
.black-maps-wrapper * {
|
|
box-sizing: border-box;
|
|
} |