Template:Pie chart/styles.css: Difference between revisions

From IxWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
.pie-chart-wrapper {
.pie-chart-wrapper {
    float: right;
    clear: right;
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
     width: auto;
     width: auto;
     max-width: 100%;
     max-width: 100%;
}
.pie-chart-wrapper.tright {
    float: right;
    clear: right;
}
.pie-chart-wrapper.tleft {
    float: left;
    clear: left;
    margin: 0 1em 1em 0;
}
}


Line 17: Line 26:


/* Ensure text wraps around the chart */
/* Ensure text wraps around the chart */
.mw-content-ltr .pie-chart-wrapper {
.mw-content-ltr .pie-chart-wrapper.tright {
     clear: right;
     clear: right;
}
.mw-content-ltr .pie-chart-wrapper.tleft {
    clear: left;
}
}



Revision as of 16:10, 31 July 2024

.pie-chart-wrapper {
    margin: 0 0 1em 1em;
    width: auto;
    max-width: 100%;
}

.pie-chart-wrapper.tright {
    float: right;
    clear: right;
}

.pie-chart-wrapper.tleft {
    float: left;
    clear: left;
    margin: 0 1em 1em 0;
}

.PieChartTemplate {
    display: inline-block;
    vertical-align: top;
}

.thumbcaption {
    text-align: left;
}

/* Ensure text wraps around the chart */
.mw-content-ltr .pie-chart-wrapper.tright {
    clear: right;
}

.mw-content-ltr .pie-chart-wrapper.tleft {
    clear: left;
}

/* For better responsiveness */
@media (max-width: 600px) {
    .pie-chart-wrapper {
        float: none;
        margin: 1em auto;
        text-align: center;
    }
}