admin_addcss.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <style>
  2. .csf-header-left {
  3. margin-top: -29px;
  4. }
  5. /* 圆角 */
  6. .csf-theme-light .csf-container {
  7. border: 0px solid #ccd0d4;
  8. box-shadow: 0 0 15px rgba(0,0,0,.04);
  9. }
  10. .csf-field .csf--transparent-wrap {
  11. top: 5px;
  12. border-radius: 10px;
  13. }
  14. .csf-field-tabbed .csf-tabbed-content{
  15. border-radius: 0 10px 10px 10px;
  16. }
  17. .csf-field-tabbed .csf-tabbed-nav a,
  18. .csf-field-tabbed .csf-tabbed-nav a.csf-tabbed-active {
  19. border-radius: 10px 10px 0 0;
  20. }
  21. .csf-field-heading,
  22. .csf-field-subheading,.csf-submessage-success,.csf-submessage-danger,
  23. .csf-field-image_select .csf--active figure,.csf-field-image_select img,.csf-field-image_select figure,
  24. .csf-field-slider .ui-slider-handle,
  25. .csf-image-preview,.csf-image-preview i,
  26. .wp-picker-container .iris-picker,
  27. .csf-submessage-info {
  28. border-radius: 10px;
  29. }
  30. .csf-form-warning,.csf-form-success,
  31. .csf-field-code_editor .cm-s-default,
  32. .csf-image-preview img{
  33. border-radius: 5px;
  34. }
  35. .csf-field+.csf-field {
  36. border-top: 0px solid #eee;
  37. }
  38. .csf-field-image_select figure:before {
  39. top: 5px;
  40. left: 5px;
  41. line-height: 17px;
  42. border-radius: 10px;
  43. }
  44. /* 顶栏 */
  45. .csf-theme-light .csf-header-inner {
  46. border-bottom: 0px;
  47. /* background: linear-gradient(#fefefe, <?php echo iro_opt('admin_first_class_color'); ?> ); */
  48. border-radius: 10px 10px 0 0;
  49. }
  50. /* 底栏 */
  51. .csf-theme-light .csf-footer {
  52. color: #555;
  53. border-top: 0px;
  54. /* background: linear-gradient(<?php echo iro_opt('admin_first_class_color'); ?> ,#f5f5f5); */
  55. border-radius: 0 0 10px 10px;
  56. }
  57. <?php if (iro_opt('admin_left_style') == "v1") : ?>
  58. /* 侧边栏颜色 */
  59. .csf-theme-light .csf-nav ul li a {
  60. font-weight: 500;
  61. /* color: <?php echo iro_opt('admin_text_color'); ?>; */
  62. /* background-color: <?php echo iro_opt('admin_first_class_color'); ?>; */
  63. border-radius: 10px;
  64. }
  65. .csf-theme-light .csf-nav-normal>ul li .csf-active{
  66. border-right-color: #f5f5f5;
  67. }
  68. .csf-theme-light .csf-nav ul ul li a {
  69. /* background-color: <?php echo iro_opt('admin_second_class_color'); ?>; */
  70. border-radius: 10px;
  71. }
  72. .csf-theme-light .csf-nav ul li a:hover {
  73. color: <?php echo iro_opt('admin_text_color'); ?>;
  74. background-color: <?php echo iro_opt('admin_second_class_color'); ?>;
  75. border-radius: 10px;
  76. }
  77. .csf-theme-light .csf-nav ul li .csf-active {
  78. color: <?php echo iro_opt('admin_text_color'); ?>;
  79. background-color: <?php echo iro_opt('admin_first_class_color'); ?>;
  80. border-radius: 10px;
  81. }
  82. /* 图标与字间距 */
  83. .csf-nav .csf-tab-icon {
  84. margin-right: 4px;
  85. }
  86. .csf-theme-light .csf-nav-normal>ul li a {
  87. border-top: 3px solid #f5f5f5;
  88. border-bottom: 3px solid #f5f5f5;
  89. border-right: 4px solid #f5f5f5;
  90. border-left: 4px solid #f5f5f5;
  91. }
  92. .csf-theme-light .csf-nav-background {
  93. /* background-color: <?php echo iro_opt('admin_first_class_color'); ?>; */
  94. border-right: 0px solid <?php echo iro_opt('admin_first_class_color'); ?>;
  95. width: 227px;
  96. }
  97. <?php endif; ?>
  98. <?php if (iro_opt('admin_left_style') == "v2") : ?>
  99. /* 侧边栏颜色2 */
  100. .csf-theme-light .csf-nav ul li a:hover {
  101. color: <?php echo iro_opt('admin_text_color'); ?>;
  102. border-left: <?php echo iro_opt('admin_first_class_color'); ?> 4px solid;
  103. }
  104. .csf-theme-light .csf-nav ul li .csf-active {
  105. color: <?php echo iro_opt('admin_text_color'); ?>;
  106. border-left: <?php echo iro_opt('admin_first_class_color'); ?> 4px solid;
  107. }
  108. .csf-theme-light .csf-nav-normal>ul li a {
  109. border: 0px solid #f5f5f5;
  110. }
  111. .csf-theme-light .csf-nav-background {
  112. border-right: 0px solid <?php echo iro_opt('admin_first_class_color'); ?>;
  113. width: 227px;
  114. }
  115. <?php endif; ?>
  116. /* 侧边栏动画 */
  117. .csf-nav ul li.csf-tab-expanded ul {
  118. max-height: 666px;
  119. transition: max-height .9s;
  120. display: block !important
  121. }
  122. .csf-nav ul ul {
  123. max-height: 0;
  124. overflow: hidden;
  125. transition: max-height .6s;
  126. display: block !important;
  127. }
  128. .csf-nav {
  129. position: -webkit-sticky;
  130. position: sticky;
  131. top: 125px;
  132. }
  133. </style>