Ich habe mal eine generelle Frage zu den Maßen des Templates. Zum Beispiel ist im Admin eine Breite der linken und rechten Sideboxes mit 150 Pixel angegeben, die tatsächliche Spaltenbreite ist aber 188 Pixel auf dem Desktop. Ich habe den Wert aus den Boxüberschriften, die ja farbig unterlegt sind. Deshalb meine Frage, ob die Breite der linken und rechten Spalte sowie des Hauptfensters irgendwo festgelegt ist, und die Einstellungen im Layout nur einen ungefähren Wert darstellen. Das Ganze ist nur für die Darstellung am Desktop interessant, auf mobilen Geräten sind ja die Sideboxes ausgesperrt und die Darstellung dadurch eine andere. Wäre schön, wenn bei Gelegenheit eine Info dazu käme, hat aber keine Eile.
Ankündigung
Einklappen
Keine Ankündigung bisher.
Generelle Frage zu dem Maßen im Template
Einklappen
X
-
Das responsive_classic Template berechnet eigene Breiten für die linke und rechte Spalte, um sie bei Bedarf an unterschiedliche Desktopauflösungen anpassen zu können. Und dadurch auch den mittleren Bereich dynamisch zu berechnen.
includes/templates/responsive_classic/common/tpl_main_page.php
Code:if ($flag_disable_right or COLUMN_RIGHT_STATUS == '0') { $box_width_right = preg_replace('/[^0-9]/', '', '0'); $box_width_right_new = ''; } else { $box_width_right = COLUMN_WIDTH_RIGHT; $box_width_right = preg_replace('/[^0-9]/', '', $box_width_right); $box_width_right_new = 'col' . $box_width_right; } if ($flag_disable_left or COLUMN_LEFT_STATUS == '0') { $box_width_left = preg_replace('/[^0-9]/', '', '0'); $box_width_left_new = ''; } else { $box_width_left = COLUMN_WIDTH_LEFT; $box_width_left = preg_replace('/[^0-9]/', '', $box_width_left); $box_width_left_new = 'col' . $box_width_left; }
Die werden dann in includes/templates/responsive_classic/css/responsive.css definiert:
Code:/* No reason to edit the below pixel calculations */ [class*="col"]{float:left;margin-left:5px;} .col10{width:10px;}.col20{width:25px;}.col30{width:40px;}.col40{width:55px;}.col50{width:70px;}.col60{width:85px;}.col70{width:100px;}.col80{width:115px;}.col90{width:130px;}.col100{width:145px;}.col110{width:160px;}.col120{width:175px;}.col130{width:190px;}.col140{width:205px;}.col150{width:220px;}.col160{width:235px;}.col170{width:250px;}.col180{width:265px;}.col190{width:280px;}.col200{width:295px;}.col210{width:310px;}.col220{width:325px;}.col230{width:340px;}.col240{width:355px;}.col250{width:370px;}.col260{width:385px;}.col270{width:400px;}.col280{width:415px;}.col290{width:430px;}.col300{width:445px;}.col310{width:460px;}.col320{width:475px;}.col330{width:490px;}.col340{width:505px;}.col350{width:520px;}.col360{width:535px;}.col370{width:550px;}.col380{width:565px;}.col390{width:580px;}.col400{width:595px;}.col410{width:610px;}.col420{width:625px;}.col430{width:640px;}.col440{width:655px;}.col450{width:670px;}.col460{width:685px;}.col470{width:700px;}.col480{width:715px;}.col490{width:730px;}.col500{width:745px;}.col510{width:760px;}.col520{width:775px;}.col530{width:790px;}.col540{width:805px;}.col550{width:820px;}.col560{width:835px;}.col570{width:850px;}.col580{width:865px;}.col590{width:880px;}.col600{width:895px;}.col610{width:910px;}.col620{width:925px;}.col630{width:940px;}.col640{width:955px;}.col650{width:970px;}.col660{width:985px;}.col670{width:1000px;}.col680{width:1015px;}.col690{width:1030px;}.col700{width:1045px;}.col710{width:1060px;}.col720{width:1075px;}.col730{width:1090px;}.col740{width:1105px;}.col750{width:1120px;}.col760{width:1135px;}.col770{width:1150px;}.col780{width:1165px;}.col790{width:1180px;}.col800{width:1195px;}.col810{width:1210px;}.col820{width:1225px;}.col830{width:1240px;}.col840{width:1255px;}.col850{width:1270px;}.col860{width:1285px;}.col870{width:1300px;}.col880{width:1315px;}.col890{width:1330px;}.col900{width:1345px;}.col910{width:1360px;}.col920{width:1375px;}.col930{width:1390px;}.col940{width:1405px;}.col950{width:1420px;}.col960{width:1435px;}.col970{width:1450px;}.col980{width:1465px;}
Kommentar