미디어위키:Common.css: 두 판 사이의 차이

편집 요약 없음
태그: 되돌려진 기여
편집 요약 없음
태그: 되돌려진 기여
15번째 줄: 15번째 줄:
/* Styles for toggle-collapse button */
/* Styles for toggle-collapse button */
.toggle-collapse {
.toggle-collapse {
    cursor: pointer;
     display: inline-block; /* margin 사용 가능하도록 수정 */
     display: inline-block; /* Use inline-block to allow margin */
     margin: 0; /* 외부 여백 제거 */
     padding: 0; /* Remove internal padding */
     padding: 0; /* 내부 여백 제거 */
     margin: 0; /* Ensure no extra space */
     line-height: 1; /* 텍스트 높이를 부모와 동일하게 설정 */
     line-height: 1; /* Align text to default height */
     font-size: inherit; /* 부모 요소의 폰트 크기 사용 */
     font-size: inherit; /* Inherit font size from parent element */
     vertical-align: middle; /* 부모 텍스트와 동일한 수직 정렬 */
     vertical-align: middle; /* Ensure alignment with surrounding text */
}
}



2024년 11월 28일 (목) 20:06 판

/* 기존 코드 유지 */

/* New functionality for smooth transition of collapsible tables */
.custom-content {
    display: none;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.custom-content.expanded {
    display: block;
    max-height: 1000px; /* Adjust based on content's expected max height */
}

/* Styles for toggle-collapse button */
.toggle-collapse {
    display: inline-block; /* margin 사용 가능하도록 수정 */
    margin: 0; /* 외부 여백 제거 */
    padding: 0; /* 내부 여백 제거 */
    line-height: 1; /* 텍스트 높이를 부모와 동일하게 설정 */
    font-size: inherit; /* 부모 요소의 폰트 크기 사용 */
    vertical-align: middle; /* 부모 텍스트와 동일한 수직 정렬 */
}

/* Updated glow-text for compatibility */
.glow-text {
    color: var(--glow-text-color, black); /* Add fallback color */
    text-shadow: 0 0 10px rgba(255, 0, 0, 1),
                 0 0 20px rgba(255, 0, 0, 1),
                 0 0 30px rgba(255, 0, 0, 1);
    display: inline-block; /* Adjust to inline-block for better compatibility */
    transition: all 0.3s ease;
}