cp.styles.css 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  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-separator {
  147. height: 1rem;
  148. }
  149. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item a {
  150. color: #444;
  151. }
  152. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item.active {
  153. background-color: #417cb9;
  154. }
  155. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item.active a {
  156. color: #fff;
  157. }
  158. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item:hover {
  159. background-color: #e7e7e7;
  160. }
  161. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item.active:hover {
  162. background-color: #417cb9;
  163. }
  164. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav {
  165. background: #eee;
  166. padding-top: 0px;
  167. }
  168. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav li.nav-item a {
  169. color: #444;
  170. padding-left: 2rem;
  171. }
  172. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav li.nav-item.active {
  173. background-color: #e7e7e7;
  174. }
  175. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav li.nav-item.active a {
  176. color: #417cb9;
  177. }
  178. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item:last-child ul {
  179. padding-bottom: 0px;
  180. }
  181. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item svg.sicon {
  182. fill: currentColor;
  183. margin-right: 0.3rem;
  184. margin-bottom: 1px;
  185. }
  186. /* SVG colors */
  187. .svg-green svg {
  188. fill: currentColor;
  189. color: #28a745;
  190. }
  191. .svg-red svg {
  192. fill: currentColor;
  193. color: #d9534f;
  194. }
  195. /* Pagination */
  196. ul.pagination {
  197. margin-top: 1rem;
  198. }
  199. /* Admin table */
  200. .data-table {
  201. margin-bottom: 0px;
  202. }
  203. .data-table.table-hover tbody tr:hover {
  204. background-color: #fffbdf;
  205. }
  206. .data-table a svg {
  207. fill: currentColor;
  208. color: #007bff;
  209. }
  210. .data-table a:hover svg {
  211. color: #0056b3;
  212. }
  213. .data-table a.ico.delete svg {
  214. color: #d9534f;
  215. }
  216. .data-table a.ico.delete:hover svg {
  217. color: #c9302c;
  218. }
  219. .data-table td.col_action a.ico {
  220. display: inline-block;
  221. width: 1rem;
  222. height: 1rem;
  223. margin-right: 0.6rem;
  224. }
  225. .data-table td.col_action a.ico:last-child {
  226. margin-right: 0px;
  227. }
  228. .data-table thead tr {
  229. background-color: #e9ecef;
  230. }
  231. .data-table.table-bordered td,
  232. .data-table.table-bordered th {
  233. border: none;
  234. border-top: 1px solid #dee2e6;
  235. }
  236. /* Admin table: table_pages */
  237. .data-table.table_pages .col_datetime {
  238. width: 8rem;
  239. }
  240. .data-table.table_pages .col_active {
  241. width: 5rem;
  242. }
  243. .data-table.table_pages .col_action {
  244. width: 6rem;
  245. text-align: right;
  246. }
  247. /* Admin table: table_blog_cats */
  248. .data-table.table_blog_cats .col_action {
  249. width: 6rem;
  250. text-align: right;
  251. }
  252. /* Admin table: table_users */
  253. .data-table.table_users .col_active,
  254. .data-table.table_users .col_admin {
  255. width: 5rem;
  256. }
  257. .data-table.table_users .col_action {
  258. width: 6rem;
  259. text-align: right;
  260. }
  261. /* Admin data form */
  262. .data-form label {
  263. font-weight: bold;
  264. margin-top: .45rem;
  265. margin-bottom: .45rem;
  266. }
  267. .data-form small {
  268. color: #aeb8bc;
  269. }
  270. .data-form > div:nth-last-child(2) {
  271. margin-bottom: 0px;
  272. }
  273. .data-form textarea {
  274. min-height: 5.4rem;
  275. }
  276. /* Checkbox style iOS */
  277. .checkbox-ios {
  278. display: inline-block;
  279. }
  280. .checkbox-ios input[type=checkbox] {
  281. max-height: 0;
  282. max-width: 0;
  283. opacity: 0;
  284. position: absolute;
  285. }
  286. .checkbox-ios input[type=checkbox] + label {
  287. display: block;
  288. position: relative;
  289. box-shadow: inset 0 0 0 1px #ced4da;
  290. background: #ced4da;
  291. text-indent: -5000px;
  292. height: 30px;
  293. width: 60px;
  294. border-radius: 1.5rem;
  295. cursor: pointer;
  296. margin-top: 0px;
  297. margin-bottom: 0px;
  298. }
  299. .checkbox-ios input[type=checkbox] + label:before {
  300. content: "";
  301. position: absolute;
  302. display: block;
  303. height: 30px;
  304. width: 30px;
  305. top: 0px;
  306. left: 0px;
  307. border-radius: 1.5rem;
  308. background: rgba(19, 191, 17, 0);
  309. -moz-transition: .20s ease-in-out;
  310. -webkit-transition: .20s ease-in-out;
  311. transition: .20s ease-in-out;
  312. }
  313. .checkbox-ios input[type=checkbox] + label:after {
  314. content: "";
  315. position: absolute;
  316. display: block;
  317. height: 28px;
  318. width: 28px;
  319. top: 1px;
  320. left: 1px;
  321. border-radius: 1.5rem;
  322. background: #fff;
  323. -moz-transition: .20s ease-in-out;
  324. -webkit-transition: .20s ease-in-out;
  325. transition: .20s ease-in-out;
  326. }
  327. .checkbox-ios input[type=checkbox]:checked + label:before {
  328. width: 60px;
  329. background: #007bff;
  330. }
  331. .checkbox-ios input[type=checkbox]:checked + label:after {
  332. left: 31px;
  333. }
  334. /* Bootstrap fixes */
  335. #sys-modal-user-settings {
  336. padding-right: 0px !important;
  337. }
  338. /* Mobile fixes */
  339. @media (min-width: 992px) {
  340. body.cp.cp-sidebar-right .wrap .sidebar.sidebar-right.d-lg-table-cell {
  341. display: table-cell !important;
  342. }
  343. .data-form .row .sys-messages .alert {
  344. margin-top: 1rem;
  345. margin-bottom: 0px;
  346. }
  347. .data-form .form-group.last {
  348. margin-bottom: 0px;
  349. }
  350. .data-form.index .form-group.n8 {
  351. margin-bottom: 0px;
  352. }
  353. .data-form.users .form-group.n7 {
  354. margin-bottom: 0px;
  355. }
  356. .data-form.users .form-group.n7 {
  357. margin-bottom: 0px;
  358. }
  359. }
  360. @media (max-width: 575px) {
  361. /* Less then 576px */
  362. body.cp {
  363. height: auto;
  364. overflow: scroll;
  365. }
  366. body.cp .wrap .sidebar {
  367. width: auto;
  368. box-shadow: none;
  369. }
  370. body.cp .wrap .content {
  371. padding-top: 0rem;
  372. }
  373. }
  374. @media (max-width: 767px) {
  375. /* Less then 768px */
  376. .navbar-expand-md .navbar-collapse {
  377. padding: 1rem;
  378. background: #417cb9;
  379. box-shadow: 0 0.2em 0.2em rgba(0, 0, 0, .3);
  380. border-radius: .25rem;
  381. }
  382. }