"Common.css"의 두 판 사이의 차이
North Korea Humanities
4번째 줄: | 4번째 줄: | ||
} | } | ||
− | |||
.tabs-container { | .tabs-container { | ||
font-family: Arial, sans-serif; | font-family: Arial, sans-serif; | ||
10번째 줄: | 9번째 줄: | ||
border: 1px solid #ddd; | border: 1px solid #ddd; | ||
border-radius: 5px; | border-radius: 5px; | ||
− | background-color: #fff; | + | background-color: #fff; |
} | } | ||
− | |||
.tabs { | .tabs { | ||
display: flex; | display: flex; | ||
− | justify-content: space-between; | + | justify-content: space-between; |
margin-bottom: 10px; | margin-bottom: 10px; | ||
− | background-color: #007BFF; | + | background-color: #007BFF; |
− | border-radius: 5px 5px 0 0; | + | border-radius: 5px 5px 0 0; |
} | } | ||
− | |||
.tab-link { | .tab-link { | ||
text-decoration: none; | text-decoration: none; | ||
28번째 줄: | 25번째 줄: | ||
font-size: 16px; | font-size: 16px; | ||
font-weight: bold; | font-weight: bold; | ||
− | color: #fff; | + | color: #fff; |
− | background-color: #007BFF; /* 탭 배경 | + | background-color: #007BFF; /* 탭 배경 */ |
− | border-radius: 5px 5px 0 0; | + | border-radius: 5px 5px 0 0; |
− | border: 2px solid #007BFF; /* 테두리 | + | border: 2px solid #007BFF; /* 테두리 */ |
transition: background-color 0.3s, color 0.3s, transform 0.3s; | transition: background-color 0.3s, color 0.3s, transform 0.3s; | ||
− | margin: 0 8px; /* 탭 버튼 | + | margin: 0 8px; /* 탭 버튼 사이 여백 */ |
flex-grow: 1; | flex-grow: 1; | ||
− | text-align: center; | + | text-align: center; |
} | } | ||
− | |||
.tab-link:hover { | .tab-link:hover { | ||
− | background-color: #0062cc; | + | background-color: #0062cc; |
} | } | ||
− | |||
.tab-link:active, .tab-link:focus, .tab-link:target { | .tab-link:active, .tab-link:focus, .tab-link:target { | ||
− | background-color: #fff; | + | background-color: #fff; |
− | color: #007BFF; | + | color: #007BFF; |
− | border-color: #007BFF; | + | border-color: #007BFF; |
} | } | ||
− | |||
.tab-content { | .tab-content { | ||
display: flex; | display: flex; | ||
57번째 줄: | 51번째 줄: | ||
} | } | ||
− | |||
.tab-pane { | .tab-pane { | ||
display: none; | display: none; | ||
padding: 15px; | padding: 15px; | ||
− | background-color: #fff; | + | background-color: #fff; |
− | border: 1px solid #fff; | + | border: 1px solid #fff; |
border-radius: 5px; | border-radius: 5px; | ||
margin-top: 10px; | margin-top: 10px; | ||
} | } | ||
− | |||
:target { | :target { | ||
display: block; | display: block; | ||
} | } | ||
− | |||
:target ~ .tab-content #tab1, | :target ~ .tab-content #tab1, | ||
:target ~ .tab-content #tab2, | :target ~ .tab-content #tab2, |
2024년 11월 23일 (토) 17:49 판
/* 이 CSS 설정은 모든 스킨에 적용됩니다 */
cite {
box-shadow: inset 0 -20px 0 #FAFAFA;
}
.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;
}