Skip to content

Commit e2258bf

Browse files
committed
Use full width on small screens
Mobile devices are increasingly replacing the classic PC. So it is all the more important to make the theme and the administration area more accessible for today's mobile devices. - With a screen width of up to 768px, the full width is utilized. - The theme is no longer compressed vertically on small screens from 720px to 768px.
1 parent ff76513 commit e2258bf

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

fp-interface/themes/leggero/leggero-v2/res/admin.css

+14-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ Module: admin.css
1414
@import url(globals.css);
1515

1616
/* ===== VARIOUS ===== */
17-
@media screen and (max-device-width: 768px){
18-
#body-container {
19-
-webkit-text-size-adjust: none;
20-
-moz-text-size-adjust: none;
21-
text-size-adjust: none
22-
}
17+
@viewport {
18+
width: device-width
2319
}
2420

2521
.buttonbar input {
@@ -618,3 +614,15 @@ a.link-general:hover, .main-cell a:hover {
618614
form {
619615
margin: auto
620616
}
617+
618+
/* ===== Smartphone and Tablet ===== */
619+
@media screen and (max-device-width: 768px) {
620+
body { margin: 0 0 0 0; background: #eee }
621+
622+
#body-container {
623+
min-width: 100%;
624+
-webkit-text-size-adjust: none;
625+
-moz-text-size-adjust: none;
626+
text-size-adjust: none
627+
}
628+
}

fp-interface/themes/leggero/leggero-v2/res/common.css

+10
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,16 @@ h4 { font-size: 1.2em }
229229
max-width: 460px !IMPORTANT;
230230
width: 100%
231231
}
232+
233+
@media screen and (max-device-width: 768px) { /* Smartphone and Tablet */
234+
body { margin: 0 0 0 0 }
235+
236+
#body-container { max-width: 758px }
237+
238+
#main { width: 56% }
239+
240+
#column { width: 30% !IMPORTANT }
241+
}
232242
}
233243

234244
/* ===== RESPONSIVE DESIGN ===== */

0 commit comments

Comments
 (0)