Files
VRCT/src-ui/app/snackbar_controller/SnackbarController.module.scss
Sakamoto Shiina bcef981955 [Update] Change the notification UI.
(Change the base notification library from MUI to React-Toastify.)
2025-06-05 18:11:53 +09:00

83 lines
1.8 KiB
SCSS

/* SnackbarController.module.scss */
/* -------------------------------------------------
1) トースト共通のスタイル
--------------------------------------------------*/
.snackbar_content {
position: relative;
padding: 1.2rem 1.6rem;
border-radius: 0.8rem;
font-size: 1.4rem;
box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.5);
color: #fff; /* ダークテーマ前提で文字を白に */
}
/* ステータス別に背景色を指定 */
.is_success {
background-color: var(--success_bc_color);
}
.is_warning {
background-color: var(--warning_bc_color);
color: #212529; /* 黄系の背景に合わせて文字を濃く */
}
.is_error {
background-color: var(--error_bc_color);
}
.megaphone_svg {
color: var(--dark_200_color);
width: 2.4rem;
}
.error_svg {
color: var(--error_bc_color);
width: 2.4rem;
}
.check_mark_svg {
color: var(--primary_400_color);
width: 2rem;
}
.warning_svg {
color: var(--waring_color);
width: 2.4rem;
}
// Duplicated (Customized)
.close_button_wrapper {
position: absolute;
top: 0;
left: 100%;
transform: translate(-50%, -50%) rotate(45deg);
display: flex;
justify-content: center;
align-items: end;
width: 5.6rem;
aspect-ratio: 1 / 1;
&:hover {
background-color: var(--error_bc_color);
& .x_mark_svg {
color: var(--dark_200_color);
transform: rotate(45deg);
}
}
&:active {
background-color: var(--error_bc_active_color);
}
transition: all 0.1s ease;
}
.close_button {
// width: 100%;
// height: 100%;
}
.x_mark_svg {
width: 2rem;
transform: rotate(-45deg);
color: var(--dark_700_color);
transition: transform 0.3s ease;
}