미디어위키

"Common.css"의 두 판 사이의 차이

North Korea Humanities

 
(같은 사용자의 중간 판 39개는 보이지 않습니다)
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;
 +
}
  
/* Accordion header styles */
+
.grid-container {
.bs-accordion .panel-heading {
+
    display: grid;
  padding: 0; /* Remove padding on the heading */
+
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
 +
    gap: 1.5rem;
 +
    justify-content: center;
 
}
 
}
  
/* Make anchor clickable area larger */
+
.card {
.bs-accordion .panel-heading a {
+
    background-color: white;
  display: block;
+
    border-radius: 10px;
  padding: 10px 15px; /* Increase the padding to make the clickable area bigger */
+
    overflow: hidden;
  text-decoration: none; /* Optional: Remove underline if any */
+
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 +
    transition: transform 0.3s ease-in-out;
 +
}
  
  /* Chevron rotation on active state */
+
.card:hover {
  transition: transform 350ms cubic-bezier(0.645, 0.045, 0.355, 1);
+
    transform: translateY(-10px);
 
}
 
}
  
/* Chevron icon behavior when expanded */
+
.card-img {
.bs-accordion .panel-heading a[aria-expanded="true"] .glyphicon.glyphicon-chevron-right {
+
    width: 100%;
  transform: rotate(90deg); /* Rotate the chevron when the panel is expanded */
+
    height: 200px;
  transition: transform 350ms cubic-bezier(0.645, 0.045, 0.355, 1);
+
    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;
 
}
 
}
  
/* Default chevron behavior */
+
.card-link:hover {
.bs-accordion .panel-heading .glyphicon.glyphicon-chevron-right {
+
    background-color: #0056b3;
  transition: transform 350ms cubic-bezier(0.645, 0.045, 0.355, 1); /* Smooth transition for chevron rotation */
 
 
}
 
}

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;
}