Project: Mall App Client: Maiora
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

171 line
3.9 KiB

  1. /*
  2. * App Global CSS
  3. * ----------------------------------------------------------------------------
  4. * Put style rules here that you want to apply globally. These styles are for
  5. * the entire app and not just one component. Additionally, this file can be
  6. * used as an entry point to import other CSS/Sass files to be included in the
  7. * output CSS.
  8. * For more information on global stylesheets, visit the documentation:
  9. * https://ionicframework.com/docs/layout/global-stylesheets
  10. */
  11. /* Core CSS required for Ionic components to work properly */
  12. @import "~@ionic/angular/css/core.css";
  13. /* Basic CSS for apps built with Ionic */
  14. @import "~@ionic/angular/css/normalize.css";
  15. @import "~@ionic/angular/css/structure.css";
  16. @import "~@ionic/angular/css/typography.css";
  17. @import '~@ionic/angular/css/display.css';
  18. /* Optional CSS utils that can be commented out */
  19. @import "~@ionic/angular/css/padding.css";
  20. @import "~@ionic/angular/css/float-elements.css";
  21. @import "~@ionic/angular/css/text-alignment.css";
  22. @import "~@ionic/angular/css/text-transformation.css";
  23. @import "~@ionic/angular/css/flex-utils.css";
  24. @import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
  25. @import url('https://fonts.googleapis.com/css?family=M+PLUS+Rounded+1c:400&display=swap');
  26. ion-button, button, a, p, div, input {
  27. font-family: 'Roboto', sans-serif;
  28. text-transform: none;
  29. outline: none;
  30. }
  31. figure {
  32. margin: 0;
  33. }
  34. header, h1, h2, h3, h4, h5 {
  35. font-family: 'M PLUS Rounded 1c', sans-serif;
  36. margin: 0;
  37. }
  38. // Hamburger menu
  39. .menu-icon-holder {
  40. background-color: #005cbe;
  41. color: white;
  42. position: fixed;
  43. bottom: -60px;
  44. box-shadow: 0px 0px 5px var(--brand-blue);
  45. width: 100px;
  46. height: 100px;
  47. text-align: center;
  48. left: calc((100% - 100px)/2);
  49. border-radius: 50%;
  50. padding-top: 7px;
  51. z-index: 1;
  52. transition: transform 0.5s;
  53. transform: translateY(0);
  54. opacity: 0.7;
  55. &.inactive {
  56. transform: translateY(100px);
  57. }
  58. ion-icon {
  59. font-size: 30px;
  60. }
  61. }
  62. .close-icon-holder {
  63. background-color: white;
  64. width: 70%;
  65. position: fixed;
  66. left: calc((100% - 70%) / 2);
  67. height: 100px;
  68. border-radius: 50%;
  69. color: var(--brand-blue);
  70. text-align: center;
  71. z-index: 2;
  72. bottom: -60px;
  73. padding-top: 10px;
  74. transition: transform 0.3s;
  75. transform: scale(0);
  76. transition-delay: 0.7s;
  77. &.active {
  78. transform: scale(1);
  79. }
  80. ion-icon {
  81. font-size: 25px;
  82. }
  83. }
  84. .menu-items-holder {
  85. background-image: url('assets/custom/background-2.svg');
  86. background-size: cover;
  87. background-repeat: no-repeat;
  88. background-position: left top;
  89. border-radius: 50%;
  90. position: fixed;
  91. left: calc((100% - 150%) / 2);
  92. bottom: -150px;
  93. z-index: 1;
  94. height: 300px;
  95. width: 150%;
  96. padding: 20px 30%;
  97. display: flex;
  98. justify-content: space-between;
  99. align-items: flex-start;
  100. transition: transform 0.5s;
  101. transform: scale(0);
  102. transition-delay: 0.3s;
  103. &.active {
  104. transform: scale(1);
  105. }
  106. button {
  107. background-color: white;
  108. height: 50px;
  109. width: 50px;
  110. border-radius: 50%;
  111. font-size: 20px;
  112. position: relative;
  113. &:first-child {
  114. transform: translateY(40px);
  115. }
  116. &:nth-child(2) {
  117. transform: translateY(20px);
  118. }
  119. &:nth-child(3) {
  120. transform: translateY(10px);
  121. }
  122. &:last-child {
  123. transform: translateY(40px);
  124. }
  125. &:nth-child(4) {
  126. transform: translateY(20px);
  127. }
  128. }
  129. }
  130. .overlay {
  131. position: fixed;
  132. top: 0;
  133. left: 0;
  134. height: 100vh;
  135. width: 100vw;
  136. pointer-events: none;
  137. background-color: black;
  138. opacity: 0;
  139. z-index: 1;
  140. transition: opacity 0.5s;
  141. &.active {
  142. pointer-events: all;
  143. opacity: 0.5;
  144. }
  145. }