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: #F7F7F8;
$color-gray10: #E6E8EA;
$color-gray20: #CDD1D5;
$color-gray30: #B1B8BE;
$color-gray40: #8A949E;
$color-gray50: #6D7882;
$color-gray60: #58616A;
$color-gray70: #464C53;
$color-gray80: #33363D;
$color-gray90: #1E2124;
$stroke-primary: 1px solid $color-gray30;
$stroke-secondary:1px solid $color-gray20;
$color-background-default-primary: $color-white;
$color-background-default-secondary: $color-gray5;
$color-background-default-tertiary: $color-gray10;
$color-background-default-quaternary: $color-gray20;
$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-2xlg-2: 4.8rem;
$spacing-2xlg-4: 5.6rem;
$spacing-2xlg-6: 6.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: 800;
$size-font-weight-lg: 700;
$size-font-weight-md: 400;
$size-font-md:1.4rem;
$ratio:1;
@font-face {
font-family: "KakaoBigSans";
font-style: normal;
font-display: swap;
font-weight: 800;
src: local("KakaoBigSans ExtraBold"), url("../common/font/KakaoBigSans-ExtraBold.woff2") format("woff2");
}
@font-face {
font-family: "KakaoBigSans";
font-style: normal;
font-display: swap;
font-weight: 700;
src: local("KakaoBigSans Bold"), url("../common/font/KakaoBigSans-Bold.woff2") format("woff2");
}
@font-face {
font-family: "KakaoBigSans";
font-style: normal;
font-display: swap;
font-weight: 400;
src: local("KakaoBigSans Regular"), url("../common/font/KakaoBigSans-Regular.woff2") format("woff2");
}
$font-family: "KakaoBigSans", KakaoBigSans, "Pretendard", Pretendard, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
"Malgun Gothic", sans-serif;
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: $font-family;
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: $size-font-weight-lg;
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);
}
.dir-col {
flex-direction: column !important;
}
%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;
}
}
.c-area {
justify-content: center;
&.dir-col {
align-items: center;
}
}
.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($size-font-md*$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-lg;
}
.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: $size-font-weight-xlg;
background-color: $color-background-default-secondary;
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: "㉭";
}
}
}
.flex-box {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: $spacing-xsm;
}
.flex1 {
flex:1;
}
.print-page:has(.print-full, .print-certificate) {
height: 100%;
}
.print-page:has(.print-bg) {
position: relative;
.print-bg {
position: absolute;
width: 100%;
height: 100%;
inset: 0;
z-index: -1;
}
}
.print-full {
display: grid;
grid-template-rows:auto 1fr auto;
height: 100%;
}
.print-sign {
display: grid;
gap:$spacing-lg;
.txt {
display: flex;
flex-direction: column;
gap:$spacing-2xsm;
text-align: center;
justify-content: center;
align-items: center;
}
.date {
font-weight: $size-font-weight-xlg;
}
.sign {
position: relative;
text-align: center;
width:fit-content;
margin:0 auto;
font-size:1.6rem;
font-weight: $size-font-weight-xlg;
img {
position: absolute;
vertical-align: middle;
top:50%;
transform: translate(-20%, -50%);
z-index: -1;
}
}
}
//이수증
.print-certificate {
display: flex;
flex-direction: column;
height: 100%;
padding:1.4cm;
box-sizing: border-box;
.certificate-symbol {
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%, -50%);
z-index: -1;
}
.certificate-header,
.certificate-body,
.certificate-footer {
padding-left:$spacing-2xlg;
padding-right: $spacing-2xlg;
}
.certificate-header {
padding:$spacing-3xlg 0;
text-align: center;
h1 {
font-size:4.8rem;
font-weight: $size-font-weight-xlg;
}
}
.certificate-body {
flex:1;
}
.certificate-footer {
padding:$spacing-3xlg 0;
}
.certificate-info-list {
display: grid;
gap:$spacing-sm;
font-size:1.6rem;
> li {
display: flex;
strong {
width: 10rem;
font-weight: $size-font-weight-lg;
}
}
}
.certificate-txt {
padding-top:$spacing-2xlg;
padding-bottom: $spacing-2xlg;
p {
text-align: center;
font-size:2rem;
font-weight: $size-font-weight-xlg;
}
}
.sign-area {
display: flex;
flex-direction: column;
align-items: center;
gap:$spacing-md;
.date {
display: block;
text-align: center;
font-weight: 800;
}
.sign {
position: relative;
text-align: center;
width:fit-content;
margin:0 auto;
font-size:1.6rem;
font-weight: $size-font-weight-xlg;
strong {
font-size:2.4rem;
}
img {
position: absolute;
vertical-align: middle;
top:50%;
transform: translate(-20%, -50%);
z-index: -1;
}
}
}
}
@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}