108 lines
1.6 KiB
CSS
108 lines
1.6 KiB
CSS
.slider {
|
|
position: relative;
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.slider img {
|
|
width: 100%;
|
|
height: 380px;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
#slider {
|
|
margin-top: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.slider-btn {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: rgba(0,0,0,0.4);
|
|
color: white;
|
|
border: none;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
.slider-btn:hover {
|
|
background: rgba(0,0,0,0.7);
|
|
}
|
|
|
|
.prev {
|
|
left: 12px;
|
|
}
|
|
|
|
.next {
|
|
right: 12px;
|
|
}
|
|
|
|
#isi {
|
|
text-align: justify;
|
|
font-size: 15px;
|
|
color: #444;
|
|
}
|
|
|
|
.sidebar-card {
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
background: #fff;
|
|
}
|
|
|
|
.sidebar-item {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-bottom: 18px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.sidebar-card .sidebar-item img {
|
|
width: 70px;
|
|
height: 55px;
|
|
object-fit: cover;
|
|
margin-top: 10px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.sidebar-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.sidebar-date {
|
|
font-size: 12px;
|
|
color: #888;
|
|
}
|
|
|
|
.sidebar-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
margin: 4px 0;
|
|
color: #222;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar-link {
|
|
font-size: 13px;
|
|
color: #0d6efd;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sidebar-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.sidebar-item:last-child {
|
|
margin-bottom: 0;
|
|
} |