Skip to content

Commit

Permalink
Update default.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Radanovn committed Jun 26, 2024
1 parent 5851e06 commit 9a701a9
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions userfiles/modules/marquee/templates/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

<?php $randId = md5($params['id']); ?>



<style>
#v-marquee-<?php echo $randId; ?>{
overflow: hidden;
Expand All @@ -25,7 +27,48 @@
font-style: <?php echo $textStyle; ?>;


}
@media only screen and (max-width: 1399px) {
#v-marquee-<?php echo $randId; ?> {
font-size: max(15px, <?php echo $fontSize * 0.8 ?>px);

}
}
@media only screen and (max-width: 1199px) {
#v-marquee-<?php echo $randId; ?> {
font-size: max(15px, <?php echo $fontSize * 0.65 ?>px);

}
}
@media only screen and (max-width: 991px) {
#v-marquee-<?php echo $randId; ?> {
font-size: max(15px, <?php echo $fontSize * 0.55 ?>px);

}
}
@media only screen and (max-width: 767px) {
#v-marquee-<?php echo $randId; ?> {
font-size: max(15px, <?php echo $fontSize * 0.45 ?>px);

}
}
@media only screen and (max-width: 575px) {
#v-marquee-<?php echo $randId; ?> {
font-size: max(15px, <?php echo $fontSize * 0.4 ?>px);

}
}
@media only screen and (max-width: 479px) {
#v-marquee-<?php echo $randId; ?> {
font-size: max(15px, <?php echo $fontSize * 0.3 ?>px);

}
}
@media only screen and (max-width: 375px) {
#v-marquee-<?php echo $randId; ?> {
font-size: max(15px, <?php echo $fontSize * 0.2 ?>px);

}
}
</style>

Expand Down

0 comments on commit 9a701a9

Please sign in to comment.