license_info_distribution.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. /* 分发模态框基础样式 */
  2. .DistributeModal {
  3. display: none; /* 初始隐藏 */
  4. position: fixed;
  5. z-index: 1000;
  6. left: 0;
  7. top: 0;
  8. width: 100%;
  9. height: 100%;
  10. background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
  11. justify-content: center;
  12. align-items: center;
  13. }
  14. .DistributeModal-content {
  15. background-color: white;
  16. padding: 20px;
  17. width: 400px;
  18. max-width: 90%;
  19. border-radius: 10px;
  20. box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  21. position: relative;
  22. text-align: center;
  23. }
  24. /* 关闭按钮 */
  25. .DistributeModal-close {
  26. position: absolute;
  27. top: 10px;
  28. right: 15px;
  29. font-size: 24px;
  30. color: #333;
  31. cursor: pointer;
  32. }
  33. /* 分发模态框上、下两个部分的样式 */
  34. .DistributeModal-section {
  35. margin-bottom: 20px;
  36. padding: 15px;
  37. border: 1px solid #ccc; /* 细边框 */
  38. border-radius: 5px;
  39. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 阴影效果 */
  40. }
  41. /* 输入框样式 */
  42. .DistributeModal-email-input-wrapper {
  43. display: flex;
  44. align-items: center;
  45. margin-bottom: 10px;
  46. }
  47. .DistributeModal-email-input {
  48. flex: 1;
  49. padding: 10px;
  50. border: 1px solid #ccc;
  51. border-radius: 15px;
  52. background-color: #f5f5f5; /* iOS 风格背景 */
  53. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  54. font-size: 16px;
  55. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  56. }
  57. /* 删除按钮样式 */
  58. .DistributeModal-remove-email-btn {
  59. background-color: #ff3b30; /* iOS 风格红色按钮 */
  60. color: white;
  61. border: none;
  62. border-radius: 50%;
  63. width: 25px;
  64. height: 25px;
  65. display: flex;
  66. justify-content: center;
  67. align-items: center;
  68. cursor: pointer;
  69. flex-shrink: 0; /* 确保按钮不会缩小 */
  70. }
  71. .DistributeModal-remove-email-btn:hover {
  72. background-color: #d32f2f; /* 更深的红色 */
  73. }
  74. /* 布局:将新增邮箱和确认分发按钮放在一行 */
  75. .DistributeModal-email-button-wrapper {
  76. display: flex;
  77. justify-content: space-between; /* 按钮之间均匀分布 */
  78. gap: 5px; /* 将按钮之间的间距缩小为 5px */
  79. margin-bottom: 10px; /* 与输入框部分保持一定距离 */
  80. }
  81. /* 按钮样式 */
  82. .DistributeModal-button {
  83. background-color: #007aff; /* iOS风格的蓝色按钮 */
  84. color: white;
  85. padding: 10px;
  86. border: none;
  87. border-radius: 5px;
  88. cursor: pointer;
  89. margin-top: 10px;
  90. flex: 1; /* 使按钮占据相同宽度 */
  91. }
  92. .DistributeModal-button:hover {
  93. background-color: #0056b3;
  94. }
  95. /* 复选框容器样式 */
  96. .DistributeModal-checkbox-wrapper {
  97. display: flex;
  98. justify-content: space-between;
  99. margin-top: 10px;
  100. }
  101. /* 复选框标签样式 */
  102. .DistributeModal-checkbox-label {
  103. display: flex;
  104. align-items: center;
  105. font-size: 16px;
  106. color: #333;
  107. cursor: pointer;
  108. }
  109. /* 隐藏默认复选框 */
  110. .DistributeModal-checkbox {
  111. appearance: none;
  112. -webkit-appearance: none;
  113. position: absolute;
  114. opacity: 0;
  115. }
  116. /* 自定义复选框样式 */
  117. .DistributeModal-checkbox-custom {
  118. width: 40px;
  119. height: 20px;
  120. background-color: #ccc;
  121. border-radius: 10px;
  122. position: relative;
  123. transition: background-color 0.3s;
  124. }
  125. /* 复选框选中后的样式 */
  126. .DistributeModal-checkbox:checked + .DistributeModal-checkbox-custom {
  127. background-color: #007aff; /* iOS 风格的蓝色 */
  128. }
  129. /* 滑动的圆点 */
  130. .DistributeModal-checkbox-custom::before {
  131. content: "";
  132. position: absolute;
  133. top: 2px;
  134. left: 2px;
  135. width: 16px;
  136. height: 16px;
  137. background-color: white;
  138. border-radius: 50%;
  139. transition: transform 0.3s;
  140. }
  141. /* 复选框选中后,圆点移动 */
  142. .DistributeModal-checkbox:checked + .DistributeModal-checkbox-custom::before {
  143. transform: translateX(20px);
  144. }
  145. /* 分发用户 */
  146. /* 布局:将新增下拉框和确认用户分发按钮放在一行 */
  147. .DistributeModal-user-button-wrapper {
  148. display: flex;
  149. justify-content: space-between; /* 按钮均匀分布 */
  150. gap: 10px; /* 间距 */
  151. margin-bottom: 10px;
  152. }
  153. /* iOS 风格下拉框样式 */
  154. .distributeUser-select {
  155. flex: 1; /* 使下拉框占据剩余空间 */
  156. max-width: 80%; /* 确保下拉框不会占据过多空间 */
  157. padding: 5px;
  158. border-radius: 10px;
  159. background-color: #f5f5f5; /* iOS 风格浅色背景 */
  160. border: 1px solid #ccc;
  161. font-size: 14px;
  162. -webkit-appearance: none; /* 移除默认下拉箭头样式 */
  163. appearance: none;
  164. margin-right: 10px; /* 留出与关闭按钮的间距 */
  165. }
  166. .distributeUser-select-wrapper {
  167. display: flex;
  168. align-items: center;
  169. margin-bottom: 10px;
  170. }
  171. /* 自定义下拉箭头 */
  172. .distributeUser-select-wrapper::after {
  173. content: '▼';
  174. position: absolute;
  175. right: 10px;
  176. top: 50%;
  177. transform: translateY(-50%);
  178. pointer-events: none; /* 让箭头不可点击 */
  179. }
  180. /*分发历史模态框----------*/
  181. /* 模态框背景 */
  182. .distributionHistory-modal {
  183. display: none; /* 默认隐藏 */
  184. position: fixed;
  185. z-index: 999;
  186. left: 0;
  187. top: 0;
  188. width: 100%;
  189. height: 100%;
  190. background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
  191. }
  192. /* 模态框内容 */
  193. .distributionHistory-modal-content {
  194. position: absolute;
  195. top: 50%;
  196. left: 50%;
  197. transform: translate(-50%, -50%);
  198. background-color: #ffffff;
  199. border-radius: 12px; /* 圆角 */
  200. box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  201. width: 90%;
  202. max-width: 500px;
  203. padding: 20px; /* 内边距 */
  204. }
  205. /* 关闭按钮 */
  206. .distributionHistory-modal-close {
  207. color: #888;
  208. float: right;
  209. font-size: 24px;
  210. font-weight: bold;
  211. cursor: pointer;
  212. }
  213. /* 标题 */
  214. .distributionHistory-modal h2 {
  215. margin: 0;
  216. font-size: 20px;
  217. font-weight: bold;
  218. text-align: center;
  219. }
  220. /* 用户记录和邮箱记录容器 */
  221. .distributionHistory-user-content,
  222. .distributionHistory-email-content {
  223. margin-top: 15px; /* 上外边距 */
  224. margin-bottom: 15px; /* 下外边距 */
  225. border: 5px solid #02556e; /* 边框 */
  226. border-radius: 8px; /* 圆角 */
  227. padding: 10px; /* 内边距 */
  228. background-color: #f9f9f9; /* 背景色 */
  229. }
  230. /* 用户记录 */
  231. .distributionHistoryModal-user {
  232. padding: 10px;
  233. border-bottom: 1px solid #eaeaea;
  234. }
  235. /* 邮箱记录 */
  236. .distributionHistoryModal-email {
  237. padding: 10px;
  238. border-bottom: 1px solid #eaeaea;
  239. }
  240. /* 无记录提示 */
  241. .distributionHistoryModal-no-record {
  242. text-align: center;
  243. color: #999;
  244. padding: 10px;
  245. }