Sha256: ac859417141b295ed5a5aecbfec9b31301af4b2559442132f282d924d62f05b8

Contents?: true

Size: 1.62 KB

Versions: 2

Compression:

Stored size: 1.62 KB

Contents

.btn {
	background-color: $offwhite;
	background-image: none;
	background-position: 50% 50%;
	background-size: 100% 100%;
	border: 0;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
	color: inherit;
	cursor: pointer;
	display: inline-block;
	font-size: $font-size;
	font-weight: $font-weight-medium;
	line-height: $line-height;
	margin-bottom: 0;
	max-width: 100%;
	padding: (($btn-height - $line-height) / 2) ($grid-gutter / 2);
	position: relative;
	text-align: center;
	text-transform: uppercase;
	user-select: none;
	vertical-align: middle;
	white-space: nowrap;
	&:active,
	&:focus,
	&:hover {
		color: inherit;
		outline: 0;
		text-decoration: none;
	}
	&:after {
		background-color: $offwhite;
		border-radius: 2px;
		box-shadow: 0 3px 9px rgba(0, 0, 0, 0.3);
		content: "";
		display: block;
		height: 100%;
		opacity: 0;
		position: absolute;
			top: 0;
			left: 0;
		transition: opacity 0.3s $timing;
		width: 100%;
	}
	&:active:after,
	&:focus:after {
		opacity: 1;
	}
	&.waves-attach:after {
		background-color: transparent;
	}
	&.disabled,
	&[disabled],
	fieldset[disabled] & {
		box-shadow: none !important;
		cursor: not-allowed;
		opacity: 0.78;
		&:after {
			display: none;
		}
		.waves-ripple {
			display: none;
		}
	}
}

// colour
	@each $color in $palette-list-class {
		$i: index($palette-list-class, $color);

		.btn-#{$color} {
			background-color: nth($palette-list-color, $i);
			color: nth($palette-list-text, $i);
			&:active,
			&:focus,
			&:hover {
				color: nth($palette-list-text, $i);
			}
		}
	}

.btn-block {
	display: block;
	white-space: normal;
	width: 100%;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
material-sass-1.1.0 app/assets/stylesheets/material/components/_button.scss
material-sass-1.0.0 app/assets/stylesheets/material/components/_button.scss