정답입니다!
틀렸습니다!
const quizInfo = [
{
answerType: "웹디자인기능사 2010년 02회",
answerNum: "1",
answerAsk: "통일성을 주는 방법과 거리가 먼 것은?",
answerChoice: [
"각 요소들을 근접시킨다.",
"각 요소들을 반복시킨다.",
"각 요소들을 연속시킨다.",
"각 요소들을 분리시킨다.",
],
answerResult: "각 요소들을 분리시킨다.",
answerEx: "통일감을 갖기 위해서는 각 요소들이 근접, 반복, 연속되어야하므로 답은 4번입니다."
},
{
answerType: "웹디자인기능사 2010년 02회",
answerNum: "2",
answerAsk: "디자인의 원리 중 율동(Rhythm)의 요소와 거리가 먼 것은?",
answerChoice: [
"대칭",
"점증",
"반복",
"변칙",
],
answerResult: "대칭",
answerEx: "율동에는 반복, 교차, 방사, 점이(점증)=그라데이션 등이 있으므로 답은 1번입니다."
},
{
answerType: "웹디자인기능사 2010년 02회",
answerNum: "3",
answerAsk: "일반적인 디자인의 조건을 나열한 것으로 옳은 것은?",
answerChoice: [
"합목적성, 유행성, 질서성, 독창성",
"합목적성, 심미성, 독창성, 경제성",
"합목적성, 심미성, 경제성, 국제성",
"합목적성, 창조성, 심미성, 질서성",
],
answerResult: "합목적성, 심미성, 독창성, 경제성",
answerEx: "디자인의 조건 : 합목적성, 심미성, 독창성, 경제성 이므로 답은 2번입니다."
},
{
answerType: "웹디자인기능사 2010년 02회",
answerNum: "4",
answerAsk: "색의 활용 효과에 대한 설명으로 틀린 것은?",
answerChoice: [
"밝은 바탕에 어두운 색 글자보다 어두운 바탕에 밝은 색글자가 더 굻고 커보인다.",
"같은 크기의 검정색 상자와 흰 상자를 비교하면 흰색 상자가 더 가볍게 느껴 진다.",
"천장을 더높게 보이게 하려면 벽면과 동일계열의 고명도 색을 천장에 칠한다.",
"상의를 하의보다 더 어두운 색으로 하면 키가 더 커 보인다.",
],
answerResult: "상의를 하의보다 더 어두운 색으로 하면 키가 더 커 보인다.",
answerEx: "상의를 하의보다 더 어두운 색으로 하면 키가 더 커 보일수없습니다. 답은 4번입니다."
},
{
answerType: "웹디자인기능사 2010년 02회",
answerNum: "5",
answerAsk: "바우하우스의 설립자이며, 근대 건축과 디자인 운동의 대표적 지도자는?",
answerChoice: [
"모리스(MORRIS, WILLIAM)",
"그로피우스(GROPLUS, WALTER)",
"로위(ROWEY, RAYMOND)",
"팹스너(PRVSNER, NIKOLAUS)",
],
answerResult: "그로피우스(GROPLUS, WALTER)",
answerEx: "바우하우스의 설립자이며, 근대 건축과 디자인 운동의 대표적 지도자는 그로피우스 입니다. 답은 2번입니다."
}
];
//선택자
const quizType = document.querySelector(".quiz__type") //유형
const quizQuestion = document.querySelector(".quiz__question"); //문제 번호, 질문
const quizSelects = document.querySelector(".quiz__selects"); //객관식 보기
const quizResult = document.querySelector(".quiz__answer .result") //해설
const quizConfirm = document.querySelector(".quiz__answer .confirm") //정답 확인버튼
const quizView = document.querySelector(".quiz__view") //강아지
let quizCount = 0; // 변수의 시작값 설정
let quizScore = 0;
//문제 출력
const updateQuiz = (index) => {
const questionTag = `
<span class="number">${quizInfo[index].answerNum}. </span>
<div class="ask">${quizInfo[index].answerAsk}</div>
`;
const choiceTag = `
<label for="select1">
<input type="radio" id="select1" class="select" name="select" value="1">
<span class="choice">${quizInfo[index].answerChoice[0]}</span>
</label>
<label for="select2">
<input type="radio" id="select2" class="select" name="select" value="2">
<span class="choice">${quizInfo[index].answerChoice[1]}</span>
</label>
<label for="select3">
<input type="radio" id="select3" class="select" name="select" value="3">
<span class="choice">${quizInfo[index].answerChoice[2]}</span>
</label>
<label for="select4">
<input type="radio" id="select4" class="select" name="select" value="4">
<span class="choice">${quizInfo[index].answerChoice[3]}</span>
</label>
`;
//문제 출력
quizType.innerHTML = quizInfo[index].answerType; //퀴즈 유형
quizQuestion.innerHTML = questionTag; //번호, 질문
quizSelects.innerHTML = choiceTag; //객관식 보기
quizResult.innerHTML = quizInfo[index].answerEx; //해설
const quizChoice = quizSelects.querySelectorAll(".choice");
for (let i = 0; i < quizChoice.length; i++) {
quizChoice[i].setAttribute("onclick", "choiceSelected(this)");
}
// 문제, 해설 숨기기
quizResult.style.display = "none";
quizConfirm.style.display = "none";
}
updateQuiz(quizCount);
const choiceSelected = (answer) => {
let userAnswer = answer.textContent; //사용자가 체크한 정답
let currentAnswer = quizInfo[quizCount].answerResult; //문제 정답
if (userAnswer == currentAnswer) {
// console.log("정답");
quizView.classList.add("like");
quizScore++;
} else {
// console.log("오답");
quizView.classList.add("dislike");
quizResult.style.display = "block";
}
quizConfirm.style.display = "block";
}
//정답 확인 버튼
const answerQuiz = () => {
if (quizInfo.length - 1 == quizCount) {
quizConfirm.textContent = `총 ${quizInfo.length} 문제 중에 ${quizScore} 문제를 맞추었습니다.`;
} //마지막 문제 완료 후 정답 갯수 확인
quizCount++;
updateQuiz(quizCount);
quizView.classList.remove("like", "dislike");
}
quizConfirm.addEventListener("click", answerQuiz)
<main id="main">
<div class="quiz__wrap">
<div class="quiz">
<span class="quiz__type"></span>
<h2 class="quiz__question">
<span class="number"></span>
<div class="ask"></div>
</h2>
<div class="quiz__view">
<div class="true">정답입니다!</div>
<div class="false">틀렸습니다!</div>
<div class="dog">
<div class="head">
<div class="ears"></div>
<div class="face"></div>
<div class="eyes">
<div class="teardrop"></div>
</div>
<div class="nose"></div>
<div class="mouth">
<div class="tongue"></div>
</div>
<div class="chin"></div>
</div>
<div class="body">
<div class="tail"></div>
<div class="legs"></div>
</div>
</div>
</div>
<div class="quiz__answer">
<div class="quiz__selects">
<!--
<label for="select1">
<input type="radio" id="select1" class="select" name="select" value="1">
<span class="choice"></span>
</label>
<label for="select2">
<input type="radio" id="select2" class="select" name="select" value="2">
<span class="choice"></span>
</label>
<label for="select3">
<input type="radio" id="select3" class="select" name="select" value="3">
<span class="choice"></span>
</label>
<label for="select4">
<input type="radio" id="select4" class="select" name="select" value="4">
<span class="choice"></span>
</label>
-->
</div>
<div class="result"></div>
<button class="confirm">다음 문제 보기</button>
</div>
</div>
</div>
</main>
body {
background-color: #f6f6f6;
background-image:
linear-gradient(90deg, #cdcccc 0px, #cdcccc 1px, transparent 1px, transparent 99px, transparent 100px),
linear-gradient(#cdcccc 0px, #cdcccc 1px, transparent 1px, transparent 99px, transparent 100px),
linear-gradient(#e0e0e0 0px, #e0e0e0 1px, transparent 1px, transparent 99px, transparent 100px),
linear-gradient(90deg, #e0e0e0 0px, #e0e0e0 1px, transparent 1px, transparent 99px, transparent 100px),
linear-gradient(transparent 0px, transparent 5px, #f6f6f6 5px, #f6f6f6 95px, transparent 95px, transparent 100px),
linear-gradient(90deg, #e0e0e0 0px, #e0e0e0 1px, transparent 1px, transparent 99px, #e0e0e0 99px, #e0e0e0 100px),
linear-gradient(90deg, transparent 0px, transparent 5px, #f6f6f6 5px, #f6f6f6 95px, transparent 95px, transparent 100px),
linear-gradient(transparent 0px, transparent 1px, #f6f6f6 1px, #f6f6f6 99px, transparent 99px, transparent 100px),
linear-gradient(#cdcccc, #cdcccc);
background-size: 100px 100%, 100% 100px, 100% 10px, 10px 100%, 100% 100px, 100px 100%, 100px 100%, 100px 100px, 100px 100px;
}
#header {
background-color: #262626;
color: #fff;
display: flex;
justify-content: space-between;
/* flex의 오른쪽 정렬*/
align-items: center;
padding: 10px;
position: relative;
z-index: 10;
}
#header::before {
content: "";
border: 4px ridge #a3a3a3;
position: absolute;
left: 5px;
top: 5px;
width: calc(100% - 10px);
height: calc(100% - 10px);
box-sizing: border-box;
z-index: -1;
}
#header h1 {
padding: 3px 3px 6px 10px;
font-family: "DungGeunMo";
font-size: 30px;
}
#header h1 a {
color: #fff;
}
#header h1 em {
font-size: 16px;
font-style: normal;
}
@media (max-width: 600px) {
#header h1 em {
display: none;
}
}
#header nav {
padding-right: 10px;
}
#header nav li {
display: inline;
}
#header nav li.active a {
color: #000;
background-color: #fff;
}
#header nav li a {
color: #fff;
padding: 0 10px;
border: 1px dashed #fff;
font-family: "DungGeunMo";
}
#footer {
background-color: #fff;
text-align: center;
padding: 20px;
width: 100%;
box-sizing: border-box;
margin-top: 150px;
position: fixed;
left: 0;
bottom: 0;
z-index: 10000;
}
#footer a {
color: #000;
font-family: "DungGeunMo";
}
#footer a:hover {
text-decoration: underline;
}
/* quiz__wrap */
.quiz__wrap {
display: flex;
align-items: flex-start; /*위를 기준으로 맞출수있다*/
/*aic, jcc 가운데정렬*/
justify-content: center;
margin-top: 50px;
margin-bottom: 150px;
flex-wrap: wrap; /*0805*/
}
.quiz {
max-width: 500px;
width: 100%;
background-color: #fff;
border: 8px ridge #cacaca;
margin: 10px;
}
.quiz__type {
background-color: #cacaca;
text-align: center;
display: block;
font-size: 16px;
border: 3px ridge #cacaca;
color: #3b3b3b;
font-family: "DungGeunMo";
padding: 4px;
}
.quiz__question {
border-top: 6px ridge #cacaca;
border-bottom: 6px ridge #cacaca;
padding: 20px 20px;
font-family: "NanumSquareRound";
line-height: 1.2;
}
.quiz__question .number {
color: rgb(252, 76, 0);
}
.quiz__question .ask {
display: inline;
}
.quiz__answer {
border-top: 6px ridge #cacaca;
padding: 10px;
background-color: #f5f5f5;
}
.quiz__answer .confirm {
border: 6px ridge #cacaca;
width: 100%;
font-size: 22px;
padding: 13px 20px;
background-color: #d6d6d6;
font-family: "NanumSquareRound";
cursor: pointer;
}
.quiz__answer .result {
width: 100%;
font-size: 22px;
line-height: 1.3;
padding: 13px 20px;
border: 6px ridge #cacaca;
box-sizing: border-box;
text-align: center;
font-family: "NanumSquareRound";
}
.quiz__answer .input {
width: 100%;
border: 6px ridge #cacaca;
font-size: 22px;
padding: 13px 20px;
background-color: #fff;
font-family: "NanumSquareRound";
margin-bottom: 10px;
}
.quiz__view {
background-color: #f5f5f5;
font-family: "NanumSquareRound";
position: relative;
overflow: hidden;
}
.quiz__view .true {
width: 120px;
height: 120px;
line-height: 120px;
background-color: rgb(252, 76, 0);
color: #fff;
border-radius: 50%;
text-align: center;
position: absolute;
left: 70%;
top: 100px;
opacity: 0;
}
.quiz__view .false {
width: 120px;
height: 120px;
line-height: 120px;
background-color: #fff;
border-radius: 50%;
text-align: center;
position: absolute;
right: 70%;
top: 100px;
opacity: 0;
}
.quiz__view.like .true {
opacity: 1;
/*투명도 1 보이게 설정한다*/
animation: wobble 0.6s;
}
.quiz__view.dislike .false {
opacity: 1;
animation: wobble 0.6s;
}
.quiz__selects {
margin: 5px 0;
}
.quiz__selects label {
display: flex;
}
.quiz__selects label input {
position: absolute;
left: -9999px;
}
.quiz__selects label span {
font-size: 20px;
line-height: 1.3;
font-family: "NanumSquareRound";
padding: 10px;
display: flex;
align-items: center;
width: 100%;
border-radius: 5px;
cursor: pointer;
}
.quiz__selects label span::before {
content: '';
width: 30px;
height: 30px;
border-radius: 50%;
margin-right: 15px;
background: #fff;
display: flex;
flex-shrink: 0;
box-shadow: inset 0px 0px 0px 4px #6cc6ef;
transition: all 0.25s;
}
.quiz__selects label input:checked + span {
background-color: #c2e9fb;
}
.quiz__selects label input:checked + span::before {
box-shadow: inset 0px 0px 0px 10px #58c1f2;
}
.quiz__confirm {
width: 100%;
text-align: center;
}
.quiz__confirm .check {
font-size: 22px;
line-height: 1.3;
padding: 13px 60px;
border: 6px ridge #cacaca;
box-sizing: border-box;
text-align: center;
font-family: "NanumSquareRound";
cursor: pointer;
margin: 40px 0;
transition: background 0.3s;
}
.quiz__confirm .check:hover {
background: #c2e9fbe7;
}
@keyframes wobble {
0% {
transform: translateX(0) rotate(0deg)
}
/*시작*/
15% {
transform: translateX(-25%) rotate(-5deg)
}
30% {
transform: translateX(20%) rotate(3deg)
}
45% {
transform: translateX(-15%) rotate(-3deg)
}
60% {
transform: translateX(10%) rotate(2deg)
}
75% {
transform: translateX(-5%) rotate(-1deg)
}
100% {
transform: translateX(0) rotate(0deg)
}
/*종료*/
}
/* dog */
.dog .tail,
.dog .chin,
.dog .tongue::before,
.dog .tongue::after,
.dog .mouth,
.dog .nose,
.dog .teardrop,
.dog .eyes,
.dog .face::before,
.dog .face::after,
.dog .ears::before,
.dog .ears::after {
transition: 0.2s ease-in;
}
.dog {
padding-top: 50px;
}
.dog .head,
.dog .body {
position: relative;
width: 115px;
}
.dog .head {
height: 115px;
border-radius: 50% 50% 0 0;
margin: 0 auto;
}
.dog .ears {
position: relative;
top: -14%;
width: 100%;
}
.dog .ears::before,
.dog .ears::after {
content: "";
position: absolute;
top: 0;
width: 35px;
height: 70px;
background: #CB7A1D;
border-top: 11px solid #F7AA2B;
border-left: 7px solid #F7AA2B;
border-right: 7px solid #F7AA2B;
}
.dog .ears::before {
left: 0;
border-radius: 50% 45% 0 0;
}
.dog .ears::after {
right: 0;
border-radius: 45% 50% 0 0;
}
.dog .face {
position: absolute;
background: #F7AA2B;
width: 100%;
height: 100%;
border-radius: 50% 50% 0 0;
}
.dog .face::before,
.dog .face::after {
content: "";
display: block;
margin: auto;
background: #FEFEFE;
}
.dog .face::before {
width: 15px;
height: 35px;
margin-top: 24px;
border-radius: 20px 20px 0 0;
}
.dog .face::after {
position: absolute;
bottom: -1px;
left: 0;
right: 0;
width: 60px;
height: 65px;
border-radius: 45% 45% 0 0;
}
.dog .eyes {
position: relative;
top: 29%;
text-align: center;
}
.dog .eyes::before,
.dog .eyes::after {
content: "";
display: inline-block;
width: 12px;
height: 12px;
border-radius: 100%;
background: #451D1C;
margin: 0 14.5%;
}
.dog .teardrop {
position: absolute;
top: 125%;
left: 19%;
width: 6px;
height: 6px;
border-radius: 0 50% 50% 50%;
transform: rotate(45deg);
background: #FEFEFE;
visibility: hidden;
}
.dog .nose {
position: relative;
top: 35%;
width: 16px;
height: 8px;
border-radius: 35px 35px 65px 65px;
background: #451D1C;
margin: auto;
}
.dog .mouth {
position: relative;
top: 34.5%;
width: 4px;
height: 6px;
margin: 0 auto;
text-align: center;
background: #451D1C;
}
.dog .mouth::before,
.dog .mouth::after {
content: "";
position: absolute;
top: -4px;
width: 18px;
height: 18px;
border-radius: 50%;
border: 4px solid #451D1C;
border-left-color: transparent;
border-top-color: transparent;
z-index: 2;
}
.dog .mouth::before {
transform: translateX(-89%) rotate(45deg);
}
.dog .mouth::after {
transform: translateX(-2px) rotate(45deg);
}
.dog .tongue {
position: relative;
z-index: 1;
}
.dog .tongue::before,
.dog .tongue::after {
content: "";
position: absolute;
}
.dog .tongue::before {
top: 10px;
left: -7px;
width: 18px;
height: 0;
border-radius: 50%;
background: #451D1C;
z-index: -1;
}
.dog .tongue::after {
top: 14px;
left: -4px;
width: 12px;
height: 0;
border-radius: 20px;
background: #F5534F;
z-index: 5;
}
.dog .chin {
position: relative;
top: 47.5%;
margin: 0 auto;
width: 12px;
height: 12px;
border-top: 10px solid #E8E7EC;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-radius: 2px;
z-index: 0;
}
.dog .body {
position: relative;
height: 139px;
margin: auto;
z-index: 0;
}
.dog .body::before,
.dog .body::after {
content: "";
position: absolute;
top: -1px;
left: 0;
right: 0;
bottom: 0;
display: block;
width: 100%;
margin: auto;
background: #F7AA2B;
}
.dog .body::after {
top: -2px;
bottom: -1px;
width: 60px;
background: #FEFEFE;
}
.dog .tail {
position: absolute;
left: -60%;
bottom: 1px;
background: #F7AA2B;
width: 93px;
height: 15px;
transform: rotate(45deg);
transform-origin: 100% 50%;
border-radius: 25px 0 0 25px;
z-index: -2;
animation: movetail 0.1s linear infinite alternate forwards;
}
.dog .legs {
position: absolute;
bottom: 0;
left: -10%;
width: 120%;
height: 15%;
background: #F7AA2B;
border-radius: 10px 10px 0 0;
}
.dog .legs::before,
.dog .legs::after {
content: "";
position: absolute;
bottom: 1px;
background: #CB7A1D;
z-index: -1;
}
.dog .legs::before {
left: -7.5%;
width: 115%;
height: 55%;
border-radius: 5px 5px 0 0;
}
.dog .legs::after {
left: -3.5%;
width: 107%;
height: 250%;
border-radius: 20px 20px 35px 35px;
}
.like .dog .face::before {
margin-top: 10px;
}
.like .dog .face::after {
height: 85px;
}
.like .dog .eyes {
top: 13%;
}
.like .dog .eyes::before,
.like .dog .eyes::after {
width: 18px;
height: 5px;
margin: 0px 12.5%;
transform: rotate(-37.5deg);
border-radius: 20px;
}
.like .dog .eyes::after {
transform: rotate(37.5deg);
}
.like .dog .nose {
top: 18%;
}
.like .dog .mouth {
top: 16.5%;
}
.like .dog .tongue::before {
height: 12px;
}
.like .dog .tongue::after {
height: 24px;
animation: movetongue 0.1s linear 0.35s infinite alternate forwards;
}
.like .dog .chin {
top: 34%;
}
.like .dog .tail {
animation: movetail 0.1s linear infinite alternate forwards;
}
.dislike .dog .ears::before {
transform: rotate(-50deg) translate(-7px, 2px);
}
.dislike .dog .ears::after {
transform: rotate(50deg) translate(7px, 2px);
}
.dislike .dog .face::before {
margin-top: 28px;
}
.dislike .dog .face::after {
height: 55px;
}
.dislike .dog .eyes {
top: 38%;
}
.dislike .dog .eyes::before,
.dislike .dog .eyes::after {
width: 18px;
height: 5px;
margin: 0px 14.5%;
transform: rotate(-37.5deg);
border-radius: 20px;
}
.dislike .dog .eyes::after {
transform: rotate(37.5deg);
}
.dislike .dog .teardrop {
animation: cry 0.1s ease-in 0.25s forwards;
}
.dislike .dog .nose {
top: 44%;
}
.dislike .dog .mouth {
top: 42%;
}
.dislike .dog .chin {
top: 52%;
}
.dislike .dog .tail {
transform: rotate(0);
animation: none;
}
@keyframes movetongue {
100% {
height: 27px;
}
}
@keyframes movetail {
0% {
transform: rotate(37deg);
}
100% {
transform: rotate(52deg);
}
}
@keyframes cry {
100% {
visibility: visible;
}
}
/* modal__wrap */
.modal__wrap {
}
.modal__btn {
position: fixed;
right: 20px;
bottom: 100px;
}
.modal__btn .btn__txt {
margin-left: 20px;
padding: 10px 20px;
display: inline-block;
color: #444;
background-color: #F7AA2B;
border: 3px solid #333;
border-radius: 5px;
box-shadow: 3px 3px #999;
cursor: pointer;
transition: all 0.3s ease-out;
}
.modal__btn .btn__txt:hover {
background-color: #dcdcdca9;
color: #333;
box-shadow: 3px 3px #444;
}
.modal__close {
cursor: pointer;
background-color: #f5f5f5;
padding: 10px 10px 7px 10px;
border-radius: 5px;
position: absolute;
right: 20px;
top: 20px;
/* visibility: hidden; */
}
.modal__close:hover {
background-color: #222;
color: #fff;
box-shadow: 2px 2px 20px #111;
}
.modal__close.show {
visibility: visible;
}
.modal__cont {
/* z-index: 6; */
z-index: 20;
display: flex;
font-size: 15px;
width: 100%;
height: 100vh;
background-color: rgba(0, 0, 0, 0.4);
position: fixed;
left: 0;
top: 0;
overflow-x: hidden;
align-items: center;
justify-content: center;
transform: scale(0);
/* visibility: hidden; */
}
.modal__box {
width: 70%;
margin: 0 auto;
background-color: #fff;
border-radius: 0.5rem;
background-color: #fff;
box-shadow: 0 10px 20px -5px hsl(180deg 2% 10%);
transform: scale(0);
}
.modal__box .title {
padding-inline: 1.5rem;
background-color: hsl(0 0% 13%);
display: flex;
align-items: center;
color: #fff;
height: 60px;
border-top-left-radius: 0.4rem;
border-top-right-radius: 0.4rem;
}
.modal__box .title .dot {
width: 15px;
height: 15px;
background-color: hsl(41 99% 59%);
display: inline-block;
border-radius: 50%;
position: relative;
margin-left: 30px;
}
.modal__box .title .dot::before {
content: '';
position: absolute;
left: 25px;
top: 0;
width: 15px;
height: 15px;
background-color: hsl(129 67% 47%);
border-radius: 50%;
}
.modal__box .title .puls {
cursor: pointer;
margin-left: 15px;
background-color: hsl(0 0% 24%);
padding: 0.5rem 0.5rem 0.3rem 0.5rem;
border-radius: 0.5rem;
}
.modal__box .title .dot::after {
content: '';
position: absolute;
right: 25px;
top: 0;
width: 15px;
height: 15px;
background-color: hsl(3 100% 67%);
border-radius: 50%;
}
.modal__box .title .tabs {
display: flex;
justify-content: flex-start;
margin-left: 40px;
}
.modal__box .title .tabs>div.active {
background-color: rgb(80, 80, 80);
}
.modal__box .title .tabs>div {
color: #ccc;
background-color: hsl(0 0% 20%);
padding: 0.35rem 0.8rem;
margin: 0.5rem;
display: flex;
align-items: center;
border-radius: 0.3rem;
cursor: pointer;
}
.modal__box .title .tabs>div em {
font-style: normal;
}
.modal__box .title .tabs>div .favicon {
margin-right: 0.4rem;
margin-top: 0.25rem;
}
.modal__box .title .tabs>div .close {
margin-left: 3rem;
}
.modal__box .title .tabs>div .close svg {}
.modal__box .cont {
background-color: #2c2c2c;
height: 550px;
box-sizing: border-box;
border-bottom-left-radius: 0.5rem;
border-bottom-right-radius: 0.5rem;
overflow-y: auto;
}
.modal__box .cont>div {
display: none;
}
.modal__box .cont>div.active {
display: block;
height: 100%;
}
input[type="checkbox"] {
display: none;
}
/* 모달 애니메이션 */
.modal__cont.show {
/* visibility: visible; */
animation: forldOut forwards 0.7s ease;
}
.modal__cont.show .modal__box {
transform: scale(0);
animation: zoomOut 0.4s 0.5s ease forwards;
}
.modal__cont.show .modal__close {
animation: ClosOut 0.3s 1s ease forwards;
opacity: 0;
}
@keyframes forldOut {
0% {transform: scaleX(0) scaleY(0.005);}
50% {transform: scaleX(1) scaleY(0.005);}
100% {transform: scale(1) scaleY(1);}
}
@keyframes zoomOut {
0% {transform: scale(0);}
100% {transform: scale(1);}
}
@keyframes ClosOut {
0% {opacity: 0;}
100% {opacity: 1;}
}
.modal__cont.show.hide {
/* visibility: visible; */
animation: forldIn backwards 0.3s 0.6s ease;
}
.modal__cont.show.hide .modal__box {
transform: scale(0);
animation: zoomIn 0.3s 0.3s ease backwards;
}
.modal__cont.show.hide .modal__close {
transform: scale(0);
animation: ClosIn 0.3s ease backwards;
}
@keyframes forldIn {
0% {transform: scaleX(1) scaleY(1);}
50% {transform: scaleX(1) scaleY(0.005);}
100% {transform: scale(0) scaleY(0.005);}
}
@keyframes zoomIn {
0% {transform: scaleX(1);}
100% {transform: scale(0);}
}
@keyframes ClosIn {
0% {opacity: 1;}
100% {opacity: 0;}
}
@media (max-width: 1100px){
.modal__box {
width: 96%;
}
.modal__box .title .dot {
overflow: hidden;
display: none;
}
.modal__box .title .tabs {
margin-left: 0;
}
.modal__box .title .tabs>div .close {
display: none;
}
}
@media (max-width: 600px) {
.header {
width: 100%;
}
.modal__box {
width: 96%;
}
.modal__box .title .dot {
display: none;
}
.modal__box .title .tabs {
margin-left: 0;
}
.modal__box .title .tabs>div .close {
display: none;
}
}
@media (max-width: 480px) {
.header {
width: 100%;
}
.modal__box {
width: 96%;
}
.modal__box .title {
padding: 5px;
}
.modal__box .title .dot {
display: none;
}
.modal__box .title .tabs {
margin-left: 0;
}
.modal__box .title .tabs>div .close {
display: none;
}
.modal__box .title .tabs>div {
font-size: 12px;
}
.modal__box .title .puls {
display: none;
}
pre code.hljs {
margin-bottom: 0 !important;
}
}
@media (max-width: 800px) {
.intro_menu {
width: 90%;
padding: 14px;
}
.intro_menu li {
font-size: 16px;
}
.intro_menu ul li a {
font-size: 16px;
}
}