Files
khoj/src/interface/web/app/components/sidePanel/sidePanel.module.css

128 lines
2.2 KiB
CSS

div.session {
padding: 0.5rem;
margin-bottom: 0.25rem;
border-radius: 0.5rem;
cursor: pointer;
max-width: 14rem;
font-size: medium;
display: grid;
grid-template-columns: minmax(auto, 350px) 1fr;
}
div.compressed {
grid-template-columns: minmax(auto, 12rem) 1fr 1fr;
}
div.sessionHover {
background-color: var(--secondary-accent);
}
div.session:hover {
background-color: var(--secondary-accent);
}
div.session a {
text-decoration: none;
}
button.button {
border: none;
outline: none;
background-color: transparent;
cursor: pointer;
color: var(--main-text-color);
width: 24px;
}
button.showMoreButton {
border-radius: 0.5rem;
padding: 8px;
}
div.panel {
display: grid;
grid-auto-flow: row;
padding: 1rem;
background-color: hsla(var(--primary-foreground));
background-color: var(--secondary-background-color);
height: 100%;
overflow-y: auto;
max-width: auto;
}
div.expanded {
display: grid;
grid-template-columns: 1fr auto;
gap: 1rem;
}
div.collapsed {
display: grid;
grid-template-columns: 1fr;
}
p.session {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-align: left;
font-size: small;
}
div.header {
display: grid;
grid-template-columns: 1fr auto;
}
div.profile {
display: grid;
grid-template-columns: auto 1fr;
gap: 1rem;
align-items: center;
margin-top: auto;
}
div.panelWrapper {
display: flex;
flex-direction: column;
}
div.modalSessionsList {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--frosted-background-color);
z-index: 1;
display: flex;
justify-content: center;
align-items: center;
backdrop-filter: blur(2px);
}
div.modalSessionsList div.content {
max-width: 80%;
max-height: 80%;
background-color: var(--frosted-background-color);
overflow: auto;
padding: 20px;
border-radius: 10px;
}
div.modalSessionsList div.session {
max-width: 100%;
text-overflow: ellipsis;
}
@media screen and (max-width: 768px) {
div.panel {
padding: 0.5rem;
}
div.singleReference {
padding: 4px;
}
}