cp.styles.css 7.4 KB

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