跳转到主要内容
东方龙马 提交于 8 July 2015
原文链接:CSS Class Changes between D7 and D8

菜单

D7:

.menu li.expanded
.menu li.collapsed
.menu li.leaf
.menu li.active-trail
.menu li.first
.menu li.last

D8:

.menu-item--expanded
.menu-item--collapsed
.menu-item--active-trail
.menu-item:first-child
.menu-item:last-child

.menu-item--leaf 用的非常少,所以移除了. 也是可以再加上的。 @看一下例子 https://www.drupal.org/node/2425691#comment-9629101 @todo 这篇文档中的链接还会更新。


以下是英文原文,可对照阅读

Last updated February 17, 2015. Created on February 17, 2015. Edited by joelpittet. You can edit this page, too.

Menu

D7:

.menu li.expanded
.menu li.collapsed
.menu li.leaf
.menu li.active-trail
.menu li.first
.menu li.last

D8:

.menu-item--expanded
.menu-item--collapsed
.menu-item--active-trail
.menu-item:first-child
.menu-item:last-child

.menu-item--leaf was rarely used so it was removed. It can be added back. @see example https://www.drupal.org/node/2425691#comment-9629101 @todo replace with link in this documentation.