ciyidogan commited on
Commit
2766662
·
verified ·
1 Parent(s): d482833

Update flare-ui/src/styles.scss

Browse files
Files changed (1) hide show
  1. flare-ui/src/styles.scss +24 -12
flare-ui/src/styles.scss CHANGED
@@ -122,17 +122,29 @@ body {
122
  margin-bottom: 3px;
123
  }
124
 
125
- // Mat-icon button alignment fix
126
- button[mat-button],
127
- button[mat-raised-button],
128
- button[mat-icon-button],
129
- button[mat-fab],
130
- button[mat-mini-fab],
131
- button[mat-stroked-button],
132
- button[mat-flat-button] {
133
- .mat-icon {
134
- vertical-align: middle;
135
- margin-right: 4px;
136
- margin-top: -2px; // Fine-tuning için
 
 
 
137
  }
 
 
 
 
 
 
 
 
 
138
  }
 
122
  margin-bottom: 3px;
123
  }
124
 
125
+ // Global mat-icon alignment fix
126
+ .mat-mdc-button,
127
+ .mat-mdc-raised-button,
128
+ .mat-mdc-unelevated-button,
129
+ .mat-mdc-outlined-button,
130
+ .mat-mdc-icon-button {
131
+ .mdc-button__label {
132
+ display: inline-flex;
133
+ align-items: center;
134
+ gap: 6px;
135
+
136
+ mat-icon {
137
+ margin: 0;
138
+ line-height: inherit;
139
+ }
140
  }
141
+ }
142
+
143
+ // Legacy support
144
+ button[mat-button] mat-icon,
145
+ button[mat-raised-button] mat-icon,
146
+ button[mat-stroked-button] mat-icon,
147
+ button[mat-flat-button] mat-icon {
148
+ vertical-align: middle;
149
+ margin-right: 4px;
150
  }