Skip to content

Commit

Permalink
style: breakpoint du widget sur mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ST0R committed Nov 25, 2024
1 parent d9aeb65 commit e4ea3dc
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion server/src/services/widget/templates/stats/default.1.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,20 @@
@media screen and (max-width: <%=options.responsiveWidth %>) {
:root {
--body-width: min(calc(var(--widget-width) * 0.8 / <%=maxEleves %>), 30px);
--body-width: 50px;
--body-height: calc(var(--body-width) * 1.8125);
--body-icon-width: calc(var(--body-width) * 0.4);
--body-icon-left: calc(var(--body-width) * 0.29);
--body-icon-top: calc(var(--body-width) * 0.5);
}
.body-group {
flex-wrap: wrap;
justify-content: normal;
}
.bodies {
display: flex;
align-items: flex-start;
Expand Down Expand Up @@ -333,6 +339,17 @@
height: 22px;
}
}
@media screen and (max-width: 19em) {
:root {
--body-width: 30px;
--body-height: calc(var(--body-width) * 1.8125);
--body-icon-width: calc(var(--body-width) * 0.4);
--body-icon-left: calc(var(--body-width) * 0.29);
--body-icon-top: calc(var(--body-width) * 0.5);
}
}
</style>
</head>
Expand Down

0 comments on commit e4ea3dc

Please sign in to comment.