Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TINY-10214: Add CSS for AI Assistant history mode #9065

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions modules/oxide/src/less/theme/components/ai/ai.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/* stylelint-disable */

@request-background-color: contrast(@background-color, mix(@border-color, @color-tint, 85%), mix(@border-color, @color-tint, 85%));
@placeholder-text-color: contrast(@background-color, darken(@border-color, 15%), lighten(@border-color, 15%));

.tox {
.tox-ai {
border: 1px solid @border-color;
border-radius: 3px;
position: relative;

.tox-history {
display: flex;
flex-direction: column-reverse;
font-size: @font-size-sm;
height: 530px;
overflow-y: auto;

.tox-airequest {
background-color: @request-background-color;
border-radius: 3px;
display: inline-block;
font-weight: bolder;
padding: 5px;
}

.tox-airesponse {
border-radius: 3px;
display: block;
flex-direction: column;
padding: 5px;
}

.tox-newrequest {
color: @placeholder-text-color;
left: 50%;
position: absolute;
text-align: center;
top: 50%;
transform: translate(-50%, -50%);
}

.tox-button {
border-radius: 3px;
font-size: @font-size-xs;
font-weight: 500;
padding: @button-padding-y / 4 @button-padding-x / 2;
}

// Tabpanel dialogs move the nav above the body when they shrink enough in width.
// That would push the bottom components out of view, but this shrinks the history in tandem.
@media @breakpoint-sm {
body:not(.tox-force-desktop) & {
height: 429px;
}
}
}
}
}
1 change: 1 addition & 0 deletions modules/oxide/src/less/theme/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@import 'globals/global';

@import 'components/accessibility-checker/accessibility-checker';
@import 'components/ai/ai.less';
@import 'components/advtemplate/advtemplate.less';
@import 'components/anchorbar/anchorbar';
@import 'components/bar/bar';
Expand Down