#esport-news-view {
padding: 20px;
border: solid 1px grey;
border-radius: 10px;
margin-bottom: 30px;
}
#esport-news-view h2 {
font-size: 18px;
}
#esport-news-view ol {
margin-top: 20px;
}
#esport-news-view li {
margin-bottom: 8px;
}
#esport-news-view li:last-child {
margin-bottom: 0;
}
#esport-news-view li a {
/*display: block;*/
}
#esport-news-view li .image-wrap {
overflow: hidden;
position: relative;
width: 84px;
height: 48px;
border: solid 1px rgba(0, 0, 0, .04);
border-radius: 4px;
}
#esport-news-view li .image-wrap img {
position: absolute;
width: 100%;
height: 100%;
}
#esport-news-view li .image-wrap .rank {
position: absolute;
background-color: #4e41db;
border-bottom-right-radius: 4px;
padding: 4px 10px;
top: 0;
left: 0;
font-size: 13px;
color: #ffffff;
font-weight: 800;
}
#esport-news-view li h3 {
display: -webkit-box;
overflow: hidden;
width: 218px;
max-height: 38px;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
font-size: 14px;
line-height: 19px;
}
#esport-schedule {
}
#esport-schedule h2 {
font-size: 18px;
}
#esport-schedule .schedule-wrap {
margin-top: 15px;
border: solid 1px grey;
border-radius: 4px;
}
#esport-schedule .schedule-wrap .schedule-header {
padding: 14px 15px;
border-bottom: solid 1px grey;
}
#esport-schedule .schedule-wrap .schedule-header .arrow {
width: 20px;
height: 20px;
}
#esport-schedule .schedule-wrap .schedule-header .arrow.arrow-left {
background-color: yellow;
}
#esport-schedule .schedule-wrap .schedule-header .arrow.arrow-right {
background-color: greenyellow;
}
#esport-schedule .schedule-wrap .schedule-header span {
position: relative;
font-size: 18px;
font-weight: 800;
top: 3px;
}
#esport-schedule .schedule-body {
padding: 17px 0;
}
#esport-schedule .schedule-body li {
/*padding: 17px 0;*/
}
#esport-schedule .schedule-body li:first-child:after {
content: '';
display: block;
width: calc(100% - 40px);
height: 1px;
background-color: rgba(0, 0, 0, .05);
margin: 17px auto;
}
#esport-schedule .schedule-body li h3 {
font-size: 14px;
margin-bottom: 12px;
text-align: center;
}
#esport-schedule .schedule-body li .status-wrap {
}
#esport-schedule .schedule-body li .status-wrap:hover {
/*cursor: pointer;*/
background-color: yellow;
}
#esport-schedule .schedule-body li .status-wrap .status {
background-color: rgba(255, 0, 0, .1);
color: red;
font-weight: 500;
font-size: 11px;
border-radius: 3px;
margin-right: 4.5px;
padding: 2px 4px;
}
#esport-schedule .schedule-body li .status-wrap .time {
position: relative;
top: 1px;
font-size: 15px;
font-weight: 700;
}
.png)
🔥font-family 로 여러가지 font 적용하기
🔍 css
* {
margin: 0;
padding: 0;
box-sizing: border-box;
👉/*font-family: 'Noto Sans KR', 'Nanum Gothic', sans-serif;*/
}
html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>네이버</title>
👉 <!-- <link rel="preconnect" href="https://fonts.gstatic.com"> --> -->
👉 <!-- <link href="https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap" rel="stylesheet"> -->
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
🔍 google font적용해보기
🔥 html에서 폰트링크먼저 입력한 후,
<link rel="stylesheet" type="text/css" href="css/style.css">
css파일 연결링크 입력해주기
👉 font-family: 'Noto Sans KR', 'Nanum Gothic', sans-serif; 브라우저마다 가능한 폰트서체가 다르지만 기본값으로
sans-serif 꼭 넣어주기!
먼저 입력한 font 순으로 적용가능