@almoamendev/ngx-md3 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almoamendev/ngx-md3",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "MD3-style Angular components & style library",
5
5
  "author": "Murtadha (Hussain) Almoamen",
6
6
  "license": "MIT",
@@ -523,6 +523,53 @@ md3-badge {
523
523
  padding-inline: var(--md-grid-margin);
524
524
  }
525
525
 
526
+ .md3-avatar {
527
+ --border-radius: var(--md-border-radius-large);
528
+ --border-size: 0em;
529
+
530
+ height: 2em;
531
+ width: 2em;
532
+ display: inline-flex;
533
+ align-items: center;
534
+ justify-content: center;
535
+ border-radius: var(--border-radius);
536
+ background-color: rgb(var(--md-scheme-on-primary-container));
537
+ color: rgb(var(--md-scheme-primary-container));
538
+ border: none;
539
+ padding: 0;
540
+ margin: 0;
541
+ text-decoration: none;
542
+ font-size: 1em;
543
+ position: relative;
544
+ user-select: none;
545
+ cursor: default;
546
+ overflow: hidden;
547
+ text-decoration: none;
548
+
549
+ img {
550
+ display: block;
551
+ height: 100%;
552
+ width: 100%;
553
+ object-fit: cover;
554
+ }
555
+ }
556
+
557
+ button.md3-avatar, a.md3-avatar {
558
+ --state-color: var(--md-scheme-on-primary);
559
+ --outline-color: rgb(var(--md-scheme-secondary));
560
+ --outline-width: .1875em;
561
+ --outline-offset: -.125em;
562
+
563
+ cursor: pointer;
564
+
565
+ &::before {
566
+ content: '';
567
+ position: absolute;
568
+ height: 3em;
569
+ width: 3em;
570
+ }
571
+ }
572
+
526
573
  .md3-grid-item {
527
574
  min-width: 0em;
528
575
  min-height: 0em;