123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- /* 分发模态框基础样式 */
- .DistributeModal {
- display: none; /* 初始隐藏 */
- position: fixed;
- z-index: 1000;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
- justify-content: center;
- align-items: center;
- }
- .DistributeModal-content {
- background-color: white;
- padding: 20px;
- width: 400px;
- max-width: 90%;
- border-radius: 10px;
- box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
- position: relative;
- text-align: center;
- }
- /* 关闭按钮 */
- .DistributeModal-close {
- position: absolute;
- top: 10px;
- right: 15px;
- font-size: 24px;
- color: #333;
- cursor: pointer;
- }
- /* 分发模态框上、下两个部分的样式 */
- .DistributeModal-section {
- margin-bottom: 20px;
- padding: 15px;
- border: 1px solid #ccc; /* 细边框 */
- border-radius: 5px;
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 阴影效果 */
- }
- /* 输入框样式 */
- .DistributeModal-email-input-wrapper {
- display: flex;
- align-items: center;
- margin-bottom: 10px;
- }
- .DistributeModal-email-input {
- flex: 1;
- padding: 10px;
- border: 1px solid #ccc;
- border-radius: 15px;
- background-color: #f5f5f5; /* iOS 风格背景 */
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
- font-size: 16px;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
- }
- /* 删除按钮样式 */
- .DistributeModal-remove-email-btn {
- background-color: #ff3b30; /* iOS 风格红色按钮 */
- color: white;
- border: none;
- border-radius: 50%;
- width: 25px;
- height: 25px;
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- flex-shrink: 0; /* 确保按钮不会缩小 */
- }
- .DistributeModal-remove-email-btn:hover {
- background-color: #d32f2f; /* 更深的红色 */
- }
- /* 布局:将新增邮箱和确认分发按钮放在一行 */
- .DistributeModal-email-button-wrapper {
- display: flex;
- justify-content: space-between; /* 按钮之间均匀分布 */
- gap: 5px; /* 将按钮之间的间距缩小为 5px */
- margin-bottom: 10px; /* 与输入框部分保持一定距离 */
- }
- /* 按钮样式 */
- .DistributeModal-button {
- background-color: #007aff; /* iOS风格的蓝色按钮 */
- color: white;
- padding: 10px;
- border: none;
- border-radius: 5px;
- cursor: pointer;
- margin-top: 10px;
- flex: 1; /* 使按钮占据相同宽度 */
- }
- .DistributeModal-button:hover {
- background-color: #0056b3;
- }
- /* 复选框容器样式 */
- .DistributeModal-checkbox-wrapper {
- display: flex;
- justify-content: space-between;
- margin-top: 10px;
- }
- /* 复选框标签样式 */
- .DistributeModal-checkbox-label {
- display: flex;
- align-items: center;
- font-size: 16px;
- color: #333;
- cursor: pointer;
- }
- /* 隐藏默认复选框 */
- .DistributeModal-checkbox {
- appearance: none;
- -webkit-appearance: none;
- position: absolute;
- opacity: 0;
- }
- /* 自定义复选框样式 */
- .DistributeModal-checkbox-custom {
- width: 40px;
- height: 20px;
- background-color: #ccc;
- border-radius: 10px;
- position: relative;
- transition: background-color 0.3s;
- }
- /* 复选框选中后的样式 */
- .DistributeModal-checkbox:checked + .DistributeModal-checkbox-custom {
- background-color: #007aff; /* iOS 风格的蓝色 */
- }
- /* 滑动的圆点 */
- .DistributeModal-checkbox-custom::before {
- content: "";
- position: absolute;
- top: 2px;
- left: 2px;
- width: 16px;
- height: 16px;
- background-color: white;
- border-radius: 50%;
- transition: transform 0.3s;
- }
- /* 复选框选中后,圆点移动 */
- .DistributeModal-checkbox:checked + .DistributeModal-checkbox-custom::before {
- transform: translateX(20px);
- }
- /* 分发用户 */
- /* 布局:将新增下拉框和确认用户分发按钮放在一行 */
- .DistributeModal-user-button-wrapper {
- display: flex;
- justify-content: space-between; /* 按钮均匀分布 */
- gap: 10px; /* 间距 */
- margin-bottom: 10px;
- }
- /* iOS 风格下拉框样式 */
- .distributeUser-select {
- flex: 1; /* 使下拉框占据剩余空间 */
- max-width: 80%; /* 确保下拉框不会占据过多空间 */
- padding: 5px;
- border-radius: 10px;
- background-color: #f5f5f5; /* iOS 风格浅色背景 */
- border: 1px solid #ccc;
- font-size: 14px;
- -webkit-appearance: none; /* 移除默认下拉箭头样式 */
- appearance: none;
- margin-right: 10px; /* 留出与关闭按钮的间距 */
-
- }
- .distributeUser-select-wrapper {
- display: flex;
- align-items: center;
- margin-bottom: 10px;
- }
- /* 自定义下拉箭头 */
- .distributeUser-select-wrapper::after {
- content: '▼';
- position: absolute;
- right: 10px;
- top: 50%;
- transform: translateY(-50%);
- pointer-events: none; /* 让箭头不可点击 */
- }
|