geosphere-maps/public/assets/esri/themes/base/widgets/_Bookmarks.scss

361 lines
8.8 KiB
SCSS
Raw Normal View History

2023-09-22 09:33:13 +00:00
@mixin bookmarks() {
$bookmarks-height--loading: 150px !default;
$bookmarks-thumbnail-size: 64px !default;
.esri-bookmarks {
background-color: transparent;
.esri-widget__content--empty {
background-color: $background-color--offset;
}
}
.esri-bookmarks__loader-container {
height: $bookmarks-height--loading;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
.esri-bookmarks__loader {
height: 64px;
width: 100%;
background: url(../base/images/loading-throb.gif) no-repeat center center;
}
.esri-bookmarks__list {
display: block;
list-style: none;
margin: 0;
padding: 0;
}
.esri-bookmarks__bookmark {
align-items: center;
border-bottom: 1px solid $border-color--subtle;
position: relative;
display: flex;
background-color: $background-color;
transition: background-color 250ms ease-in-out, color 250ms ease-in-out;
overflow: hidden;
}
.esri-bookmarks__bookmark.sortable-chosen {
background-color: $background-color--active;
transition: background-color 250ms ease-in-out;
}
.esri-bookmarks__bookmark-button {
border: none;
background-color: transparent;
padding: 0;
padding-inline-start: $side-spacing--half;
color: $interactive-font-color;
cursor: pointer;
display: flex;
font-family: $font-family;
font-weight: $font-weight--regular;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
overflow: hidden;
flex: 1 1 auto;
&:hover {
background-color: $background-color--hover;
color: $interactive-font-color--hover;
}
&:hover:active {
background-color: transparent;
color: $interactive-font-color;
}
text-align: left; // fallback for IE11
@supports (text-align: initial) {
text-align: initial; // modern browsers
}
}
.esri-bookmarks__list--sortable .esri-bookmarks__bookmark-button {
padding-inline-start: 0;
}
.esri-bookmarks_bookmark-drag-handle {
align-items: center;
align-self: stretch;
background-color: transparent;
border: none;
color: $font-color--placeholder;
cursor: move;
display: flex;
flex: 0 0 auto;
justify-content: center;
margin: 0 0;
padding: 0 $side-spacing--quarter;
transition: background-color 250ms ease-in-out;
&:focus,
&:hover {
background-color: $background-color--hover;
color: $interactive-font-color--hover;
}
}
.esri-bookmarks_bookmark-drag-handle[aria-pressed="true"] {
background-color: $background-color--active;
color: $interactive-font-color--hover;
}
@include loopingProgressBar(".esri-bookmarks__bookmark--active");
.esri-bookmarks__bookmark--active {
color: $font-color;
background-color: $background-color--active;
cursor: default;
&:hover,
&:focus {
color: $font-color;
background-color: $background-color--active;
cursor: default;
}
}
.esri-bookmarks__bookmark-label {
display: flex;
flex-flow: column;
flex: 1 1 auto;
padding: $cap-spacing $side-spacing--three-quarters;
}
.esri-bookmarks__bookmark-name {
color: $font-color;
font-size: $font-size--small;
flex: 1;
overflow: hidden;
padding: 0;
overflow-wrap: break-word; /* Firefox */
word-break: break-word;
}
.esri-bookmarks__bookmark-time-extent {
font-size: $font-size--small;
flex: 1;
overflow: hidden;
padding: 0;
overflow-wrap: break-word; /* Firefox */
word-break: break-word;
}
.esri-bookmarks__time-extent {
margin-top: $cap-spacing--quarter;
display: grid;
grid-template-columns: auto auto;
column-gap: $side-spacing--half;
}
.esri-bookmarks__bookmark-image-container {
align-items: center;
display: flex;
flex: 0 0 auto;
justify-content: center;
max-width: $button-width--double;
position: relative;
}
.esri-bookmarks__bookmark-image-container--has-image {
overflow: hidden;
}
.esri-button-menu {
position: absolute;
bottom: 2px;
right: 2px;
z-index: 1;
}
.esri-bookmarks__image {
width: $bookmarks-thumbnail-size;
background-color: $background-color--offset;
margin: $cap-spacing--half 0;
}
.esri-bookmarks__bookmark-edit-button-container {
display: flex;
flex: 0 0 auto;
align-self: stretch;
align-items: stretch;
}
.esri-bookmarks__bookmark-edit-button {
align-items: center;
background-color: transparent;
border: none;
color: $interactive-font-color;
cursor: pointer;
padding: 0 $side-spacing;
display: flex;
&:hover {
background-color: $background-color--hover;
color: $interactive-font-color--hover;
}
}
.esri-bookmarks__time-extent-container {
padding: $cap-spacing--half $side-spacing $cap-spacing;
--calcite-label-margin-bottom: 0;
}
.esri-bookmarks__time-extent-group {
color: $interactive-font-color;
display: grid;
font-size: $font-size--small;
grid-template-rows: auto auto;
}
.esri-bookmarks__add-bookmark {
align-items: center;
background-color: $background-color--offset;
display: flex;
justify-content: center;
padding: $cap-spacing--half $side-spacing--half $cap-spacing;
}
.esri-bookmarks__add-bookmark-button {
align-items: center;
background-color: $background-color;
border-radius: $button-height;
font-size: $font-size--small;
flex: 0 1 auto;
justify-content: center;
padding: $cap-spacing--three-quarters $side-spacing--half;
transition: background-color 250ms ease-in-out;
width: auto;
&:hover {
text-decoration: none;
@include defaultBoxShadow();
}
}
.esri-bookmarks__add-bookmark-icon {
font-size: $font-size;
padding-inline-start: $side-spacing--quarter;
padding-inline-end: $side-spacing--half;
}
.esri-bookmarks__authoring-card {
background-color: $background-color--offset;
padding: $cap-spacing--half $side-spacing--half;
animation: esri-fade-in-down 250ms ease-in-out;
}
.esri-bookmarks__authoring-card .esri-bookmarks__bookmark-image-container {
width: $bookmarks-thumbnail-size;
height: $bookmarks-thumbnail-size;
border: 1px solid $border-color;
background-image: url("../base/images/transparent-bg.png");
.esri-bookmarks__image {
margin-bottom: 0;
margin-top: 0;
}
}
.esri-bookmarks__authoring-form {
display: flex;
flex-flow: column;
background-color: $background-color;
@include defaultBoxShadow();
border-radius: $border-radius;
}
.esri-bookmarks__authoring-container {
align-items: center;
display: flex;
flex-flow: row;
padding: $cap-spacing $side-spacing;
.esri-bookmarks__authoring-label {
padding-top: 0;
padding-bottom: 0;
width: calc(100% - #{$bookmarks-thumbnail-size}); // Firefox fix
}
}
.esri-bookmarks__authoring-form--adding {
.esri-bookmarks__authoring-label {
padding-inline: $side-spacing;
}
}
.esri-bookmarks__authoring-label {
display: flex;
flex-flow: column;
flex: 1 0 auto;
padding-block: $cap-spacing;
}
.esri-bookmarks__authoring-label--start-padding {
padding-inline-start: $side-spacing;
}
.esri-bookmarks__authoring-actions {
border-top: solid 1px $border-color;
display: flex;
justify-content: flex-end;
padding: $cap-spacing--half $side-spacing;
margin-top: $cap-spacing--half;
.esri-button {
font-size: $font-size--small;
min-height: $button-height--half;
width: 33%;
}
.esri-bookmarks__authoring-delete-button {
color: $font-color--error;
margin-right: auto;
padding-left: 0;
padding-right: 0;
width: auto;
}
}
.esri-widget__no-bookmark-icon {
font-size: $button-height;
line-height: $button-height--double;
width: $button-height--double;
height: $button-height--double;
display: inline-block;
text-align: center;
}
.esri-bookmarks--fade-in {
opacity: 0;
transition: opacity 375ms ease-out;
}
.esri-bookmarks--fade-in-active {
opacity: 1;
}
[dir="rtl"] .esri-bookmarks {
.esri-bookmarks__bookmark {
&--active:after {
animation: looping-progresss-bar-ani $looping-progress-bar-params reverse;
}
}
.esri-bookmarks__bookmark-container {
margin-right: 0;
margin-left: $side-spacing--half;
}
.esri-bookmarks__authoring-actions .esri-bookmarks__authoring-delete-button {
margin-right: 0;
margin-left: auto;
}
.esri-bookmarks__bookmark-button {
text-align: right; // fallback for IE11
@supports (text-align: initial) {
text-align: initial; // modern browsers
}
}
.esri-bookmarks__bookmark-image-container .esri-button-menu {
right: unset;
left: 2px;
}
}
}
@if $include_Bookmarks==true {
@include bookmarks();
}