미디어위키

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

North Korea Humanities

 
(같은 사용자의 중간 판 27개는 보이지 않습니다)
3번째 줄: 3번째 줄:
 
   box-shadow: inset 0 -20px 0 #FAFAFA;
 
   box-shadow: inset 0 -20px 0 #FAFAFA;
 
}
 
}
   
+
 
   
+
/*241123 이청원 탭 제작 by. JisunKim*/
accordion {
+
.tabs-container {
 +
  font-family: Arial, sans-serif;
 +
  margin: 20px;
 +
  border: 1px solid #ddd;
 +
  border-radius: 5px;
 +
  background-color: #fff;
 +
}
 +
 
 +
.tabs {
 +
  display: flex;
 +
  justify-content: space-between;
 +
  margin-bottom: 10px;
 +
  background-color: #007BFF;
 +
  border-radius: 5px 5px 0 0;
 +
}
 +
 
 +
.tab-link {
 +
  text-decoration: none;
 +
  padding: 12px 20px;
 +
  font-size: 16px;
 +
  font-weight: bold;
 +
  color: #fff;
 +
  background-color: #007BFF; /* 탭 배경 */
 +
  border-radius: 5px 5px 0 0;
 +
  border: 2px solid #007BFF; /* 테두리 */
 +
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
 +
  margin: 0 8px; /* 탭 버튼 사이 여백 */
 +
  flex-grow: 1;
 +
  text-align: center;
 +
}
 +
 
 +
.tab-link:hover {
 +
  background-color: #0062cc;
 +
}
 +
 
 +
.tab-link:active, .tab-link:focus, .tab-link:target {
 +
  background-color: #fff;  
 +
  color: #007BFF;  
 +
  border-color: #007BFF;
 +
}
 +
 
 +
.tab-content {
 
   display: flex;
 
   display: flex;
 
   flex-direction: column;
 
   flex-direction: column;
   border-radius: var(--accordion-border-radius);
+
   padding: 10px 0;
   background-color: var(--accordion-bg);
+
}
   border: var(--accordion-border-width) solid var(--accordion-border-color);
+
 
 +
.tab-pane {
 +
  display: none;
 +
  padding: 15px;
 +
   background-color: #fff;  
 +
   border: 1px solid #fff;
 +
  border-radius: 5px;
 +
  margin-top: 10px;
 +
}
 +
 
 +
:target {
 +
  display: block;
 +
}
 +
 
 +
:target ~ .tab-content #tab1,
 +
:target ~ .tab-content #tab2,
 +
:target ~ .tab-content #tab3,
 +
:target ~ .tab-content #tab4 {
 +
  display: block;
 +
}
 +
 
 +
 
 +
/*241123 이청원 자료실 제작 by. JisunKim*/
 +
 +
/* 헤더 스타일 */
 +
header {
 +
    background-color: #4CAF50;
 +
    color: white;
 +
    padding: 2rem 0;
 
}
 
}
  
/* Accordion item */
+
header h1 {
accordion-item {
+
    text-align: center;
  border-top: var(--accordion-border-width) solid var(--accordion-border-color);
+
    font-size: 2rem;
  /* Add a shadow or other styling to separate the items */
 
 
}
 
}
  
accordion-item:first-child {
+
header p {
  border-top: none;
+
    text-align: center;
 +
    font-size: 1.2rem;
 +
    margin-top: 1rem;
 
}
 
}
  
/* Accordion header (button) */
+
/* 메인 컨텐츠 스타일 */
accordion-header {
+
main {
  margin: 0;
+
    padding: 2rem;
 
}
 
}
  
/* Accordion button styling */
+
/* 그리드 레이아웃 */
accordion-button {
+
.grid-container {
  display: flex;
+
    display: grid;
  justify-content: space-between;
+
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-items: center;
+
    gap: 1.5rem;
  padding: var(--accordion-btn-padding-y) var(--accordion-btn-padding-x);
+
    justify-content: center;
  width: 100%;
+
}
  text-align: left;
+
 
  background-color: var(--accordion-btn-bg);
+
/* 카드 스타일 */
  color: var(--accordion-btn-color);
+
.card {
  border: none;
+
    background-color: white;
  font-size: 1rem;
+
    border-radius: 10px;
  font-weight: bold;
+
    overflow: hidden;
  cursor: pointer;
+
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color var(--accordion-transition);
+
    transition: transform 0.3s ease-in-out;
 
}
 
}
  
accordion-button:focus {
+
.card:hover {
  outline: none;
+
    transform: translateY(-10px);
  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
 
 
}
 
}
  
accordion-button.collapsed {
+
.card-img {
  background-color: var(--accordion-btn-bg);
+
    width: 100%;
 +
    height: 200px;
 +
    object-fit: cover;
 
}
 
}
  
accordion-button:hover {
+
.card-body {
  background-color: var(--accordion-btn-active-bg);
+
    padding: 1rem;
 
}
 
}
  
/* Accordion icon */
+
.card-title {
accordion-button::after {
+
    font-size: 1.5rem;
  content: '';
+
    margin-bottom: 1rem;
  display: inline-block;
+
    color: #333;
  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-description {
accordion-button:not(.collapsed)::after {
+
    font-size: 1rem;
  transform: var(--accordion-btn-icon-transform);
+
    color: #555;
 +
    margin-bottom: 1.5rem;
 
}
 
}
  
/* Accordion collapse section */
+
.card-link {
accordion-collapse {
+
    text-decoration: none;
  padding: var(--accordion-body-padding-y) var(--accordion-body-padding-x);
+
    background-color: #007bff;
  background-color: var(--accordion-bg);
+
    color: white;
  color: var(--accordion-color);
+
    padding: 0.5rem 1rem;
  display: none;
+
    border-radius: 5px;
  transition: max-height var(--accordion-transition);
+
    text-align: center;
  border-top: var(--accordion-border-width) solid var(--accordion-border-color);
+
    display: inline-block;
 
}
 
}
  
/* Show the collapse section when active */
+
.card-link:hover {
accordion-collapse.show {
+
    background-color: #0056b3;
  display: block;
 
  max-height: 1000px;
 
 
}
 
}
  
/* Accordion body */
+
 
accordion-body {
+
/*241123 이청원 저작집 by Jisun Kim*/
  padding: var(--accordion-body-padding-y) var(--accordion-body-padding-x);
+
 
  color: var(--accordion-color);
+
.card2-link {
 +
    text-decoration: none;
 +
    background-color: #006400;
 +
    color: white;
 +
    padding: 0.5rem 1rem;
 +
    border-radius: 5px;
 +
    text-align: center;
 +
    display: inline-block;
 
}
 
}
  
/* Active accordion button state */
+
.card2-link:hover {
accordion-button:not(.collapsed) {
+
    background-color: #808000;
  background-color: var(--accordion-btn-active-bg);
 
  color: var(--accordion-btn-active-color);
 
 
}
 
}

2024년 11월 23일 (토) 18:45 기준 최신판

/* 이 CSS 설정은 모든 스킨에 적용됩니다 */
cite {
  box-shadow: inset 0 -20px 0 #FAFAFA;
}

/*241123 이청원 탭 제작 by. JisunKim*/
.tabs-container {
  font-family: Arial, sans-serif;
  margin: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff; 
}

.tabs {
  display: flex;
  justify-content: space-between; 
  margin-bottom: 10px;
  background-color: #007BFF; 
  border-radius: 5px 5px 0 0; 
}

.tab-link {
  text-decoration: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  color: #fff; 
  background-color: #007BFF; /* 탭 배경 */
  border-radius: 5px 5px 0 0; 
  border: 2px solid #007BFF; /* 테두리 */
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  margin: 0 8px; /* 탭 버튼 사이 여백 */
  flex-grow: 1;
  text-align: center; 
}

.tab-link:hover {
  background-color: #0062cc;
}

.tab-link:active, .tab-link:focus, .tab-link:target {
  background-color: #fff;  
  color: #007BFF;  
  border-color: #007BFF; 
}

.tab-content {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.tab-pane {
  display: none;
  padding: 15px;
  background-color: #fff; 
  border: 1px solid #fff; 
  border-radius: 5px;
  margin-top: 10px;
}

:target {
  display: block;
}

:target ~ .tab-content #tab1,
:target ~ .tab-content #tab2,
:target ~ .tab-content #tab3,
:target ~ .tab-content #tab4 {
  display: block;
}


/*241123 이청원 자료실 제작 by. JisunKim*/
 
/* 헤더 스타일 */
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;
}


/*241123 이청원 저작집 by Jisun Kim*/

.card2-link {
    text-decoration: none;
    background-color: #006400;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
}

.card2-link:hover {
    background-color: #808000;
}