custom-theme.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. // Custom Theming for Angular Material
  2. // For more information: https://material.angular.io/guide/theming
  3. @use '@angular/material' as mat;
  4. // Plus imports for other components in your app.
  5. // Include the common styles for Angular Material. We include this here so that you only
  6. // have to load a single css file for Angular Material in your app.
  7. // Be sure that you only ever include this mixin once!
  8. //@include mat.core();
  9. // Define the palettes for your theme using the Material Design palettes available in palette.scss
  10. // (imported above). For each palette, you can optionally specify a default, lighter, and darker
  11. // hue. Available color palettes: https://material.io/design/color/
  12. $sistema-mantenimiento-front-primary: mat.define-palette(mat.$indigo-palette);
  13. $sistema-mantenimiento-front-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
  14. // The warn palette is optional (defaults to red).
  15. $sistema-mantenimiento-front-warn: mat.define-palette(mat.$red-palette);
  16. // Create the theme object. A theme consists of configurations for individual
  17. // theming systems such as "color" or "typography".
  18. $sistema-mantenimiento-front-theme: mat.define-light-theme((
  19. color: (
  20. primary: $sistema-mantenimiento-front-primary,
  21. accent: $sistema-mantenimiento-front-accent,
  22. warn: $sistema-mantenimiento-front-warn,
  23. )
  24. ));
  25. // Include theme styles for core and each component used in your app.
  26. // Alternatively, you can import and @include the theme mixins for each component
  27. // that you are using.
  28. @include mat.all-component-themes($sistema-mantenimiento-front-theme);
  29. /*
  30. * QUILL - SAMPLE OVERRIDES
  31. */
  32. quill-editor {
  33. display: block;
  34. }
  35. .ql-editor:focus {
  36. border: 1px solid #80bdff !important;
  37. box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
  38. }
  39. /*.ng-invalid {
  40. border: 1px dashed red;
  41. }*/
  42. /* Set dropdown font-families */
  43. [quill-editor-toolbar] .ql-font span[data-label="Aref Ruqaa"]::before {
  44. font-family: "Aref Ruqaa";
  45. }
  46. [quill-editor-toolbar] .ql-font span[data-label="Mirza"]::before {
  47. font-family: "Mirza";
  48. }
  49. [quill-editor-toolbar] .ql-font span[data-label="Roboto"]::before {
  50. font-family: "Roboto";
  51. }
  52. /* Set content font-families */
  53. .ql-font-mirza {
  54. font-family: "Mirza";
  55. }
  56. .ql-font-aref {
  57. font-family: "Aref Ruqaa";
  58. }
  59. .ql-font-roboto {
  60. font-family: "Roboto";
  61. }
  62. .elevation-z8{
  63. @include mat.elevation(8);
  64. }
  65. /*
  66. * ANGULAR MATERIAL
  67. */
  68. // Import library functions for theme creation.
  69. // Include the common styles for Angular Material. We include this here so that you only
  70. // have to load a single css file for Angular Material in your app.
  71. // **Be sure that you only ever include this mixin once!**
  72. //@include mat-core();
  73. // Define the default theme (same as the example above).
  74. //$primary: mat-palette($mat-blue, A700);
  75. //$accent: mat-palette($mat-blue-grey, A200, A100, A400);
  76. //$warn: mat-palette($mat-red);
  77. /*$theme: mat-light-theme($primary, $accent);
  78. // Include the default theme styles.
  79. @include angular-material-theme($theme);
  80. /*
  81. * COMPONENTS
  82. */
  83. // make major example component children full width
  84. /*app-root > div > *,
  85. app-root > div > * > form,
  86. app-root > div > * > ng-form {
  87. display: flex;
  88. flex-direction: column;
  89. gap: 10px;
  90. }
  91. app-root > div > * {
  92. // any root element in an example component, but H3s
  93. > *:not(h3) {
  94. margin-left: 2rem;
  95. margin-right: 2rem;
  96. }
  97. // make major example component children full width
  98. h4,
  99. > div,
  100. > .ql-container,
  101. quill-editor,
  102. .mat-form-field {
  103. flex: 1;
  104. }
  105. h3 {
  106. background: #e0e2e3;
  107. font-family: sans-serif;
  108. padding: 2rem;
  109. }
  110. h4 {
  111. text-align: center;
  112. }
  113. > button {
  114. flex: 1 1 32px;
  115. }
  116. // only style the example component pre, not quill's
  117. > pre,
  118. form > pre {
  119. background-color: #fcfcfc;
  120. border: 1px solid #b2b2b2;
  121. color: #363030;
  122. padding: 1.5rem;
  123. white-space: normal;
  124. }
  125. }
  126. /*
  127. * Material Quill & MatFormField
  128. * - demo overrides
  129. */
  130. /*.mat-form-field {
  131. // Since the default quill styles already provide padding
  132. &-appearance-fill .mat-form-field {
  133. &-flex {
  134. padding: 0 !important;
  135. }
  136. &-infix {
  137. border-top: 0;
  138. padding: 0;
  139. }
  140. }
  141. .ql-container {
  142. // set quill caret to match current Angular Material theme
  143. caret-color: mat-color($primary, text);
  144. // Remove redundant quill snow-theme border
  145. &.ql-snow {
  146. border: none;
  147. }
  148. // Remove all default quill focus indicators
  149. .ql-editor {
  150. &:focus {
  151. border: none !important;
  152. box-shadow: none !important;
  153. }
  154. }
  155. }
  156. // make sure any quill tooltips, bubbles, or popups aren't occluded
  157. .ql-tooltip {
  158. z-index: 1;
  159. }
  160. }*/