maher-tradingview-api
Version:
Tradingview instant stocks API, indicator alerts, trading bot, and more !
89 lines (76 loc) • 1.98 kB
CSS
/* أنماط إضافية للرسوم البيانية لتصحيح مشاكل العرض */
.chart-error {
border: 2px solid #e74c3c ;
position: relative;
}
.chart-error::before {
content: "لم يتم عرض الرسم البياني بشكل صحيح";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #e74c3c;
font-size: 12px;
background-color: rgba(255, 255, 255, 0.85);
padding: 3px 8px;
border-radius: 3px;
z-index: 1;
}
.retry-chart-btn {
background-color: #0088cc;
color: white;
border: none;
padding: 5px 10px;
border-radius: 3px;
margin-top: 5px;
cursor: pointer;
font-size: 12px;
display: block;
width: 100%;
}
.retry-chart-btn:hover {
background-color: #006699;
}
/* تحسين عرض الـ canvas */
canvas {
width: 100% ;
height: 100% ;
}
/* تحسين حاويات الرسم البياني */
.chart-container > div {
height: 400px;
width: 100%;
position: relative;
border: 1px solid #eee;
border-radius: 4px;
padding: 10px;
background-color: white;
}
/* تعديل حاويات المؤشرات الفنية */
.indicator-card canvas {
margin-top: 5px;
}
/* تحسين حاويات المؤشرات */
#price-indicators canvas,
#volume-indicators canvas,
#oscillators canvas,
#trend-indicators canvas {
min-height: 120px;
}
/* إضافة خلفية للـ canvas لسهولة الرؤية */
.chart-container canvas, .indicator-card canvas {
background-color: rgba(249, 249, 249, 0.5);
}
/* تعديلات لضمان ظهور الرسوم البيانية */
.indicator-content {
overflow: visible ;
}
/* تحسين توافق حجم الشاشة */
@media only screen and (max-width: 768px) {
.chart-container > div {
height: 300px;
}
.indicator-card > div {
height: 100px ;
}
}