@adobe/coral-spectrum
Version:
Coral Spectrum is a JavaScript library of Web Components following Spectrum design patterns.
254 lines (240 loc) • 6.19 kB
CSS
/**
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
._coral-Alert {
position: relative;
display: inline-block;
box-sizing: border-box;
min-width: 368px;
min-height: 38px;
margin: 8px 0;
padding: 20px 20px;
border-width: 2px;
border-style: solid;
border-radius: 4px;
}
._coral-Alert-icon {
position: absolute;
display: block;
top: 20px;
right: 20px;
}
._coral-Alert-header {
display: inline-block;
height: auto;
min-height: 0;
margin: 0;
padding: 0;
padding-right: 30px;
font-size: 14px;
font-weight: 700;
font-style: normal;
line-height: 14px;
text-transform: none;
}
._coral-Alert-content {
display: block;
margin: 8px 0 0 0;
padding: 0;
font-size: 14px;
word-wrap: break-word;
}
._coral-Alert-footer {
display: block;
text-align: right;
padding-top: 0.5rem;
}
._coral-Alert-footer:empty {
display: none;
}
._coral-Alert-footer ._coral-Button {
margin-right: 0;
margin-left: 0.75rem;
}
.coral--large ._coral-Alert {
min-width: 368px;
min-height: 38px;
padding: 20px 20px;
border-width: 2px;
border-radius: 4px;
}
.coral--large ._coral-Alert-content {
margin: 8px 0 0 0;
}
.coral--light ._coral-Alert {
background-color: rgb(255, 255, 255);
color: rgb(110, 110, 110);
}
.coral--light ._coral-Alert-header {
color: rgb(44, 44, 44);
}
.coral--light ._coral-Alert-content {
color: rgb(110, 110, 110);
}
.coral--light ._coral-Alert--info {
border-color: rgb(38, 128, 235);
}
.coral--light ._coral-Alert--info ._coral-Alert-icon {
color: rgb(13, 102, 208);
}
.coral--light ._coral-Alert--help {
border-color: rgb(38, 128, 235);
}
.coral--light ._coral-Alert--help ._coral-Alert-icon {
color: rgb(13, 102, 208);
}
.coral--light ._coral-Alert--error {
border-color: rgb(227, 72, 80);
}
.coral--light ._coral-Alert--error ._coral-Alert-icon {
color: rgb(201, 37, 45);
}
.coral--light ._coral-Alert--success {
border-color: rgb(45, 157, 120);
}
.coral--light ._coral-Alert--success ._coral-Alert-icon {
color: rgb(18, 128, 92);
}
.coral--light ._coral-Alert--warning {
border-color: rgb(230, 134, 25);
}
.coral--light ._coral-Alert--warning ._coral-Alert-icon {
color: rgb(203, 111, 16);
}
.coral--lightest ._coral-Alert {
background-color: rgb(255, 255, 255);
color: rgb(116, 116, 116);
}
.coral--lightest ._coral-Alert-header {
color: rgb(50, 50, 50);
}
.coral--lightest ._coral-Alert-content {
color: rgb(116, 116, 116);
}
.coral--lightest ._coral-Alert--info {
border-color: rgb(55, 142, 240);
}
.coral--lightest ._coral-Alert--info ._coral-Alert-icon {
color: rgb(20, 115, 230);
}
.coral--lightest ._coral-Alert--help {
border-color: rgb(55, 142, 240);
}
.coral--lightest ._coral-Alert--help ._coral-Alert-icon {
color: rgb(20, 115, 230);
}
.coral--lightest ._coral-Alert--error {
border-color: rgb(236, 91, 98);
}
.coral--lightest ._coral-Alert--error ._coral-Alert-icon {
color: rgb(215, 55, 63);
}
.coral--lightest ._coral-Alert--success {
border-color: rgb(51, 171, 132);
}
.coral--lightest ._coral-Alert--success ._coral-Alert-icon {
color: rgb(38, 142, 108);
}
.coral--lightest ._coral-Alert--warning {
border-color: rgb(242, 148, 35);
}
.coral--lightest ._coral-Alert--warning ._coral-Alert-icon {
color: rgb(218, 123, 17);
}
.coral--dark ._coral-Alert {
background-color: rgb(37, 37, 37);
color: rgb(185, 185, 185);
}
.coral--dark ._coral-Alert-header {
color: rgb(255, 255, 255);
}
.coral--dark ._coral-Alert-content {
color: rgb(185, 185, 185);
}
.coral--dark ._coral-Alert--info {
border-color: rgb(38, 128, 235);
}
.coral--dark ._coral-Alert--info ._coral-Alert-icon {
color: rgb(75, 156, 245);
}
.coral--dark ._coral-Alert--help {
border-color: rgb(38, 128, 235);
}
.coral--dark ._coral-Alert--help ._coral-Alert-icon {
color: rgb(75, 156, 245);
}
.coral--dark ._coral-Alert--error {
border-color: rgb(227, 72, 80);
}
.coral--dark ._coral-Alert--error ._coral-Alert-icon {
color: rgb(247, 109, 116);
}
.coral--dark ._coral-Alert--success {
border-color: rgb(45, 157, 120);
}
.coral--dark ._coral-Alert--success ._coral-Alert-icon {
color: rgb(57, 185, 144);
}
.coral--dark ._coral-Alert--warning {
border-color: rgb(230, 134, 25);
}
.coral--dark ._coral-Alert--warning ._coral-Alert-icon {
color: rgb(249, 164, 63);
}
.coral--darkest ._coral-Alert {
background-color: rgb(8, 8, 8);
color: rgb(162, 162, 162);
}
.coral--darkest ._coral-Alert-header {
color: rgb(239, 239, 239);
}
.coral--darkest ._coral-Alert-content {
color: rgb(162, 162, 162);
}
.coral--darkest ._coral-Alert--info {
border-color: rgb(20, 115, 230);
}
.coral--darkest ._coral-Alert--info ._coral-Alert-icon {
color: rgb(55, 142, 240);
}
.coral--darkest ._coral-Alert--help {
border-color: rgb(20, 115, 230);
}
.coral--darkest ._coral-Alert--help ._coral-Alert-icon {
color: rgb(55, 142, 240);
}
.coral--darkest ._coral-Alert--error {
border-color: rgb(215, 55, 63);
}
.coral--darkest ._coral-Alert--error ._coral-Alert-icon {
color: rgb(236, 91, 98);
}
.coral--darkest ._coral-Alert--success {
border-color: rgb(38, 142, 108);
}
.coral--darkest ._coral-Alert--success ._coral-Alert-icon {
color: rgb(51, 171, 132);
}
.coral--darkest ._coral-Alert--warning {
border-color: rgb(218, 123, 17);
}
.coral--darkest ._coral-Alert--warning ._coral-Alert-icon {
color: rgb(242, 148, 35);
}
coral-alert-header:empty {
display: none;
}
coral-alert-header:empty ~ coral-alert-content {
margin-top: 0;
}
coral-alert-header:empty ~ svg {
display: none;
}