// core/page-list
//
// @version  2.0.0

@import '../_tools/_index';
@import '../_setup/_index';

.wp-block-page-list {

	&,
	.editor-styles-wrapper &,
	ul {
		padding: 0;
		list-style: none;
	}

	li {
		border-block-start: var(--wp--custom--border-width--item-separator) solid;
		border-color: inherit;

		&:first-child {
			border-block-start-width: 0;
		}

		ul {
			padding-inline-start: 1rem;
			list-style: none; // For editor.
			border-block-start: var(--wp--custom--border-width--item-separator) solid;
			border-color: inherit;
		}
	}

	a {
		display: block;
		position: relative;
		padding-block: $ratio_maj + em;
		color: inherit;
		z-index: 1;

		&:not(:hover, :focus) {
			text-decoration: none;
		}
	}

	// @see  blocks/navigation-link.scss
	.current-menu-item {
		@extend %current_menu_item;
		display: block !important;
	}
}

@import '../_extend/_index';
