_Bookmarks.scss 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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__list--sortable .esri-bookmarks__bookmark-image-container {
  29. margin-left: 0;
  30. }
  31. .esri-bookmarks__bookmark {
  32. align-items: center;
  33. border-bottom: 1px solid $border-color;
  34. position: relative;
  35. display: flex;
  36. border-color: transparent;
  37. background-color: $background-color;
  38. transition: background-color 250ms ease-in-out, color 250ms ease-in-out;
  39. overflow: hidden;
  40. &:hover {
  41. background-color: $background-color--hover;
  42. color: $interactive-font-color--hover;
  43. }
  44. &:hover:active {
  45. background-color: $background-color;
  46. color: $interactive-font-color;
  47. }
  48. }
  49. .esri-bookmarks__bookmark.sortable-chosen {
  50. background-color: $background-color--active;
  51. transition: background-color 250ms ease-in-out;
  52. }
  53. .esri-bookmarks__bookmark-button {
  54. border: none;
  55. background-color: transparent;
  56. padding: 0;
  57. color: $interactive-font-color;
  58. cursor: pointer;
  59. display: flex;
  60. flex-wrap: nowrap;
  61. justify-content: flex-start;
  62. align-items: center;
  63. overflow: hidden;
  64. flex: 1;
  65. text-align: left; // fallback for IE11
  66. @supports (text-align: initial) {
  67. text-align: initial; // modern browsers
  68. }
  69. }
  70. .esri-bookmarks_bookmark-drag-handle {
  71. align-items: center;
  72. align-self: stretch;
  73. background-color: transparent;
  74. border: none;
  75. color: $font-color--placeholder;
  76. cursor: move;
  77. display: flex;
  78. justify-content: center;
  79. margin: 0 $side-spacing--half 0 0;
  80. padding: 0;
  81. transition: background-color 250ms ease-in-out;
  82. width: $button-width--half;
  83. &:focus,
  84. &:hover {
  85. color: $interactive-font-color--hover;
  86. }
  87. }
  88. .esri-bookmarks_bookmark-drag-handle[aria-pressed="true"] {
  89. background-color: $background-color--inverse;
  90. color: $interactive-font-color--inverse;
  91. }
  92. @include loopingProgressBar(".esri-bookmarks__bookmark--active");
  93. .esri-bookmarks__bookmark--active {
  94. color: $font-color;
  95. background-color: $background-color--active;
  96. cursor: default;
  97. &:hover,
  98. &:focus {
  99. color: $font-color;
  100. background-color: $background-color--active;
  101. cursor: default;
  102. }
  103. }
  104. .esri-bookmarks__bookmark-name {
  105. font-size: $font-size--small;
  106. flex: 1;
  107. overflow: hidden;
  108. padding: $cap-spacing--plus-half 0;
  109. overflow-wrap: break-word; /* Firefox */
  110. word-break: break-word;
  111. }
  112. .esri-bookmarks__bookmark-image-container {
  113. align-items: center;
  114. display: flex;
  115. justify-content: center;
  116. overflow: hidden;
  117. margin: 0 $side-spacing--half;
  118. max-width: $button-width--double;
  119. position: relative;
  120. }
  121. .esri-button-menu {
  122. position: absolute;
  123. bottom: 2px;
  124. right: 2px;
  125. z-index: 1;
  126. }
  127. .esri-bookmarks__image {
  128. width: $bookmarks-thumbnail-size;
  129. background-color: $background-color--offset;
  130. margin: $cap-spacing--half 0;
  131. }
  132. .esri-bookmarks__bookmark-edit-button {
  133. align-items: center;
  134. background-color: transparent;
  135. border-radius: $border-radius;
  136. border: none;
  137. color: $interactive-font-color;
  138. cursor: pointer;
  139. display: flex;
  140. height: $button-height;
  141. justify-content: center;
  142. margin: 0 $side-spacing--half;
  143. width: $button-width;
  144. &:hover {
  145. background-color: $background-color;
  146. color: $interactive-font-color--hover;
  147. }
  148. }
  149. .esri-bookmarks__add-bookmark {
  150. background-color: $background-color--offset;
  151. padding: $cap-spacing--half $side-spacing--half;
  152. }
  153. .esri-bookmarks__add-bookmark-button {
  154. border-radius: $border-radius;
  155. font-size: $font-size--small;
  156. justify-content: flex-start;
  157. padding: $cap-spacing $side-spacing--quarter;
  158. transition: background-color 250ms ease-in-out;
  159. &:hover {
  160. background-color: $background-color;
  161. text-decoration: none;
  162. @include defaultBoxShadow();
  163. }
  164. }
  165. .esri-bookmarks__add-bookmark-icon {
  166. font-size: $font-size;
  167. padding-left: $side-spacing--quarter;
  168. padding-right: $side-spacing--quarter;
  169. }
  170. .esri-bookmarks__authoring-card {
  171. background-color: $background-color--offset;
  172. padding: $cap-spacing--half $side-spacing--half;
  173. animation: esri-fade-in-down 250ms ease-in-out;
  174. }
  175. .esri-bookmarks__authoring-card .esri-bookmarks__bookmark-image-container {
  176. width: $bookmarks-thumbnail-size;
  177. height: $bookmarks-thumbnail-size;
  178. border: 1px solid $border-color;
  179. background-image: url("../base/images/transparent-bg.png");
  180. .esri-bookmarks__image {
  181. margin-bottom: 0;
  182. margin-top: 0;
  183. }
  184. }
  185. .esri-bookmarks__authoring-form {
  186. display: flex;
  187. flex-flow: column;
  188. padding: $cap-spacing $side-spacing;
  189. background-color: $background-color;
  190. @include defaultBoxShadow();
  191. border-radius: $border-radius;
  192. }
  193. .esri-bookmarks__authoring-container {
  194. display: flex;
  195. flex-flow: column;
  196. }
  197. .esri-bookmarks__authoring-container .esri-bookmarks__bookmark-image-container {
  198. margin-bottom: $cap-spacing--half;
  199. }
  200. .esri-bookmarks__authoring-label {
  201. display: flex;
  202. flex-flow: column;
  203. flex: 1 0 auto;
  204. }
  205. .esri-bookmarks__authoring-actions {
  206. display: flex;
  207. justify-content: flex-end;
  208. margin-top: $cap-spacing--half;
  209. .esri-button {
  210. font-size: $font-size--small;
  211. min-height: $button-height--half;
  212. width: 33%;
  213. }
  214. .esri-bookmarks__authoring-delete-button {
  215. color: $font-color--error;
  216. margin-right: auto;
  217. padding-left: 0;
  218. padding-right: 0;
  219. width: auto;
  220. }
  221. }
  222. .esri-widget__no-bookmark-icon {
  223. font-size: $button-height;
  224. line-height: $button-height--double;
  225. width: $button-height--double;
  226. height: $button-height--double;
  227. display: inline-block;
  228. text-align: center;
  229. }
  230. .esri-bookmarks--fade-in {
  231. opacity: 0;
  232. transition: opacity 375ms ease-out;
  233. }
  234. .esri-bookmarks--fade-in-active {
  235. opacity: 1;
  236. }
  237. html[dir="rtl"] .esri-bookmarks {
  238. .esri-bookmarks__bookmark {
  239. &--active:after {
  240. animation: looping-progresss-bar-ani $looping-progress-bar-params reverse;
  241. }
  242. }
  243. .esri-bookmarks__bookmark-container {
  244. margin-right: 0;
  245. margin-left: $side-spacing--half;
  246. }
  247. .esri-bookmarks_bookmark-drag-handle {
  248. margin-right: 0;
  249. margin-left: $side-spacing--half;
  250. }
  251. .esri-bookmarks__authoring-actions .esri-bookmarks__authoring-delete-button {
  252. margin-right: 0;
  253. margin-left: auto;
  254. }
  255. .esri-bookmarks__list--sortable .esri-bookmarks__bookmark-image-container {
  256. margin-right: 0;
  257. margin-left: $side-spacing--half;
  258. }
  259. .esri-bookmarks__bookmark-button {
  260. text-align: right; // fallback for IE11
  261. @supports (text-align: initial) {
  262. text-align: initial; // modern browsers
  263. }
  264. }
  265. }
  266. }
  267. @if $include_Bookmarks==true {
  268. @include bookmarks();
  269. }