@ale-rainbow/rainbow-notification
Version:
Alcatel-Lucent Enterprise Rainbow Notification
474 lines (400 loc) • 9.21 kB
CSS
*,
*::before,
*::after {
box-sizing: inherit;
}
svg {
fill: currentColor;
}
html {
width: 100%;
height: 100%;
box-sizing: border-box;
font-size: 62.5%;
line-height: 1.5;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
.extCallNotification {
display: flex;
flex-direction: column;
width: 290px;
border: none;
background-color: #eaeaea;
user-select: none;
line-height: 1.8rem;
font-size: 1.3rem;
}
.extCallNotification-reset--button {
color: currentcolor;
padding: 0;
border: none;
background-color: transparent;
}
.extCallNotif__urg {
display: flex;
align-items: center;
padding: 5px 13px;
font-size: 1rem;
font-weight: 800;
text-transform: uppercase;
}
.extCallNotif__urg svg {
width: 20px;
height: 20px;
margin-right: 6px;
}
.extCallNotif__urg-notify {
color: #1c8cfd;
background: #1c8cfd40;
}
.extCallNotif__urg-warning {
color: #d65516;
background: #ffa50080;
}
.extCallNotif__urg-emergency {
color: #f83e3e;
background: #f83e3e40;
}
.extCallNotificationMain {
display: flex;
flex-direction: row;
padding: 10px 0 10px 10px;
}
.extCallNotif__img {
width: 50px;
height: 50px;
border-radius: 50%;
}
.extCallNotif__webinarImg {
border-radius: 4px;
width: 100px;
height: 60px;
}
.extCallNotif__roomImg {
margin-bottom: 12px;
display: flex;
justify-content: center;
}
.extCallNotificationContent {
margin: 0 4px 0 12px;
flex: 1;
}
.extCallNotif__origin {
font-size: 1.3rem;
font-weight: 600;
color: #4a4a4a;
margin-top: 8px;
word-break: break-word;
}
.extCallNotif__message {
margin-top: 3px;
margin-bottom: 5px;
max-width: 212px;
font-size: 1.2rem;
color: #585858;
max-height: 72px;
overflow: hidden;
text-overflow: ellipsis;
}
.extCallNotif__mdMessage {
text-align: left;
font-size: 1.2rem;
margin: 5px;
h1 {
font-size: 1.6rem;
font-weight: 600;
margin-bottom: 4px;
}
h2 {
font-size: 1.4rem;
font-weight: 600;
margin-bottom: 3px;
}
h3 {
font-size: 1.3rem;
font-weight: 500;
margin-bottom: 2px;
}
ul {
list-style-type: circle;
list-style-position: inside;
}
ol {
list-style-type: decimal;
list-style-position: inside;
}
img {
width: 100%;
}
p {
margin: 7px 0;
}
}
.extCallNotif__infoTitle {
font-size: 1.1rem;
font-weight: 600;
color: #5e5e5e;
}
.extCallNotif__infoMessage {
font-size: 1.2rem;
color: #c1c1c1;
overflow-wrap: break-word;
}
.extCallNotif__callSubject {
font-size: 1.1rem;
margin-top: 12px;
font-weight: 600;
color: #5e5e5e;
padding: 0 10px;
overflow-wrap: break-word;
}
.extCallNotif__actions {
margin-top: 10px;
width: 100%;
display: flex;
justify-content: flex-end;
}
.extCallNotif__calledMessage {
font-size: 1.1rem;
margin-top: 10px;
color: #5e5e5e;
}
.extCallNotif__button--content {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
font-size: 1.2rem;
.extCallNotif__icon {
width: 20px;
height: 20px;
}
}
.extCallNotif__called {
font-size: 1.5rem;
font-weight: 600;
text-overflow: ellipsis;
color: #4a4a4a;
overflow: hidden;
}
.extCallNotif__choices {
color: #5e5e5e;
border-radius: 4px;
position: absolute;
bottom: 16px;
width: 200px;
opacity: 0;
transition: opacity 0.2s ease-out;
z-index: -1;
overflow: hidden;
list-style: none;
padding: 0;
margin: 0;
}
.extCallNotif__choice {
padding: 10px;
cursor: pointer;
align-items: center;
background-color: #d5d8dc;
}
.extCallNotif__choice:not(:last-of-type) {
border-bottom: solid 1px #c9cbce;
}
.extCallNotif__choice:last-of-type {
border-radius: 0 0 4px 4px;
}
.extCallNotif__choice:hover {
background: #cecece;
}
.extCallNotif__button,
.extCallNotif__choiceClose {
display: flex;
justify-content: center;
align-items: center;
border-radius: 4px;
color: #5e5e5e;
background-color: #d5d8dc;
margin-bottom: 6px;
margin: 0 6px 0 0;
padding: 3px 9px;
line-height: normal;
cursor: pointer;
box-sizing: border-box;
}
.extCallNotif__choiceClose {
margin-top: 3px;
margin-bottom: 0;
background-color: #5e5e5e;
color: white;
}
.extCallNotif__button:hover {
background-color: #cecece;
}
.extCallNotif__choice-title {
padding: 10px;
background-color: #8e8e93;
color: white;
}
.extCallNotif__button--primary {
color: white;
background-color: #2570e0;
}
.extCallNotif__button--primary:hover {
background-color: #1a59b7;
}
.extCallNotif__button--secondary {
color: white;
border: solid 1px #6a6a6b;
background: #6a6a6b;
}
.extCallNotif__button--secondary:hover {
color: white;
background-color: #595959;
}
.extCallNotif__button--green {
color: white;
border: solid 1px #218500;
background-color: #218500;
}
.extCallNotif__button--green:hover {
background: #175c00;
}
.extCallNotif__button--red {
color: white;
border: solid 1px #e10e0e;
background: #e10e0e;
color: white;
}
.extCallNotif__button--red:hover {
background: #860909;
}
.extCallNotif__icon {
width: 22px;
height: 22px;
margin-right: 4px;
fill: white;
}
.extCallNotif__trivial--big {
position: relative;
display: grid;
grid-template: 1fr 1fr / 1fr 1fr;
width: 100px;
height: 100px;
border-radius: 50%;
border: 3px solid #ffffff;
user-select: none;
overflow: hidden;
transform: rotate(45deg);
}
.extCallNotif__trivial__avatar--default {
grid-row: 1 / -1;
grid-column: 1 / -1;
overflow: hidden;
}
.extCallNotif__trivial__avatar--default .extCallNotif__trivial__img {
object-fit: cover;
width: 100%;
height: 100%;
transform: rotate(-45deg);
}
/* HALF SPLITTED */
.extCallNotif__trivial__avatar--1o2,
.extCallNotif__trivial__avatar--2o2,
.extCallNotif__trivial__avatar--1o3,
.extCallNotif__trivial__avatar--2o3,
.extCallNotif__trivial__avatar--3o3 {
grid-row: 1 / -1;
border: solid #ffffff;
border-width: 0 1px 0 0;
overflow: hidden;
}
.extCallNotif__trivial__avatar--1o2 .extCallNotif__trivial__img,
.extCallNotif__trivial__avatar--2o2 .extCallNotif__trivial__img,
.extCallNotif__trivial__avatar--1o3 .extCallNotif__trivial__img,
.extCallNotif__trivial__avatar--2o3 .extCallNotif__trivial__img,
.extCallNotif__trivial__avatar--3o3 .extCallNotif__trivial__img {
object-fit: cover;
width: 200%;
height: 100%;
transform: rotate(-45deg) translate(-10%, -10%);
}
.extCallNotif__trivial__avatar--2o2 {
border-width: 0 0 0 1px;
}
.extCallNotif__trivial__avatar--2o2 .extCallNotif__trivial__img {
transform: rotate(-45deg) translate(-22%, -22%);
}
.extCallNotif__trival__avatar--grey {
background: #868da7;
}
/* THIRD SPLITTED */
.extCallNotif__trivial__avatar--2o3,
.extCallNotif__trivial__avatar--3o3 {
grid-row: 1 / 2;
border-width: 0 0 1px 1px;
}
.extCallNotif__trivial__avatar--2o3 .extCallNotif__trivial__img,
.extCallNotif__trivial__avatar--3o3 .extCallNotif__trivial__img {
width: 150%;
height: 150%;
transform: rotate(-45deg) translate(-10%, -22%);
}
.extCallNotif__trivial__avatar--3o3 {
grid-row: 2 / 3;
border-width: 1px 0 0 1px;
}
.extCallNotif__trivial__avatar--3o3 .extCallNotif__trivial__img {
transform: rotate(-45deg) translate(-2%, -35%);
}
/* FOURTH SPLITTED */
.extCallNotif__trivial__avatar--1o4,
.extCallNotif__trivial__avatar--2o4,
.extCallNotif__trivial__avatar--3o4,
.extCallNotif__trivial__avatar--4o4 {
border: solid #ffffff;
border-width: 0 1px 1px 0;
overflow: hidden;
}
.extCallNotif__trivial__avatar--1o4 .extCallNotif__trivial__img,
.extCallNotif__trivial__avatar--2o4 .extCallNotif__trivial__img,
.extCallNotif__trivial__avatar--3o4 .extCallNotif__trivial__img,
.extCallNotif__trivial__avatar--4o4 .extCallNotif__trivial__img {
object-fit: cover;
width: 150%;
height: 150%;
transform: rotate(-45deg) translateY(-10%);
}
.extCallNotif__trivial__avatar--2o4 {
border-width: 0 0 1px 1px;
}
.extCallNotif__trivial__avatar--2o4 .extCallNotif__trivial__img {
transform: rotate(-45deg) translate(-10%, -22%);
}
.extCallNotif__trivial__avatar--3o4 {
border-width: 1px 1px 0 0;
}
.extCallNotif__trivial__avatar--3o4 .extCallNotif__trivial__img {
transform: rotate(-45deg) translate(5%, -22%);
}
.extCallNotif__trivial__avatar--4o4 {
border-width: 1px 0 0 1px;
}
.extCallNotif__trivial__avatar--4o4 .extCallNotif__trivial__img {
transform: rotate(-45deg) translateY(-25%);
}
.extCallNotif__close {
margin: 3px;
top: 0px;
right: 0px;
position: absolute;
width: 25px;
height: 25px;
display: flex;
cursor: pointer;
color: #5e5e5e;
}
.extCallNotif__close:hover {
border-radius: 4px;
background-color: #cecece;
}