リスト表示の css を変更

stylekgcw.css に以下を追加。

/* wp_list_pages() ---------------------------------------- */
.pagenav {  } /* the outermost list item; contains whole list */
.page-item-2 {  } /* item for Page ID 2 */
.page_item { color: #a69785; } /* any Page item */
.current_page_item { color: blue; } /* the current Page */
.current_page_parent { color: green; } /* parent of the current Page */
.current_page_ancestor { color: red; } /* any ancestor of the current Page */
/* wp_list_pages() end ---------------------------------- */

/* wp_list_pages() ---------------------------------------- */ .pagenav { } /* the outermost list item; contains whole list */ .page-item-2 { } /* item for Page ID 2 */ .page_item { color: #a69785; } /* any Page item */ .current_page_item { color: blue; } /* the current Page */ .current_page_parent { color: green; } /* parent of the current Page */ .current_page_ancestor { color: red; } /* any ancestor of the current Page */ /* wp_list_pages() end ---------------------------------- */

/* search-featured ---------------------------------------- */
.search-featured .navigation {
	clear: both;
	width: 556px;
	height: 22px;
	margin: 12px 0;
	padding: 0;
	border: 1px solid #ddd;
}
.search-featured .navigation .alignleft {
	float: left;
	padding: 4px;
}
.search-featured .navigation .alignright {
	float: right;
	padding: 4px;
}
/* search-featured end ---------------------------------- */

/* search-featured ---------------------------------------- */ .search-featured .navigation { clear: both; width: 556px; height: 22px; margin: 12px 0; padding: 0; border: 1px solid #ddd; } .search-featured .navigation .alignleft { float: left; padding: 4px; } .search-featured .navigation .alignright { float: right; padding: 4px; } /* search-featured end ---------------------------------- */

※.navigation、.alignleft など .search-featured 内でのみ変更するようにしたのだが、なぜか、思うように css が反映されない。どこか見落としている箇所があるのかも・・・。

コメントを残す