dolibarr 22.0.5
global.css.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2024 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 FITNESS 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 load menu manager class (note that object loaded may have wrong content because NOLOGIN is set and some values depends on login)
39if (!defined('NOREQUIREHTML')) {
40 define('NOREQUIREHTML', 1);
41}
42if (!defined('NOREQUIREAJAX')) {
43 define('NOREQUIREAJAX', '1');
44}
45
46session_cache_limiter('public');
47
48require_once __DIR__.'/../../../main.inc.php'; // __DIR__ allow this script to be included in custom themes
49
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=10800, public, must-revalidate');
56} else {
57 header('Cache-Control: no-cache');
58}
59?>
60@charset "UTF-8";
61
62@import "pico.css.php";
63@import "mixin.css";
64@import "login.css";
65
75body > nav {
76 --nav-link-spacing-vertical: 1rem;
77 -webkit-backdrop-filter: saturate(180%) blur(10px);
78 z-index: 99;
79 position: fixed;
80 top: 0;
81 right: 0;
82 left: 0;
83 backdrop-filter: blur(60px) ;
84 background-color: var(--nav-background-color);
85 box-shadow: 0px 1px 0 var(--nav-border-color);
86}
87
88nav.primary-top-nav ul:first-of-type {
89 clear: both;
90 min-width: 100px;
91}
92
93.primary-top-nav{
94 --border-radius: 0;
95}
96
97ul.brand {
98 max-width: 80px;
99}
100nav.primary-top-nav ul:first-of-type {
101 margin-left: unset !important;
102}
103
104ul.menu-entries li {
105 display: block;
106 overflow: hidden;
107 text-overflow: ellipsis;
108 white-space: nowrap;
109}
110ul.menu-entries-alt {
111 display: none;
112}
113
114.maxwidthdate {
115 max-width: 110px;
116}
117
118@media (max-width: 576px) {
119 ul.brand li.brand {
120 padding-left: 0px;
121 }
122 ul.menu-entries li {
123 display: none;
124 }
125 ul.menu-entries-alt {
126 display: block;
127 }
128}
129
130
131
132
136.brand__logo-link{
137 max-height: 100%;
138 margin: 0;
139 padding: 0;
140}
141
142.brand__logo-link:focus{
143 background: none;
144}
145
146.spacer{
147 --spacer-margin: calc(var(--font-size) * 2);
148 margin-top: var(--spacer-margin);
149 margin-bottom: var(--spacer-margin);
150}
151
152html{
153 scroll-padding-top:100px;
154}
155
156#main-container{
157 padding-top: 200px;
158}
159
160/*
161a:link, a:visited, a:hover, a:active, .classlink {
162 color: unset;
163}
164*/
165
166.pages-nav-list__icon::after {
167 display: block;
168 width: 1rem;
169 height: 1rem;
170 -webkit-margin-start: calc(var(--spacing, 1rem) * 0.5);
171 margin-inline-start: calc(var(--spacing, 1rem) * 0.5);
172 float: right;
173 background-image: var(--icon-chevron);
174 background-position: right center;
175 background-size: 1rem auto;
176 background-repeat: no-repeat;
177 content: "";
178 transition: transform var(--transition);
179}
180
181.pages-nav-list__icon.--prev::after {
182 transform: rotate(90deg);
183}
184.pages-nav-list__icon.--next::after {
185 transform: rotate(-90deg);
186}
187
188.pages-nav-list__link.--active{
189 outline: 1px solid hsla(var(--primary-color-hue), var(--primary-color-saturation), var(--primary-color-lightness), 0.3);
190}
191
192.hero-header{
193 background-color: #f2f2f2;
194 background-image: var(--banner-background);
195 padding: 100px 0 64px 0;
196 margin: 0;
197
198 background-position: center center;
199 background-size: cover;
200 background-repeat: no-repeat;
201}
202
206[role="search-row"] :is(button, input[type=submit], input[type=button], [role=button]) {
207 --background-color: #ededed;
208 --border-color: #ededed;
209 --color: #666;
210}
211
212.btn-filter-icon{
213 --icon-url : var(--icon-time);
214 --icon-size : 16px;
215
216 display: inline-block;
217 width: auto;
218}
219
220.btn-filter-icon::before{
221 content: " ";
222 display: inline-block;
223 height: var(--icon-size);
224 width: var(--icon-size);
225 background-color: transparent;
226 background-image: var(--icon-url);
227 background-repeat: no-repeat;
228 background-size: var(--icon-size) var(--icon-size);
229 background-position: center;
230}
231
232.btn-filter-icon.btn-remove-search-filters-icon::before {
233 --icon-url : var(--icon-close);
234}
235
236.btn-filter-icon.btn-search-filters-icon::before {
237 --icon-url : var(--icon-search);
238}
239
240[role="search-row"] [data-col="row-checkbox"]{
241 white-space: nowrap;
242}
243
247.home-links-card{
248
249}
print $object position
Definition edit.php:206
ui state ui widget content ui state ui widget header ui state a ui button
0 = Do not include form tag and submit button -1 = Do not include form tag but include submit button
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.
if(preg_match('/(crypted|dolcrypt):/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
Definition repair.php:158