waveterm/frontend/app/notification/notificationitem.scss

120 lines
2.0 KiB
SCSS
Raw Permalink Normal View History

2024-11-16 06:26:16 +01:00
// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
.notification {
.notification-title {
2024-11-16 06:26:16 +01:00
font-size: 13px;
font-style: normal;
font-weight: 500;
line-height: 18px;
margin-bottom: 3px;
&.green {
color: var(--success-color);
2024-11-16 06:26:16 +01:00
}
&.red {
color: var(--error-color);
2024-11-16 06:26:16 +01:00
}
&.yellow {
color: var(--warning-color);
2024-11-16 06:26:16 +01:00
}
}
2024-11-16 06:26:16 +01:00
.notification-message {
2024-11-16 06:26:16 +01:00
font-size: 13px;
font-style: normal;
font-weight: 400;
line-height: 18px;
opacity: 0.7;
}
2024-11-16 06:26:16 +01:00
.notification-actions {
2024-11-16 06:26:16 +01:00
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-top: 10px;
i {
margin-left: 3px;
font-size: 11px;
2024-11-16 06:26:16 +01:00
}
}
2024-11-16 06:26:16 +01:00
.close-btn {
2024-11-16 06:26:16 +01:00
position: absolute;
top: 5px;
right: 5px;
}
2024-11-16 06:26:16 +01:00
.lock-btn {
2024-11-16 06:26:16 +01:00
position: absolute;
top: 5px;
right: 5px;
padding: 10px 8px;
font-size: 11px;
color: rgb(from var(--main-text-color) r g b / 0.5);
}
2024-11-16 06:26:16 +01:00
.notification {
2024-11-16 06:26:16 +01:00
width: 100%;
color: var(--main-text-color);
padding: 12px 10px;
display: flex;
flex-direction: column;
position: relative;
}
2024-11-16 06:26:16 +01:00
.notification-bubble {
2024-11-16 06:26:16 +01:00
position: relative;
display: flex;
width: 380px;
padding: 16px 24px 16px 16px;
align-items: flex-start;
gap: 12px;
border-radius: 8px;
border: 0.5px solid rgba(255, 255, 255, 0.12);
background: #232323;
box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.25);
}
2024-11-16 06:26:16 +01:00
.notification-inner {
2024-11-16 06:26:16 +01:00
display: flex;
align-items: flex-start;
column-gap: 6px;
.notification-icon {
margin-right: 5px;
margin-top: 1px;
2024-11-16 06:26:16 +01:00
i {
font-size: 16px;
}
2024-11-16 06:26:16 +01:00
i.green {
color: var(--success-color);
}
2024-11-16 06:26:16 +01:00
i.red {
color: var(--error-color);
}
2024-11-16 06:26:16 +01:00
i.yellow {
color: var(--warning-color);
}
2024-11-16 06:26:16 +01:00
}
.notification-timestamp {
font-size: 12px;
font-weight: 400;
line-height: 18px;
opacity: 0.5;
margin-bottom: 7px;
2024-11-16 06:26:16 +01:00
}
}
&.hovered {
2024-11-16 06:26:16 +01:00
background: #292929;
}
2024-11-16 06:26:16 +01:00
}