license_info.css 16 KB

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