fitness-web/app/static/style.css

132 lines
2.2 KiB
CSS

.set-row input {
width: 60px;
display: inline-block;
margin-right: 0.5rem;
}
.set-row label {
display: inline;
margin-right: 0.25rem;
}
.set-group {
margin-bottom: 1.5rem;
}
.chat-messages {
max-height: 60vh;
overflow-y: auto;
margin-bottom: 1rem;
}
.chat-message {
margin-bottom: 1rem;
padding: 0.75rem;
border-radius: 0.5rem;
}
.chat-message.user {
background: var(--card-background-color);
text-align: right;
}
.chat-message.assistant {
background: var(--card-sectionning-background-color);
}
.chat-status {
margin-top: 0.25rem;
font-size: 0.85rem;
}
.nav-link.active {
font-weight: bold;
}
/* App layout with sidebar */
.app-layout {
display: flex;
gap: 1rem;
max-width: var(--pico-fluid-max-width, 1200px);
margin: 0 auto;
padding: 0 var(--pico-spacing, 1rem);
}
#main-content {
flex: 1;
min-width: 0;
}
#chat-sidebar {
width: 360px;
flex-shrink: 0;
position: sticky;
top: 0;
height: calc(100vh - 4rem);
overflow-y: auto;
border-left: 1px solid var(--muted-border-color, #ccc);
padding-left: 1rem;
}
.app-layout.no-sidebar #chat-sidebar {
display: none;
}
/* Sidebar chat components */
.chat-sidebar-header {
padding: 0.5rem 0;
border-bottom: 1px solid var(--muted-border-color, #ccc);
margin-bottom: 0.5rem;
}
.chat-sidebar-messages {
max-height: calc(100vh - 14rem);
overflow-y: auto;
margin-bottom: 0.5rem;
}
.chat-sidebar-messages .chat-message {
padding: 0.4rem 0.6rem;
margin-bottom: 0.4rem;
font-size: 0.9rem;
}
.chat-sidebar-messages .chat-message p {
margin: 0;
}
.chat-sidebar-loading {
color: var(--muted-color, #888);
text-align: center;
font-size: 0.85rem;
}
.chat-sidebar-form {
display: flex;
gap: 0.3rem;
align-items: flex-end;
}
.chat-sidebar-form textarea {
flex: 1;
resize: none;
min-height: 2rem;
font-size: 0.9rem;
padding: 0.3rem;
}
.chat-sidebar-form button {
width: auto;
padding: 0.2rem 0.8rem;
font-size: 0.85rem;
margin: 0;
}
@media (max-width: 767px) {
#chat-sidebar {
display: none;
}
.app-layout {
padding: 0;
}
}