미디어위키

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

North Korea Humanities

 
(같은 사용자의 중간 판 41개는 보이지 않습니다)
2번째 줄: 2번째 줄:
 
cite {
 
cite {
 
   box-shadow: inset 0 -20px 0 #FAFAFA;
 
   box-shadow: inset 0 -20px 0 #FAFAFA;
}
 
 
 
accordion {
 
  display: flex;
 
  flex-direction: column;
 
  border-radius: var(--accordion-border-radius);
 
  background-color: var(--accordion-bg);
 
  border: var(--accordion-border-width) solid var(--accordion-border-color);
 
 
}
 
}
  
/* Accordion item */
+
/*241123*/
accordion-item {
+
header {
  border-top: var(--accordion-border-width) solid var(--accordion-border-color);
+
    background-color: #4CAF50;
  /* Add a shadow or other styling to separate the items */
+
    color: white;
 +
    padding: 2rem 0;
 
}
 
}
  
accordion-item:first-child {
+
header h1 {
  border-top: none;
+
    text-align: center;
 +
    font-size: 2rem;
 
}
 
}
  
/* Accordion header (button) */
+
header p {
accordion-header {
+
    text-align: center;
  margin: 0;
+
    font-size: 1.2rem;
 +
    margin-top: 1rem;
 
}
 
}
  
/* Accordion button styling */
+
main {
accordion-button {
+
    padding: 2rem;
  display: flex;
 
  justify-content: space-between;
 
  align-items: center;
 
  padding: var(--accordion-btn-padding-y) var(--accordion-btn-padding-x);
 
  width: 100%;
 
  text-align: left;
 
  background-color: var(--accordion-btn-bg);
 
  color: var(--accordion-btn-color);
 
  border: none;
 
  font-size: 1rem;
 
  font-weight: bold;
 
  cursor: pointer;
 
  transition: background-color var(--accordion-transition);
 
 
}
 
}
  
accordion-button:focus {
+
.grid-container {
  outline: none;
+
    display: grid;
  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
+
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
 +
    gap: 1.5rem;
 +
    justify-content: center;
 
}
 
}
  
accordion-button.collapsed {
+
.card {
  background-color: var(--accordion-btn-bg);
+
    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;
 
}
 
}
  
accordion-button:hover {
+
.card:hover {
  background-color: var(--accordion-btn-active-bg);
+
    transform: translateY(-10px);
 
}
 
}
  
/* Accordion icon */
+
.card-img {
accordion-button::after {
+
    width: 100%;
  content: '';
+
    height: 200px;
  display: inline-block;
+
    object-fit: cover;
  width: var(--accordion-btn-icon-width);
 
  height: var(--accordion-btn-icon-width);
 
  background-image: var(--accordion-btn-icon);
 
  background-size: contain;
 
  transition: transform var(--accordion-transition);
 
 
}
 
}
  
/* Accordion button active state */
+
.card-body {
accordion-button:not(.collapsed)::after {
+
    padding: 1rem;
  transform: var(--accordion-btn-icon-transform);
 
 
}
 
}
  
/* Accordion collapse section */
+
.card-title {
accordion-collapse {
+
    font-size: 1.5rem;
  padding: var(--accordion-body-padding-y) var(--accordion-body-padding-x);
+
    margin-bottom: 1rem;
  background-color: var(--accordion-bg);
+
    color: #333;
  color: var(--accordion-color);
 
  display: none;
 
  transition: max-height var(--accordion-transition);
 
  border-top: var(--accordion-border-width) solid var(--accordion-border-color);
 
 
}
 
}
  
/* Show the collapse section when active */
+
.card-description {
accordion-collapse.show {
+
    font-size: 1rem;
  display: block;
+
    color: #555;
  max-height: 1000px;
+
    margin-bottom: 1.5rem;
 
}
 
}
 
+
.card-link {
/* Accordion body */
+
    text-decoration: none;
accordion-body {
+
    background-color: #007bff;
  padding: var(--accordion-body-padding-y) var(--accordion-body-padding-x);
+
    color: white;
  color: var(--accordion-color);
+
    padding: 0.5rem 1rem;
 +
    border-radius: 5px;
 +
    text-align: center;
 +
    display: inline-block;
 
}
 
}
  
/* Active accordion button state */
+
.card-link:hover {
accordion-button:not(.collapsed) {
+
    background-color: #0056b3;
  background-color: var(--accordion-btn-active-bg);
 
  color: var(--accordion-btn-active-color);
 
 
}
 
}

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