Template:有声漫导航/styles.css:修订间差异

模板页面
(// Edit via Wikiplus)
无编辑摘要
 
(未显示2个用户的9个中间版本)
第12行: 第12行:
height: 2.5em;
height: 2.5em;
width: 10em;
width: 10em;
background-color: #baccd9;
background-color: #BBE3FF;
border: 1px solid rgba(0, 0, 0, .12);
border: 1px solid rgba(0, 0, 0, .12);
border-radius: 10px;
border-radius: 10px;
第22行: 第22行:
.phone-title {
.phone-title {
display: flex;
display: flex;
padding-left: 1em;
padding: 0 0.5em;
padding-right: 1em;
background-color: #d8e3e7;
}
}


第32行: 第30行:
flex: 1;
flex: 1;
text-overflow: ellipsis;
text-overflow: ellipsis;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.web-title:hover:after {
.web-title:hover:after {

2024年7月2日 (二) 13:56的最新版本

.titlestyle-ysm {
    display: grid;
    grid-template-columns: repeat(auto-fill, 10em);
    grid-template-rows: auto ;
    justify-content: space-between;
    justify-items: center;
}
 
.item {
    display: flex;
    font-size: 1em;
    height: 2.5em;
    width: 10em;
    background-color: #BBE3FF;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 10px;
    align-items: center;
    cursor: pointer;
    margin: 1em;
}

.phone-title {
	display: flex;
    padding: 0 0.5em;
}

.web-title{
	position: relative;
    white-space: nowrap;
	flex: 1;
	text-overflow: ellipsis;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.web-title:hover:after {
	font-size: 0.8em;
	position:absolute;
	top:-33.5px;
	left:-58px;
	content:attr(data-title);
	color:white;
	border:1px solid #000;
	border-radius:5px ;
	background-color:#333;
}

@media screen and (max-width: 768px) {
    .titlestyle-ysm {
        grid-template-columns: repeat(auto-fill, 5em);
    }

    .item {
        justify-content: center;
        width: 4em;
        height: 2.5em;
    }

    .web-title {
        display: none;
    }
}