@use '@angular/material' as mat;
@use "sass:map";

@mixin text-override($lacuna-theme) {
	// mat nav list
	.mat-nav-list {
		a.mat-mdc-list-item.mat-2-line {
			height: auto;
			padding: 0.75em;

			h4 {
				font-weight: 500;
			}
		}
	}

	p {
		white-space: normal !important;
	}

	// display text
	.mat-headline-4,
	.mat-headline-3,
	.mat-headline-2,
	.mat-headline-1 {
		margin-bottom: 0.5em !important;
		font-weight: 300 !important;
	}

	//DialogShowValue
	.key-value {
		/*box-shadow: inset 0 -1px 0  mat-color(map.get($lacuna-theme, primary), 500);*/
		font-weight: 700;
	}

	// SMALL LABELS
	.small-label-container {
		border-radius: 333px;
		padding: 5px 15px;
		text-transform: uppercase;

		small {
			letter-spacing: 1px;
			font-weight: 600;
			line-height: 12px;
			text-align: center;
		}
	}

	// BREAK DIALOG WORD
	.mat-mdc-dialog-content {
		word-break: break-word;
	}

	// DIALOG MOBILE AUTHORIZATION REQUIRED
	.mobile-authorization-required-dialog {
		text-align: center;
		overflow: hidden !important;
	}
}

@mixin link-override($lacuna-theme) {
	// link reset
	a,
	a.mat-mdc-tab-link,
	a.mat-mdc-list-item,
	a.mat-mdc-menu-item {

		&:hover {
			text-decoration: none;
			color: inherit;
		}
	}

	.active-link {
		border-right: 4px solid mat.m2-get-color-from-palette(map.get($lacuna-theme, accent));
		transition: .3s;

		.mat-icon {
			color: mat.m2-get-color-from-palette(map.get($lacuna-theme, accent)) !important;
		}
	}
}

@mixin card-override($lacuna-theme) {
	// cards
	.mat-mdc-card {
		margin: 0.75em;
	}
}

@mixin layout-override($lacuna-theme) {
	.mat-sidenav-content.mat-drawer-content.mat-sidenav-content.fluid {
		width: auto;
	}
}


