This repository was archived by the owner on May 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
angular_components/lib/material_chips Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,20 @@ $left-icon-width: $mat-grid * 4;
88
88
}
89
89
}
90
90
91
+ /// Use this mixin to add a border to each of the chips.
92
+ @mixin material-chip-border ($border ) {
93
+ ::ng- deep material- chip {
94
+ border : $border ;
95
+ }
96
+ }
97
+
98
+ /// Use this mixin to change the font size of each of the chips.
99
+ @mixin material-chip-font-size ($size ) {
100
+ ::ng- deep material- chip {
101
+ font-size : $size ;
102
+ }
103
+ }
104
+
91
105
$main-hover-bg-color : $mat-gray-400 ;
92
106
$main-selected-bg-color : $mat-gray-600 ;
93
107
@@ -101,6 +115,27 @@ $emphasis-selected-bg-color: $mat-blue-900;
101
115
}
102
116
}
103
117
118
+ /// Use this mixin to change the background color of the chips container.
119
+ @mixin material-chips-background-color ($color ) {
120
+ ::ng- deep material- chips {
121
+ background-color : $color ;
122
+ }
123
+ }
124
+
125
+ /// Use this mixin to add a bottom border to the chips container.
126
+ @mixin material-chips-border-bottom ($border-bottom ) {
127
+ ::ng- deep material- chips {
128
+ border-bottom : $border-bottom ;
129
+ }
130
+ }
131
+
132
+ /// Use this mixin to change the padding of the chips container.
133
+ @mixin material-chips-padding ($padding ) {
134
+ ::ng- deep material- chips {
135
+ padding : $padding ;
136
+ }
137
+ }
138
+
104
139
/// Use this mixin when chips are clickable for cursor, hover, and focus
105
140
/// styling.
106
141
///
You can’t perform that action at this time.
0 commit comments