cartodb-4.42/app/assets/stylesheets/editor-3/_infobox.scss
2024-04-06 05:25:13 +00:00

82 lines
1.1 KiB
SCSS

@import 'cdb-variables/colors';
@import 'cdb-variables/sizes';
// Styles for infobox element
// ------------------------------
.Infobox-wrapper {
width: 100%;
margin-top: -24px;
margin-bottom: -24px;
}
.Infobox {
flex: 2;
margin-right: -24px;
margin-left: -24px;
padding: 21px 24px 24px;
background: $cThirdBackground;
&.is-error {
background: $cError;
color: $cWhite;
}
&.is-alert {
background: rgba($cHighlightYellow, 0.64);
}
&.is-success {
background: rgba($cHighlight, 0.18);
}
&.is-dark {
background: rgba(#000, 0.4);
color: #FEB714;
.Infobox-buttonLink {
color: $cWhite;
}
}
}
.Infobox-title {
flex: 1;
}
.Infobox-buttonLink {
padding: 4px 0;
color: $cBlue;
&.is-disabled {
opacity: 0.24;
cursor: default;
}
.is-error & {
color: $cWhite;
}
}
.Infobox-quota {
flex: 10;
margin-right: $baseSize * 5;
}
.Infobox-buttons {
display: flex;
flex: 10;
}
.Infobox-buttons--quota {
flex: 1;
}
.Infobox-button {
flex: 1;
&.Infobox-button--right {
text-align: right;
}
}