From 216aaeac17f4afdb7e4c465f6830c5ef42e1b1a4 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 15 Dec 2015 14:34:58 +0000 Subject: [PATCH] Mobile theme W.I.P.: - Implement listview template for resources --- resources/templates/mobile/show.xet | 113 ++++++++++++++++++++++++++ resources/templates/pixelegg/app.css | 21 +++++ resources/templates/pixelegg/app.less | 28 +++++++ 3 files changed, 162 insertions(+) create mode 100644 resources/templates/mobile/show.xet diff --git a/resources/templates/mobile/show.xet b/resources/templates/mobile/show.xet new file mode 100644 index 0000000000..2ae41d9071 --- /dev/null +++ b/resources/templates/mobile/show.xet @@ -0,0 +1,113 @@ + + + + + + + + diff --git a/resources/templates/pixelegg/app.css b/resources/templates/pixelegg/app.css index 0b6356106f..63e048aa67 100755 --- a/resources/templates/pixelegg/app.css +++ b/resources/templates/pixelegg/app.css @@ -75,3 +75,24 @@ div.resources_pictureFile div.progress { #resources-edit .et2_container { width: 848px; } +/* tablets and smartphones */ +@media only screen and (max-device-width: 1024px) { + #resources-show table.egwGridView_outer tbody img[id^="resources-show_"][id$="picture_thumb]"] { + border: 1px solid silver; + border-radius: 50%; + } + #resources-show table.egwGridView_outer tbody div.resourcesCol2 { + font-size: 8pt; + } + #resources-show table.egwGridView_outer tbody span[id^="resources-show_"][id$="name]"] { + font-weight: bold; + } + #resources-show table.egwGridView_outer tbody span[id^="resources-show_"][id$="name]"], + #resources-show table.egwGridView_outer tbody span[id^="resources-show_"][id$="short_description]"], + #resources-show table.egwGridView_outer tbody span[id^="resources-show_"][id$="accessory_of_label]"], + #resources-show table.egwGridView_outer tbody span[id^="resources-show_"][id$="accessories]"] { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + } +} diff --git a/resources/templates/pixelegg/app.less b/resources/templates/pixelegg/app.less index b056f677d6..9a549140b5 100755 --- a/resources/templates/pixelegg/app.less +++ b/resources/templates/pixelegg/app.less @@ -13,6 +13,7 @@ */ @import (reference) "../../../pixelegg/less/def_buttons.less"; +@import (reference) "../../../pixelegg/less/def_mobile.less"; @import (reference) "../../../pixelegg/less/def_design_pattern_color_font_shadow.less"; @@ -64,4 +65,31 @@ div.resources_pictureFile div.progress{ width:848px; } margin: 0.5em; +} + +/* tablets and smartphones */ +@media only screen and (max-device-width:1024px) { + #resources-show { + table.egwGridView_outer tbody { + img[id^="resources-show_"][id$="picture_thumb]"]{ + border: 1px solid silver; + border-radius: 50%; + } + div.resourcesCol2 { + .mob-fontsize-s; + } + span[id^="resources-show_"][id$="name]"]{ + font-weight: bold; + + } + span[id^="resources-show_"][id$="name]"], + span[id^="resources-show_"][id$="short_description]"], + span[id^="resources-show_"][id$="accessory_of_label]"], + span[id^="resources-show_"][id$="accessories]"]{ + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + } + } + } } \ No newline at end of file