"Common.css"의 두 판 사이의 차이
North Korea Humanities
(같은 사용자의 중간 판 21개는 보이지 않습니다) | |||
4번째 줄: | 4번째 줄: | ||
} | } | ||
− | /* | + | /*241123*/ |
− | + | header { | |
− | + | background-color: #4CAF50; | |
− | + | color: white; | |
− | + | padding: 2rem 0; | |
− | |||
− | |||
} | } | ||
− | + | header h1 { | |
− | + | text-align: center; | |
− | + | font-size: 2rem; | |
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | + | header p { | |
− | + | text-align: center; | |
− | + | font-size: 1.2rem; | |
− | + | margin-top: 1rem; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | + | main { | |
− | + | padding: 2rem; | |
− | |||
} | } | ||
− | + | .grid-container { | |
− | . | + | display: grid; |
− | + | grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | |
− | + | gap: 1.5rem; | |
− | + | justify-content: center; | |
} | } | ||
− | + | .card { | |
− | . | + | background-color: white; |
− | + | border-radius: 10px; | |
− | + | overflow: hidden; | |
− | + | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); | |
+ | transition: transform 0.3s ease-in-out; | ||
} | } | ||
− | + | .card:hover { | |
− | . | + | transform: translateY(-10px); |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | + | .card-img { | |
− | : | + | width: 100%; |
− | + | height: 200px; | |
+ | object-fit: cover; | ||
} | } | ||
− | + | .card-body { | |
− | : | + | padding: 1rem; |
− | : | + | } |
− | + | ||
− | : | + | .card-title { |
− | : | + | font-size: 1.5rem; |
− | : | + | margin-bottom: 1rem; |
− | : | + | color: #333; |
− | : | + | } |
− | : | + | |
− | + | .card-description { | |
− | + | font-size: 1rem; | |
+ | color: #555; | ||
+ | margin-bottom: 1.5rem; | ||
+ | } | ||
+ | .card-link { | ||
+ | text-decoration: none; | ||
+ | background-color: #007bff; | ||
+ | color: white; | ||
+ | padding: 0.5rem 1rem; | ||
+ | border-radius: 5px; | ||
+ | text-align: center; | ||
+ | display: inline-block; | ||
+ | } | ||
+ | |||
+ | .card-link:hover { | ||
+ | background-color: #0056b3; | ||
} | } |
2024년 11월 26일 (화) 11:01 기준 최신판
/* 이 CSS 설정은 모든 스킨에 적용됩니다 */
cite {
box-shadow: inset 0 -20px 0 #FAFAFA;
}
/*241123*/
header {
background-color: #4CAF50;
color: white;
padding: 2rem 0;
}
header h1 {
text-align: center;
font-size: 2rem;
}
header p {
text-align: center;
font-size: 1.2rem;
margin-top: 1rem;
}
main {
padding: 2rem;
}
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
justify-content: center;
}
.card {
background-color: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease-in-out;
}
.card:hover {
transform: translateY(-10px);
}
.card-img {
width: 100%;
height: 200px;
object-fit: cover;
}
.card-body {
padding: 1rem;
}
.card-title {
font-size: 1.5rem;
margin-bottom: 1rem;
color: #333;
}
.card-description {
font-size: 1rem;
color: #555;
margin-bottom: 1.5rem;
}
.card-link {
text-decoration: none;
background-color: #007bff;
color: white;
padding: 0.5rem 1rem;
border-radius: 5px;
text-align: center;
display: inline-block;
}
.card-link:hover {
background-color: #0056b3;
}