From d4223c3d828d5de9ded05a290e7b54d2d969b75b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 27 Jan 2020 02:06:34 +0100 Subject: [PATCH] TakePOS can use the same CSS properties than app --- htdocs/takepos/css/{pos.css => pos.css.php} | 62 ++++++++++++++++++++- htdocs/takepos/floors.php | 2 +- htdocs/takepos/freezone.php | 2 +- htdocs/takepos/invoice.php | 2 +- htdocs/takepos/pay.php | 4 +- htdocs/takepos/send.php | 2 +- htdocs/takepos/takepos.php | 2 +- 7 files changed, 68 insertions(+), 8 deletions(-) rename htdocs/takepos/css/{pos.css => pos.css.php} (71%) diff --git a/htdocs/takepos/css/pos.css b/htdocs/takepos/css/pos.css.php similarity index 71% rename from htdocs/takepos/css/pos.css rename to htdocs/takepos/css/pos.css.php index 39862f13535..6d79e829426 100644 --- a/htdocs/takepos/css/pos.css +++ b/htdocs/takepos/css/pos.css.php @@ -1,3 +1,62 @@ + + * Copyright (C) 2006 Rodolphe Quiedeville + * Copyright (C) 2007-2017 Regis Houssin + * Copyright (C) 2011 Philippe Grand + * Copyright (C) 2012 Juanjo Menent + * Copyright (C) 2018 Ferran Marcet + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/** + * \file htdocs/theme/eldy/style.css.php + * \brief File for CSS style sheet Eldy + */ + +//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled because need to load personalized language +//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled to increase speed. Language code is found on url. +if (!defined('NOREQUIRESOC')) define('NOREQUIRESOC', '1'); +//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations +if (!defined('NOCSRFCHECK')) define('NOCSRFCHECK', 1); +if (!defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL', 1); +if (!defined('NOLOGIN')) define('NOLOGIN', 1); // File must be accessed by logon page so without login +//if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); // We need top menu content +if (!defined('NOREQUIREHTML')) define('NOREQUIREHTML', 1); +if (!defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1'); + + +define('ISLOADEDBYSTEELSHEET', '1'); + + +session_cache_limiter('public'); + +require_once __DIR__.'/../../main.inc.php'; // __DIR__ allow this script to be included in custom themes +require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; + +// Define css type +top_httphead('text/css'); +// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access. +if (empty($dolibarr_nocache)) header('Cache-Control: max-age=10800, public, must-revalidate'); +else header('Cache-Control: no-cache'); + + +require DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/theme_vars.inc.php'; +if (defined('THEME_ONLY_CONSTANT')) return; + +?> + html,body { box-sizing: border-box; padding:0px; @@ -347,7 +406,8 @@ div.description_content { } .topnav{ - background-color: rgb(60,70,100); + background: rgb(); + background-image: linear-gradient(-45deg, , rgb()); overflow: hidden; height: 100%; } diff --git a/htdocs/takepos/floors.php b/htdocs/takepos/floors.php index 7fcd7a5f9d0..01f0a0b4b25 100644 --- a/htdocs/takepos/floors.php +++ b/htdocs/takepos/floors.php @@ -86,7 +86,7 @@ $title='TakePOS - Dolibarr '.DOL_VERSION; if (! empty($conf->global->MAIN_APPLICATION_TITLE)) $title='TakePOS - '.$conf->global->MAIN_APPLICATION_TITLE; top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); ?> - +