_Bookmarks.scss 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. @mixin bookmarks() {
  2. $bookmarks-height--loading: 150px !default;
  3. $bookmarks-thumbnail-size: 64px !default;
  4. .esri-bookmarks {
  5. background-color: transparent;
  6. .esri-widget__content--empty {
  7. background-color: $background-color--offset;
  8. }
  9. }
  10. .esri-bookmarks__loader-container {
  11. height: $bookmarks-height--loading;
  12. padding: 0;
  13. display: flex;
  14. align-items: center;
  15. justify-content: center;
  16. }
  17. .esri-bookmarks__loader {
  18. height: 64px;
  19. width: 100%;
  20. background: url(../base/images/loading-throb.gif) no-repeat center center;
  21. }
  22. .esri-bookmarks__list {
  23. display: block;
  24. list-style: none;
  25. margin: 0;
  26. padding: 0;
  27. }
  28. .esri-bookmarks__bookmark {
  29. align-items: center;
  30. border-bottom: 1px solid $border-color--subtle;
  31. position: relative;
  32. display: flex;
  33. background-color: $background-color;
  34. transition: background-color 250ms ease-in-out, color 250ms ease-in-out;
  35. overflow: hidden;
  36. }
  37. .esri-bookmarks__bookmark.sortable-chosen {
  38. background-color: $background-color--active;
  39. transition: background-color 250ms ease-in-out;
  40. }
  41. .esri-bookmarks__bookmark-button {
  42. border: none;
  43. background-color: transparent;
  44. padding: 0;
  45. padding-inline-start: $side-spacing--half;
  46. color: $interactive-font-color;
  47. cursor: pointer;
  48. display: flex;
  49. font-family: $font-family;
  50. font-weight: $font-weight--regular;
  51. flex-wrap: nowrap;
  52. justify-content: flex-start;
  53. align-items: center;
  54. overflow: hidden;
  55. flex: 1 1 auto;
  56. &:hover {
  57. background-color: $background-color--hover;
  58. color: $interactive-font-color--hover;
  59. }
  60. &:hover:active {
  61. background-color: transparent;
  62. color: $interactive-font-color;
  63. }
  64. text-align: left; // fallback for IE11
  65. @supports (text-align: initial) {
  66. text-align: initial; // modern browsers
  67. }
  68. }
  69. .esri-bookmarks__list--sortable .esri-bookmarks__bookmark-button {
  70. padding-inline-start: 0;
  71. }
  72. .esri-bookmarks_bookmark-drag-handle {
  73. align-items: center;
  74. align-self: stretch;
  75. background-color: transparent;
  76. border: none;
  77. color: $font-color--placeholder;
  78. cursor: move;
  79. display: flex;
  80. flex: 0 0 auto;
  81. justify-content: center;
  82. margin: 0 0;
  83. padding: 0 $side-spacing--quarter;
  84. transition: background-color 250ms ease-in-out;
  85. &:focus,
  86. &:hover {
  87. background-color: $background-color--hover;
  88. color: $interactive-font-color--hover;
  89. }
  90. }
  91. .esri-bookmarks_bookmark-drag-handle[aria-pressed="true"] {
  92. background-color: $background-color--active;
  93. color: $interactive-font-color--hover;
  94. }
  95. @include loopingProgressBar(".esri-bookmarks__bookmark--active");
  96. .esri-bookmarks__bookmark--active {
  97. color: $font-color;
  98. background-color: $background-color--active;
  99. cursor: default;
  100. &:hover,
  101. &:focus {
  102. color: $font-color;
  103. background-color: $background-color--active;
  104. cursor: default;
  105. }
  106. }
  107. .esri-bookmarks__bookmark-label {
  108. display: flex;
  109. flex-flow: column;
  110. flex: 1 1 auto;
  111. padding: $cap-spacing $side-spacing--three-quarters;
  112. }
  113. .esri-bookmarks__bookmark-name {
  114. color: $font-color;
  115. font-size: $font-size--small;
  116. flex: 1;
  117. overflow: hidden;
  118. padding: 0;
  119. overflow-wrap: break-word; /* Firefox */
  120. word-break: break-word;
  121. }
  122. .esri-bookmarks__bookmark-time-extent {
  123. font-size: $font-size--small;
  124. flex: 1;
  125. overflow: hidden;
  126. padding: 0;
  127. overflow-wrap: break-word; /* Firefox */
  128. word-break: break-word;
  129. }
  130. .esri-bookmarks__time-extent {
  131. margin-top: $cap-spacing--quarter;
  132. display: grid;
  133. grid-template-columns: auto auto;
  134. column-gap: $side-spacing--half;
  135. }
  136. .esri-bookmarks__bookmark-image-container {
  137. align-items: center;
  138. display: flex;
  139. flex: 0 0 auto;
  140. justify-content: center;
  141. overflow: hidden;
  142. max-width: $button-width--double;
  143. position: relative;
  144. }
  145. .esri-button-menu {
  146. position: absolute;
  147. bottom: 2px;
  148. right: 2px;
  149. z-index: 1;
  150. }
  151. .esri-bookmarks__image {
  152. width: $bookmarks-thumbnail-size;
  153. background-color: $background-color--offset;
  154. margin: $cap-spacing--half 0;
  155. }
  156. .esri-bookmarks__bookmark-edit-button-container {
  157. display: flex;
  158. flex: 0 0 auto;
  159. align-self: stretch;
  160. align-items: stretch;
  161. }
  162. .esri-bookmarks__bookmark-edit-button {
  163. align-items: center;
  164. background-color: transparent;
  165. border: none;
  166. color: $interactive-font-color;
  167. cursor: pointer;
  168. padding: 0 $side-spacing;
  169. display: flex;
  170. &:hover {
  171. background-color: $background-color--hover;
  172. color: $interactive-font-color--hover;
  173. }
  174. }
  175. .esri-bookmarks__time-extent-container {
  176. padding: $cap-spacing--half $side-spacing $cap-spacing;
  177. }
  178. .esri-bookmarks__time-extent-group {
  179. color: $interactive-font-color;
  180. display: grid;
  181. font-size: $font-size--small;
  182. grid-template-rows: auto auto;
  183. }
  184. .esri-bookmarks__add-bookmark {
  185. background-color: $background-color--offset;
  186. padding: $cap-spacing--half $side-spacing--half;
  187. }
  188. .esri-bookmarks__add-bookmark-button {
  189. border-radius: $border-radius;
  190. font-size: $font-size--small;
  191. flex: 1 1 auto;
  192. justify-content: flex-start;
  193. padding: $cap-spacing $side-spacing--quarter;
  194. transition: background-color 250ms ease-in-out;
  195. &:hover {
  196. background-color: $background-color;
  197. text-decoration: none;
  198. @include defaultBoxShadow();
  199. }
  200. }
  201. .esri-bookmarks__add-bookmark-icon {
  202. font-size: $font-size;
  203. padding-left: $side-spacing--quarter;
  204. padding-right: $side-spacing--quarter;
  205. }
  206. .esri-bookmarks__authoring-card {
  207. background-color: $background-color--offset;
  208. padding: $cap-spacing--half $side-spacing--half;
  209. animation: esri-fade-in-down 250ms ease-in-out;
  210. }
  211. .esri-bookmarks__authoring-card .esri-bookmarks__bookmark-image-container {
  212. width: $bookmarks-thumbnail-size;
  213. height: $bookmarks-thumbnail-size;
  214. border: 1px solid $border-color;
  215. background-image: url("../base/images/transparent-bg.png");
  216. .esri-bookmarks__image {
  217. margin-bottom: 0;
  218. margin-top: 0;
  219. }
  220. }
  221. .esri-bookmarks__authoring-form {
  222. display: flex;
  223. flex-flow: column;
  224. background-color: $background-color;
  225. @include defaultBoxShadow();
  226. border-radius: $border-radius;
  227. }
  228. .esri-bookmarks__authoring-container {
  229. align-items: center;
  230. display: flex;
  231. flex-flow: row;
  232. padding: $cap-spacing $side-spacing;
  233. .esri-bookmarks__authoring-label {
  234. padding-top: 0;
  235. padding-bottom: 0;
  236. width: calc(100% - #{$bookmarks-thumbnail-size}); // Firefox fix
  237. }
  238. }
  239. .esri-bookmarks__authoring-label {
  240. display: flex;
  241. flex-flow: column;
  242. flex: 1 0 auto;
  243. padding-block: $cap-spacing;
  244. padding-inline-start: $side-spacing;
  245. }
  246. .esri-bookmarks__authoring-actions {
  247. border-top: solid 1px $border-color;
  248. display: flex;
  249. justify-content: flex-end;
  250. padding: $cap-spacing--half $side-spacing;
  251. margin-top: $cap-spacing--half;
  252. .esri-button {
  253. font-size: $font-size--small;
  254. min-height: $button-height--half;
  255. width: 33%;
  256. }
  257. .esri-bookmarks__authoring-delete-button {
  258. color: $font-color--error;
  259. margin-right: auto;
  260. padding-left: 0;
  261. padding-right: 0;
  262. width: auto;
  263. }
  264. }
  265. .esri-widget__no-bookmark-icon {
  266. font-size: $button-height;
  267. line-height: $button-height--double;
  268. width: $button-height--double;
  269. height: $button-height--double;
  270. display: inline-block;
  271. text-align: center;
  272. }
  273. .esri-bookmarks--fade-in {
  274. opacity: 0;
  275. transition: opacity 375ms ease-out;
  276. }
  277. .esri-bookmarks--fade-in-active {
  278. opacity: 1;
  279. }
  280. [dir="rtl"] .esri-bookmarks {
  281. .esri-bookmarks__bookmark {
  282. &--active:after {
  283. animation: looping-progresss-bar-ani $looping-progress-bar-params reverse;
  284. }
  285. }
  286. .esri-bookmarks__bookmark-container {
  287. margin-right: 0;
  288. margin-left: $side-spacing--half;
  289. }
  290. .esri-bookmarks__authoring-actions .esri-bookmarks__authoring-delete-button {
  291. margin-right: 0;
  292. margin-left: auto;
  293. }
  294. .esri-bookmarks__bookmark-button {
  295. text-align: right; // fallback for IE11
  296. @supports (text-align: initial) {
  297. text-align: initial; // modern browsers
  298. }
  299. }
  300. .esri-bookmarks__bookmark-image-container .esri-button-menu {
  301. right: unset;
  302. left: 2px;
  303. }
  304. }
  305. }
  306. @if $include_Bookmarks==true {
  307. @include bookmarks();
  308. }