cp.styles.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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 {
  121. display: none;
  122. }
  123. body.cp.cp-sidebar-left .wrap .sidebar.sidebar-left {
  124. display: table-cell;
  125. }
  126. body.cp.cp-sidebar-right .wrap .sidebar.sidebar-right {
  127. display: table-cell;
  128. }
  129. body.cp .wrap .sidebar-right .padd,
  130. body.cp .wrap .content .padd {
  131. padding: 1rem 1rem;
  132. }
  133. body.cp .wrap .scroll {
  134. height: 100%;
  135. overflow: hidden;
  136. overflow-y: auto;
  137. }
  138. body.cp .wrap .sidebar {
  139. width: 245px;
  140. background: #eee;
  141. box-shadow: 0 0.5em 0.5em rgba(0,0,0,.3);
  142. }
  143. body.cp .wrap .sidebar .dropdown-divider {
  144. border-color: #d6d6d6;
  145. margin: 0px;
  146. }
  147. body.cp .wrap .sidebar.sidebar-left ul.nav {
  148. padding: 1rem 0px;
  149. }
  150. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item a {
  151. color: #444;
  152. }
  153. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item.active {
  154. background-color: #417cb9;
  155. }
  156. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item.active a {
  157. color: #fff;
  158. }
  159. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item:hover {
  160. background-color: #e7e7e7;
  161. }
  162. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item.active:hover {
  163. background-color: #417cb9;
  164. }
  165. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav {
  166. background: #eee;
  167. padding-top: 0px;
  168. }
  169. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav li.nav-item a {
  170. color: #444;
  171. padding-left: 2rem;
  172. }
  173. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav li.nav-item.active {
  174. background-color: #e7e7e7;
  175. }
  176. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav li.nav-item.active a {
  177. color: #417cb9;
  178. }
  179. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item:last-child ul {
  180. padding-bottom: 0px;
  181. }
  182. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item svg.sicon {
  183. fill: currentColor;
  184. margin-right: 5px;
  185. }
  186. /* SVG colors */
  187. .svg-green svg {
  188. fill: currentColor;
  189. color: #28a745;
  190. }
  191. .svg-red svg {
  192. fill: currentColor;
  193. color: #cb2431;
  194. }
  195. /* Admin table */
  196. .data-table.table-hover tbody tr:hover {
  197. background-color: #fffbdf;
  198. }
  199. .data-table a svg {
  200. fill: currentColor;
  201. color: #007bff;
  202. }
  203. .data-table a:hover svg {
  204. color: #0056b3;
  205. }
  206. .data-table td.col_action a.ico {
  207. display: inline-block;
  208. width: 16px;
  209. height: 16px;
  210. margin-right: 10px;
  211. }
  212. .data-table td.col_action a.ico:last-child {
  213. margin-right: 0px;
  214. }
  215. .data-table thead tr {
  216. background-color: #e9ecef;
  217. }
  218. .data-table.table-bordered td,
  219. .data-table.table-bordered th {
  220. border: none;
  221. border-top: 1px solid #dee2e6;
  222. }
  223. /* Admin table: table_pages */
  224. .data-table.table_pages .col_datetime {
  225. width: 125px;
  226. }
  227. .data-table.table_pages .col_active {
  228. width: 85px;
  229. }
  230. .data-table.table_pages .col_action {
  231. width: 100px;
  232. text-align: right;
  233. }
  234. /* Admin table: table_users */
  235. .data-table.table_users .col_active,
  236. .data-table.table_users .col_admin {
  237. width: 85px;
  238. }
  239. .data-table.table_users .col_action {
  240. width: 100px;
  241. text-align: right;
  242. }
  243. /* Admin data form */
  244. .data-form .hidden {
  245. display: none;
  246. }
  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: 15px;
  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: 15px;
  293. background: rgba(19,191,17,0);
  294. -moz-transition: .25s ease-in-out;
  295. -webkit-transition: .25s ease-in-out;
  296. transition: .25s ease-in-out;
  297. }
  298. .checkbox-ios input[type=checkbox] + label:after {
  299. content: "";
  300. position: absolute;
  301. display: block;
  302. height: 26px;
  303. width: 26px;
  304. top: 2px;
  305. left: 2px;
  306. border-radius: 15px;
  307. background: #fff;
  308. -moz-transition: .25s ease-in-out;
  309. -webkit-transition: .25s ease-in-out;
  310. transition: .25s 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: 32px;
  318. }