custom-theme.scss 5.4 KB

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