From a0251a262a3fa3ecf68360d72e52450b8b0c2d73 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 3 Feb 2017 15:34:09 +0100 Subject: [PATCH] The demo has its own CSS file. --- htdocs/public/demo/demo.css | 113 ++++++++++++++++++++++++++++++++ htdocs/public/demo/index.php | 58 +--------------- htdocs/theme/eldy/style.css.php | 51 -------------- htdocs/theme/md/style.css.php | 20 ------ 4 files changed, 115 insertions(+), 127 deletions(-) create mode 100644 htdocs/public/demo/demo.css diff --git a/htdocs/public/demo/demo.css b/htdocs/public/demo/demo.css new file mode 100644 index 00000000000..486096ccdfa --- /dev/null +++ b/htdocs/public/demo/demo.css @@ -0,0 +1,113 @@ + +/* ============================================================================== */ +/* Demo */ +/* ============================================================================== */ + + +.CTable { + padding: 6px; + font-weight: normal; + color: #444444 !important; + + margin: 8px 0px 8px 2px; + + /*border: 1px solid #bbb; + border-radius: 8px; + -moz-border-radius: 8px;*/ + + background: -webkit-linear-gradient(bottom, rgb(255,255,255) 85%, rgb(255,255,255) 100%); +} +.csscolumns { + margin-top: 6px; + -webkit-column-count: 4; /* Chrome, Safari, Opera */ + -moz-column-count: 4; /* Firefox */ + column-count: 3; + text-align: left; +} +.demomaxoveflow { + max-width: 100px; + overflow: hidden; + text-overflow: ellipsis; +} +@media only screen and (max-width: 840px) +{ + .csscolumns { + -webkit-column-count: 3; /* Chrome, Safari, Opera */ + -moz-column-count: 3; /* Firefox */ + column-count: 3; + text-align: left; + } +} +@media only screen and (max-width: 640px) +{ + .csscolumns { + -webkit-column-count: 2; /* Chrome, Safari, Opera */ + -moz-column-count: 2; /* Firefox */ + column-count: 2; + text-align: left; + } +} +@media only screen and (max-width: 420px) +{ + .csscolumns { + -webkit-column-count: 1; /* Chrome, Safari, Opera */ + -moz-column-count: 1; /* Firefox */ + column-count: 1; + text-align: left; + } +} + + +/* For demo pages */ +.demobody { + line-height: 130%; + font-size: 150%; + text-align: center; +} +.demobantext { + max-width: 1024px; + text-align: center; + display: inline-block; +} +.demobanbox { + font-size: 90%; +} +img.demothumb { + /* box-shadow: 2px 2px 8px #BBB; */ + margin-right: 20px; + margin-left: 10px; + width: 110px; +} +.demobackground { + background-image: url('dolibarr_demo_ban.jpg'); + background-size: cover; + object-fit: contain; + height: 140px; + background-position-y: bottom; +} +div#tr1profdemoall { + margin-left: -40px; + margin-right: -40px; +} + + +@media only screen and (max-width: 767px) +{ + .demobody { + line-height: 150% !important; + font-size: 100% !important; + } + img.demothumb { + box-shadow: 1px 1px 4px #BBB; + margin-right: 6px; + margin-left: 4px; + width: 80px; + } + .demobanbox { + font-size: 100%; + } + div#tr1profdemoall { + margin-left: 0px; + margin-right: 0px; + } +} \ No newline at end of file diff --git a/htdocs/public/demo/index.php b/htdocs/public/demo/index.php index a83ef87b65b..800639be251 100644 --- a/htdocs/public/demo/index.php +++ b/htdocs/public/demo/index.php @@ -247,62 +247,8 @@ if (GETPOST("action") == 'gotodemo') $head=''; $head.=''."\n"; $head.=''."\n"; -$head.=' +$head.='