license_info.css 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823
  1. /* 全局页面样式 */
  2. body {
  3. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  4. margin: 0;
  5. padding: 0;
  6. background-color: #ffffff; /* iOS风格的浅灰背景 */
  7. }
  8. /* 头部样式 */
  9. header {
  10. display: flex;
  11. justify-content: space-between;
  12. align-items: center;
  13. background-color: #ffffff;
  14. color: #333;
  15. height: 100px; /* 根据需要调整高度 */
  16. padding: 0 20px; /* 调整左右内边距 */
  17. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  18. }
  19. header h1 {
  20. flex: 1; /* 标题占据左边 */
  21. margin: 0;
  22. }
  23. .right-container {
  24. display: flex;
  25. flex: 1; /* 让右边部分占据剩余的空间 */
  26. justify-content: flex-end; /* 将右边的两个 div 靠右对齐 */
  27. }
  28. /* 调整 .right-container 内的 div 样式 */
  29. .right-container div {
  30. border: 1px solid #ccc;
  31. padding: 10px;
  32. margin-left: 10px; /* 两个子 div 之间的间距 */
  33. }
  34. /* iOS 风格 login-button 按钮 */
  35. .login-button {
  36. background-color: #76b2f1; /* iOS 风格蓝色 */
  37. color: white;
  38. padding: 12px 0; /* 让按钮的高度保持一致,内容居中 */
  39. border-radius: 15px; /* 圆角按钮 */
  40. font-size: 14px; /* 较小字体以适应60px的宽度 */
  41. font-weight: 600;
  42. cursor: pointer; /* 鼠标悬停时的手型指针 */
  43. transition: background-color 0.3s ease;
  44. border: none;
  45. width: 60px; /* 限制宽度为60px */
  46. text-align: center; /* 内容居中对齐 */
  47. overflow: hidden; /* 如果文字超过,隐藏多余部分 */
  48. white-space: nowrap; /* 避免换行 */
  49. text-overflow: ellipsis; /* 用省略号表示超出的文字 */
  50. margin-left: 10px; /* 跟其他 div 保持一致的间距 */
  51. flex-shrink: 0; /* 确保按钮不会缩放 */
  52. }
  53. .login-button:hover {
  54. background-color: #005bb5; /* 悬停时的颜色变深 */
  55. }
  56. /* login-modal 样式 - 隐藏模态框 */
  57. /* iOS 风格的模态框背景 */
  58. .login-modal {
  59. display: none; /* 初始隐藏 */
  60. position: fixed;
  61. z-index: 1000;
  62. left: 0;
  63. top: 0;
  64. width: 100%;
  65. height: 100%;
  66. background-color: rgba(0, 0, 0, 0.4); /* iOS 风格的半透明背景 */
  67. justify-content: center;
  68. align-items: center;
  69. }
  70. /* iOS 风格的模态框内容 */
  71. .login-modal-content {
  72. background-color: #ffffff;
  73. padding: 20px;
  74. border-radius: 15px; /* iOS 风格的圆角 */
  75. box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* iOS 风格的阴影效果 */
  76. max-width: 400px;
  77. width: 80%;
  78. text-align: center;
  79. animation: fadeIn 0.3s ease-in-out; /* 动画效果 */
  80. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  81. position: relative; /* 设置相对定位 */
  82. }
  83. /* 关闭按钮 iOS 风格 */
  84. .login-modal-close {
  85. position: absolute;
  86. top: 10px;
  87. right: 10px;
  88. font-size: 24px;
  89. color: #007aff; /* iOS 蓝色 */
  90. cursor: pointer;
  91. font-weight: bold;
  92. z-index: 1001; /* 确保在模态框内容的上方 */
  93. }
  94. /* 模态框中的文本样式 */
  95. #userInfoContainer p {
  96. margin: 10px 0; /* 增加上下间距 */
  97. font-size: 16px; /* iOS 字体大小 */
  98. color: #333; /* 深灰色字体 */
  99. font-weight: 500;
  100. line-height: 1.5; /* 增加行高 */
  101. }
  102. /* iOS 风格的弹出动画 */
  103. @keyframes fadeIn {
  104. from {
  105. opacity: 0;
  106. transform: scale(0.95); /* 轻微缩放效果 */
  107. }
  108. to {
  109. opacity: 1;
  110. transform: scale(1);
  111. }
  112. }
  113. /* iOS 风格退出按钮 */
  114. .logout-button {
  115. background-color: #ff3b30; /* iOS 风格红色 */
  116. color: white;
  117. padding: 12px 20px;
  118. border-radius: 15px; /* 圆角 */
  119. font-size: 16px;
  120. font-weight: 600;
  121. cursor: pointer;
  122. transition: background-color 0.3s ease;
  123. border: none;
  124. width: 100%; /* 占满模态框的宽度 */
  125. margin-top: 20px; /* 增加与其他元素的距离 */
  126. }
  127. .logout-button:hover {
  128. background-color: #d12a1f; /* 悬停时颜色稍深 */
  129. }
  130. /*----------------*/
  131. /* 容器布局:包含侧边栏和主内容 */
  132. .container {
  133. display: flex;
  134. /*height: calc(100vh - 70px); 视口高度减去头部高度 */
  135. height: 100vh;
  136. }
  137. /* 侧边栏样式 */
  138. /* 固定侧边栏 */
  139. aside {
  140. top: 0;
  141. left: 0;
  142. width: 200px; /* 侧边栏的宽度 */
  143. height: 100vh; /* 高度占满视口 */
  144. background-color: #2c3e50; /* 背景颜色 */
  145. color: #ffffff;
  146. display: flex;
  147. flex-direction: column;
  148. align-items: center;
  149. padding-top: 20px;
  150. box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
  151. }
  152. /* 侧边栏内的导航菜单 */
  153. nav ul {
  154. list-style: none; /* 去除默认的列表样式 */
  155. padding: 0;
  156. width: 100%; /* 使菜单项占满宽度 */
  157. }
  158. nav ul li {
  159. width: 100%; /* 每个菜单项占满整个宽度 */
  160. margin-bottom: 10px; /* 菜单项之间的间距 */
  161. }
  162. nav ul li a {
  163. display: flex; /* 使图标和文字并排显示 */
  164. align-items: center; /* 垂直居中 */
  165. padding: 15px 20px; /* 内边距 */
  166. color: #ffffff; /* 文字颜色 */
  167. text-decoration: none; /* 去掉下划线 */
  168. font-size: 16px; /* 字体大小 */
  169. font-weight: 500; /* 字体粗细 */
  170. transition: background 0.3s; /* 背景色的过渡效果 */
  171. }
  172. nav ul li a.active,
  173. nav ul li a:hover {
  174. background-color: #1abc9c; /* 激活和悬停状态的背景颜色 */
  175. color: #ffffff; /* 保持文字为白色 */
  176. border-radius: 5px; /* 添加圆角 */
  177. }
  178. /* 图标样式(假设使用 FontAwesome 或其他图标库) */
  179. nav ul li a i {
  180. font-size: 20px; /* 图标大小 */
  181. margin-right: 10px; /* 图标和文字的间距 */
  182. }
  183. /* 主内容区域 */
  184. main {
  185. flex: 1; /* 占据剩余宽度 */
  186. padding: 20px;
  187. overflow-y: scroll; /* 启用垂直滚动 */
  188. background-color: #ecf0f1; /* 浅灰色背景 */
  189. height: auto; /* 自动调整高度 */
  190. }
  191. /* 瀑布流容器样式,每行最多显示4个卡片 */
  192. .license-info-container {
  193. display: flex;
  194. flex-wrap: wrap;
  195. gap: 20px; /* 卡片之间的间距 */
  196. }
  197. /* 卡片样式 */
  198. .license-info-card {
  199. position: relative;
  200. width: calc(25% - 20px); /* 每行4个卡片,减去间距 */
  201. background-color: #ffffff; /* 白色背景 */
  202. border-radius: 15px; /* iOS风格的圆角 */
  203. box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* 轻微柔和的阴影 */
  204. overflow: hidden;
  205. transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* 过渡效果 */
  206. margin-bottom: 20px;
  207. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* iOS 系统字体 */
  208. padding-bottom: 20px; /* 添加底部填充,以防止内容溢出 */
  209. }
  210. /* 悬停效果 */
  211. .license-info-card:hover {
  212. transform: translateY(-3px); /* 悬停时轻微向上浮动 */
  213. box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1); /* 悬停时增加阴影效果 */
  214. }
  215. /* 卡片顶部蓝色区域 */
  216. .license-info-card-header {
  217. background-color: #007aff; /* iOS风格的蓝色 */
  218. height: 50px; /* 顶部蓝色部分的高度 */
  219. border-top-left-radius: 15px;
  220. border-top-right-radius: 15px;
  221. display: flex;
  222. justify-content: center;
  223. align-items: center;
  224. padding: 10px;
  225. text-align: center;
  226. color: white; /* 项目名称字体颜色为白色 */
  227. }
  228. /* 标题样式:现在位于蓝色区域 */
  229. .card-title {
  230. font-size: 20px; /* 标题字体加大 */
  231. font-weight: 600; /* 标题字体加粗 */
  232. color: white; /* 项目名称字体颜色为白色,和背景颜色形成对比 */
  233. margin: 0;
  234. line-height: 1.2; /* 行间距 */
  235. }
  236. /* 副标题和其他文本样式 */
  237. .license-info-card-content {
  238. padding: 20px;
  239. color: #333;
  240. }
  241. .card-text {
  242. margin: 10px 0; /* 增加字段之间的间距 */
  243. font-size: 18px; /* 提高字体大小 */
  244. color: #3a3a3c; /* 中灰色,符合iOS风格 */
  245. line-height: 1.6; /* 行间距调整,确保更好的可读性 */
  246. }
  247. /* 许可证状态的颜色 */
  248. .license-status-green {
  249. color: #34c759; /* iOS的绿色 */
  250. }
  251. .license-status-yellow {
  252. color: #ffcc00; /* iOS的黄色 */
  253. }
  254. .license-status-red {
  255. color: #ff3b30; /* iOS的红色 */
  256. }
  257. /*这部分代码仅在设备屏幕宽度小于或等于 768 像素时生效
  258. */
  259. @media (max-width: 768px) {
  260. /* 小屏幕下卡片调整为每行显示2个 */
  261. .license-info-card {
  262. width: calc(50% - 20px);
  263. height: auto; /* 调整小屏幕下的高度 */
  264. }
  265. }
  266. /*-----------------*/
  267. /* 响应式设计,适配小屏幕 */
  268. @media (max-width: 768px) {
  269. .license-info-modal-content.show {
  270. width: 90vw; /* 在小屏设备中宽度为90% */
  271. height: 90vh; /* 高度为90% */
  272. }
  273. }
  274. /* 模态框样式,初始隐藏 */
  275. .license-info-modal {
  276. display: none; /* 初始隐藏模态框 */
  277. position: fixed; /* 固定位置,模态框将一直可见,随页面滚动保持位置 */
  278. top: 0;
  279. left: 0;
  280. width: 100%; /* 宽度占据整个屏幕 */
  281. height: 100%; /* 高度占据整个屏幕 */
  282. background-color: rgba(0, 0, 0, 0.2); /* 半透明背景,模态框弹出时背景变暗 */
  283. justify-content: center; /* 居中模态框水平 */
  284. align-items: center; /* 居中模态框垂直 */
  285. /* z-index: 1000; 保证模态框在所有元素之上显示 */
  286. overflow: hidden; /* 禁止模态框背景滚动 */
  287. }
  288. /* 模态框内容样式,带有圆角和阴影 */
  289. .license-info-modal-content {
  290. background-color: white; /* 模态框内部背景色为白色 */
  291. padding: 20px; /* 内部填充 */
  292. border-radius: 20px; /* 设置较大的圆角,符合iOS风格 */
  293. position: absolute; /* 使用绝对定位 */
  294. transform-origin: center; /* 动画从中心展开 */
  295. opacity: 0; /* 初始透明度为0,不可见 */
  296. transition: opacity 0.3s ease, transform 0.3s ease; /* 使用渐变效果使模态框逐渐显示 */
  297. box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* 模态框阴影,增加浮动感 */
  298. max-height: 80vh; /* 最大高度不超过视口的80% */
  299. overflow-y: auto; /* 如果内容超出高度则滚动 */
  300. }
  301. /* 模态框的初始缩放效果,配合过渡动画 */
  302. .license-info-modal-content {
  303. transform: scale(0.95); /* 初始有轻微缩放效果 */
  304. }
  305. /* 动画结束后的模态框样式,设置为80%大小且居中 */
  306. .license-info-modal-content.show {
  307. opacity: 1; /* 动画显示模态框 */
  308. width: 80vw; /* 宽度占据视口80% */
  309. height: 70vh; /* 高度占据视口70% */
  310. top: 50%; /* 垂直居中 */
  311. left: 50%; /* 水平居中 */
  312. transform: translate(-50%, -50%) scale(1); /* 完全居中,且带有缩放效果 */
  313. }
  314. /* 关闭按钮样式 */
  315. .license-info-close {
  316. position: absolute; /* 绝对定位,确保关闭按钮在模态框的右上角 */
  317. top: 10px;
  318. right: 20px;
  319. font-size: 28px; /* 关闭按钮的字体大小 */
  320. color: #007aff; /* iOS风格的蓝色 */
  321. cursor: pointer; /* 鼠标悬停时显示手指图标 */
  322. font-weight: 600; /* 设置按钮的字体粗细 */
  323. }
  324. /* 模态框上半部分的样式 */
  325. .license-info-modal-header {
  326. display: flex;
  327. flex-direction: column;
  328. align-items: center;
  329. margin-bottom: 20px;
  330. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  331. }
  332. /* 标题的 iOS 风格 */
  333. .license-info-modal-header h2 {
  334. font-size: 24px;
  335. font-weight: 600;
  336. color: #333;
  337. margin-bottom: 10px;
  338. }
  339. /* 按钮组的样式 */
  340. .license-info-modal-button-group {
  341. display: flex;
  342. justify-content: space-around;
  343. width: 100%;
  344. margin-top: 10px;
  345. }
  346. /* 组样式:每组数据方框 */
  347. .license-info-group-box {
  348. border: 1px solid #ccc; /* 灰色边框 */
  349. border-radius: 8px; /* 设置圆角 */
  350. padding: 15px; /* 内部填充 */
  351. margin-bottom: 15px; /* 组之间的间隔 */
  352. background-color: #f9f9f9; /* 设置浅灰色背景 */
  353. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 设置轻微的阴影 */
  354. }
  355. .license-info-group-box p {
  356. margin: 5px 0;
  357. font-size: 16px;
  358. color: #333;
  359. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* 符合 iOS 风格的字体 */
  360. }
  361. .license-info-group-title {
  362. font-weight: 600;
  363. margin-bottom: 10px;
  364. color: #007aff; /* iOS 风格的蓝色标题 */
  365. }
  366. .license-info-modal-button {
  367. padding: 12px 20px;
  368. background-color: #007aff; /* iOS风格的蓝色按钮 */
  369. color: white; /* 按钮字体颜色为白色 */
  370. border: none;
  371. border-radius: 12px; /* 设置圆角按钮 */
  372. font-size: 16px;
  373. font-weight: 500;
  374. cursor: pointer; /* 鼠标悬停时显示手指图标 */
  375. transition: background-color 0.3s ease; /* 背景颜色过渡效果 */
  376. }
  377. .license-info-modal-button:hover {
  378. background-color: #005bb5; /* 按钮的悬停效果 */
  379. }
  380. .license-info-modal-button:disabled {
  381. background-color: #ccc;
  382. cursor: not-allowed;
  383. }
  384. /* 模态框下半部分的样式 */
  385. .license-info-modal-body {
  386. overflow-y: auto; /* 当内容超出容器时,启用垂直滚动条 */
  387. flex-grow: 1; /* 占据模态框的剩余空间 */
  388. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  389. color: #3a3a3c; /* 字体颜色为深灰色 */
  390. font-size: 18px;
  391. line-height: 1.6; /* 行高 */
  392. }
  393. /* 添加滚动条样式,符合iOS的滑动效果 */
  394. .license-info-modal-body::-webkit-scrollbar {
  395. width: 6px;
  396. }
  397. .license-info-modal-body::-webkit-scrollbar-thumb {
  398. background-color: rgba(0, 0, 0, 0.2);
  399. border-radius: 3px;
  400. }
  401. /* 分页按钮组样式 */
  402. .license-info-modal-pagination {
  403. display: flex;
  404. justify-content: center;
  405. margin-top: 20px;
  406. }
  407. .license-info-modal-pagination button {
  408. padding: 10px 15px;
  409. margin: 0 5px;
  410. background-color: #007aff;
  411. color: white;
  412. border: none;
  413. border-radius: 5px;
  414. cursor: pointer;
  415. font-size: 16px;
  416. transition: background-color 0.3s ease;
  417. }
  418. .license-info-modal-pagination button:hover {
  419. background-color: #005bb5; /* 鼠标悬停时按钮背景颜色变深 */
  420. }
  421. .license-info-modal-pagination button:disabled {
  422. background-color: #ccc; /* 禁用时按钮为灰色 */
  423. cursor: not-allowed;
  424. }
  425. /* 分页下拉框样式 */
  426. .license-info-modal-pagination select {
  427. padding: 10px 15px;
  428. margin: 0 5px;
  429. background-color: #007aff;
  430. color: white;
  431. border: none;
  432. border-radius: 5px;
  433. cursor: pointer;
  434. font-size: 16px;
  435. transition: background-color 0.3s ease;
  436. }
  437. /* 下拉框中的选项样式 */
  438. .license-info-modal-pagination select option {
  439. background-color: white; /* 默认背景颜色 */
  440. color: black; /* 默认字体颜色 */
  441. }
  442. /* 鼠标悬停选项时 */
  443. .license-info-modal-pagination select option:hover {
  444. background-color: #007aff; /* 鼠标悬停时选项变为蓝色 */
  445. color: white; /* 悬停时字体颜色变为白色 */
  446. }
  447. /* 选中的选项的样式 */
  448. .license-info-modal-pagination select option:checked {
  449. background-color: #ccc; /* 当前选中的选项背景为蓝色 */
  450. color: white; /* 当前选中的选项字体颜色为白色 */
  451. }
  452. /* 侧边栏的菜单项与搜索框保持间距 */
  453. nav ul {
  454. padding-top: 20px;
  455. }
  456. /* 活跃菜单项样式 */
  457. nav ul li a.active {
  458. background-color: #007aff;
  459. color: white;
  460. }
  461. /*进度条-----------------------------------------------------*/
  462. /* 模态框的基础样式 */
  463. .loading-modal {
  464. position: fixed;
  465. z-index: 9999;
  466. left: 0;
  467. top: 0;
  468. width: 100%;
  469. height: 100%;
  470. background-color: rgba(0, 0, 0, 0.5);
  471. display: flex;
  472. justify-content: center;
  473. align-items: center;
  474. }
  475. .loading-modal-content {
  476. background-color: white;
  477. padding: 20px;
  478. border-radius: 8px;
  479. text-align: center;
  480. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  481. }
  482. .spinner {
  483. border: 4px solid rgba(0, 0, 0, 0.1);
  484. border-left-color: #09f;
  485. border-radius: 50%;
  486. width: 40px;
  487. height: 40px;
  488. animation: spin 1s linear infinite;
  489. margin-bottom: 10px;
  490. }
  491. @keyframes spin {
  492. from { transform: rotate(0deg); }
  493. to { transform: rotate(360deg); }
  494. }
  495. /* Loading message text style */
  496. .loading-modal p {
  497. margin: 0;
  498. font-size: 16px;
  499. color: #333;
  500. }
  501. /* 用户管理模态框------------------------------------------------------ */
  502. /* 用户管理模态框的背景层 */
  503. /* 响应式设计,适配小屏幕 */
  504. /* 用户管理模态框的背景层 */
  505. /* 搜索栏样式*/
  506. /* 搜索框和下拉框容器样式 */
  507. .search-container {
  508. display: flex;
  509. align-items: center;
  510. justify-content: center;
  511. gap: 10px;
  512. padding: 10px 0;
  513. background-color: #ffffff;
  514. }
  515. /* License 状态下拉框、日期输入框和搜索框的样式 */
  516. #license-status-filter, #start-date, #end-date, #search-bar {
  517. width: 18%;
  518. padding: 12px;
  519. border-radius: 15px;
  520. border: none;
  521. background-color: #ffffff;
  522. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  523. font-size: 16px;
  524. color: #333;
  525. transition: all 0.3s ease;
  526. }
  527. /* 日期框在获得焦点时的效果 */
  528. #start-date:focus, #end-date:focus {
  529. outline: none;
  530. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  531. }
  532. /* 确定按钮样式 */
  533. /* 确定按钮和返回按钮的统一样式 */
  534. #submit-button,
  535. #reset-button {
  536. padding: 12px 20px;
  537. background-color: #007aff; /* iOS风格的蓝色按钮 */
  538. color: white;
  539. border: none;
  540. border-radius: 15px;
  541. font-size: 16px;
  542. cursor: pointer;
  543. transition: background-color 0.3s ease;
  544. }
  545. /* 鼠标悬停时按钮效果 */
  546. #submit-button:hover,
  547. #reset-button:hover {
  548. background-color: #005bb5;
  549. }
  550. /*-----------------分发*/
  551. /*------------分发历史模态框*/
  552. /* 分发历史模态框整体样式 */
  553. .distributionHistory-modal {
  554. display: none; /* 默认隐藏 */
  555. position: fixed;
  556. z-index: 1000;
  557. left: 0;
  558. top: 0;
  559. width: 100%;
  560. height: 100%;
  561. background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
  562. justify-content: center;
  563. align-items: center;
  564. overflow: hidden;
  565. }
  566. /* 分发历史模态框内容样式 */
  567. .distributionHistory-modal-content {
  568. background-color: #fff;
  569. width: 400px; /* 模态框的宽度 */
  570. max-width: 90%; /* 最大宽度为视口的90% */
  571. padding: 20px;
  572. border-radius: 10px;
  573. box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* 轻微阴影 */
  574. position: relative;
  575. text-align: center;
  576. }
  577. /* 分发历史模态框关闭按钮样式 */
  578. .distributionHistory-modal-close {
  579. position: absolute;
  580. top: 10px;
  581. right: 15px;
  582. font-size: 24px;
  583. color: #333;
  584. cursor: pointer;
  585. }
  586. /* 分发历史模态框标题样式 */
  587. .distributionHistory-modal-header h2,
  588. .distributionHistory-modal-body h2 {
  589. font-size: 20px;
  590. font-weight: bold;
  591. margin-bottom: 15px;
  592. color: #333;
  593. }
  594. /* 分发历史模态框邮箱部分样式 */
  595. .distributionHistory-modal-email-section {
  596. margin-bottom: 20px;
  597. }
  598. .distributionHistory-modal-email-section h2 {
  599. font-size: 18px;
  600. margin-bottom: 10px;
  601. color: #007bff;
  602. }
  603. /* 分发历史模态框用户部分样式 */
  604. .distributionHistory-modal-user-section {
  605. margin-top: 20px;
  606. }
  607. .distributionHistory-modal-user-section h2 {
  608. font-size: 18px;
  609. margin-bottom: 10px;
  610. color: #28a745;
  611. }
  612. /* 分发历史模态框的输入框区域样式 */
  613. .distributionHistory-modal-inputs,
  614. .distributionHistory-modal-user-inputs {
  615. display: flex;
  616. flex-direction: column;
  617. align-items: flex-start;
  618. }
  619. .distributionHistory-modal-inputs div,
  620. .distributionHistory-modal-user-inputs div {
  621. margin-bottom: 10px;
  622. }
  623. .distributionHistory-modal input[type="checkbox"] {
  624. margin-right: 10px;
  625. }
  626. .distributionHistory-modal-label {
  627. font-size: 16px;
  628. color: #555;
  629. cursor: pointer;
  630. }
  631. /* 分发历史模态框确认按钮样式 */
  632. .distributionHistory-modal-confirm-button {
  633. background-color: #007bff;
  634. color: white;
  635. padding: 10px 20px;
  636. border: none;
  637. border-radius: 5px;
  638. cursor: pointer;
  639. margin-top: 20px;
  640. font-size: 16px;
  641. }
  642. .distributionHistory-modal-confirm-button:hover {
  643. background-color: #0056b3;
  644. }
  645. /* 分发历史模态框用户选择框容器样式 */
  646. .distributionHistory-modal-user-select-container {
  647. margin-bottom: 15px;
  648. width: 100%;
  649. display: flex;
  650. justify-content: center; /* 居中 */
  651. }
  652. /* 分发历史模态框专属下拉框样式 */
  653. .distributionHistory-modal-user-select {
  654. width: 80%; /* 下拉框的宽度 */
  655. padding: 10px;
  656. border-radius: 8px;
  657. border: 1px solid #ccc;
  658. font-size: 16px;
  659. background-color: #f9f9f9; /* 浅灰背景 */
  660. color: #333; /* 字体颜色 */
  661. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
  662. transition: border-color 0.3s ease;
  663. }
  664. .distributionHistory-modal-user-select:focus {
  665. border-color: #007bff; /* 焦点时的边框颜色 */
  666. outline: none; /* 去掉默认的焦点样式 */
  667. box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* 焦点时的阴影效果 */
  668. }
  669. /* 下拉框的选项样式 */
  670. .distributionHistory-modal-user-select option {
  671. background-color: white; /* 默认背景颜色 */
  672. color: black; /* 默认字体颜色 */
  673. }
  674. /* 悬停选项时的样式 */
  675. .distributionHistory-modal-user-select option:hover {
  676. background-color: #007bff; /* 悬停时选项的背景颜色 */
  677. color: white; /* 悬停时字体颜色 */
  678. }
  679. /* 选中的选项的样式 */
  680. .distributionHistory-modal-user-select option:checked {
  681. background-color: #0056b3; /* 选中的选项的背景颜色 */
  682. color: white; /* 选中的选项的字体颜色 */
  683. }
  684. /* 分发历史模态框添加用户按钮样式 */
  685. .distributionHistory-modal-add-user-button {
  686. padding: 10px 15px;
  687. background-color: #007bff;
  688. color: white;
  689. border: none;
  690. border-radius: 5px;
  691. cursor: pointer;
  692. margin-top: 10px;
  693. transition: background-color 0.3s ease;
  694. }
  695. .distributionHistory-modal-add-user-button:hover {
  696. background-color: #0056b3;
  697. }