미디어위키

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

North Korea Humanities

 
(같은 사용자의 중간 판 17개는 보이지 않습니다)
4번째 줄: 4번째 줄:
 
}
 
}
  
.tabs-container {
+
/*241123*/
  font-family: Arial, sans-serif;
+
header {
  margin: 20px;
+
    background-color: #4CAF50;
  border: 1px solid #ddd;
+
    color: white;
  border-radius: 5px;
+
    padding: 2rem 0;
  background-color: #fff;  
 
 
}
 
}
  
.tabs {
+
header h1 {
  display: flex;
+
    text-align: center;
  justify-content: space-between;
+
    font-size: 2rem;
  margin-bottom: 10px;
 
  background-color: #007BFF;  
 
  border-radius: 5px 5px 0 0;  
 
 
}
 
}
  
.tab-link {
+
header p {
  text-decoration: none;
+
    text-align: center;
  padding: 12px 20px;
+
    font-size: 1.2rem;
  font-size: 16px;
+
    margin-top: 1rem;
  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 {
+
main {
  background-color: #0062cc;
+
    padding: 2rem;
 
}
 
}
  
.tab-link:active, .tab-link:focus, .tab-link:target {
+
.grid-container {
  background-color: #fff;
+
    display: grid;
  color: #007BFF;
+
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  border-color: #007BFF;  
+
    gap: 1.5rem;
 +
    justify-content: center;
 
}
 
}
  
.tab-content {
+
.card {
  display: flex;
+
    background-color: white;
  flex-direction: column;
+
    border-radius: 10px;
  padding: 10px 0;
+
    overflow: hidden;
 +
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 +
    transition: transform 0.3s ease-in-out;
 
}
 
}
  
.tab-pane {
+
.card:hover {
  display: none;
+
    transform: translateY(-10px);
  padding: 15px;
 
  background-color: #fff;
 
  border: 1px solid #fff;
 
  border-radius: 5px;
 
  margin-top: 10px;
 
 
}
 
}
  
:target {
+
.card-img {
  display: block;
+
    width: 100%;
 +
    height: 200px;
 +
    object-fit: cover;
 
}
 
}
  
:target ~ .tab-content #tab1,
+
.card-body {
:target ~ .tab-content #tab2,
+
    padding: 1rem;
:target ~ .tab-content #tab3,
+
}
:target ~ .tab-content #tab4 {
+
 
  display: block;
+
.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;
}