.main{
margin-top: 10px;
}
.list-group .list-group-item{
padding: 5px 10px;
}
.categorie{
font-weight: bold;
padding: 5px 10px;
}
.list-group .nav>li>a{
color: #000000;
padding: 5px 10px;
}
.list-group .nav .active>a,.list-group .nav .active>a:hover
,.list-group .nav .active>a:focus{
background-color: #c20c0c;
color: #fff;
}
#playlists{
padding: 0;
}
#playlists>div {
padding-left: 0px;
height: 290px;
}
#playlists>div>a:hover{
color: #c20c0c;
text-decoration: none;
}
#playlists h5 {
/*让截断的文字显示为点点。还有一个值是clip意截断不显示点点*/
text-overflow: ellipsis;
/*让文字不换行*/
white-space: nowrap;
/*超出要隐藏*/
overflow: hidden;
}
#playlists .thumbnail:hover {
border: 0;
transform: translateY(-5px);
-webkit-transform: translateY(-5px);
overflow: hidden;
box-shadow: 1px 1px 10px 1px #c4bfbf;
}
@media screen and (max-width: 768px) {
#playlists>div {
padding-left: 20px;
}
}
/* 设置主要内容区距离顶部的距离为10像素 */
.main{
margin-top: 10px;
}
/* 设置列表组里的列表项的内边距为5像素的上下,10像素的左右 */
.list-group .list-group-item{
padding: 5px 10px;
}
/* 设置分类的字体加粗,内边距为5像素的上下,10像素的左右 */
.categorie{
font-weight: bold;
padding: 5px 10px;
}
/* 设置导航栏里列表项的文本颜色为黑色,内边距为5像素的上下,10像素的左右 */
.list-group .nav>li>a{
color: #000000;
padding: 5px 10px;
}
/* 设置导航栏里激活的列表项的背景颜色为红色,文本颜色为白色 */
.list-group .nav .active>a,
.list-group .nav .active>a:hover,
.list-group .nav .active>a:focus{
background-color: #c20c0c;
color: #fff;
}
/* 设置playlists的内边距为0 */
#playlists{
padding: 0;
}
/* 设置playlists里每个div元素的左内边距为0像素,高度为290像素 */
#playlists>div {
padding-left: 0px;
height: 290px;
}
/* 鼠标悬停在playlists里的链接上时,设置文本颜色为红色,去除下划线 */
#playlists>div>a:hover{
color: #c20c0c;
text-decoration: none;
}
/* 设置playlists里h5元素的文字截断样式:超出部分显示为点点,不换行,超出部分隐藏 */
#playlists h5 {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
/* 鼠标悬停在playlists里的缩略图上时,设置边框为0,向上移动5像素,添加阴影效果 */
#playlists .thumbnail:hover {
border: 0;
transform: translateY(-5px);
-webkit-transform: translateY(-5px);
overflow: hidden;
box-shadow: 1px 1px 10px 1px #c4bfbf;
}
/* 在屏幕宽度小于768像素时,设置playlists里每个div元素的左内边距为20像素 */
@media screen and (max-width: 768px) {
#playlists>div {
padding-left: 20px;
}
}