File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
@charset "UTF-8";
/*
Author : hyojeong yang
Date : 2024-12-30
Project : print
*/
@use "sass:meta";
@use "sass:list";
@use "sass:math";
// color
$color-black: #111;
$color-white: #fff;
$color-gray5:#F8F8FB;
$color-gray10:#F0F0F5;
$color-gray20:#EFEEF3;
$color-gray30:#DDDAE3;
$color-gray40:#C1BFC8;
$color-gray50:#918F97;
$color-gray60:#727077;
$color-gray70:#5A585E;
$color-gray80:#333333;
$color-gray90:#202020;
$stroke-primary: 1px solid $color-gray40;
$stroke-secondary:1px solid $color-gray30;
$color-background-default-primary: $color-white;
$color-background-default-secondary: $color-gray5;
$color-background-default-tertiary: $color-gray20;
$color-background-default-quaternary: $color-gray30;
$color-font-default-primary: $color-gray80;
$color-font-default-secondary: $color-gray70;
$color-font-default-tertiary: $color-gray60;
$color-font-default-quaternary: $color-gray50;
/* reference size */
$radius-none: 0;
$radius-xsm: 0.4rem;
$radius-sm: 0.8rem;
$radius-md: 1.6rem;
$radius-lg: 2.4rem;
$radius-xlg: 4rem;
$radius-2xlg: 8rem;
$radius-full: 100%;
$spacing-none: 0;
$spacing-3xsm: 0.2rem;
$spacing-2xsm: 0.4rem;
$spacing-xsm: 0.8rem;
$spacing-sm: 1.2rem;
$spacing-md: 1.6rem;
$spacing-lg: 2.4rem;
$spacing-xlg: 3.2rem;
$spacing-2xlg: 4rem;
$spacing-3xlg: 8rem;
$size-stroke-none: 0;
$size-stroke-xsm: 0.1rem;
$size-stroke-sm: 0.2rem;
$size-stroke-md: 0.4rem;
$size-stroke-lg: 0.8rem;
$size-font-weight-xlg: 700;
$size-font-weight-lg: 500;
$size-font-weight-md: 400;
$size-font-md:9pt;
$ratio:1;
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-weight: 300;
src: url('../font/Pretendard-Light.woff2') format('woff2'), url('../font/Pretendard-Light.woff') format('woff');
}
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-weight: 400;
src: url('../font/Pretendard-Regular.woff2') format('woff2'), url('../font/Pretendard-Regular.woff') format('woff');
}
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-weight: 500;
src: url('../font/Pretendard-Medium.woff2') format('woff2'), url('../font/Pretendard-Medium.woff') format('woff');
}
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-weight: 700;
src: url('../font/Pretendard-Bold.woff2') format('woff2'), url('../font/Pretendard-Bold.woff') format('woff');
}
@font-face {
font-family: 'Pretendard';
font-style: normal;
font-weight: 900;
src: url('../font/Pretendard-Black.woff2') format('woff2'), url('../font/Pretendard-Black.woff') format('woff');
}
html, body {
height: 100%;
-webkit-print-color-adjust:exact;
}
html {
border: 0;
outline: 0;
font-size:62.5%;
}
body {
line-height: 1.5;
font-family: "Pretendard", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
"Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
background-color: transparent;
color: $color-black;
font-weight: 400;
letter-spacing: -0.025em;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none;
/*overflow-x: hidden;*/
width: 100%;
padding:0;
margin:0;
}
::selection {
color: #fff;
background-color: $color-black;
}
::-moz-selection {
color: #fff;
background-color: $color-black;
}
table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
border-spacing: 0;
table-layout: fixed;
}
table caption {
height: 0;
font-size: 0.1em;
color: #fff;
opacity: 0;
filter: alpha(opacity=0);
}
html, body, nav, section, article, figure, figcaption,
h1, h2, h3, h4, h5, h6,
menu, ul, ol, dl, li, dt, dd,
p, form {
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 500;
line-height: 1em;
}
img {
margin: 0;
border: none;
}
ul, ol, dl, li {
list-style: none;
}
cite, em, address {
font-style: normal;
}
b, strong {
font-weight: 700;
}
iframe {
border: none;
outline: 0;
}
a > span {
cursor: pointer;
}
a {
text-decoration: none;
color: $color-black;
}
a:hover,
a:focus {
text-decoration: none;
}
*:focus,
a:focus,
textarea:focus, input:focus {
/*outline: 0;*/
}
a:before {
content: ' ';
position: absolute;
font-size: 0
}
fieldset {
border: 0;
margin: 0;
padding: 0;
display: block;
}
fieldset legend {
opacity: 0;
filter: alpha(opacity=0);
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
overflow: hidden;
font-size: 0;
line-height: 0;
}
fieldset label {
margin-right: 17px;
font-size:16px;
}
button {
-webkit-appearance: none;
-webkit-border-radius: 0;
vertical-align: middle;
letter-spacing: -0.01em;
outline:none;
border:none;
background-color: transparent;
cursor: pointer;
}
input[type=text],
input[type=password],
input[type=number] {
font-size: 16px;
vertical-align: top;
padding: 0 15px;
height: 36px;
border: $stroke-primary;
width: 260px;
box-sizing: border-box;
-webkit-transition: all .3s;
-moz-transition: all .3s;
-ms-transition: all .3s;
transition: all .3s;
}
input[type=number] {
padding: 0;
text-align: center;
}
input[type="file"],
input[type="file"]:hover {
padding: 0;
border: none;
}
td input {
vertical-align: top;
}
textarea {
border: $stroke-primary
}
input:hover,
textarea:hover {
border: $stroke-primary;
}
input[type="file"]:hover {
border: none;
}
input:focus,
textarea:focus {
border: $stroke-primary;
box-shadow: 0 0 10px rgba(0,0,0,.2);
}
textarea[disabled="disabled"] {
border: none;
}
textarea:focus[disabled="disabled"] {
box-shadow: none;
}
input[type="ratio"],
input[type="checkbox"] {
border: 0;
height: auto;
box-shadow: none;
cursor: pointer;
vertical-align:middle;
}
input[type="checkbox"] {
width: 20px;
height: 20px;
background: none;
}
input[readonly]:not(.datepicker), input[readonly]:not(.datepicker):hover, input[readonly]:not(.datepicker):focus,
input[disabled]:not(.datepicker), input[disabled]:not(.datepicker):hover, input[disabled]:not(.datepicker):focus {
background: #f9f9f9;
border: $stroke-primary;
font-weight: 300;
box-shadow: none;
}
.al {
text-align:left !important;
}
.ar {
text-align:right !important;
}
.ac {
text-align:center !important;
}
.fs-xlg {
font-size:14pt
}
.fs-lg {
font-size:12pt
}
.fs-sm {
font-size:8pt
}
em {
font-weight:700;
}
.mr5 {
margin-right:0.5cm;
}
.mr10 {
margin-right:1cm;
}
.mr15 {
margin-right:1.5cm;
}
.mr20 {
margin-right:2cm;
}
.mb5 {
margin-bottom:0.5cm;
}
.mb10 {
margin-bottom:1cm;
}
.mb15 {
margin-bottom:1.5cm;
}
.mb20 {
margin-bottom:2cm;
}
.txt-hide {
position: absolute;
width: 0.1rem;
height: 0.1rem;
margin: -0.1rem;
overflow: hidden;
clip-path: polygon(0 0, 0 0, 0 0);
}
%flexArea {
display: flex;
justify-content: space-between;
gap:$spacing-xsm;
&.lg {
gap:$spacing-xsm $spacing-md;
}
&.sm {
gap: $spacing-2xsm;
}
.l-area,
.c-area,
.r-area {
display: flex;
flex-wrap: wrap;
align-items: center;
gap:$spacing-2xsm $spacing-xsm;
> * {
margin-bottom: 0;
}
&:only-child {
flex:1;
}
.checkradio {
margin-right: 0;
}
}
.r-area {
justify-content: flex-end;
}
&.center {
justify-content: center;
}
&.vcenter {
align-items: center;
}
.dir-col {
align-items: flex-start;
}
}
.print-page {
font-size: calc(9pt*$ratio);
width:calc(210mm*$ratio);
width: 100%;
box-sizing: border-box;
max-width: 21.7cm;
margin:0 auto;
img {
max-width: 100%;
}
}
.print-box {
page-break-before:always;
}
.print-section {
margin-bottom: $spacing-lg;
}
// title
.print-page-tit-area {
@extend %flexArea;
margin-bottom: $spacing-md;
}
.print-tit-area {
@extend %flexArea;
margin-bottom: $spacing-xsm;
}
.print-title-xlg {
font-size: 2.8rem;
font-weight: 700;
}
.print-title-lg {
font-size: 1.8rem;
font-weight: 700;
}
.print-title{
font-size:1.4rem;
font-weight: 700;
}
// box
.print-border-box {
border:$stroke-secondary;
padding:$spacing-md;
img {
max-width: 100%;
}
}
/* table */
table {
th {
font-weight: 500;
background-color: $color-background-default-tertiary;
color:$color-font-default-secondary;
}
}
.write-type,
.info-type {
border-top:.1rem solid $color-black;
word-break:keep-all;
word-wrap:break-word;
font-size: $size-font-md;
margin-bottom: $spacing-lg;
&.border-top-none {
border-top:none;
}
table {
text-align: center;
}
tr {
page-break-inside:avoid;
page-break-after:auto;
}
.tbl-col-area {
padding:0;
}
th,
td {
border:$stroke-secondary;
padding:$spacing-2xsm $spacing-xsm;
&:first-child {
border-left:none;
}
&:last-child {
border-right:none;
}
}
}
.write-type {
tbody {
th,
td {
text-align: left;
}
}
}
//component
.print-time {
color: $color-font-default-secondary;
}
//sub
.counsel-header{
border-left: $stroke-primary;
border-right: $stroke-primary;
border-radius: $stroke-primary;
margin-bottom: $spacing-sm;
.counsel-tit-area {
padding:$spacing-md;
}
cite {
font-size:16pt;
}
h1 {
font-weight: 700;
font-size:30px;
}
}
.bullet,
.bullet-tit,
.bullet-dash,
.bullet-none,
.bullet-hangul {
margin-bottom: $spacing-md;
&:last-child {
margin-bottom: 0;
}
&>li {
position: relative;
padding-left: $spacing-md;
&~li {
margin-top: $spacing-2xsm;
}
&:before {
content: "";
position: absolute;
top: .8rem;
left: 0;
}
}
}
.bullet-none {
li {
padding-left: 0;
}
}
.bullet>li:before,
.bullet-tit>li:before {
width: 0.4rem;
height: 0.4rem;
border-radius: 50%;
background-color: $color-font-default-primary;
}
.bullet-dash>li:before {
top: .8rem;
width: 0.6rem;
height: 0.1rem;
background-color: $color-font-default-secondary;
}
.bullet-tit>li {
padding-left: 12rem;
cite {
position: absolute;
left: 2rem;
font-weight: $size-font-weight-xlg;
}
}
.bullet-hangul {
li {
padding-left: 2rem;
&::before {
top: 0.1rem;
}
&:nth-child(1)::before {
content: "㉠";
}
&:nth-child(2)::before {
content: "㉡";
}
&:nth-child(3)::before {
content: "㉢";
}
&:nth-child(4)::before {
content: "㉣";
}
&:nth-child(5)::before {
content: "㉤";
}
&:nth-child(6)::before {
content: "㉥";
}
&:nth-child(7)::before {
content: "㉦";
}
&:nth-child(8)::before {
content: "㉧";
}
&:nth-child(9)::before {
content: "㉨";
}
&:nth-child(10)::before {
content: "㉩";
}
&:nth-child(11)::before {
content: "㉪";
}
&:nth-child(12)::before {
content: "㉫";
}
:nth-child(13)::before {
content: "㉬";
}
:nth-child(14)::before {
content: "㉭";
}
}
}
// .pdf-page{
// @include pdf(1);
// display: flex;
// flex-direction: column;
// gap:calc(5mm*$ratio) 0;
// margin:0 auto;
// &.view {
// padding:0.5cm;
// }
// }
@page {
size: A4;
margin:0;
padding: 1cm;
marks: none;
// page-break-inside: avoid;
@bottom-center {
counter-increment: page / 2;
content: "- " counter(page) " -";
display: flex;
align-items: flex-end;
font-size: 12px;
height: .8cm;
}
.pdf-page{
padding:0 0.5cm;
box-sizing: border-box;
}
}
// @page :first {margin:1cm 0}