styles.css.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. /**
  18. * \file htdocs/ticket/css/styles.css.php
  19. * \brief File for CSS style sheet for ticket module
  20. */
  21. //if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled because need to load personalized language
  22. //if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled to increase speed. Language code is found on url.
  23. if (!defined('NOREQUIRESOC')) {
  24. define('NOREQUIRESOC', '1');
  25. }
  26. //if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
  27. if (!defined('NOCSRFCHECK')) {
  28. define('NOCSRFCHECK', 1);
  29. }
  30. if (!defined('NOTOKENRENEWAL')) {
  31. define('NOTOKENRENEWAL', 1);
  32. }
  33. if (!defined('NOLOGIN')) {
  34. define('NOLOGIN', 1); // File must be accessed by logon page so without login
  35. }
  36. //if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); // We need top menu content
  37. if (!defined('NOREQUIREHTML')) {
  38. define('NOREQUIREHTML', 1);
  39. }
  40. if (!defined('NOREQUIREAJAX')) {
  41. define('NOREQUIREAJAX', '1');
  42. }
  43. session_cache_limiter('public');
  44. require_once '../../main.inc.php';
  45. require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
  46. // Define css type
  47. top_httphead('text/css');
  48. // Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
  49. if (empty($dolibarr_nocache)) {
  50. header('Cache-Control: max-age=3600, public, must-revalidate');
  51. } else {
  52. header('Cache-Control: no-cache');
  53. }
  54. ?>
  55. html {
  56. min-height: 100%; height: 100%;
  57. }
  58. html {
  59. <?php
  60. if (!empty($conf->global->TICKET_SHOW_MODULE_LOGO)) {
  61. print 'background: url("../public/img/bg_ticket.png") no-repeat 95% 90%;';
  62. }
  63. ?>
  64. }
  65. div.ticketform {
  66. font-family: arial;
  67. position: static;
  68. /* padding: 2em 1em;
  69. overflow-x: auto;
  70. border: 2px solid rgb(153, 153, 153);
  71. background-color: rgb(255, 255, 255);
  72. box-shadow: 2px 2px 2px rgb(245, 245, 245);
  73. border-radius: 10px 10px 10px 10px;
  74. margin: 1.5em;
  75. */
  76. background : #ffffff;
  77. text-align: center;
  78. }
  79. div.ticketform .index_create, div.ticketform .index_display {
  80. display: inline-block;
  81. width: 200px;
  82. height: 45px;
  83. text-align: center;
  84. vertical-align: middle;
  85. margin: 20px;
  86. text-transform: uppercase;
  87. }
  88. #form_create_ticket, #form_view_ticket
  89. {
  90. margin-left: 10px;
  91. margin-right: 10px;
  92. padding-left:1em;
  93. padding-right:1em;
  94. padding-top:1.5em;
  95. padding-bottom:12px;
  96. border: 1px solid #C0C0C0;
  97. background-color: #E0E0E0;
  98. -moz-box-shadow: 4px 4px 4px #DDD;
  99. -webkit-box-shadow: 4px 4px 4px #DDD;
  100. box-shadow: 4px 4px 4px #DDD;
  101. border-radius: 8px;
  102. border:solid 1px rgba(168,168,168,.4);
  103. border-top:solid 1px f8f8f8;
  104. background-color: #f8f8f8;
  105. }
  106. #form_create_ticket input.text, #form_create_ticket textarea { width:450px;}
  107. @media only screen and (max-width: 767px)
  108. {
  109. #form_create_ticket input.text, #form_create_ticket textarea { width: unset;}
  110. }