메뉴 여닫기
개인 메뉴 토글
로그인하지 않음
만약 지금 편집한다면 당신의 IP 주소가 공개될 수 있습니다.

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

DB STUDY
(새 문서: →‎이 CSS 설정은 모든 스킨에 적용됩니다: →‎나눔고딕 미설치 컴에도 나눔고딕을 사용할 수 있게 함 구글 폰트에서 퍼옴: @font-face { font-family: 'Nanum Gothic'; font-style: normal; font-weight: 400; src: url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.eot); src: url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.eot?#iefix) format('embedded-opentype'), url(http://fonts.gstatic.com/ea...)
 
편집 요약 없음
 
32번째 줄: 32번째 줄:
}
}
* { font-family: 'Nanum Gothic', sans-serif; }/*모든 글꼴을 나눔고딕으로. */
* { font-family: 'Nanum Gothic', sans-serif; }/*모든 글꼴을 나눔고딕으로. */
body.page-대문 h1.firstHeading {display:none;}
ol {
margin-left: 2cm;
list-style-type: decimal;
}
img {
          display: block;
          margin: 0 auto;
          max-width: 100%;
    }
     
.tocnumber:after { content: '.' }
/* 반응형 그리드 레이아웃 */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}
/* 반응형 이미지 */
.responsive-image {
        display: block;
        margin: 0 auto;
        max-width: 100%;
}
.responsive-img {
    width: 100%; /* 부모 요소의 너비에 맞게 조정 */
    height: 600px; /* 원하는 높이 설정 */
    background-size: cover; /* 이미지가 div를 채우도록 조정 */
    background-position: center; /* 이미지의 중심을 기준으로 위치 조정 */
}
/* 모바일 환경에서의 텍스트 정렬 */
@media (max-width: 768px) {
    .main-page-intro {
        text-align: center;
    }
}
/* 데스크탑에서는 그리드 레이아웃 사용 */
@media (min-width: 769px) {
    .main-page-intro {
        display: flex;
        justify-content: space-between;
    }
}

2024년 11월 8일 (금) 09:54 기준 최신판

/* 이 CSS 설정은 모든 스킨에 적용됩니다 */
/* 나눔고딕 미설치 컴에도 나눔고딕을 사용할 수 있게 함 구글 폰트에서 퍼옴 */
@font-face {
  font-family: 'Nanum Gothic';
  font-style: normal;
  font-weight: 400;
  src: url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.eot);
  src: url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.eot?#iefix) format('embedded-opentype'),
       url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.woff2) format('woff2'),
       url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.woff) format('woff'),
       url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.ttf) format('truetype');
}
@font-face {
  font-family: 'Nanum Gothic';
  font-style: normal;
  font-weight: 700;
  src: url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.eot);
  src: url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.eot?#iefix) format('embedded-opentype'),
       url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.woff2) format('woff2'),
       url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.woff) format('woff'),
       url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.ttf) format('truetype');
}
@font-face {
  font-family: 'Nanum Gothic';
  font-style: normal;
  font-weight: 800;
  src: url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.eot);
  src: url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.eot?#iefix) format('embedded-opentype'),
       url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.woff2) format('woff2'),
       url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.woff) format('woff'),
       url(http://fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.ttf) format('truetype');
}
* { font-family: 'Nanum Gothic', sans-serif; }/*모든 글꼴을 나눔고딕으로. */

body.page-대문 h1.firstHeading {display:none;}
ol { 
	margin-left: 2cm;
list-style-type: decimal; 
}
img {
          display: block;
          margin: 0 auto;
          max-width: 100%;
    }
      
.tocnumber:after { content: '.' }

/* 반응형 그리드 레이아웃 */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* 반응형 이미지 */
.responsive-image {
        display: block;
        margin: 0 auto;
        max-width: 100%;
}

.responsive-img {
    width: 100%; /* 부모 요소의 너비에 맞게 조정 */
    height: 600px; /* 원하는 높이 설정 */
    background-size: cover; /* 이미지가 div를 채우도록 조정 */
    background-position: center; /* 이미지의 중심을 기준으로 위치 조정 */
}

/* 모바일 환경에서의 텍스트 정렬 */
@media (max-width: 768px) {
    .main-page-intro {
        text-align: center;
    }
}

/* 데스크탑에서는 그리드 레이아웃 사용 */
@media (min-width: 769px) {
    .main-page-intro {
        display: flex;
        justify-content: space-between;
    }
}