From 4012cbd7e314abfdd1f04aad3621dece412e4150 Mon Sep 17 00:00:00 2001 From: Holger Lindemann Date: Sat, 20 Mar 2010 20:08:08 +0100 Subject: [PATCH] Mobile Devices MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit menu.pl: 3. Grösse für Menüframe am.pl: 3. Auswahl CSS company_logo_*.html: Logo ausblenden --- bin/mozilla/am.pl | 2 +- bin/mozilla/menu.pl | 11 +- css/Mobile.css | 145 ++++++++++++++++++ templates/webpages/login/company_logo_de.html | 4 +- templates/webpages/login/company_logo_en.html | 4 +- .../webpages/login/company_logo_master.html | 4 +- 6 files changed, 162 insertions(+), 8 deletions(-) create mode 100644 css/Mobile.css diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index fe9199ef0..1700b754f 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -2743,7 +2743,7 @@ sub config { } $form->{STYLESHEETS} = []; - foreach my $item (qw(lx-office-erp.css Win2000.css)) { + foreach my $item (qw(lx-office-erp.css Win2000.css Mobile.css)) { push @{ $form->{STYLESHEETS} }, { 'name' => $item, 'value' => $item, diff --git a/bin/mozilla/menu.pl b/bin/mozilla/menu.pl index 27643486a..9d18c7ece 100644 --- a/bin/mozilla/menu.pl +++ b/bin/mozilla/menu.pl @@ -42,9 +42,18 @@ use URI; use strict; -my $framesize = ($ENV{HTTP_USER_AGENT} =~ /links/i) ? "240" : "190"; +my $framesize; my $mainlevel; +#my $framesize = ($ENV{HTTP_USER_AGENT} =~ /mobile/i) ? "130" : "190"; +if ($ENV{HTTP_USER_AGENT} =~ /mobile/i) { + $framesize = "130"; +} elsif ($ENV{HTTP_USER_AGENT} =~ /links/i) { + $framesize = "240"; +} else { + $framesize = "190"; +} + 1; # end of main diff --git a/css/Mobile.css b/css/Mobile.css new file mode 100644 index 000000000..01a4c00ac --- /dev/null +++ b/css/Mobile.css @@ -0,0 +1,145 @@ +/* stylesheet for LX-Office ERP +Getestet mit W3C CSS-Validator: +Keine Fehler oder Warnungen gefunden +*/ +A { font-size: 8pt; } +A:link { color: black; text-decoration: none; } +A:visited { color: black; text-decoration: none; } +A:active { color: black; text-decoration: underline; } +input:focus, textarea:focus, select:focus, option:focus { background-color: yellow; } +A.nohover:hover { + color:white; + background-color: #093280; + font-size: 8pt; + text-decoration: none; +} +A:hover { + color:white; + background-color: #093280; + font-size: 8pt; + text-decoration: none; +} +body { + font-family: Verdana, Arial, Helvetica; + font-size: 8pt; + background-color: #D4D0C8; + color: black +} +td { + font-family: Verdana, Arial, Helvetica; + color: black; + font-size: 8pt; + font-weight: normal; +} +th { + font-family: Verdana, Arial, Helvetica; + color: black; + font-size: 8pt; + font-weight: normal; +} +/* login and admin */ +.login { + font-family: Verdana, Arial, Helvetica; +} +body.login { + background: #b8d1f3; + color: #D4D0C8; +} +h1.login { + font-size: 11pt; +} +table.login { + background-color: #efedde; + padding: 10px; +} +td.login { + text-align: center; +} +th.login { + text-align: right; +} +body.admin { + background-color:#ffffff; + color: black; +} +body.menu { + background-color: white; + font-family: Verdana, Arial, Helvetica; + font-size:8pt; + color: black; +} +.listtop { + background-color: #b8d1f3; + text-align:left; + padding:5px; + font-size: 8pt; + color: black; + font-weight: bolder; + border-bottom: 2px solid #A5A29C; +} +.listheading { + font-size: 8pt; + padding:3px; + background-color: #b8d1f3; + color: black; + font-weight: bolder; + text-align:left; +} +.subsubheading { + color: black; + font-weight: bolder; + text-decoration: underline; +} +.optionen { + border:dashed; + border-width:1px; + background:#D4D0C8; +} +/* Bei Listen den Farbwechsel zur besseren Lesbarkeit: */ +.listrow1 { background-color: #C8D4C6; color: black; vertical-align: top; } +.listrow0 { background-color: white; color: black; vertical-align: top; } +.listsubtotal { border-top: 1px solid black; font-size: 8pt; background-color: #b8d1f3; color: black; font-weight: bolder;} +.listtotal { border-top: 1px double black; font-size: 8pt; background-color: #b8d1f3; color: black; font-weight: bolder;} +.submit { + font-size: 8pt; + font-family: Verdana, Arial, Helvetica; + color: #000000; +} +.checkbox, .radio { + font-family: Verdana, Arial, Helvetica; + color: #778899; +} +.plus0 { /* font color for negative numbers */ + color: red; +} +.plus1 { + color: green; +} +h2.confirm { + color: blue; + font-size: 10pt; +} +h2.error { + color: red; + font-size: 10pt; +} +/* media stuff */ +@media screen { + .noscreen { /* items with this class won't display */ + display: none; + } +} +@media print { + .noprint { /* items with this class won't print */ + display: none; + } +} + .nomobile { /* items with this class won't display */ + display: none; + } +@media handheld { + .nomobile { /* items with this class won't display */ + display: none; + } +} + diff --git a/templates/webpages/login/company_logo_de.html b/templates/webpages/login/company_logo_de.html index b157daa99..d02189617 100644 --- a/templates/webpages/login/company_logo_de.html +++ b/templates/webpages/login/company_logo_de.html @@ -2,7 +2,7 @@ [%- DEFAULT myconfig_dbhost = 'localhost' %]
- + @@ -34,7 +34,7 @@ - + http://lx-office.org diff --git a/templates/webpages/login/company_logo_en.html b/templates/webpages/login/company_logo_en.html index 09df3f2c9..ce60d87ac 100644 --- a/templates/webpages/login/company_logo_en.html +++ b/templates/webpages/login/company_logo_en.html @@ -2,7 +2,7 @@ [%- DEFAULT myconfig_dbhost = 'localhost' %]
- + @@ -34,7 +34,7 @@ - + http://lx-office.org diff --git a/templates/webpages/login/company_logo_master.html b/templates/webpages/login/company_logo_master.html index 64ad45ef6..e3cdf6c7e 100644 --- a/templates/webpages/login/company_logo_master.html +++ b/templates/webpages/login/company_logo_master.html @@ -2,7 +2,7 @@ [%- DEFAULT myconfig_dbhost = 'localhost' %]
- + @@ -34,7 +34,7 @@ - + http://lx-office.org -- 2.20.1