HomeTile.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. @import './node_modules/@waca/ca-ui-toolkit/essentials/essentials';
  2. .caHomeTile {
  3. margin: 1px !important;
  4. @media only screen and (min-width: 1480px) {
  5. &:nth-child(3n) {
  6. margin-right: 0;
  7. }
  8. }
  9. @media only screen and (max-width: 1480px) {
  10. margin-right: 32px;
  11. &:nth-child(even) {
  12. margin-right: 0;
  13. }
  14. }
  15. @media only screen and (max-width: 700px) {
  16. margin-right: 0px;
  17. }
  18. }
  19. body.highcontrast div.caHomeTile {
  20. border: 1px solid;
  21. @include theming(border-color, ui-background);
  22. }
  23. .caHomeTile .contextMenuButton {
  24. width: 24px;
  25. height: 24px;
  26. @include theming(fill, icon-01);
  27. padding: 12px;
  28. &:hover {
  29. @include theming(background-color, hover-ui);
  30. }
  31. * {
  32. @include highContrast {
  33. @include theming(fill, ui-background);
  34. }
  35. }
  36. &.contextMenuButton_active {
  37. .dot-first {
  38. -webkit-animation: pulse 1s 0.75s infinite;
  39. -moz-animation: pulse 1s 0.75s infinite;
  40. -o-animation: pulse 1s 0.75s infinite;
  41. animation: pulse 1s 0.75s infinite;
  42. }
  43. .dot-second {
  44. -webkit-animation: pulse 1s 1.5s infinite;
  45. -moz-animation: pulse 1s 1.5s infinite;
  46. -o-animation: pulse 1s 1.5s infinite;
  47. animation: pulse 1s 1.5s infinite;
  48. }
  49. .dot-third {
  50. -webkit-animation: pulse 1s infinite;
  51. -moz-animation: pulse 1s infinite;
  52. -o-animation: pulse 1s infinite;
  53. animation: pulse 1s infinite;
  54. }
  55. }
  56. }
  57. @-webkit-keyframes pulse {
  58. 0% {
  59. opacity: 1;
  60. }
  61. 50% {
  62. opacity: 0;
  63. }
  64. 100% {
  65. opacity: 1;
  66. }
  67. }
  68. @-moz-keyframes pulse {
  69. 0% {
  70. opacity: 1;
  71. }
  72. 50% {
  73. opacity: 0;
  74. }
  75. 100% {
  76. opacity: 1;
  77. }
  78. }
  79. @-o-keyframes pulse {
  80. 0% {
  81. opacity: 1;
  82. }
  83. 50% {
  84. opacity: 0;
  85. }
  86. 100% {
  87. opacity: 1;
  88. }
  89. }
  90. @keyframes pulse {
  91. 0% {
  92. opacity: 1;
  93. }
  94. 50% {
  95. opacity: 0;
  96. }
  97. 100% {
  98. opacity: 1;
  99. }
  100. }
  101. div.caHomeTile{
  102. & div.ba-common-tile{
  103. box-shadow: none !important;
  104. border: 0px;
  105. @include theming(border-color, ui-01);
  106. }
  107. & div.ba-common-tile__body{
  108. & div.ba-common-tile__body__label{
  109. display: block;
  110. & div.ba-common-truncatedText__text{
  111. /* Todo: Enforcement of maximum 3-line title text */
  112. }
  113. }
  114. & div.ba-common-tile__body__date{
  115. line-height: 1.25rem;
  116. font-size: 14px;
  117. }
  118. }
  119. & div.ba-common-tile:not(.is-selected):hover{
  120. @include theming(background-color, hover-ui);
  121. & div.ba-common-tile__footer svg:nth-child(2) {
  122. @include theming(color, primary2);
  123. }
  124. }
  125. & div.ba-common-tile:not(.is-selected):focus{
  126. border: 1px solid;
  127. @include theming(border-color, focus, 1, !important);
  128. outline: none;
  129. }
  130. }
  131. @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  132. div.caHomeTile{
  133. & div.ba-common-tile__body{
  134. & div.ba-common-tile__body__label{
  135. & div.ba-common-truncatedText__text{
  136. padding-top: 4px;
  137. }
  138. }
  139. }
  140. }
  141. }