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.maxwidthdate {
116 max-width: 110px;
117}
118
119@media (max-width: 576px) {
120 ul.brand li.brand {
121 padding-left: 0px;
122 }
123 ul.menu-entries li {
124 display: none;
125 }
126 ul.menu-entries-alt {
127 display: block;
128 }
129}
130
131
132
133
137.brand__logo-link{
138 max-height: 100%;
139 margin: 0;
140 padding: 0;
141}
142
143.brand__logo-link:focus{
144 background: none;
145}
146
147.spacer{
148 --spacer-margin: calc(var(--font-size) * 2);
149 margin-top: var(--spacer-margin);
150 margin-bottom: var(--spacer-margin);
151}
152
153html{
154 scroll-padding-top:100px;
155}
156
157#main-container{
158 padding-top: 200px;
159}
160
161/*
162a:link, a:visited, a:hover, a:active, .classlink {
163 color: unset;
164}
165*/
166
167.pages-nav-list__icon::after {
168 display: block;
169 width: 1rem;
170 height: 1rem;
171 -webkit-margin-start: calc(var(--spacing, 1rem) * 0.5);
172 margin-inline-start: calc(var(--spacing, 1rem) * 0.5);
173 float: right;
174 background-image: var(--icon-chevron);
175 background-position: right center;
176 background-size: 1rem auto;
177 background-repeat: no-repeat;
178 content: "";
179 transition: transform var(--transition);
180}
181
182.pages-nav-list__icon.--prev::after {
183 transform: rotate(90deg);
184}
185.pages-nav-list__icon.--next::after {
186 transform: rotate(-90deg);
187}
188
189.pages-nav-list__link.--active{
190 outline: 1px solid hsla(var(--primary-color-hue), var(--primary-color-saturation), var(--primary-color-lightness), 0.3);
191}
192
193.hero-header{
194 background-color: #f2f2f2;
195 background-image: var(--banner-background);
196 padding: 100px 0 64px 0;
197 margin: 0;
198
199 background-position: center center;
200 background-size: cover;
201 background-repeat: no-repeat;
202}
203
207[role="search-row"] :is(button, input[type=submit], input[type=button], [role=button]) {
208 --background-color: #ededed;
209 --border-color: #ededed;
210 --color: #666;
211}
212
213.btn-filter-icon{
214 --icon-url : var(--icon-time);
215 --icon-size : 16px;
216
217 display: inline-block;
218 width: auto;
219}
220
221.btn-filter-icon::before{
222 content: " ";
223 display: inline-block;
224 height: var(--icon-size);
225 width: var(--icon-size);
226 background-color: transparent;
227 background-image: var(--icon-url);
228 background-repeat: no-repeat;
229 background-size: var(--icon-size) var(--icon-size);
230 background-position: center;
231}
232
233.btn-filter-icon.btn-remove-search-filters-icon::before {
234 --icon-url : var(--icon-close);
235}
236
237.btn-filter-icon.btn-search-filters-icon::before {
238 --icon-url : var(--icon-search);
239}
240
241[role="search-row"] [data-col="row-checkbox"]{
242 white-space: nowrap;
243}
244
248.home-links-card{
249
250}
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
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:137