role.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .role-info-cards-container {
  2. display: flex;
  3. flex-wrap: wrap;
  4. gap: 16px;
  5. justify-content: flex-start;
  6. }
  7. .role-item {
  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. position: relative;
  15. }
  16. .role-item:hover {
  17. transform: scale(1.05);
  18. }
  19. .role-info-create-role-button {
  20. background-color: #007aff;
  21. color: white;
  22. border: none;
  23. padding: 10px 20px;
  24. border-radius: 10px;
  25. cursor: pointer;
  26. font-size: 16px;
  27. font-weight: 500;
  28. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  29. transition: background-color 0.3s;
  30. margin-left: 20px;
  31. }
  32. .role-info-create-role-button:hover {
  33. background-color: #005bb5;
  34. }
  35. /* 弹出菜单样式 */
  36. #role-action-menu {
  37. position: absolute;
  38. background-color: #fff;
  39. border: 1px solid #ccc;
  40. border-radius: 5px;
  41. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  42. padding: 10px;
  43. z-index: 1000;
  44. }
  45. /* 模态框内按钮 */
  46. .role-info-button {
  47. padding: 10px 20px;
  48. background-color: #4CAF50;
  49. color: white;
  50. border: none;
  51. border-radius: 4px;
  52. cursor: pointer;
  53. transition: background-color 0.3s;
  54. margin-bottom: 10px;
  55. }
  56. .role-info-button:hover {
  57. background-color: #45a049;
  58. }
  59. .role-info-button-delete {
  60. background-color: #ff3b30;
  61. }
  62. .role-info-button-delete:hover {
  63. background-color: #c23321;
  64. }