@font-face { font-family: 'NanumSquare'; font-weight: 400; src: url(../fonts/NanumSquareR.woff2) format('woff2'); } @font-face { font-family: 'NanumSquare'; font-weight: 700; src: url(../fonts/NanumSquareB.woff2) format('woff2'); } @font-face { font-family: 'NanumSquare'; font-weight: 800; src: url(../fonts/NanumSquareEB.woff2) format('woff2'); } @font-face { font-family: 'NanumSquare'; font-weight: 300; src: url(../fonts/NanumSquareL.woff2) format('woff2'); } * { box-sizing: border-box; margin: 0; padding: 0; -webkit-user-select: none; -moz-user-select: none; user-select: none; letter-spacing: -1px; } body { font-family: 'NanumSquare'; } #app { display: block; } #ghostInput{ opacity: 0; } .test { position: absolute; transform: translateY(-50%); top: 50%; right: 10vw; background-color: rgb(255, 255, 255); border-radius: 8px; padding: 10px; } .container { width: 20vw; } .container, .container .header { position: relative; display: flex; flex-direction: column; } .container .header .first-header .testclass p { color: rgb(12, 36, 59); font-weight: 800; font-size: 24px; text-align: center; } .container .header .second-header { position: absolute; transform: translateX(-50%); left: 50%; top: -50px; /* width: 100%; */ padding: 5px; border-radius: 8px; white-space: nowrap; text-align: center; font-weight: 700; color: rgb(12, 36, 59); background-color: #fff; font-size: 14px; } .container .header .second-header > p > span{ background-color: #0c243b; color: #e0e0e0; padding: 0 5px; margin: 0 5px; border-radius: 4px; } .container .category { margin: 10px 0; display: flex; justify-content: space-between; gap: 5px; flex-wrap: wrap; } .container .category .category-button { background: #fafafa; border: 1px solid #f1efef; background-color: rgb(250, 250, 250); color: rgb(12, 36, 59); border-radius: 8px; width: calc(25% - 3.75px); height: 32px; line-height: 32px; white-space: nowrap; font-size: 13px; text-align: center; cursor: pointer; } .container .category .category-button::after{ content: attr(data-length); } .container .category .selected { background: rgb(12, 36, 59); color: #fff; } .container .search-bar { display: flex; margin-top: .5rem; height: 5vh; width: 100%; background: #fafafa; border-radius: 5px 5px 0 0; justify-content: center; align-items: center; } .container .search-bar i.fa-magnifying-glass{ margin-left: 10px; color: rgba(12, 36, 59, 0.7); font-size: 16px; } .container .search-bar i.fa-circle-xmark{ margin-right: 10px; color: rgba(12, 36, 59, 0.7); font-size: 16px; opacity: 0; transition: 300ms opacity; } .container .search-bar i.fa-circle-xmark.active{ opacity: 1; cursor: pointer; } .container .search-bar > .reset{ position: relative; } .container .search-bar > .reset > p{ display: none; position: absolute; transform: translate(-50%,-50%); left: 50%; top: -20px; white-space: nowrap; font-size: 13px; text-align: center; padding: 5px; border-radius: 5px; border: 1px solid #fff; box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); background-color: rgb(250, 250, 250); } .container .search-bar > .reset > i{ transition: transform 300ms; cursor: pointer; } .container .search-bar > .reset > i:hover{ transform: rotate(360deg); } .container .search-bar > .reset:hover > p { display: block; } .container .search-bar input { background: transparent; outline: none; border: none; padding: 5px; width: 80%; text-indent: 14px; text-align: start; color: rgb(12, 36, 59); } .container .search-bar input::selection{ background: #0c243b; color: #fff; } .container .search-bar ::placeholder { font-style: normal; font-weight: 400; font-size: 14px; line-height: 2vh; color: rgba(12, 36, 59, 0.5); } .container .main-part { position: relative; background: rgb(250, 250, 250); height: 500px; display: flex; flex-direction: column; overflow-y: auto; padding: 5px; outline: none; } .container .main-part .skeleton-ui { width: 100%; } .container .main-part .skeleton-item { padding: 10px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); background-color: rgb(250, 250, 250); margin-bottom: 10px; border-radius: 5px; } .container .main-part .skeleton-item > p{ background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; color: transparent; border-radius: 5px; animation: loading 2s infinite; } .container .main-part .skeleton-item > p:nth-child(1){ width: 200px; height: 15px; margin-bottom: 2px; } .container .main-part .skeleton-item > p:nth-child(2){ width: 100px; height: 15px; } @keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } .container .main-part .main-part-box { position: relative; cursor: pointer; margin-bottom: 10px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); padding: 10px; border-radius: 5px; } .container .main-part .main-part-box .info { text-overflow: ellipsis; white-space: nowrap; } .container .main-part .main-part-box .info p:first-child { font-size: 15px; font-weight: 700; color: rgb(12, 36, 59); } .container .main-part .main-part-box .info p::after { content: attr(data-categ); font-size: 13px; display: block; color: rgba(12, 36, 59, 0.5); } .container .main-part .main-part-box i { position: absolute; transform: translateY(-50%); top: 50%; right: 10px; color: rgba(12, 36, 59, 0.4); border-radius: .81px; cursor: pointer } .container .main-part .main-part-box i:hover { color: rgba(253, 196, 8, 0.5); } .container .main-part .main-part-box .selected { color: rgb(253, 196, 8); } .container .main-part .main-part-box:nth-child(2n) { background: linear-gradient(90deg, hsla(0, 0%, 100%, .042), hsla(0, 0%, 100%, 0)), hsla(0, 0%, 100%, .06) } *::-webkit-scrollbar { width: 6px; } *::-webkit-scrollbar-thumb { background-color: none; background-color: rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 50px; }