123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- .role-info-cards-container {
- display: flex;
- flex-wrap: wrap;
- gap: 16px;
- justify-content: flex-start;
- }
- .role-item {
- background-color: #f9f9f9;
- border-radius: 8px;
- padding: 16px;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
- width: 300px;
- transition: transform 0.2s ease-in-out;
- position: relative;
- }
- .role-item:hover {
- transform: scale(1.05);
- }
- .role-info-create-role-button {
- background-color: #007aff;
- color: white;
- border: none;
- padding: 10px 20px;
- border-radius: 10px;
- cursor: pointer;
- font-size: 16px;
- font-weight: 500;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- transition: background-color 0.3s;
- margin-left: 20px;
- }
- .role-info-create-role-button:hover {
- background-color: #005bb5;
- }
- /* 弹出菜单样式 */
- #role-action-menu {
- position: absolute;
- background-color: #fff;
- border: 1px solid #ccc;
- border-radius: 5px;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
- padding: 10px;
- z-index: 1000;
- }
- /* 模态框内按钮 */
- .role-info-button {
- padding: 10px 20px;
- background-color: #4CAF50;
- color: white;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- transition: background-color 0.3s;
- margin-bottom: 10px;
- }
- .role-info-button:hover {
- background-color: #45a049;
- }
- .role-info-button-delete {
- background-color: #ff3b30;
- }
- .role-info-button-delete:hover {
- background-color: #c23321;
- }
- /*创建角色模态框*/
- .role-info-modal {
- display: none; /* 初始隐藏模态框 */
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.5);
- justify-content: center;
- align-items: center;
- z-index: 1000; /* 确保模态框在最上层 */
- }
- .role-info-modal.show {
- display: flex; /* 添加一个类以显示模态框 */
- }
- .createRoleModal-content {
- background: white;
- border-radius: 10px;
- width: 400px;
- padding: 20px;
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
- }
- .createRoleModal-content h3 {
- margin: 0 0 15px 0;
- }
- .createRoleModal-content input[type="text"] {
- width: 100%;
- padding: 10px;
- margin-bottom: 15px;
- border: 1px solid #ccc;
- border-radius: 5px;
- }
- .createRole-buttons {
- display: flex;
- justify-content: flex-end;
- }
- .createRole-button {
- background-color: #007aff; /* iOS蓝色 */
- color: white;
- border: none;
- padding: 10px 15px;
- border-radius: 5px;
- cursor: pointer;
- }
- .createRole-button:hover {
- background-color: #005bb5; /* 深蓝色 */
- }
- .close-button {
- position: absolute;
- top: 10px;
- right: 10px;
- cursor: pointer;
- font-size: 20px;
- }
|