-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from supportingami/updates/2024-09-2
feat: preview action update and typography
- Loading branch information
Showing
16 changed files
with
155 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Noto Sans - exported from google fonts | ||
/* latin */ | ||
@font-face { | ||
font-family: "Noto Sans"; | ||
font-style: normal; | ||
font-weight: 100 900; | ||
font-stretch: 100%; | ||
font-display: swap; | ||
src: url(./fonts/noto-sans.woff2) format("woff2"); | ||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, | ||
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, | ||
U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | ||
} | ||
|
||
// Material Icons | ||
@font-face { | ||
font-family: "Material Icons"; | ||
font-style: normal; | ||
font-weight: 400; | ||
|
||
src: local("Material Icons"), local("assets/fonts/MaterialIcons-Regular"), | ||
url(./fonts/MaterialIcons-Regular.woff2) format("woff2"); | ||
// url(./fonts/MaterialIcons-Regular.woff) format('woff'), | ||
// url(./fonts/MaterialIcons-Regular.ttf) format('truetype'); | ||
|
||
// src: url(./fonts/MaterialIcons-Regular.eot); | ||
} | ||
|
||
.material-icons { | ||
font-family: "Material Icons"; | ||
font-weight: normal; | ||
font-style: normal; | ||
font-size: 24px; | ||
/* Preferred icon size */ | ||
display: inline-block; | ||
line-height: 1; | ||
text-transform: none; | ||
letter-spacing: normal; | ||
word-wrap: normal; | ||
white-space: nowrap; | ||
direction: ltr; | ||
|
||
/* Support for all WebKit browsers. */ | ||
-webkit-font-smoothing: antialiased; | ||
/* Support for Safari and Chrome. */ | ||
text-rendering: optimizeLegibility; | ||
|
||
/* Support for Firefox. */ | ||
-moz-osx-font-smoothing: grayscale; | ||
|
||
/* Support for IE. */ | ||
font-feature-settings: "liga"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
html { | ||
// make filled buttons larger (default 36px) | ||
--mdc-filled-button-container-height: 48px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$fontFamily: "Noto Sans", sans-serif; | ||
|
||
body { | ||
font-family: $fontFamily; | ||
} | ||
p { | ||
line-height: 1.75rem; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Material Design Icons | ||
|
||
Source for font can be obtained by inspecting url: | ||
https://fonts.googleapis.com/icon?family=Material+Icons | ||
|
||
E.g. | ||
https://fonts.gstatic.com/s/materialicons/v140/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2 | ||
|
||
NOTE - material icons should not be confused with (newer) material symbols | ||
https://github.com/angular/components/issues/24845 | ||
|
||
(see discussion about handling outdated fonts at: https://github.com/google/material-design-icons/issues/786) |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@use '@angular/material' as mat; | ||
@include mat.core(); | ||
|
||
$sami-theme-primary: mat.m2-define-palette(mat.$m2-light-blue-palette); | ||
$sami-theme-accent: mat.m2-define-palette( | ||
mat.$m2-amber-palette, | ||
A200, | ||
A100, | ||
A400 | ||
); | ||
|
||
$sami-theme-warn: mat.m2-define-palette(mat.$m2-red-palette); | ||
|
||
$sami-theme: mat.m2-define-light-theme( | ||
( | ||
color: ( | ||
primary: $sami-theme-primary, | ||
accent: $sami-theme-accent, | ||
warn: $sami-theme-warn, | ||
), | ||
typography: | ||
mat.m2-define-typography-config( | ||
$font-family: "Noto Sans", | ||
), | ||
density: 0, | ||
) | ||
); | ||
|
||
@include mat.all-component-themes($sami-theme); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.