UNPKG

docuhelp

Version:
226 lines (202 loc) 4.09 kB
.dh-wrapper { position: fixed; bottom: 10px; right: 10px; border-radius: 5px; z-index: 1050; } .dh-wrapper .dh-frame { height: 530px; width: 350px; background-color: #fff; border-radius: inherit; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); transition: 0.3s; } .dh-header { height: 48px; border-top-right-radius: 5px; border-top-left-radius: 5px; color: #fff; position: sticky; top: 0px; background-color: #527ceb; padding-left: 15px; padding-right: 15px; } .dh-header-title { padding-top: 14px; display: inline-block; } .dh-content { padding: 12px; overflow: auto; height: 404px; } .dh-content-list { transition: 0.3s; animation: fadeInUp .5s ease-in both; } .dh-content-card { height: 163px; margin-bottom: 5px; max-height: 163px; min-height: 50px; padding: 15px; background-color: #fff; overflow: hidden; border-radius: 3px; box-shadow: #0000001a 0px 1px 3px 0px, #c1cbd4b3 0px 0px 0px 1px inset, #c1cbd4 0px -1px 0px 0px inset; transition: 0.3s; } .dh-content-card-open img { height: 100px; } #dh-content-card-open { margin-bottom: 5px; min-height: calc(100% - 80px); max-height: calc(100% - 80px); overflow: auto; padding: 15px; background-color: #fff; border-radius: 3px; transition: 0.3s; box-shadow: #0000001a 0px 1px 3px 0px, #c1cbd4b3 0px 0px 0px 1px inset, #c1cbd4 0px -1px 0px 0px inset; position: absolute; top: 8%; left: 6px; width: 88%; } #dh-back-button, #dh-cancel-button{ margin-right: 15px; cursor: pointer; color: #fff; height: inherit; } #dh-back-button:hover { color: #fff; } .dh-content-card:hover { box-shadow: #0000001a 0px 1px 3px 0px, #c1cbd4b3 0px 0px 0px 1px inset, #c1cbd4 0px -1px 0px 0px inset; transform: translate(0px, -2px); cursor: pointer; } .dh-content-card__title { color: #0077cc; line-height: 1.5; margin-bottom: 7px; transition: all 200ms linear 0s; } /* footer */ .dh-footer { height: 48px; box-shadow: 0 0px 1px 0 rgba(0,0,0,0.2); border-top: 1px solid #e4e0e0b3; box-sizing: border-box; padding: 15px; } .dh-footer input[type=text] { width: 85%; height: 20px; border: 0; float: left; box-sizing: border-box; } .dh-footer input[type=text]:focus { background-color: #fff; outline: none; } .dh-footer button { float: left; width: 10%; height: 20px; background-color: transparent; border: none; } .dh-footer button:focus { border: none; outline: none; } .dh-footer button:hover { cursor: pointer; } .dh-footer button svg { width: 100%; height: 20px; } /* buttons */ .dh-button { border-radius: 50%; width: 60px; height: 60px; background-color: #527ceb; margin: 10px 10px 10px auto; position: relative; z-index: 1051; } .dh-button span { position: relative; top: 38%; left: 38%; color: #fff; } .dh-button:hover { cursor: pointer; } /* scrollbar */ .scrollbar::-webkit-scrollbar { width: 12px; } .scrollbar::-webkit-scrollbar-thumb { border: 2px solid rgba(0, 0, 0, 0); background-clip: padding-box; border-radius: 7px; background-color: rgba(0, 0, 0, 0.1); } ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.04); border-radius: 8px; } .hidden { display: none; } /* animations */ .fadeInUp { animation: fadeInUp .5s ease-in both; } .fadeOutDown { animation: fadeOutDown .5s ease-in both; } .fadeInDown { animation: fadeInDown .5s ease-in both; } @keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -3%, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } } @keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 3%, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } } @keyframes fadeOutDown { from { opacity: 1; transform: translate3d(0, 0, 0); } to { opacity: 0; transform: translate3d(0, 3%, 0); } }