HomeView.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. @import './node_modules/@waca/ca-ui-toolkit/essentials/essentials';
  2. .homeView {
  3. display: flex;
  4. position: relative;
  5. flex: 1 1 0%;
  6. a {
  7. @include highContrast {
  8. @include theming(color, ui-background);
  9. }
  10. }
  11. *:not(html) {
  12. -webkit-overflow-scrolling: touch;
  13. }
  14. .homeViewReactRoot {
  15. flex: 1;
  16. overflow-y: auto;
  17. @include theming(background-color, ui-background);
  18. //min-width: 1248px !important;
  19. .homeViewWrapper {
  20. display: block;
  21. pointer-events: auto;
  22. z-index: 1000;
  23. position: absolute;
  24. width: 100%;
  25. transition: opacity 150ms ease-in-out;
  26. opacity: 0;
  27. height: 0;
  28. overflow: hidden;
  29. @include theming(background-color, ui-background, 0.75);
  30. &.dragging {
  31. opacity: 1;
  32. height: 100%;
  33. }
  34. }
  35. // Begin - Style for Refactoring //
  36. .welcomeToggleWrapper{
  37. margin-right: 24px;
  38. float: right;
  39. margin-top: 24px;
  40. z-index: 999;
  41. // Uncomment the follow two lines to fix the welcome toggle horizontally and vertically
  42. // Bug: will overlap with other components while scrolling
  43. //position: fixed;
  44. //right: 0;
  45. transform-style: preserve-3d;
  46. z-index: 2;
  47. position: relative
  48. }
  49. .welcomeToggleLabel{
  50. margin-right: 16px;
  51. font-size: 14px;
  52. @include theming(color, text-02);
  53. }
  54. .homeViewContent{
  55. padding: 0px 96px;
  56. width: 100%;
  57. }
  58. .homeViewBody{
  59. padding: 0px 32px;
  60. // Based on the design spec: 1248 is the suggested min-width
  61. // But set 0 here to avoid the horizontal scrolling
  62. min-width: 0px !important;
  63. }
  64. .recentTitleWrapper{
  65. margin-top: 8px;
  66. font-size: 28px;
  67. @include theming(color, text-02);
  68. display: inline-block;
  69. }
  70. .recentModeSwitchWrapper{
  71. display: inline;
  72. width: 66px;
  73. }
  74. .recentViewButton{
  75. width: 32px;
  76. height: 32px;
  77. @include theming(color, text-02);
  78. @include theming(background-color, ui-01, 1, !important);
  79. display: inline;
  80. cursor: pointer;
  81. &.recentViewButtonLeft {
  82. border-radius: 4px 0 0 4px;
  83. }
  84. &.recentViewButtonRight {
  85. border-radius: 0 4px 4px 0;
  86. }
  87. }
  88. .recentViewButton:hover{
  89. @include theming(background-color, hover-ui, 1, !important);
  90. @include theming(color, text-01, 1, !important);
  91. }
  92. .recentViewButton:disabled{
  93. @include theming(background-color, disabled-01, 1, !important);
  94. @include theming(color, disabled-02, 1, !important);
  95. }
  96. .recentViewButton:active{
  97. @include theming(background-color, ui-03);
  98. border-bottom: 2px solid;
  99. @include theming(border-color, focus);
  100. }
  101. .recentViewButtonIsActive {
  102. @include theming(color, text-04, 1, !important);
  103. @include theming(background-color, ui-05, 1, !important);
  104. @include theming(border-color, focus);
  105. border-bottom: 2px solid;
  106. }
  107. #viewRecentTile{
  108. float: left;
  109. }
  110. #viewRecentList{
  111. float: right;
  112. display: inline;
  113. margin-left: 2px;
  114. }
  115. div.recentViewHeader{
  116. margin-bottom: 20px;
  117. display: flex;
  118. flex-flow: row nowrap;
  119. justify-content: space-between;
  120. align-items: flex-end;
  121. }
  122. div.recentViewFooter{
  123. text-align: center;
  124. padding-top: 18px;
  125. font-size: 14px;
  126. height: 54px;
  127. width: 100%;
  128. }
  129. .recentTileContainer{
  130. margin-top: 24px
  131. }
  132. .recentListContainer{
  133. margin-top: 20px;
  134. }
  135. .recentNoneContainer{
  136. margin-top: 96px;
  137. text-align: center
  138. }
  139. .recentBrandTitle{
  140. display: inline-flex;
  141. margin-left: 128px;
  142. margin-top: 56px;
  143. .recentBrandTitleIcon{
  144. // Mode 'middle' doesn't align correctly
  145. vertical-align: top;
  146. height: 64px;
  147. width: 64px;
  148. }
  149. .recentBrandTitleText{
  150. margin-left: 8px;
  151. display: inline;
  152. font-size: 36px;
  153. max-width: 957px;
  154. padding-top:5px;
  155. }
  156. }
  157. // End - Style for Refactoring //
  158. @media only screen and (max-width: 1100px) {
  159. .homeViewContent{
  160. padding: 0px;
  161. }
  162. .homeViewBody{
  163. min-width: 0px !important;
  164. }
  165. .recentBrandTitle{
  166. margin-left: 32px;
  167. }
  168. }
  169. @media only screen and (max-width: 996px) {
  170. .homeViewContent{
  171. padding: 0px;
  172. }
  173. .homeViewBody{
  174. min-width: 0px !important;
  175. }
  176. .recentBrandTitle{
  177. margin-left: 32px;
  178. }
  179. }
  180. @media only screen and (max-width: 700px) {
  181. .homeViewContent{
  182. padding: 0px;
  183. }
  184. .homeViewBody{
  185. min-width: 0px !important;
  186. }
  187. .recentBrandTitle{
  188. margin-left: 32px;
  189. }
  190. }
  191. @media only screen and (max-height: 700px) {
  192. .recentViewFooter {
  193. margin-bottom: 11px !important;
  194. }
  195. }
  196. }
  197. }
  198. @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  199. .homeViewReactRoot {
  200. overflow-y: auto;
  201. }
  202. }