118 lines
2.2 KiB
SCSS
118 lines
2.2 KiB
SCSS
@use '../abstracts/variables' as *;
|
|
@use '../abstracts/color-functions' as *;
|
|
@use '../abstracts/mixins' as *;
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Reset and normalize styles
|
|
// -----------------------------------------------------------------------------
|
|
|
|
:root {
|
|
--font-weight-primary-regular: 400;
|
|
--font-weight-primary-bold: 700;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
font-size: 16px;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
body {
|
|
font-family: $font-family-primary;
|
|
line-height: $line-height-normal;
|
|
color: $text-dark;
|
|
background-color: $white;
|
|
overflow-x: hidden;
|
|
|
|
// 콘텐츠가 짧은 페이지에서도 footer 가 화면 하단에 붙도록(sticky footer).
|
|
// footer 는 .global-footer 의 margin-top:auto 로 밀려난다.
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
// flex 컨테이너가 되면 자식이 축소(shrink)되거나 내부 콘텐츠 min-content 폭까지 늘어난다.
|
|
// block 레이아웃과 동일한 폭 계산이 되도록 고정한다(모바일 가로 스크롤 방지).
|
|
> * {
|
|
flex-shrink: 0;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
// Lists
|
|
ul, ol {
|
|
list-style: none;
|
|
}
|
|
|
|
// Links
|
|
a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
transition: $transition-base;
|
|
}
|
|
|
|
// Images
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
}
|
|
|
|
// Buttons
|
|
button {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
cursor: pointer;
|
|
background: transparent;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
// Forms
|
|
input,
|
|
textarea,
|
|
select {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
border: none;
|
|
outline: none;
|
|
}
|
|
|
|
// Tables
|
|
table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
// Headings
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-weight: $font-weight-bold;
|
|
line-height: $line-height-tight;
|
|
}
|
|
|
|
// Semantic HTML5 elements
|
|
article, aside, details, figcaption, figure,
|
|
footer, header, hgroup, main, menu, nav,
|
|
section, summary {
|
|
display: block;
|
|
}
|
|
|
|
// Selection
|
|
::selection {
|
|
background-color: rgba($primary-blue, 0.2);
|
|
color: $text-dark;
|
|
}
|
|
|
|
::-moz-selection {
|
|
background-color: rgba($primary-blue, 0.2);
|
|
color: $text-dark;
|
|
}
|