user.css 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. .user-info-cards-container {
  2. display: flex;
  3. flex-wrap: wrap;
  4. gap: 16px;
  5. justify-content: flex-start;
  6. }
  7. .user-info-card {
  8. background-color: #f9f9f9;
  9. border-radius: 8px;
  10. padding: 16px;
  11. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  12. width: 300px;
  13. transition: transform 0.2s ease-in-out;
  14. }
  15. .user-info-card:hover {
  16. transform: scale(1.05);
  17. }
  18. .user-info-card-content p {
  19. margin: 8px 0;
  20. font-size: 14px;
  21. }
  22. .user-info-create-role-button {
  23. background-color: #007aff;
  24. color: white;
  25. border: none;
  26. padding: 10px 20px;
  27. border-radius: 10px;
  28. cursor: pointer;
  29. font-size: 16px;
  30. font-weight: 500;
  31. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  32. transition: background-color 0.3s;
  33. margin-left: 20px; /* 与标题之间的间距 */
  34. }
  35. .user-info-create-role-button:hover {
  36. background-color: #005bb5;
  37. }
  38. /*点击用户信息卡片弹出模态框*/
  39. /* 模态框的背景(遮罩层) */
  40. .user-info-modal {
  41. display: none; /* 默认隐藏 */
  42. position: fixed; /* 固定位置 */
  43. z-index: 1; /* 位于页面的最上层 */
  44. left: 0;
  45. top: 0;
  46. width: 100%;
  47. height: 100%;
  48. overflow: auto; /* 允许滚动 */
  49. background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
  50. }
  51. /* 模态框内容 */
  52. .user-info-modal-content {
  53. background-color: #fefefe;
  54. margin: 15% auto; /* 模态框居中 */
  55. padding: 20px;
  56. border: 1px solid #888;
  57. width: 400px; /* 模态框宽度 */
  58. border-radius: 8px;
  59. }
  60. /* 关闭按钮 */
  61. .user-info-close {
  62. color: #aaa;
  63. float: right;
  64. font-size: 28px;
  65. font-weight: bold;
  66. }
  67. .user-info-close:hover {
  68. color: #ff3b30; /* iOS 关闭按钮的红色 */
  69. }
  70. .user-info-close:focus {
  71. color: black;
  72. text-decoration: none;
  73. cursor: pointer;
  74. }
  75. /* 模态框内的按钮 */
  76. .user-info-modal-buttons {
  77. margin-top: 20px;
  78. display: flex;
  79. justify-content: space-between;
  80. }
  81. .user-info-button {
  82. padding: 10px 20px;
  83. background-color: #4CAF50;
  84. color: white;
  85. border: none;
  86. border-radius: 4px;
  87. cursor: pointer;
  88. transition: background-color 0.3s;
  89. }
  90. .user-info-button:hover {
  91. background-color: #45a049;
  92. }
  93. /*添加用户模态框样式-----------------------------------------------*/
  94. /* 表单组样式 */
  95. /* 表单组样式 */
  96. /* 添加用户模态框的背景(遮罩层) */
  97. .add-user-modal {
  98. display: none; /* 默认隐藏模态框 */
  99. position: fixed;
  100. left: 0;
  101. top: 0;
  102. width: 100%;
  103. height: 100%;
  104. background-color: rgba(0, 0, 0, 0.5); /* 背景半透明 */
  105. display: flex; /* 使用 Flexbox 布局来居中内容 */
  106. align-items: center; /* 垂直居中 */
  107. justify-content: center; /* 水平居中 */
  108. }
  109. /* 添加用户模态框内容 */
  110. .add-user-modal-content {
  111. background-color: #fefefe;
  112. margin: 1% auto; /* 模态框居中 */
  113. padding: 50px;
  114. border: 1px solid #888;
  115. max-width: 1000px;
  116. width: 550px; /* 模态框宽度 */
  117. border-radius: 8px;
  118. }
  119. /* 关闭按钮 */
  120. .add-user-close {
  121. position: absolute;
  122. right: 20px;
  123. top: 20px;
  124. color: #888;
  125. font-size: 24px;
  126. font-weight: bold;
  127. cursor: pointer;
  128. transition: color 0.2s ease;
  129. }
  130. .add-user-close:hover {
  131. color: #ff3b30; /* iOS 关闭按钮的红色 */
  132. }
  133. /* 表单组样式 */
  134. .add-user-form-group {
  135. margin-bottom: 20px;
  136. }
  137. /* iOS 风格输入框 */
  138. .add-user-flat-rounded-input {
  139. width: 100%;
  140. padding: 12px;
  141. font-size: 16px;
  142. border: none;
  143. border-radius: 12px;
  144. background-color: #f7f7f7; /* iOS风格浅灰色背景 */
  145. box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* iOS风格内阴影 */
  146. margin: 10px 0;
  147. transition: background-color 0.2s ease;
  148. appearance: none; /* 移除浏览器默认样式 */
  149. }
  150. .add-user-flat-rounded-input:focus {
  151. outline: none;
  152. background-color: #e8e8e8; /* 聚焦时的浅色背景 */
  153. }
  154. /* iOS 风格按钮 */
  155. .add-user-flat-rounded-button {
  156. width: 100%;
  157. background-color: #007aff; /* iOS经典蓝色 */
  158. color: white;
  159. padding: 14px 0;
  160. font-size: 16px;
  161. border: none;
  162. border-radius: 12px;
  163. cursor: pointer;
  164. transition: background-color 0.2s ease;
  165. font-weight: 600;
  166. }
  167. .add-user-flat-rounded-button:hover {
  168. background-color: #005ecb; /* 按钮 hover 时更深的蓝色 */
  169. }
  170. .add-user-flat-rounded-button:active {
  171. background-color: #004a99; /* 按下时的颜色变化 */
  172. }
  173. /*修改用户样式----------------------*/
  174. .editUser-modal {
  175. display: none; /* 初始隐藏模态框 */
  176. position: fixed;
  177. top: 0;
  178. left: 0;
  179. right: 0;
  180. bottom: 0;
  181. background: rgba(0, 0, 0, 0.5);
  182. justify-content: center;
  183. align-items: center;
  184. }
  185. .editUser-modal.show {
  186. display: flex; /* 添加一个类以显示模态框 */
  187. }
  188. .editUser-modal-content {
  189. background: white;
  190. border-radius: 10px;
  191. width: 400px;
  192. padding: 20px;
  193. box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  194. }
  195. .editUser-form-group {
  196. display: flex;
  197. align-items: center;
  198. margin-bottom: 15px;
  199. }
  200. .editUser-form-group label {
  201. flex: 0 0 80px;
  202. }
  203. .editUser-form-group input,
  204. .editUser-form-group select {
  205. flex: 1;
  206. padding: 10px;
  207. border: 1px solid #ccc;
  208. border-radius: 5px;
  209. }
  210. .editUser-role-select {
  211. margin-top: 15px;
  212. }
  213. .editUser-buttons {
  214. display: flex;
  215. justify-content: space-between;
  216. margin-top: 20px;
  217. }
  218. .editUser-button {
  219. background-color: #007aff; /* iOS蓝色 */
  220. color: white;
  221. border: none;
  222. padding: 10px 15px;
  223. border-radius: 5px;
  224. cursor: pointer;
  225. }
  226. .editUser-button:hover {
  227. background-color: #005bb5; /* 深蓝色 */
  228. }