Search
 
SCRIPT & CODE EXAMPLE
 

CSS

material form css

.mat-form-field {
	display: inline-block;
	position: relative;
	text-align: left;
	width: 100%;
	margin-bottom: 10px;
	.mat-icon {
		color: $main-color !important;
	}
}
// mat-icon-stepper selected color change
::ng-deep .mat-step-header .mat-step-icon-selected,
.mat-step-header .mat-step-icon-state-done,
.mat-step-header .mat-step-icon-state-edit {
	background-color: $main-color !important;
}

//input outline color
::ng-deep .mat-form-field-appearance-outline .mat-form-field-outline {
	color: $main-color !important;
	// opacity: 1!important;
}

//mat-input focused color
::ng-deep .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick {
	color: $main-color !important;
}

// mat-input error outline color
::ng-deep
	.mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid
	.mat-form-field-outline-thick {
	color: $error !important;
	opacity: 0.8 !important;
}

// mat-input cursor color
::ng-deep .mat-input-element {
	caret-color: $main-color !important;
}

// mat-input error cursor color
::ng-deep .mat-form-field-invalid .mat-input-element,
.mat-warn .mat-input-element {
	caret-color: $main-color !important;
}

// mat-label normal state style
::ng-deep .mat-form-field-label {
	color: $main-color !important;
	// color: $mainColor!important;
}

// mat-label focused style
::ng-deep .mat-form-field.mat-focused .mat-form-field-label {
	color: $main-color !important;
}

// mat-label error style
::ng-deep .mat-form-field.mat-form-field-invalid .mat-form-field-label {
	color: $error !important;
}

// error message
.mat-hint {
	color: $error !important;
	font-size: 14px;
}
Comment

PREVIOUS NEXT
Code Example
Css :: background image for div in grid system bootstrap 
Css :: 2 scrollbars 
Css :: how to apply hover through inline css 
Css :: Vuetify v-data-table custom row hover background color (Dark Theme) 
Css :: Background Animation onHover 
Css :: how to change what your cursor looks like 
Css :: how to remove default border 
Css :: how to lighten the color of text in html 
Css :: 3d sphere 
Css :: fr meaning in css 
Css :: keep button active after click 
Css :: add border at hover of div 
Css :: set another font in css 
Css :: transparent blur effect css 
Css :: css display contents 
Css :: css properties 
Css :: gradient 
Css :: login and register files have no css laravel vue 
Css :: align center without using margin 
Css :: css rich text editor tailwind 
Css :: css animation timing syntax 
Css :: Woocommerce product title + price over image (overlay) 
Css :: qa vs q! 
Css :: css os dependent font family 
Css :: contact form 7 error styles css 
Css :: curfont 
Css :: css address by id 
Css :: position absolute prevent overflow 
Css :: sass create color utility classes 
Css :: #shadow-root (open) css 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =