UNPKG

triplexlab

Version:

프론트엔드 개발자가 프로젝트할때 흔하고 많이 하는 작업들을 나만의 플러그인으로 만들었습니다.\ ES6의 class기반으로 만들었고, 공부하는 차원으로 만들었습니다.🧑🏻‍💻🧑🏻‍💻

91 lines (86 loc) 2.57 kB
.faq_component { max-width: 1000px; padding-right: 30px; padding-left: 30px; margin: 70px auto 0 auto; } .faq_component h2 { margin: 0 0 30px; font-size: 26px; font-weight: 600; } .faq_component .faq_inner { display: grid; grid-template-columns: 1fr; grid-gap: 20px; } .faq_component .faq_inner .tr_item { -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 0 0 0 rgba(0,0,0,.15); box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 0 0 0 rgba(0,0,0,.15); border: 1px solid #f3f4f6; -webkit-transition: all .2s; -o-transition: all .2s; transition: all .2s; } .faq_component .faq_inner .tr_item:hover { -webkit-box-shadow: -3px 10px 50px rgba(0,0,0,.1), inset 0 0 0 0 rgba(0,0,0,.15); box-shadow: -3px 10px 50px rgba(0,0,0,.1), inset 0 0 0 0 rgba(0,0,0,.15); } .faq_component .faq_inner .tr_item.active .faq_tit{ border-left: 2px solid #0d0f33;} .faq_component .faq_inner .tr_item.active .faq_tit::after { transform: rotate(-45deg) translateZ(0); } .faq_tit { font-weight: 500; border-left: 2px solid #f0f2f5; padding: 20px 40px 20px 20px; margin: 0; cursor: pointer; font-size: 17px; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -webkit-justify-content: space-between; -moz-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; position: relative; -webkit-transition: .2s; -o-transition: .2s; transition: .2s; } .faq_tit:hover { border-left: 2px solid #0d0f33; } .faq_tit::after { content: ''; background: url(./imgs/puls.png) no-repeat center; width: 15px; height: 15px; background-size: 18px; position: absolute; top: 23px; right: 15px; -webkit-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .faq_item_content { line-height: 1.1; overflow: hidden; } .faq_item_content p { border-top: 2px solid #f0f2f5; padding: 20px; margin: 0; } .btn a{ width: 100%; text-align: center; margin-top: 30px; padding: 20px 40px 20px 20px; box-sizing: border-box; -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 0 0 0 rgba(0,0,0,.15); box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 0 0 0 rgba(0,0,0,.15); border: 1px solid #f3f4f6; } .tr_item.more_active {display: none;}