dolibarr 21.0.0-alpha
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@import "./themes/custom.css.php";
66
76body > nav {
77 --nav-link-spacing-vertical: 1rem;
78 -webkit-backdrop-filter: saturate(180%) blur(10px);
79 z-index: 99;
80 position: fixed;
81 top: 0;
82 right: 0;
83 left: 0;
84 backdrop-filter: blur(60px) ;
85 background-color: var(--nav-background-color);
86 box-shadow: 0px 1px 0 var(--nav-border-color);
87}
88
89nav.primary-top-nav ul:first-of-type {
90 clear: both;
91 min-width: 100px;
92}
93
94.primary-top-nav{
95 --border-radius: 0;
96}
97
98ul.brand {
99 max-width: 80px;
100}
101nav.primary-top-nav ul:first-of-type {
102 margin-left: unset !important;
103}
104
105ul.menu-entries li {
106 display: block;
107 overflow: hidden;
108 text-overflow: ellipsis;
109 white-space: nowrap;
110}
111ul.menu-entries-alt {
112 display: none;
113}
114
115@media (max-width: 576px) {
116 ul.brand li.brand {
117 padding-left: 0px;
118 }
119 ul.menu-entries li {
120 display: none;
121 }
122 ul.menu-entries-alt {
123 display: block;
124 }
125}
126
127
128
129
133.brand__logo-link{
134 max-height: 100%;
135 margin: 0;
136 padding: 0;
137}
138
139.brand__logo-link:focus{
140 background: none;
141}
142
143.spacer{
144 --spacer-margin: calc(var(--font-size) * 2);
145 margin-top: var(--spacer-margin);
146 margin-bottom: var(--spacer-margin);
147}
148
149html{
150 scroll-padding-top:100px;
151}
152
153#main-container{
154 padding-top: 200px;
155}
156
157/*
158a:link, a:visited, a:hover, a:active, .classlink {
159 color: unset;
160}
161*/
162
163.pages-nav-list__icon::after {
164 display: block;
165 width: 1rem;
166 height: 1rem;
167 -webkit-margin-start: calc(var(--spacing, 1rem) * 0.5);
168 margin-inline-start: calc(var(--spacing, 1rem) * 0.5);
169 float: right;
170 background-image: var(--icon-chevron);
171 background-position: right center;
172 background-size: 1rem auto;
173 background-repeat: no-repeat;
174 content: "";
175 transition: transform var(--transition);
176}
177
178.pages-nav-list__icon.--prev::after {
179 transform: rotate(90deg);
180}
181.pages-nav-list__icon.--next::after {
182 transform: rotate(-90deg);
183}
184
185.pages-nav-list__link.--active{
186 outline: 1px solid hsla(var(--primary-color-hue), var(--primary-color-saturation), var(--primary-color-lightness), 0.3);
187}
188
189.hero-header{
190 background-color: #f2f2f2;
191 background-image: var(--banner-background);
192 padding: 100px 0 64px 0;
193 margin: 0;
194
195 background-position: center center;
196 background-size: cover;
197 background-repeat: no-repeat;
198}
199
203[role="search-row"] :is(button, input[type=submit], input[type=button], [role=button]) {
204 --background-color: #ededed;
205 --border-color: #ededed;
206 --color: #666;
207}
208
209.btn-filter-icon{
210 --icon-url : var(--icon-time);
211 --icon-size : 16px;
212
213 display: inline-block;
214 width: auto;
215}
216
217.btn-filter-icon::before{
218 content: " ";
219 display: inline-block;
220 height: var(--icon-size);
221 width: var(--icon-size);
222 background-color: transparent;
223 background-image: var(--icon-url);
224 background-repeat: no-repeat;
225 background-size: var(--icon-size) var(--icon-size);
226 background-position: center;
227}
228
229.btn-filter-icon.btn-remove-search-filters-icon::before {
230 --icon-url : var(--icon-close);
231}
232
233.btn-filter-icon.btn-search-filters-icon::before {
234 --icon-url : var(--icon-search);
235}
236
237[role="search-row"] [data-col="row-checkbox"]{
238 white-space: nowrap;
239}
240
244.home-links-card{
245
246}
print $object position
Definition edit.php:195
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
table table fiche title col title div col center btnTitle icon
Automatically calls the icon named with the corresponding "object_" prefix.
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:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
Definition repair.php:139