geothermie-atlas/public/assets/esri/themes/base/widgets/_FeatureContent.scss

104 lines
2.3 KiB
SCSS

$content-height--loading: 150px !default;
@mixin featureContent() {
.esri-feature-content__loader-container {
height: $content-height--loading;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
.esri-feature-content__loader {
height: 64px;
width: 100%;
background: url(../base/images/loading-throb.gif) no-repeat center center;
}
.esri-feature-content {
font-size: $font-size;
}
.esri-feature-content h1,
.esri-feature-content h2,
.esri-feature-content h3,
.esri-feature-content h4,
.esri-feature-content h5,
.esri-feature-content h6 {
color: $font-color;
margin: 0.5em 0 0.5em 0;
letter-spacing: 0;
font-weight: $font-weight__heading;
line-height: normal;
}
.esri-feature-content h1 {
font-size: 1.75em;
}
.esri-feature-content h2 {
font-size: 1.5em;
}
.esri-feature-content h3 {
font-size: 1.25em;
}
.esri-feature-content h4,
.esri-feature-content h5,
.esri-feature-content h6 {
font-size: 1em;
}
.esri-widget__heading.esri-feature-element-info__title {
color: $font-color;
font-size: $font-size__h1;
font-weight: $font-weight--regular;
margin-bottom: 0.2em;
margin-top: 0;
}
.esri-feature-element-info__description {
font-size: $font-size__body;
font-weight: $font-weight--regular;
margin-bottom: $cap-spacing--three-quarters;
}
.esri-feature-content p {
font-size: $font-size;
margin: 0 0 1.2em;
&:last-child {
margin-block-end: 0;
}
}
.esri-feature-content img {
max-width: 100%;
max-height: 100%;
image-orientation: from-image;
}
.esri-feature-content video {
max-width: 100%;
max-height: 100%;
}
.esri-feature-content figure {
padding: 0;
margin: 0;
}
.esri-feature-content figcaption {
font-size: $font-size--small;
font-style: italic;
padding: 0;
margin: 0.2em 0 0;
display: block;
}
.esri-feature-content ul,
.esri-feature-content ol {
margin-block: 1rem;
&:first-child {
margin-block-start: 0;
}
}
.esri-feature-content a {
color: $interactive-font-color;
&:hover,
&:focus {
color: $interactive-font-color--hover;
}
}
}
@if $include_FeatureContent == true {
@include featureContent();
}