Skip to content

Commit 0b1e300

Browse files
调整示例页不同尺寸下的示例个数。review by zhurch
1 parent 562dd4d commit 0b1e300

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

examples/css/examples.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ h3.category-title {
2424
margin-bottom: 0;
2525
}
2626

27-
/*.category-content {
28-
margin-left: 30px;
29-
}*/
27+
@media (min-width: 1400px) {
28+
.col-xlg-2 {
29+
width: 16.66666667%;
30+
}
31+
}
3032

3133
#charts-list .chart {
3234
width: 100%;

examples/js/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function createGalleryChart(example) {
8585
href = example.fileName ? example.fileName : "",
8686
thumbnail = example.thumbnail ? thumbLocation + "/img/" + example.thumbnail : "";
8787

88-
var chartDiv = $("<div class='col-lg-2 col-md-4 col-sm-6'></div>");
88+
var chartDiv = $("<div class='col-xlg-2 col-lg-3 col-md-4 col-sm-6 col-xs-12'></div>");
8989
var chart = $("<div class='chart'></div>");
9090
var link = $("<a class='chart-link' target='_blank' href='" + target + "#" + href + "'></a>");
9191
var chartTitle = $("<h5 class='chart-title'>" + title + "</h5>");

0 commit comments

Comments
 (0)