Line 253: | Line 253: | ||
} | } | ||
− | /*.cd-header.is-fixed { | + | /*.cd-header .is-fixed { |
/* when the user scrolls down, we hide the header right above the viewport */ | /* when the user scrolls down, we hide the header right above the viewport */ | ||
position: fixed; | position: fixed; | ||
Line 262: | Line 262: | ||
transition: transform 0.3s; | transition: transform 0.3s; | ||
} */ | } */ | ||
− | .cd-header.is-visible { | + | .cd-header .is-visible { |
/* if the user changes the scrolling direction, we show the header */ | /* if the user changes the scrolling direction, we show the header */ | ||
-webkit-transform: translate3d(0, 100%, 0); | -webkit-transform: translate3d(0, 100%, 0); | ||
Line 271: | Line 271: | ||
} | } | ||
− | .cd-header.menu-is-open { | + | .cd-header .menu-is-open { |
/* add a background color to the header when the navigation is open */ | /* add a background color to the header when the navigation is open */ | ||
/*菜单打开后最上边那条横杠的颜色*/ | /*菜单打开后最上边那条横杠的颜色*/ | ||
Line 637: | Line 637: | ||
} | } | ||
</style> | </style> | ||
− | |||
− | |||
− | |||
</head> | </head> | ||
Revision as of 18:11, 13 October 2019