From ed94cc8fb516455dbeea223d0fab25e4fb1c1d78 Mon Sep 17 00:00:00 2001 From: Sophie Zhang Date: Mon, 27 Feb 2023 16:56:02 -0500 Subject: feat: added summarization functionality to WebBox and cleaned up code --- src/client/views/pdf/GPTPopup.scss | 91 +++++++++++++++++++++++++++++++++----- 1 file changed, 81 insertions(+), 10 deletions(-) (limited to 'src/client/views/pdf/GPTPopup.scss') diff --git a/src/client/views/pdf/GPTPopup.scss b/src/client/views/pdf/GPTPopup.scss index 9605cfd07..7b7d2e3f7 100644 --- a/src/client/views/pdf/GPTPopup.scss +++ b/src/client/views/pdf/GPTPopup.scss @@ -1,33 +1,104 @@ $textgrey: #707070; -$bordergrey: #d3d3d3; +$lighttextgrey: #a3a3a3; +$greyborder: #d3d3d3; +$lightgrey: #ececec; +$button: #5b97ff; .summary-box { + display: flex; + flex-direction: column; background-color: #ffffff; box-shadow: 0 2px 5px #7474748d; color: $textgrey; position: absolute; bottom: 40px; - width: 200px; - height: 200px; + width: 250px; border-radius: 15px; - padding: 20px; - overflow: auto; + padding: 15px; + padding-bottom: 0px; .summary-heading { display: flex; align-items: center; - border-bottom: 1px solid $bordergrey; - margin-bottom: 10px; + border-bottom: 1px solid $greyborder; padding-bottom: 5px; .summary-text { font-size: 12px; font-weight: 500; - letter-spacing: 1px; - margin: 0; - padding-right: 10px; } } + + label { + color: $textgrey; + font-size: 12px; + font-weight: 400; + letter-spacing: 1px; + margin: 0; + padding-right: 5px; + } + + a { + cursor: pointer; + } + + .content-wrapper { + padding-top: 10px; + min-height: 50px; + max-height: 150px; + overflow-y: auto; + } + + .btns-wrapper { + height: 50px; + display: flex; + justify-content: space-between; + align-items: center; + + .summarizing { + display: flex; + align-items: center; + } + } + + button { + font-size: 9px; + padding: 10px; + color: #ffffff; + background-color: $button; + border-radius: 5px; + } + + .text-btn { + &:hover { + background-color: $button; + } + } + + .btn-secondary { + font-size: 8px; + padding: 10px 5px; + background-color: $lightgrey; + color: $textgrey; + &:hover { + background-color: $lightgrey; + } + } + + .icon-btn { + background-color: #ffffff; + padding: 10px; + border-radius: 50%; + color: $button; + border: 1px solid $button; + } + + .ai-warning { + padding: 10px 0; + font-size: 10px; + color: $lighttextgrey; + border-top: 1px solid $greyborder; + } } // Typist CSS -- cgit v1.2.3-70-g09d2