184 lines
2.5 KiB
CSS
184 lines
2.5 KiB
CSS
![]() |
@font-face {
|
||
|
font-family: 'Pretendard';
|
||
|
src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
|
||
|
font-weight: 400;
|
||
|
font-style: normal;
|
||
|
}
|
||
|
|
||
|
:root {
|
||
|
/* pallete */
|
||
|
--white: #fff;
|
||
|
--black: #222222;
|
||
|
}
|
||
|
|
||
|
* {
|
||
|
font-size: 16px;
|
||
|
font-family: 'Pretendard';
|
||
|
color: var(--black);
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
margin: 0;
|
||
|
min-width: 1400px;
|
||
|
overflow-x: auto;
|
||
|
}
|
||
|
|
||
|
h1,
|
||
|
h2,
|
||
|
h3,
|
||
|
h4,
|
||
|
h5,
|
||
|
h6,
|
||
|
p,
|
||
|
span,
|
||
|
a {
|
||
|
margin: initial;
|
||
|
|
||
|
&[ellipsis] {
|
||
|
width: var(--width);
|
||
|
white-space: nowrap;
|
||
|
overflow: hidden;
|
||
|
text-overflow: ellipsis;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
h1 {
|
||
|
font-size: 3em;
|
||
|
font-weight: 700;
|
||
|
line-height: 1.2em;
|
||
|
}
|
||
|
|
||
|
h3 {
|
||
|
font-size: 1.25em;
|
||
|
line-height: 1.4em;
|
||
|
}
|
||
|
|
||
|
section {
|
||
|
padding-top: var(--section-top)
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
text-decoration: none;
|
||
|
|
||
|
&[hashtag] {
|
||
|
color: #3366FF;
|
||
|
font-weight: 500;
|
||
|
|
||
|
&:before {
|
||
|
content: '#'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
p {
|
||
|
color: var(--color);
|
||
|
margin: initial;
|
||
|
display: -webkit-box;
|
||
|
/* 표시줄수 */
|
||
|
-webkit-line-clamp: var(--clamp);
|
||
|
-webkit-box-orient: vertical;
|
||
|
overflow: hidden;
|
||
|
text-overflow: ellipsis;
|
||
|
}
|
||
|
|
||
|
span {
|
||
|
color: var(--color);
|
||
|
}
|
||
|
|
||
|
button {
|
||
|
border: initial;
|
||
|
border-radius: 8px;
|
||
|
background-color: var(--bg);
|
||
|
|
||
|
&[variant="fill"] {
|
||
|
color: #fff;
|
||
|
padding: 13px 32px
|
||
|
}
|
||
|
}
|
||
|
|
||
|
hr {
|
||
|
&[horizontal] {
|
||
|
background-color: red;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
container {
|
||
|
display: block;
|
||
|
max-width: 1400px;
|
||
|
height: auto;
|
||
|
margin-left: auto;
|
||
|
margin-right: auto;
|
||
|
}
|
||
|
|
||
|
[row] {
|
||
|
display: flex;
|
||
|
gap: var(--gap);
|
||
|
padding-top: var(--pt);
|
||
|
padding-right: var(--pr);
|
||
|
padding-bottom: var(--pb);
|
||
|
padding-left: var(--pl);
|
||
|
|
||
|
&[middle] {
|
||
|
align-items: center
|
||
|
}
|
||
|
|
||
|
&[between] {
|
||
|
justify-content: space-between;
|
||
|
}
|
||
|
|
||
|
&[center] {
|
||
|
justify-content: center;
|
||
|
}
|
||
|
|
||
|
&[end] {
|
||
|
align-items: flex-end;
|
||
|
}
|
||
|
|
||
|
&[start] {
|
||
|
align-items: flex-start;
|
||
|
}
|
||
|
|
||
|
|
||
|
&[shrink] {
|
||
|
flex-shrink: 1;
|
||
|
}
|
||
|
|
||
|
&[grow] {
|
||
|
flex-grow: 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[col] {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
gap: var(--gap);
|
||
|
padding-top: var(--pt);
|
||
|
padding-right: var(--pr);
|
||
|
padding-bottom: var(--pb);
|
||
|
padding-left: var(--pl);
|
||
|
|
||
|
&[shrink] {
|
||
|
flex-shrink: 1;
|
||
|
}
|
||
|
|
||
|
&[grow] {
|
||
|
flex-grow: 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[relative] {
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
[absolute] {
|
||
|
position: absolute;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
[box] {
|
||
|
border-radius: 8px;
|
||
|
background-color: var(--bg);
|
||
|
padding: var(--p);
|
||
|
}
|