2021.08. 12 CSS์ค์ต(25)๐ฅ
esport.css โ
#esport-main .content-wrap {
overflow: hidden;
padding-top: 30px;
}
#esport-main .left {
float: left;
width: 900px;
/*height: 2000px;*/
/*background-color: yellow;*/
}
#esport-main .right {
float: right;
width: 357px;
height: 2000px;
background-color: grey;
}
#esport-main-article {
overflow: hidden;
width: 100%;
height: 468px;
background-color: grey;
border-radius: 10px;
margin-bottom: 30px;
}
#esport-main-article .article {
position: relative;
float: left;
width: 50%;
height: 50%;
}
#esport-main-article .article.full {
height: 100%;
}
#esport-main-article .article img {
position: absolute;
width: 100%;
height: 100%;
}
#esport-main-article .article .txt-wrap {
position: absolute;
width: 100%;
padding: 0 24px 20px;
left: 0;
bottom: 0;
color: #ffffff;
}
#esport-main-article .article .txt-wrap h3 {
font-size: 20px;
line-height: 26px;
font-weight: 700;
}
#esport-main-article .article .txt-wrap p {
margin-top: 5px;
font-size: 14px;
font-weight: 500;
line-height: 19px;
}
#esport-main-article .article .txt-wrap .source {
display: block;
margin-top: 10px;
font-size: 13px;
color: hsla(0, 0%, 100%, .7);
}
.esport-section {
border-top: solid 1px grey;
padding-bottom: 30px;
margin-bottom: 30px;
}
.esport-section .title-wrap {
padding: 15px 0;
}
.esport-section .title-wrap h2 {
font-size: 18px;
}
#esport-replay .game-menu {
margin-bottom: 24px;
}
#esport-replay .game-menu ul {
}
#esport-replay .game-menu ul li {
margin-right: 20px;
}
#esport-replay .game-menu ul li:last-child {
margin-right: 0;
}
#esport-replay .game-menu ul li a {
display: block;
width: 60px;
/*height: 82px;*/
text-align: center;
}
#esport-replay .game-menu ul li a.active i {
background-color: purple;
}
#esport-replay .game-menu ul li a.active span {
color: purple;
}
#esport-replay .game-menu ul li i {
display: inline-block;
width: 60px;
height: 60px;
background-color: grey;
border-radius: 50%;
margin-bottom: 6pxs;
}
#esport-replay .game-menu ul li span {
font-size: 13px;
}
#esport-replay .play-lists {
}
#esport-replay .play-lists li:nth-child(4),
#esport-replay .play-lists li:nth-child(5),
#esport-replay .play-lists li:nth-child(6) {
margin-bottom: 0;
}
#esport-replay .play-lists li {
width: 285px;
margin-bottom: 24px;
}
#esport-replay .play-lists li a {
display: block;
}
#esport-replay .play-lists li .image-wrap {
position: relative;
width: 100%;
height: 160px;
margin-bottom: 11px;
}
#esport-replay .play-lists li .image-wrap img {
position: absolute;
width: 100%;
height: 100%;
}
#esport-replay .play-lists li .status-wrap {
position: absolute;
width: 100%;
left: 0;
bottom: 0;
padding: 10px;
}
#esport-replay .play-lists li .status-wrap i {
display: block;
width: 20px;
height: 20px;
background-color: grey;
}
#esport-replay .play-lists li .status-wrap .time {
background-color: rgba(0, 0, 0, 0.7);
padding: 3px 5px;
border-radius: 3px;
font-size: 11px;
color: #ffffff;
}
#esport-replay .play-lists li .status-wrap i {
}
#esport-replay .play-lists li h3 {
font-size: 15px;
}
#esport-news {
}
#esport-news .article-wrap {
align-items: flex-start;
}
#esport-news .article-wrap .left-lists {
width: 472px;
}
#esport-news .article-wrap .left-lists li {
width: 226px;
}
#esport-news .article-wrap .left-lists li a {
display: block;
}
#esport-news .article-wrap .left-lists img {
width: 100%;
height: 132px;
margin-bottom: 9px;
}
#esport-news .article-wrap .left-lists h3 {
font-size: 16px;
font-weight: 500;
line-height: 21px;
}
#esport-news .article-wrap .left-lists p {
font-size: 14px;
color: #777;
}
#esport-news .article-wrap .right-lists {
width: 400px;
}
#esport-news .article-wrap .right-lists li {
position: relative;
margin-bottom: 5px;
}
#esport-news .article-wrap .right-lists li:before {
position: absolute;
display: inline-block;
content: '';
width: 4px;
height: 4px;
background-color: grey;
border-radius: 50%;
top: 6px;
}
#esport-news .article-wrap .right-lists li a {
display: block;
font-size: 16px;
padding-left: 15px;
}
#esport-expert .news-lists {
}
#esport-expert .news-lists li {
width: 450px;
margin-bottom: 15px;
}
#esport-expert .news-lists li a {
}
#esport-expert .news-lists li img {
width: 153px;
height: 86px;
margin-right: 15px;
}
#esport-expert .news-lists .txt-wrap {
width: 268px;
}
#esport-expert .news-lists .txt-wrap h3 {
font-size: 15px;
font-weight: 500;
}
#esport-expert .news-lists .txt-wrap p {
font-size: 14px;
color: #777777;
line-height: 19px;
margin-top: 4px;
display: -webkit-box;
overflow: hidden;
max-height: 38px;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
}
#esport-expert .news-lists .txt-wrap .source {
font-size: 13px;
color: #777777;
}
๐ ๊ฒฐ๊ณผ๋ฌผ
๐ก๋ง์ค์ํ๊ณ ์ถ์๋
display: -webkit-box;
overflow: hidden;
max-height: 38px;
-webkit-line-clamp: 2;
๐ฅ 3์คํ๋ฉด ์ธ์ค๋ง์ค์๋๋ค.
-webkit-box-orient: vertical;
text-overflow: ellipsis;
Author And Source
์ด ๋ฌธ์ ์ ๊ดํ์ฌ(2021.08. 12 CSS์ค์ต(25)๐ฅ), ์ฐ๋ฆฌ๋ ์ด๊ณณ์์ ๋ ๋ง์ ์๋ฃ๋ฅผ ๋ฐ๊ฒฌํ๊ณ ๋งํฌ๋ฅผ ํด๋ฆญํ์ฌ ๋ณด์๋ค https://velog.io/@yoowhae/2021.08.-12-CSS์ค์ต25์ ์ ๊ท์: ์์์ ์ ๋ณด๊ฐ ์์์ URL์ ํฌํจ๋์ด ์์ผ๋ฉฐ ์ ์๊ถ์ ์์์ ์์ ์ ๋๋ค.
์ฐ์ํ ๊ฐ๋ฐ์ ์ฝํ ์ธ ๋ฐ๊ฒฌ์ ์ ๋ (Collection and Share based on the CC Protocol.)
์ข์ ์นํ์ด์ง ์ฆ๊ฒจ์ฐพ๊ธฐ
๊ฐ๋ฐ์ ์ฐ์ ์ฌ์ดํธ ์์ง
๊ฐ๋ฐ์๊ฐ ์์์ผ ํ ํ์ ์ฌ์ดํธ 100์ ์ถ์ฒ ์ฐ๋ฆฌ๋ ๋น์ ์ ์ํด 100๊ฐ์ ์์ฃผ ์ฌ์ฉํ๋ ๊ฐ๋ฐ์ ํ์ต ์ฌ์ดํธ๋ฅผ ์ ๋ฆฌํ์ต๋๋ค