@telekom/scale-components
Version:
Scale is the digital design system for Telekom products and experiences.
73 lines (71 loc) • 1.37 kB
CSS
/**
* @license
* Scale https://github.com/telekom/scale
*
* Copyright (c) 2021 Egor Kirpichev and contributors, Deutsche Telekom AG
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
.alert {
box-sizing: border-box;
background: #eee;
color: #333;
width: 100%;
padding: 1rem;
text-align: left;
position: relative;
display: flex;
justify-content: space-between;
}
.alert__body {
display: flex;
}
.alert__headline {
font-size: var(--type-size-3, 1rem);
color: white;
margin: 0;
}
.alert__icon {
display: flex;
align-items: center;
justify-content: center;
background: none;
height: 24px;
width: 24px;
margin: 0 0.5rem 0 0;
border-radius: var(--telekom-radius-standard);
}
.alert__close {
height: 16px;
opacity: 0.5;
cursor: pointer;
}
.alert__close:hover {
opacity: 1;
}
.alert--variant-primary {
background: blue;
color: #fff;
}
.alert--variant-secondary {
background: #eee;
color: #333;
}
.alert--variant-variant-warning {
background: orange;
color: #fff;
}
.alert--variant-danger {
background: red;
color: #fff;
}
.alert--variant-success {
background: green;
color: #fff;
}
.alert--variant-info {
background: lightblue;
color: #fff;
}