admin_addcss.php 4.0 KB

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