dolibarr 20.0.0
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.
25if (!defined('NOREQUIRESOC')) {
26 define('NOREQUIRESOC', '1');
27}
28//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
29if (!defined('NOCSRFCHECK')) {
30 define('NOCSRFCHECK', 1);
31}
32if (!defined('NOTOKENRENEWAL')) {
33 define('NOTOKENRENEWAL', 1);
34}
35if (!defined('NOLOGIN')) {
36 define('NOLOGIN', 1); // File must be accessed by logon page so without login
37}
38//if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); // We need top menu content
39if (!defined('NOREQUIREHTML')) {
40 define('NOREQUIREHTML', 1);
41}
42if (!defined('NOREQUIREAJAX')) {
43 define('NOREQUIREAJAX', '1');
44}
45
46session_cache_limiter('public');
47
48require_once '../../main.inc.php';
49require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
50
51// Define css type
52top_httphead('text/css');
53// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
54if (empty($dolibarr_nocache)) {
55 header('Cache-Control: max-age=3600, public, must-revalidate');
56} else {
57 header('Cache-Control: no-cache');
58}
59
60?>
61
62html {
63 min-height: 100%; height: 100%;
64}
65
66html {
67<?php
68if (getDolGlobalString('TICKET_SHOW_MODULE_LOGO')) {
69 print 'background: url("../public/img/bg_ticket.png") no-repeat 95% 90%;';
70}
71?>
72}
73
74
75div.ticketform {
76 font-family: arial;
77 position: static;
78/* padding: 2em 1em;
79 overflow-x: auto;
80 border: 2px solid rgb(153, 153, 153);
81 background-color: rgb(255, 255, 255);
82 box-shadow: 2px 2px 2px rgb(245, 245, 245);
83 border-radius: 10px 10px 10px 10px;
84 margin: 1.5em;
85 background : #ffffff;
86*/
87 text-align: center;
88}
89
90div.ticketform .index_create, div.ticketform .index_display {
91 display: inline-block;
92 width: 200px;
93 height: 60px;
94 text-align: center;
95 vertical-align: middle;
96 margin: 20px;
97 text-transform: uppercase;
98}
99
100#form_create_ticket, #form_view_ticket
101{
102 margin-left: 10px;
103 margin-right: 10px;
104 padding-left:1em;
105 padding-right:1em;
106 padding-top:1.5em;
107 padding-bottom:12px;
108
109 border: 1px solid #C0C0C0;
110 background-color: #E0E0E0;
111
112 -moz-box-shadow: 4px 4px 4px #DDD;
113 -webkit-box-shadow: 4px 4px 4px #DDD;
114 box-shadow: 4px 4px 4px #DDD;
115
116 border-radius: 8px;
117 border:solid 1px rgba(168,168,168,.4);
118 border-top:solid 1px f8f8f8;
119 background-color: #f8f8f8;
120}
121
122#form_create_ticket input.text, #form_create_ticket textarea { width:450px;}
123
124@media only screen and (max-width: 767px)
125{
126 #form_create_ticket input.text, #form_create_ticket textarea { width: unset;}
127
128 #form_create_ticket, #form_view_ticket
129 {
130 margin-left: 0;
131 margin-right: 0;
132 }
133}
print $object position
Definition edit.php:195
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.