.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-left: 1em;
padding-right: 1em;
background-color: #BBE3FF;
}
.web-title{
position: relative;
white-space: nowrap;
flex: 1;
text-overflow: ellipsis;
}
.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;
}
}