내가 쓰려고 만든 minireset.scss

2023. 2. 15.·🎨 프론트엔드 공부/HTML & CSS

📍출처

https://github.com/jgthms/minireset.css

 

GitHub - jgthms/minireset.css: A tiny modern CSS reset

A tiny modern CSS reset. Contribute to jgthms/minireset.css development by creating an account on GitHub.

github.com

 

📍특징

- 그 옛날의 reset.css 보다 짧다

- 레포에 .sass 파일만 있어서 내가 .scss 문법으로 바꿈

 

📍코드 (SCSS)

/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
// Blocks
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

// Headings
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal
}

// List
ul {
  list-style: none
}

// Form
button,
input,
select {
  margin: 0
}

// Box sizing
html {
  box-sizing: border-box
}

* {
  &,
  &::before,
  &::after {
    box-sizing: inherit
  }
}

// Media
img,
video {
  height: auto;
  max-width: 100%
}

// Iframe
iframe {
  border: 0
}

// Table
table {
  border-collapse: collapse;
  border-spacing: 0
}

td,
th {
  padding: 0
}
'🎨 프론트엔드 공부/HTML & CSS' 카테고리의 다른 글
  • scss variables
  • dialog element로 쉽게 modal 구현하기
  • [CSS Battle] 1-9. Tesseract
  • Entity code 정리
지식물원
지식물원
지식이 자라는 식물원!
  • 지식물원
    지식물원
    지식물원
  • 전체
    오늘
    어제
    • 분류 전체보기 (516)
      • 🎨 프론트엔드 공부 (253)
        • JS & TS (92)
        • HTML & CSS (22)
        • React & Next (49)
        • Vue & Nuxt (22)
        • 기타 (68)
      • 🤓 기술 학습 & 공부 기록 (116)
        • Node.js (0)
        • Python (37)
        • 백엔드 (0)
        • 딥러닝 (1)
        • 컴퓨터 일반 (72)
        • 개발 인프라 (6)
      • 👨‍💻 프로젝트 경험 (6)
        • Work (0)
        • Toy (6)
      • ⚙️ 개발 팁 & 노하우 (21)
        • 프론트엔드 (6)
        • 기타 (15)
      • ☕️ 커리어 & 인터뷰 준비 (88)
        • 코딩 테스트 (88)
      • 📰 기술 트렌드 & 생각 정리 (4)
      • 📚 기타 (25)
        • 마케팅 (15)
        • 비개발서적 (10)
  • 블로그 메뉴

    • 태그
  • 링크

  • 공지사항

    • 모바일 접속 시 코드 하이라이팅 깨질 때
  • 인기 글

  • hELLO· Designed By정상우.v4.10.3
지식물원
내가 쓰려고 만든 minireset.scss
상단으로

티스토리툴바