dolibarr  13.0.2
styles.css.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2018 Laurent Destailleur <eldy@users.sourceforge.net>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FI8TNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <https://www.gnu.org/licenses/>.
16  */
17 
23 //if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled because need to load personalized language
24 //if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled to increase speed. Language code is found on url.
25 if (!defined('NOREQUIRESOC')) define('NOREQUIRESOC', '1');
26 //if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
27 if (!defined('NOCSRFCHECK')) define('NOCSRFCHECK', 1);
28 if (!defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL', 1);
29 if (!defined('NOLOGIN')) define('NOLOGIN', 1); // File must be accessed by logon page so without login
30 //if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); // We need top menu content
31 if (!defined('NOREQUIREHTML')) define('NOREQUIREHTML', 1);
32 if (!defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
33 
34 session_cache_limiter('public');
35 
36 require_once '../../main.inc.php';
37 require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
38 
39 // Define css type
40 top_httphead('text/css');
41 // Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
42 if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate');
43 else header('Cache-Control: no-cache');
44 
45 ?>
46 
47 html {
48  min-height: 100%; height: 100%;
49 }
50 
51 html {
52 <?php
53 if (!empty($conf->global->TICKET_SHOW_MODULE_LOGO)) {
54  print 'background: url("../public/img/bg_ticket.png") no-repeat 95% 90%;';
55 }
56 ?>
57 }
58 
59 
60 div.ticketform {
61  font-family: arial;
62  position: static;
63  padding: 2em 1em;
64  overflow-x: auto;
65  border: 2px solid rgb(153, 153, 153);
66  background-color: rgb(255, 255, 255);
67  box-shadow: 2px 2px 2px rgb(245, 245, 245);
68  border-radius: 10px 10px 10px 10px;
69  margin: 1.5em;
70  background : #ffffff;
71  text-align: center;
72 }
73 
74 div.ticketform .index_create, .index_display {
75  display: inline-block;
76  width: 200px;
77  height: 45px;
78  text-align: center;
79  vertical-align: middle;
80  margin: 20px;
81  text-transform: uppercase;
82 }
83 
84 #form_create_ticket, #form_view_ticket
85 {
86  margin-left: 10px;
87  margin-right: 10px;
88  padding-left:1em;
89  padding-right:1em;
90  padding-top:1.5em;
91  padding-bottom:12px;
92 
93  border: 1px solid #C0C0C0;
94  background-color: #E0E0E0;
95 
96  -moz-box-shadow: 4px 4px 4px #DDD;
97  -webkit-box-shadow: 4px 4px 4px #DDD;
98  box-shadow: 4px 4px 4px #DDD;
99 
100  border-radius: 8px;
101  border:solid 1px rgba(168,168,168,.4);
102  border-top:solid 1px f8f8f8;
103  background-color: #f8f8f8;
104 }
105 
106 #form_create_ticket input.text, #form_create_ticket textarea { width:450px;}
107 
108 @media only screen and (max-width: 767px)
109 {
110  #form_create_ticket input.text, #form_create_ticket textarea { width: unset;}
111 }
if(!defined('NOREQUIREMENU')) if(!function_exists("llxHeader")) top_httphead($contenttype= 'text/html', $forcenocache=0)
Show HTTP header.
Definition: main.inc.php:1214
print
Draft customers invoices.
Definition: index.php:89