/**
 * Widget styles.
 *
 * Site Kit by Google, Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.googlesitekit-widget-area--boxes .googlesitekit-widget {

	@include shadow;
	background: $c-base;

	// Use grid style only to get correct margin and padding, not actual grid.
	@extend .mdc-layout-grid;

	&.googlesitekit-widget--no-padding {
		padding: 0;
	}
}

/**
 * Widget styles.
 *
 * Site Kit by Google, Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.googlesitekit-widget {

	@include shadow;
	background: $c-base;

	// Use grid style only to get correct margin and padding, not actual grid.
	@extend .mdc-layout-grid;

	&.googlesitekit-widget--no-padding {
		padding: 0;
	}
}

.googlesitekit-widget-area--composite .googlesitekit-widget {

	// Background, shadow, and padding are applied to entire widget area instead.
	background: transparent;
	box-shadow: none;
	padding: 0;
}

Apply widget base styles generally, not only to those within a boxes widget area (widgets should also look good standalone).
Apply widget base styles generally, not only to those within a boxes widget area (widgets should also look good standalone).
