project_field.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #app .group-title--switch .el-switch__core {
  2. width: 60px !important;
  3. }
  4. #app .group-title--switch.el-switch {
  5. position: relative;
  6. }
  7. #app .group-title--switch .el-switch__label--right.is-active,
  8. #app .group-title--switch .el-switch__label--left.is-active {
  9. display: inline-block;
  10. }
  11. #app .group-title--switch .el-switch__label--right *,
  12. #app .group-title--switch .el-switch__label--left *{
  13. line-height: inherit;
  14. }
  15. #app .group-title--switch .el-switch__label--right,
  16. #app .group-title--switch .el-switch__label--left {
  17. position: absolute;
  18. z-index: 2;
  19. color: #fff;
  20. display: none;
  21. font-size: 12px;
  22. margin: 0;
  23. line-height: 20px;
  24. }
  25. #app .group-title--switch .el-switch__label--right {
  26. left: 8px;
  27. }
  28. #app .group-title--switch .el-switch__label--left {
  29. right: 8px;
  30. }
  31. .group-title--group h4 {
  32. font-size: 20px;
  33. margin-right: 12px;
  34. }
  35. .group-title--group {
  36. display: flex;
  37. flex-direction: row;
  38. align-items: center;
  39. }
  40. .switch-items {
  41. display: flex;
  42. flex-direction: row;
  43. flex-wrap: wrap;
  44. }
  45. .switch-item--group::before {
  46. content: attr(data-type);
  47. position: absolute;
  48. top: 0;
  49. right: 0;
  50. display: inline-block;
  51. background: #f4f4f5;
  52. padding: 2px;
  53. font-size: 12px;
  54. line-height: 16px;
  55. color: #909399;
  56. border-bottom-left-radius: 4px;
  57. }
  58. .switch-item--group.is-extend .switch-item--label {
  59. max-width: unset;
  60. }
  61. .switch-item--group.is-extend .el-switch {
  62. position: absolute;
  63. top: 40px;
  64. right: 12px;
  65. }
  66. .switch-item--group {
  67. position: relative;
  68. display: flex;
  69. flex-direction: row;
  70. align-items: center;
  71. margin: 6px;
  72. padding: 8px;
  73. border: 1px solid #eee;
  74. border-radius: 6px;
  75. }
  76. .switch-item--label {
  77. display: flex;
  78. flex-direction: column;
  79. min-width: 120px;
  80. max-width: 160px;
  81. }
  82. .switch-item--descript {
  83. font-weight: bold;
  84. font-size: 14px;
  85. }
  86. .switch-item--descript[contenteditable] {
  87. padding: 4px 8px;
  88. border: 1px solid #909399;
  89. border-radius: 4px;
  90. }
  91. .switch-item--key {
  92. display: inline-block;
  93. width: 40px;
  94. }
  95. .switch-item--edit.is-textarea .switch-item--key {
  96. flex-shrink: 0;
  97. margin-right: 4px;
  98. }
  99. .switch-item--edit.is-textarea {
  100. display: flex;
  101. flex-direction: row;
  102. }
  103. .switch-item--edit + .switch-item--edit {
  104. margin-top: 8px;
  105. }
  106. .button-action {
  107. display: flex;
  108. justify-content: flex-end;
  109. margin: 16px;
  110. }
  111. .delete-action--button.el-button.is-circle {
  112. position: absolute;
  113. top: -4px;
  114. right: -4px;
  115. padding: 6px;
  116. }
  117. .button-new-tag {
  118. margin: 16px 0;
  119. }