cp.styles.css 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  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: #205081 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 .wrap {
  100. width: 100%;
  101. height: 100%;
  102. display: table;
  103. align-items: stretch;
  104. }
  105. body.cp .wrap .sidebar,
  106. body.cp .wrap .content {
  107. display: table-cell;
  108. position: relative;
  109. padding-top: 3.5rem;
  110. vertical-align: top;
  111. }
  112. body.cp .wrap .sidebar.sidebar-right {
  113. display: none !important;
  114. }
  115. body.cp .wrap .sidebar-right .padd,
  116. body.cp .wrap .content .padd {
  117. padding: 1rem 1rem;
  118. }
  119. body.cp .wrap .scroll {
  120. height: 100%;
  121. overflow: hidden;
  122. overflow-y: auto;
  123. }
  124. body.cp .wrap .sidebar {
  125. width: 15.4rem;
  126. background: #eee;
  127. box-shadow: 0 0.5em 0.5em rgba(0, 0, 0, .3);
  128. }
  129. body.cp .wrap .sidebar .dropdown-divider {
  130. border-color: #d6d6d6;
  131. margin: 0px;
  132. }
  133. body.cp .wrap .sidebar.sidebar-left ul.nav {
  134. padding: 1rem 0px;
  135. }
  136. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-separator {
  137. height: 1rem;
  138. }
  139. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item a {
  140. color: #444;
  141. }
  142. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item.active {
  143. background-color: #417cb9;
  144. }
  145. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item.active a {
  146. color: #fff;
  147. }
  148. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item:hover {
  149. background-color: #e7e7e7;
  150. }
  151. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item.active:hover {
  152. background-color: #417cb9;
  153. }
  154. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav {
  155. background: #eee;
  156. padding-top: 0px;
  157. }
  158. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav li.nav-item a {
  159. color: #444;
  160. padding-left: 2rem;
  161. }
  162. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav li.nav-item.active {
  163. background-color: #e7e7e7;
  164. }
  165. body.cp .wrap .sidebar.sidebar-left ul.nav ul.nav li.nav-item.active a {
  166. color: #417cb9;
  167. }
  168. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item:last-child ul {
  169. padding-bottom: 0px;
  170. }
  171. body.cp .wrap .sidebar.sidebar-left ul.nav li.nav-item svg.sicon {
  172. fill: currentColor;
  173. margin-right: 0.3rem;
  174. margin-bottom: 1px;
  175. }
  176. /* SVG colors */
  177. .svg-green svg {
  178. fill: currentColor;
  179. color: #28a745;
  180. }
  181. .svg-red svg {
  182. fill: currentColor;
  183. color: #d9534f;
  184. }
  185. /* Pagination */
  186. ul.pagination {
  187. margin-top: 1rem;
  188. }
  189. /* Admin table */
  190. .data-table {
  191. margin-bottom: 0px;
  192. }
  193. .data-table.table-hover tbody tr:hover {
  194. background-color: #fffbdf;
  195. }
  196. .data-table a svg {
  197. fill: currentColor;
  198. color: #007bff;
  199. }
  200. .data-table a:hover svg {
  201. color: #0056b3;
  202. }
  203. .data-table a.ico.delete svg {
  204. color: #d9534f;
  205. }
  206. .data-table a.ico.delete:hover svg {
  207. color: #c9302c;
  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: blog_posts */
  238. .data-table.table_blog_posts .col_datetime {
  239. width: 8rem;
  240. }
  241. .data-table.table_blog_posts .col_active {
  242. width: 5rem;
  243. }
  244. .data-table.table_blog_posts .col_action {
  245. width: 6rem;
  246. text-align: right;
  247. }
  248. /* Admin table: table_blog_cats */
  249. .data-table.table_blog_cats .col_action {
  250. width: 6rem;
  251. text-align: right;
  252. }
  253. /* Admin table: table_users */
  254. .data-table.table_users .col_active,
  255. .data-table.table_users .col_admin {
  256. width: 5rem;
  257. }
  258. .data-table.table_users .col_action {
  259. width: 6rem;
  260. text-align: right;
  261. }
  262. /* Admin data form */
  263. .data-form label {
  264. font-weight: bold;
  265. margin-top: .45rem;
  266. margin-bottom: .45rem;
  267. }
  268. .data-form small {
  269. color: #aeb8bc;
  270. }
  271. .data-form > div:nth-last-child(2) {
  272. margin-bottom: 0px;
  273. }
  274. .data-form textarea {
  275. min-height: 5.4rem;
  276. }
  277. .data-form textarea.briefly {
  278. min-height: 3.9rem;
  279. }
  280. /* Checkbox style iOS */
  281. .checkbox-ios {
  282. display: inline-block;
  283. }
  284. .checkbox-ios input[type=checkbox] {
  285. max-height: 0;
  286. max-width: 0;
  287. opacity: 0;
  288. position: absolute;
  289. }
  290. .checkbox-ios input[type=checkbox] + label {
  291. display: block;
  292. position: relative;
  293. box-shadow: inset 0 0 0 1px #ced4da;
  294. background: #ced4da;
  295. text-indent: -5000px;
  296. height: 30px;
  297. width: 60px;
  298. border-radius: 1.5rem;
  299. cursor: pointer;
  300. margin-top: 0px;
  301. margin-bottom: 0px;
  302. }
  303. .checkbox-ios input[type=checkbox] + label:before {
  304. content: "";
  305. position: absolute;
  306. display: block;
  307. height: 30px;
  308. width: 30px;
  309. top: 0px;
  310. left: 0px;
  311. border-radius: 1.5rem;
  312. background: rgba(19, 191, 17, 0);
  313. -moz-transition: .10s ease-in-out;
  314. -webkit-transition: .10s ease-in-out;
  315. transition: .10s ease-in-out;
  316. }
  317. .checkbox-ios input[type=checkbox] + label:after {
  318. content: "";
  319. position: absolute;
  320. display: block;
  321. height: 26px;
  322. width: 26px;
  323. top: 2px;
  324. left: 2px;
  325. border-radius: 1.5rem;
  326. background: #fff;
  327. -moz-transition: .10s ease-in-out;
  328. -webkit-transition: .10s ease-in-out;
  329. transition: .10s ease-in-out;
  330. }
  331. .checkbox-ios input[type=checkbox]:checked + label:before {
  332. width: 60px;
  333. background: #417cb9;
  334. }
  335. .checkbox-ios input[type=checkbox]:checked + label:after {
  336. left: 32px;
  337. }
  338. /* Bootstrap fixes */
  339. #sys-modal-user-settings {
  340. padding-right: 0px !important;
  341. }
  342. /* Wysiwyg */
  343. textarea.form-control.wysiwyg {
  344. display: none;
  345. }
  346. .wysiwyg .pell-actionbar {
  347. padding: .2rem;
  348. border-radius: .25rem .25rem 0px 0px;
  349. border-bottom: 1px solid #ced4da;
  350. }
  351. .wysiwyg .pell-actionbar .pell-button {
  352. margin-right: .2rem;
  353. border-radius: .25rem;
  354. background-color: #e7e7e7;
  355. }
  356. .wysiwyg .pell-actionbar .pell-button.pell-button-selected {
  357. color: #fff;
  358. background-color: #007bff;
  359. }
  360. div.wysiwyg.focused {
  361. background-color: #fff;
  362. border-color: #80bdff;
  363. outline: 0;
  364. box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
  365. }
  366. /* Mobile fixes */
  367. @media (min-width: 992px) {
  368. body.cp.cp-sidebar-right .wrap .sidebar.sidebar-right.d-lg-table-cell {
  369. display: table-cell !important;
  370. }
  371. .data-form .row .sys-messages .alert {
  372. margin-top: 1rem;
  373. margin-bottom: 0px;
  374. }
  375. .data-form .form-group.last {
  376. margin-bottom: 0px;
  377. }
  378. .data-form.index-add .form-group.n8,
  379. .data-form.index-modify .form-group.n8 {
  380. margin-bottom: 0px;
  381. }
  382. .data-form.blog-add .form-group.n7,
  383. .data-form.blog-modify .form-group.n7 {
  384. margin-bottom: 0px;
  385. }
  386. .data-form.blog-categories-add .form-group.n4,
  387. .data-form.blog-categories-modify .form-group.n4 {
  388. margin-bottom: 0px;
  389. }
  390. .data-form.users-add .form-group.n7,
  391. .data-form.users-modify .form-group.n7 {
  392. margin-bottom: 0px;
  393. }
  394. .data-form.settings-pagination .form-group.n2 {
  395. margin-bottom: 0px;
  396. }
  397. }
  398. @media (max-width: 575px) {
  399. /* Less then 576px */
  400. body.cp {
  401. height: auto;
  402. overflow: scroll;
  403. }
  404. body.cp .wrap .sidebar {
  405. width: auto;
  406. box-shadow: none;
  407. }
  408. body.cp .wrap .content {
  409. padding-top: 0rem;
  410. }
  411. }
  412. @media (max-width: 767px) {
  413. /* Less then 768px */
  414. .navbar-expand-md .navbar-collapse {
  415. padding: 1rem;
  416. background: #417cb9;
  417. box-shadow: 0 0.2em 0.2em rgba(0, 0, 0, .3);
  418. border-radius: .25rem;
  419. }
  420. }