123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- .user-info-cards-container {
- display: flex;
- flex-wrap: wrap;
- gap: 16px;
- justify-content: flex-start;
- }
-
- .user-info-card {
- 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;
- }
-
- .user-info-card:hover {
- transform: scale(1.05);
- }
-
- .user-info-card-content p {
- margin: 8px 0;
- font-size: 14px;
- }
-
- .user-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; /* 与标题之间的间距 */
- }
-
- .user-info-create-role-button:hover {
- background-color: #005bb5;
- }
-
-
- /*点击用户信息卡片弹出模态框*/
- /* 模态框的背景(遮罩层) */
- .user-info-modal {
- display: none; /* 默认隐藏 */
- position: fixed; /* 固定位置 */
- z-index: 1; /* 位于页面的最上层 */
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- overflow: auto; /* 允许滚动 */
- background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
- }
- /* 模态框内容 */
- .user-info-modal-content {
- background-color: #fefefe;
- margin: 15% auto; /* 模态框居中 */
- padding: 20px;
- border: 1px solid #888;
- width: 400px; /* 模态框宽度 */
- border-radius: 8px;
- }
- /* 关闭按钮 */
- .user-info-close {
- color: #aaa;
- float: right;
- font-size: 28px;
- font-weight: bold;
- }
- .user-info-close:hover {
- color: #ff3b30; /* iOS 关闭按钮的红色 */
- }
- .user-info-close:focus {
- color: black;
- text-decoration: none;
- cursor: pointer;
- }
- /* 模态框内的按钮 */
- .user-info-modal-buttons {
- margin-top: 20px;
- display: flex;
- justify-content: space-between;
- }
- .user-info-button {
- padding: 10px 20px;
- background-color: #4CAF50;
- color: white;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- transition: background-color 0.3s;
- }
- .user-info-button:hover {
- background-color: #45a049;
- }
- /*添加用户模态框样式-----------------------------------------------*/
- /* 表单组样式 */
- /* 表单组样式 */
- /* 添加用户模态框的背景(遮罩层) */
- .add-user-modal {
- display: none; /* 默认隐藏模态框 */
- position: fixed;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.5); /* 背景半透明 */
- display: flex; /* 使用 Flexbox 布局来居中内容 */
- align-items: center; /* 垂直居中 */
- justify-content: center; /* 水平居中 */
- }
- /* 添加用户模态框内容 */
- .add-user-modal-content {
- background-color: #fefefe;
- margin: 1% auto; /* 模态框居中 */
- padding: 50px;
- border: 1px solid #888;
- max-width: 1000px;
- width: 550px; /* 模态框宽度 */
- border-radius: 8px;
- }
- /* 关闭按钮 */
- .add-user-close {
- position: absolute;
- right: 20px;
- top: 20px;
- color: #888;
- font-size: 24px;
- font-weight: bold;
- cursor: pointer;
- transition: color 0.2s ease;
- }
- .add-user-close:hover {
- color: #ff3b30; /* iOS 关闭按钮的红色 */
- }
- /* 表单组样式 */
- .add-user-form-group {
- margin-bottom: 20px;
- }
- /* iOS 风格输入框 */
- .add-user-flat-rounded-input {
- width: 100%;
- padding: 12px;
- font-size: 16px;
- border: none;
- border-radius: 12px;
- background-color: #f7f7f7; /* iOS风格浅灰色背景 */
- box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* iOS风格内阴影 */
- margin: 10px 0;
- transition: background-color 0.2s ease;
- appearance: none; /* 移除浏览器默认样式 */
- }
- .add-user-flat-rounded-input:focus {
- outline: none;
- background-color: #e8e8e8; /* 聚焦时的浅色背景 */
- }
- /* iOS 风格按钮 */
- .add-user-flat-rounded-button {
- width: 100%;
- background-color: #007aff; /* iOS经典蓝色 */
- color: white;
- padding: 14px 0;
- font-size: 16px;
- border: none;
- border-radius: 12px;
- cursor: pointer;
- transition: background-color 0.2s ease;
- font-weight: 600;
- }
- .add-user-flat-rounded-button:hover {
- background-color: #005ecb; /* 按钮 hover 时更深的蓝色 */
- }
- .add-user-flat-rounded-button:active {
- background-color: #004a99; /* 按下时的颜色变化 */
- }
- /*修改用户样式----------------------*/
- .editUser-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;
- }
- .editUser-modal.show {
- display: flex; /* 添加一个类以显示模态框 */
- }
- .editUser-modal-content {
- background: white;
- border-radius: 10px;
- width: 400px;
- padding: 20px;
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
- }
- .editUser-form-group {
- display: flex;
- align-items: center;
- margin-bottom: 15px;
- }
- .editUser-form-group label {
- flex: 0 0 80px;
- }
- .editUser-form-group input,
- .editUser-form-group select {
- flex: 1;
- padding: 10px;
- border: 1px solid #ccc;
- border-radius: 5px;
- }
- .editUser-role-select {
- margin-top: 15px;
- }
- .editUser-buttons {
- display: flex;
- justify-content: space-between;
- margin-top: 20px;
- }
- .editUser-button {
- background-color: #007aff; /* iOS蓝色 */
- color: white;
- border: none;
- padding: 10px 15px;
- border-radius: 5px;
- cursor: pointer;
- }
- .editUser-button:hover {
- background-color: #005bb5; /* 深蓝色 */
- }
|