cp.styles.css 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. /* Bootstrap scroll fix */
  2. body.cp {
  3. padding-right: 0px !important;
  4. }
  5. /* Bootstrap modal CP padding fix */
  6. .cp .navbar {
  7. padding: .5rem 1rem !important;
  8. }
  9. /* Bootstrap dropdown hover fix */
  10. .dropdown-item:focus, .dropdown-item:hover {
  11. background-color: #f1f1f1;
  12. }
  13. .dropdown-item.active, .dropdown-item:active {
  14. background-color: #007bff;
  15. }
  16. /* Login/MySQL form */
  17. html {
  18. height: 100%;
  19. }
  20. body.cp-login,
  21. body.cp-mysql,
  22. body.cp-first-user {
  23. min-height: 100%;
  24. display: -ms-flexbox;
  25. display: -webkit-box;
  26. display: flex;
  27. -ms-flex-align: center;
  28. -ms-flex-pack: center;
  29. -webkit-box-align: center;
  30. align-items: center;
  31. -webkit-box-pack: center;
  32. justify-content: center;
  33. background-color: #eee;
  34. }
  35. .cp-login .form-signin,
  36. .cp-mysql .form-signin,
  37. .cp-first-user .form-signin {
  38. width: 100%;
  39. max-width: 21rem;
  40. padding: 1.5rem;
  41. margin: 1.5rem;
  42. }
  43. .cp-login .form-signin label,
  44. .cp-mysql .form-signin label,
  45. .cp-first-user .form-signin label {
  46. cursor: pointer;
  47. }
  48. .cp-login .form-signin .form-control,
  49. .cp-mysql .form-signin .form-control,
  50. .cp-first-user .form-signin .form-control {
  51. position: relative;
  52. box-sizing: border-box;
  53. height: auto;
  54. padding: 0.5rem;
  55. font-size: 1.0rem;
  56. }
  57. .cp-login .form-signin .form-control:focus,
  58. .cp-mysql .form-signin .form-control:focus,
  59. .cp-first-user .form-signin .form-control:focus {
  60. z-index: 2;
  61. }
  62. .cp-login .form-signin input[type="email"] {
  63. margin-bottom: -1px;
  64. border-bottom-right-radius: 0;
  65. border-bottom-left-radius: 0;
  66. }
  67. .cp-login .form-signin input[type="password"] {
  68. border-top-left-radius: 0;
  69. border-top-right-radius: 0;
  70. }
  71. .cp-login .sys-messages,
  72. .cp-mysql .sys-messages,
  73. .cp-first-user .sys-messages {
  74. text-align: left;
  75. }
  76. /* Control panel skeleton */
  77. body.cp {
  78. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  79. background: initial;
  80. background-color: #fff;
  81. font-size: 1rem;
  82. font-weight: 400;
  83. line-height: 1.5;
  84. color: #444;
  85. width: 100%;
  86. height: 100%;
  87. overflow: hidden;
  88. }
  89. body.cp nav.main {
  90. height: 3.5rem;
  91. box-shadow: 0 0 5px 4px rgba(0, 0, 0, 0.25);
  92. }
  93. body.cp nav.main.bg-dark {
  94. background: #0747a6 url(/assets/sys/bg.png) repeat 0 0 !important;
  95. }
  96. body.cp nav.main a.navbar-brand {
  97. font-weight: bold;
  98. }
  99. /*
  100. body.cp nav.main .navbar-nav .nav-item a img {
  101. width: 35px;
  102. height: 35px;
  103. margin-right: 10px;
  104. margin-top: -30px;
  105. margin-bottom: -30px;
  106. background-color: gray;
  107. }
  108. */
  109. body.cp .wrap {
  110. width: 100%;
  111. height: 100%;
  112. display: table;
  113. align-items: stretch;
  114. }
  115. body.cp .wrap .sidebar,
  116. body.cp .wrap .content {
  117. display: table-cell;
  118. position: relative;
  119. padding-top: 3.5rem;
  120. vertical-align: top;
  121. }
  122. body.cp .wrap .sidebar.sidebar-right {
  123. display: none !important;
  124. }
  125. body.cp .wrap .sidebar-right .padd,
  126. body.cp .wrap .content .padd {
  127. padding: 1rem 1rem;
  128. }
  129. body.cp .wrap .scroll {
  130. height: 100%;
  131. overflow: hidden;
  132. overflow-y: auto;
  133. }
  134. body.cp .wrap .sidebar {
  135. width: 15.4rem;
  136. background: #eee;
  137. box-shadow: 0 0.5em 0.5em rgba(0, 0, 0, .3);
  138. }
  139. body.cp .wrap .sidebar .dropdown-divider {
  140. border-color: #d6d6d6;
  141. margin: 0px;
  142. }
  143. body.cp .wrap .sidebar.sidebar-left ul.nav {
  144. padding: 1rem 0px;
  145. }
  146. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item a {
  147. color: #444;
  148. }
  149. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item.active {
  150. background-color: #417cb9;
  151. }
  152. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item.active a {
  153. color: #fff;
  154. }
  155. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item:hover {
  156. background-color: #e7e7e7;
  157. }
  158. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item.active:hover {
  159. background-color: #417cb9;
  160. }
  161. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav {
  162. background: #eee;
  163. padding-top: 0px;
  164. }
  165. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav li.nav-item a {
  166. color: #444;
  167. padding-left: 2rem;
  168. }
  169. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav li.nav-item.active {
  170. background-color: #e7e7e7;
  171. }
  172. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav li.nav-item.active a {
  173. color: #417cb9;
  174. }
  175. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item:last-child ul {
  176. padding-bottom: 0px;
  177. }
  178. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item svg.sicon {
  179. fill: currentColor;
  180. margin-right: 0.3rem;
  181. }
  182. /* SVG colors */
  183. .svg-green svg {
  184. fill: currentColor;
  185. color: #28a745;
  186. }
  187. .svg-red svg {
  188. fill: currentColor;
  189. color: #cb2431;
  190. }
  191. /* Pagination */
  192. ul.pagination {
  193. margin-top: 1rem;
  194. }
  195. /* Admin table */
  196. .data-table {
  197. margin-bottom: 0px;
  198. }
  199. .data-table.table-hover tbody tr:hover {
  200. background-color: #fffbdf;
  201. }
  202. .data-table a svg {
  203. fill: currentColor;
  204. color: #007bff;
  205. }
  206. .data-table a:hover svg {
  207. color: #0056b3;
  208. }
  209. .data-table td.col_action a.ico {
  210. display: inline-block;
  211. width: 1rem;
  212. height: 1rem;
  213. margin-right: 0.6rem;
  214. }
  215. .data-table td.col_action a.ico:last-child {
  216. margin-right: 0px;
  217. }
  218. .data-table thead tr {
  219. background-color: #e9ecef;
  220. }
  221. .data-table.table-bordered td,
  222. .data-table.table-bordered th {
  223. border: none;
  224. border-top: 1px solid #dee2e6;
  225. }
  226. /* Admin table: table_pages */
  227. .data-table.table_pages .col_datetime {
  228. width: 8rem;
  229. }
  230. .data-table.table_pages .col_active {
  231. width: 5rem;
  232. }
  233. .data-table.table_pages .col_action {
  234. width: 6rem;
  235. text-align: right;
  236. }
  237. /* Admin table: table_users */
  238. .data-table.table_users .col_active,
  239. .data-table.table_users .col_admin {
  240. width: 5rem;
  241. }
  242. .data-table.table_users .col_action {
  243. width: 6rem;
  244. text-align: right;
  245. }
  246. /* Admin data form */
  247. .data-form label {
  248. font-weight: bold;
  249. margin-top: .45rem;
  250. margin-bottom: .45rem;
  251. }
  252. .data-form small {
  253. color: #aeb8bc;
  254. }
  255. .data-form > div:nth-last-child(2) {
  256. margin-bottom: 0px;
  257. }
  258. .data-form textarea {
  259. min-height: 5.4rem;
  260. }
  261. /* Checkbox style iOS */
  262. .checkbox-ios {
  263. display: inline-block;
  264. }
  265. .checkbox-ios input[type=checkbox] {
  266. max-height: 0;
  267. max-width: 0;
  268. opacity: 0;
  269. position: absolute;
  270. }
  271. .checkbox-ios input[type=checkbox] + label {
  272. display: block;
  273. position: relative;
  274. box-shadow: inset 0 0 0 1px #ced4da;
  275. background: #ced4da;
  276. text-indent: -5000px;
  277. height: 30px;
  278. width: 60px;
  279. border-radius: 1.5rem;
  280. cursor: pointer;
  281. margin-top: 0px;
  282. margin-bottom: 0px;
  283. }
  284. .checkbox-ios input[type=checkbox] + label:before {
  285. content: "";
  286. position: absolute;
  287. display: block;
  288. height: 30px;
  289. width: 30px;
  290. top: 0px;
  291. left: 0px;
  292. border-radius: 1.5rem;
  293. background: rgba(19, 191, 17, 0);
  294. -moz-transition: .20s ease-in-out;
  295. -webkit-transition: .20s ease-in-out;
  296. transition: .20s ease-in-out;
  297. }
  298. .checkbox-ios input[type=checkbox] + label:after {
  299. content: "";
  300. position: absolute;
  301. display: block;
  302. height: 28px;
  303. width: 28px;
  304. top: 1px;
  305. left: 1px;
  306. border-radius: 1.5rem;
  307. background: #fff;
  308. -moz-transition: .20s ease-in-out;
  309. -webkit-transition: .20s ease-in-out;
  310. transition: .20s ease-in-out;
  311. }
  312. .checkbox-ios input[type=checkbox]:checked + label:before {
  313. width: 60px;
  314. background: #007bff;
  315. }
  316. .checkbox-ios input[type=checkbox]:checked + label:after {
  317. left: 31px;
  318. }
  319. /* Bootstrap fixes */
  320. #sys-modal-user-settings {
  321. padding-right: 0px !important;
  322. }
  323. /* Mobile fixes */
  324. @media (min-width: 992px) {
  325. body.cp.cp-sidebar-right .wrap .sidebar.sidebar-right.d-lg-table-cell {
  326. display: table-cell !important;
  327. }
  328. }
  329. @media (max-width: 575px) {
  330. /* Less then 576px */
  331. body.cp {
  332. height: auto;
  333. overflow: scroll;
  334. }
  335. body.cp .wrap .sidebar {
  336. width: auto;
  337. box-shadow: none;
  338. }
  339. body.cp .wrap .content {
  340. padding-top: 0rem;
  341. }
  342. }
  343. @media (max-width: 767px) {
  344. /* Less then 768px */
  345. .navbar-expand-md .navbar-collapse {
  346. padding: 1rem;
  347. background: #417cb9;
  348. box-shadow: 0 0.2em 0.2em rgba(0, 0, 0, .3);
  349. border-radius: .25rem;
  350. }
  351. }