refactor: rename CSS classes for clarity, enhance layout responsiveness, and remove unused styles in index.scss; update Result.vue and index.vue for improved content rendering and structure

This commit is contained in:
PandaDEV 2025-03-15 00:21:17 +01:00
parent 71dc5b273d
commit 96e5505b4d
No known key found for this signature in database
GPG key ID: 13EFF9BAF70EE75C
3 changed files with 173 additions and 494 deletions

View file

@ -25,7 +25,7 @@ main {
justify-content: space-between;
}
.content {
.container {
height: 376px;
width: 100%;
display: flex;
@ -36,7 +36,7 @@ main {
flex-direction: column;
padding: 14px 8px;
gap: 8px;
width: 286px;
min-width: 286px;
border-right: 1px solid var(--border);
.time-separator {
@ -69,349 +69,99 @@ main {
}
}
// .bg {
// width: 100%;
// height: 100%;
// background-color: $primary;
// border: 1px solid $divider;
// border-radius: 12px;
// z-index: -1;
// position: fixed;
// outline: none;
// display: flex;
// flex-direction: column;
// }
.right {
display: flex;
flex-direction: column;
width: 100%;
}
// .search {
// width: 100%;
// height: $search-height;
// background-color: transparent;
// outline: none;
// border: none;
// font-size: 18px;
// color: $text;
// padding-inline: 16px;
// border-bottom: 1px solid $divider;
// font-family: SFRoundedMedium;
// }
.content {
height: 100%;
font-family: CommitMono !important;
font-size: 12px;
letter-spacing: 1;
border-radius: 10px;
width: 100%;
white-space: pre-wrap;
word-wrap: break-word;
display: flex;
flex-direction: column;
align-items: center;
overflow: hidden;
z-index: 2;
color: $text;
// .main-container {
// display: flex;
// flex: 1;
// }
&:not(:has(.image)) {
padding: 8px;
}
// .results {
// width: $sidebar-width;
// height: calc(100vh - $search-height - $bottom-bar-height);
// border-right: 1px solid $divider;
// display: flex;
// flex-direction: column;
// padding-inline: 8px;
// padding-bottom: 8px;
// overflow-y: auto;
// overflow-x: hidden;
// z-index: 3;
span {
font-family: CommitMono !important;
}
// .result {
// height: 40px;
// font-size: 14px;
// display: flex;
// align-items: center;
// padding: 10px;
// letter-spacing: 0.5px;
// gap: 10px;
// overflow: hidden;
// text-overflow: clip;
// white-space: nowrap;
// color: $text;
// cursor: pointer;
.image {
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
}
}
// &.selected {
// background-color: $divider;
// }
// }
.information {
min-height: 160px;
width: 100%;
border-top: 1px solid $divider;
padding: 14px;
z-index: 1;
display: flex;
flex-direction: column;
gap: 14px;
// .time-separator {
// font-size: 12px;
// color: $text2;
// font-family: SFRoundedSemiBold;
// padding-left: 8px;
// padding-bottom: 8px;
// padding-top: 14px;
// }
.title {
font-family: SFRoundedSemiBold;
font-size: 12px;
letter-spacing: 0.6px;
color: $text;
}
// .favicon,
// .image,
// .icon {
// width: 18px;
// height: 18px;
// }
// }
.info-content {
display: flex;
gap: 0;
flex-direction: column;
// .right-panel {
// display: flex;
// flex-direction: column;
// flex: 1;
// }
.info-row {
display: flex;
width: 100%;
font-size: 12px;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid $divider;
line-height: 1;
// .content {
// height: $content-view-height;
// font-family: CommitMono !important;
// font-size: 12px;
// letter-spacing: 1;
// border-radius: 10px;
// width: calc(100% - $sidebar-width);
// white-space: pre-wrap;
// word-wrap: break-word;
// display: flex;
// flex-direction: column;
// align-items: center;
// overflow: hidden;
// z-index: 2;
// color: $text;
&:last-child {
border-bottom: none;
padding-bottom: 0;
}
// &:not(:has(.image)) {
// padding: 8px;
// }
&:first-child {
padding-top: 22px;
}
// span {
// font-family: CommitMono !important;
// }
p {
font-family: SFRoundedMedium;
color: $text2;
font-weight: 500;
flex-shrink: 0;
}
// .image {
// width: 100%;
// height: 100%;
// object-fit: contain;
// object-position: center;
// }
// }
// .bottom-bar {
// height: $bottom-bar-height;
// width: 100%;
// backdrop-filter: blur(18px);
// background-color: hsla(40, 3%, 16%, 0.8);
// z-index: 100;
// border-radius: 0 0 12px 12px;
// display: flex;
// flex-direction: row;
// justify-content: space-between;
// padding-inline: 12px;
// padding-right: 6px;
// padding-top: 1px;
// align-items: center;
// font-size: 14px;
// border-top: 1px solid $divider;
// p {
// color: $text2;
// }
// .left {
// display: flex;
// align-items: center;
// gap: 8px;
// .logo {
// width: 18px;
// height: 18px;
// }
// }
// .right {
// display: flex;
// align-items: center;
// .paste p {
// color: $text;
// }
// .actions div {
// display: flex;
// align-items: center;
// gap: 2px;
// }
// .divider {
// width: 2px;
// height: 12px;
// background-color: $divider;
// margin-left: 8px;
// margin-right: 4px;
// transition: all 0.2s;
// }
// .paste,
// .actions {
// padding: 4px;
// padding-left: 8px;
// display: flex;
// align-items: center;
// gap: 8px;
// border-radius: 7px;
// background-color: transparent;
// transition: all 0.2s;
// cursor: pointer;
// }
// .paste:hover,
// .actions:hover {
// background-color: $divider;
// }
// &:hover .paste:hover ~ .divider,
// &:hover .actions:hover ~ .divider {
// opacity: 0;
// }
// }
// }
// .information {
// height: $info-panel-height;
// width: calc(100% - $sidebar-width);
// border-top: 1px solid $divider;
// background-color: $primary;
// padding: 14px;
// z-index: 1;
// display: flex;
// flex-direction: column;
// gap: 14px;
// .title {
// font-family: SFRoundedSemiBold;
// font-size: 12px;
// letter-spacing: 0.6px;
// color: $text;
// }
// .info-content {
// display: flex;
// gap: 0;
// flex-direction: column;
// .info-row {
// display: flex;
// width: 100%;
// font-size: 12px;
// justify-content: space-between;
// padding: 8px 0;
// border-bottom: 1px solid $divider;
// line-height: 1;
// &:last-child {
// border-bottom: none;
// padding-bottom: 0;
// }
// &:first-child {
// padding-top: 22px;
// }
// p {
// font-family: SFRoundedMedium;
// color: $text2;
// font-weight: 500;
// flex-shrink: 0;
// }
// span {
// font-family: CommitMono;
// color: $text;
// text-overflow: ellipsis;
// overflow: hidden;
// white-space: nowrap;
// margin-left: 32px;
// }
// }
// }
// }
// .clothoid-corner {
// clip-path: polygon(
// 13.890123px 0px,
// calc(100% - 13.890123px) 0px,
// calc(100% - 12.723414px) 0.004211px,
// calc(100% - 11.556933px) 0.025635px,
// calc(100% - 10.391895px) 0.085062px,
// calc(100% - 9.231074px) 0.199291px,
// calc(100% - 8.079275px) 0.382298px,
// calc(100% - 6.947448px) 0.662609px,
// calc(100% - 5.844179px) 1.039291px,
// calc(100% - 4.793324px) 1.542842px,
// calc(100% - 3.811369px) 2.169728px,
// calc(100% - 2.926417px) 2.926417px,
// calc(100% - 2.169728px) 3.811369px,
// calc(100% - 1.542842px) 4.793324px,
// calc(100% - 1.039291px) 5.844179px,
// calc(100% - 0.662609px) 6.947448px,
// calc(100% - 0.382298px) 8.079275px,
// calc(100% - 0.199291px) 9.231074px,
// calc(100% - 0.085062px) 10.391895px,
// calc(100% - 0.025635px) 11.556933px,
// calc(100% - 0.004211px) 12.723414px,
// 100% 13.890123px,
// 100% calc(100% - 13.890123px),
// calc(100% - 0.004211px) calc(100% - 12.723414px),
// calc(100% - 0.025635px) calc(100% - 11.556933px),
// calc(100% - 0.085062px) calc(100% - 10.391895px),
// calc(100% - 0.199291px) calc(100% - 9.231074px),
// calc(100% - 0.382298px) calc(100% - 8.079275px),
// calc(100% - 0.662609px) calc(100% - 6.947448px),
// calc(100% - 1.039291px) calc(100% - 5.844179px),
// calc(100% - 1.542842px) calc(100% - 4.793324px),
// calc(100% - 2.169728px) calc(100% - 3.811369px),
// calc(100% - 2.926417px) calc(100% - 2.926417px),
// calc(100% - 3.811369px) calc(100% - 2.169728px),
// calc(100% - 4.793324px) calc(100% - 1.542842px),
// calc(100% - 5.844179px) calc(100% - 1.039291px),
// calc(100% - 6.947448px) calc(100% - 0.662609px),
// calc(100% - 8.079275px) calc(100% - 0.382298px),
// calc(100% - 9.231074px) calc(100% - 0.199291px),
// calc(100% - 10.391895px) calc(100% - 0.085062px),
// calc(100% - 11.556933px) calc(100% - 0.025635px),
// calc(100% - 12.723414px) calc(100% - 0.004211px),
// calc(100% - 13.890123px) 100%,
// 13.890123px 100%,
// 12.723414px calc(100% - 0.004211px),
// 11.556933px calc(100% - 0.025635px),
// 10.391895px calc(100% - 0.085062px),
// 9.231074px calc(100% - 0.199291px),
// 8.079275px calc(100% - 0.382298px),
// 6.947448px calc(100% - 0.662609px),
// 5.844179px calc(100% - 1.039291px),
// 4.793324px calc(100% - 1.542842px),
// 3.811369px calc(100% - 2.169728px),
// 2.926417px calc(100% - 2.926417px),
// 2.169728px calc(100% - 3.811369px),
// 1.542842px calc(100% - 4.793324px),
// 1.039291px calc(100% - 5.844179px),
// 0.662609px calc(100% - 6.947448px),
// 0.382298px calc(100% - 8.079275px),
// 0.199291px calc(100% - 9.231074px),
// 0.085062px calc(100% - 10.391895px),
// 0.025635px calc(100% - 11.556933px),
// 0.004211px calc(100% - 12.723414px),
// 0px calc(100% - 13.890123px),
// 0px 13.890123px,
// 0.004211px 12.723414px,
// 0.025635px 11.556933px,
// 0.085062px 10.391895px,
// 0.199291px 9.231074px,
// 0.382298px 8.079275px,
// 0.662609px 6.947448px,
// 1.039291px 5.844179px,
// 1.542842px 4.793324px,
// 2.169728px 3.811369px,
// 2.926417px 2.926417px,
// 3.811369px 2.169728px,
// 4.793324px 1.542842px,
// 5.844179px 1.039291px,
// 6.947448px 0.662609px,
// 8.079275px 0.382298px,
// 9.231074px 0.199291px,
// 10.391895px 0.085062px,
// 11.556933px 0.025635px,
// 12.723414px 0.004211px,
// 13.890123px 0px
// );
// }
span {
font-family: CommitMono;
color: $text;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
margin-left: 32px;
}
}
}
}