Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
shared._main.scss Maven / Gradle / Ivy
// Mixins
@mixin typography($font-family: $font-family-primary, $font-size: $font-size-base, $font-weight: $font-weight-normal) {
font-family: $font-family;
font-size: $font-size;
font-weight: $font-weight;
}
@mixin flex-container($direction: column) {
display: flex;
flex-direction: $direction;
}
@mixin fixed-full {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100%;
}
@mixin link-hover-transition {
transition: color $transition-speed;
&:hover {
color: $link-hover-color;
}
}
@mixin message-style {
padding: 10px;
margin-bottom: 10px;
border-radius: $border-radius;
}
// Root styles
body {
@include typography($font-family-secondary);
color: $primary-text-color;
background-color: $primary-bg-color;
margin: 0;
padding: 80px 10px 60px; // Reduced horizontal padding
line-height: 1.6;
transition: background-color 0.3s ease;
}
#messages {
@include flex-container;
padding: 10px;
background-color: $secondary-bg-color;
box-shadow: $box-shadow;
margin-bottom: 20px; // Add some space at the bottom
border-radius: $border-radius;
max-width: 95%; // Increased max-width
margin-left: auto;
margin-right: auto;
transition: all 0.3s ease;
}
.chat-input,
.reply-input {
background-color: $secondary-bg-color;
color: $primary-text-color;
border-radius: $border-radius;
padding: 10px;
margin-bottom: 10px;
overflow: auto;
resize: vertical;
flex: 1;
border: 1px solid $border-color;
box-shadow: $box-shadow;
font-size: 16px; // Increase font size for better readability
transition: border-color 0.3s ease;
min-height: 40px;
&:focus {
outline: none;
border-color: $link-color;
box-shadow: 0 0 5px rgba($link-color, 0.5);
}
}
#main-input,
.reply-form,
.code-execution {
@include flex-container(row);
padding: 5px;
width: 95%; // Adjusted width
max-width: 95%; // Increased max-width
background-color: $primary-bg-color;
align-items: center; // Align items vertically
gap: 10px; // Add space between input and button
margin-bottom: 20px;
margin-left: auto;
margin-right: auto;
transition: all 0.3s ease;
}
.ws-control {
padding: 10px 15px;
background-color: $button-bg-color;
color: $button-text-color;
border: none;
border-radius: $border-radius;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, color 0.3s ease;
font-weight: $font-weight-bold;
&:hover {
background-color: darken($button-bg-color, 10%);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
color: lighten($button-text-color, 10%);
}
&:active {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, color 0.3s ease;
font-weight: $font-weight-bold;
&:hover {
background-color: darken($button-bg-color, 10%);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
color: lighten($button-text-color, 10%);
}
&:active {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
&:disabled {
opacity: 0.6;
cursor: not-allowed;
box-shadow: none;
}
&:focus {
outline: 2px solid $link-color;
outline-offset: 2px;
}
box-shadow: none;
}
&:focus {
outline: 2px solid $link-color;
outline-offset: 2px;
}
}
// Add styles for message types
.user-message,
.response-message,
.reply-message {
padding: 15px;
margin-bottom: 15px;
border-radius: $border-radius;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.3s ease, background-color 0.3s ease;
&:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
}
pre {
max-height: 70vh;
overflow: auto;
}
.user-message {
background-color: lighten($user-message-bg, 5%);
border-left: 4px solid $user-message-border;
}
.response-message {
background-color: lighten($response-message-bg, 5%);
border-left: 4px solid $response-message-border;
}
.reply-message {
background-color: lighten($reply-message-bg, 5%);
border-left: 4px solid $reply-message-border;
}
.href-link {
text-decoration: none;
color: $link-color;
@include link-hover-transition;
&:focus {
outline: 2px solid $link-color;
outline-offset: 2px;
}
&:focus {
outline: 2px solid $link-color;
outline-offset: 2px;
}
}
#disconnected-overlay {
@include fixed-full;
display: none;
background-color: $modal-overlay-color;
z-index: 50;
@include flex-container;
color: white;
font-size: $font-size-large;
p {
@include typography($font-size: $font-size-large, $font-weight: $font-weight-bold);
line-height: 1.5;
margin-bottom: 20px;
animation: bounce $transition-speed infinite alternate;
position: relative;
color: firebrick;
}
}
.spinner-border {
display: block;
width: 40px;
height: 40px;
border: 4px solid $spinner-border-color;
border-left-color: $link-color;
border-radius: 50%;
animation: spin 1s linear infinite;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
#toolbar,
#namebar {
background-color: $toolbar-bg-color;
padding: 15px 2.5%; // Reduced padding
position: fixed;
top: 0;
text-align: left;
box-shadow: $box-shadow;
display: flex;
align-items: center;
z-index: 1000;
transition: background-color 0.3s ease;
a {
color: $toolbar-text-color;
text-decoration: none;
padding: 8px 12px;
border-radius: $border-radius;
@include link-hover-transition;
font-weight: $font-weight-bold;
&:hover {
background-color: $toolbar-hover-bg-color;
color: $toolbar-hover-text-color;
transform: translateY(-2px);
}
}
}
#toolbar {
width: 100%;
z-index: 1001;
justify-content: space-between;
}
#namebar {
z-index: 1002;
right: 0;
top: 0px;
}
.modal {
@include fixed-full;
display: none;
z-index: 100;
overflow: auto;
background-color: $modal-overlay-color;
.modal-content {
background-color: $secondary-bg-color;
margin: 10% auto;
padding: 30px;
border: 1px solid $border-color;
width: 90%; // Increased width
max-width: 95%; // Increased max-width
position: relative;
border-radius: $border-radius;
box-shadow: $box-shadow;
animation: modalFadeIn 0.3s;
}
.close {
@include typography($font-weight: $font-weight-bold);
color: $close-color;
float: right;
font-size: $font-size-large;
cursor: pointer;
transition: color 0.3s ease;
&:hover,
&:focus {
color: $close-hover-color;
transform: scale(1.1);
}
}
}
@keyframes modalFadeIn {
from {
opacity: 0;
transform: translateY(-50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.close-button {
margin-left: 95%;
}
.play-button,
.regen-button,
.cancel-button,
.close-button {
@include typography($font-size: 1.5rem, $font-weight: $font-weight-bold);
border: 2px solid transparent;
background: $primary-bg-color;
cursor: pointer;
transition: all $transition-speed;
padding: 5px 10px;
border-radius: $border-radius;
text-decoration: unset;
&:focus,
&:hover {
outline: none;
background-color: darken($primary-bg-color, 5%);
border-color: $link-color;
}
&:active {
transform: scale(0.95);
}
}
.cancel-button {
right: 0;
position: absolute;
}
.error {
color: $error-color;
}
.verbose {
display: block;
}
.verbose-hidden {
display: none;
}
.user-message,
.response-message,
.reply-message {
@include message-style;
margin-bottom: 15px;
transition: background-color 0.3s ease;
}
.user-message {
background-color: $user-message-bg;
border: 1px solid $user-message-border;
}
.reply-message {
background-color: $reply-message-bg;
border: 1px solid $reply-message-border;
display: flex;
}
.response-message {
background-color: $response-message-bg;
border: 1px solid $response-message-border;
display: block;
}
pre.verbose,
pre.response-message {
background-color: $verbose-pre-bg;
border: 1px solid $verbose-pre-border;
border-radius: $border-radius;
padding: 15px;
overflow-x: auto;
font-family: 'Courier New', Courier, monospace;
}
.response-header {
font-weight: $font-weight-bold;
margin-top: 20px;
margin-bottom: 10px;
}
#footer {
position: fixed;
bottom: 0;
right: 5px;
text-align: right;
z-index: 1000;
padding: 10px;
a {
color: $footer-link-color;
text-decoration: none;
font-weight: $font-weight-bold;
transition: color 0.3s ease;
&:hover {
text-decoration: underline;
color: $footer-link-hover-color;
}
}
}
.dropdown {
position: relative;
display: inline-block;
&:hover {
.dropdown-content {
display: block;
}
.dropbtn {
background-color: $dropdown-btn-bg;
}
}
.dropdown-content {
display: none;
position: absolute;
background-color: $dropdown-content-bg;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
a {
color: $primary-text-color;
padding: 12px 16px;
text-decoration: none;
display: block;
&:hover {
background-color: $dropdown-content-hover-bg;
}
}
}
.dropbtn {
border: none;
cursor: pointer;
}
}
.applist {
border-collapse: collapse;
margin-top: 20px;
width: 95%; // Added width
max-width: 95%; // Added max-width
margin-left: auto; // Center the table
margin-right: auto; // Center the table
th {
padding-top: 15px;
padding-bottom: 15px;
background-color: $applist-header-bg;
color: $applist-header-text;
text-transform: uppercase;
font-weight: $font-weight-bold;
}
td, th {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
tr {
&:nth-child(even) {
background-color: $applist-row-even-bg;
}
&:hover {
background-color: $applist-row-hover-bg;
}
}
th {
padding-top: 12px;
padding-bottom: 12px;
background-color: $applist-header-bg;
color: $applist-header-text;
}
a {
color: $applist-link-color;
text-decoration: none;
margin-right: 10px;
}
}
.new-session-link {
background-color: $new-session-link-bg;
color: white;
padding: 5px 10px;
border-radius: 5px;
display: inline-block;
margin-right: 0;
&:hover {
background-color: $new-session-link-hover-bg;
}
}
// Keyframes
@keyframes bounce {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-10px);
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.tabs-container {
margin-bottom: 20px;
}
.tab-buttons {
display: flex;
overflow-x: auto;
scrollbar-width: thin;
scrollbar-color: $button-bg-color $secondary-bg-color;
border-bottom: 2px solid $border-color;
margin-bottom: 15px;
}
.tab-button {
&:focus {
outline: 2px solid $link-color;
outline-offset: 2px;
}
margin-bottom: 5px;
&:focus {
outline: 2px solid $link-color;
outline-offset: 2px;
}
margin-bottom: 5px;
background-color: $secondary-bg-color;
color: $primary-text-color;
border: none;
padding: 0px 20px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: $font-weight-bold;
white-space: nowrap;
position: relative;
&:hover {
background-color: lighten($button-bg-color, 10%);
}
&::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 100%;
height: 2px;
background-color: transparent;
transition: background-color 0.3s ease;
}
}
.tab-button.active {
background-color: $primary-bg-color;
color: $link-color;
&::after {
background-color: $link-color;
}
}
.cmd-button {
&:focus {
outline: 2px solid $link-color;
outline-offset: 2px;
}
&:focus {
outline: 2px solid $link-color;
outline-offset: 2px;
}
background-color: $button-bg-color;
color: $button-text-color;
padding: 10px 15px;
border-radius: $border-radius;
border: none;
cursor: pointer;
transition: background-color $transition-speed;
&:hover {
background-color: darken($button-bg-color, 10%);
color: lighten($button-text-color, 10%);
}
}
/* Scrollbar styles for Webkit browsers */
.tab-buttons::-webkit-scrollbar {
height: 5px;
}
.tab-buttons::-webkit-scrollbar-track {
background: $secondary-bg-color;
}
.tab-buttons::-webkit-scrollbar-thumb {
background-color: $button-bg-color;
border-radius: 20px;
}