ToolJet/frontend/src/AppBuilder/LeftSidebar/GlobalSettings/styles.scss

271 lines
6.1 KiB
SCSS

.global-settings-panel {
display: flex;
flex-direction: column;
height: 100%;
// Header section
.global-settings-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
border-bottom: 1px solid var(--border-weak, #e4e7eb);
.global-settings-header-title {
font-family: 'IBM Plex Sans', sans-serif;
font-size: 14px;
font-weight: 500;
line-height: 20px;
color: var(--text-default);
}
}
// Main content section (Slug, App Link, Maintenance Mode, Export)
.global-settings-main-content {
display: flex;
flex-direction: column;
gap: 12px;
padding: 8px 16px 16px 16px;
border-bottom: 1px solid var(--border-weak, #e4e7eb);
// Common label styles for all child elements (excluding helper text)
.field-name,
label:not([data-cy="helper-text"]) {
font-family: 'IBM Plex Sans', sans-serif;
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: 18px;
color: var(--text-default, #1b1f24);
}
// Helper text styling
[data-cy="helper-text"] {
font-family: 'IBM Plex Sans', sans-serif;
font-size: 11px;
font-style: normal;
font-weight: 400;
line-height: 16px;
color: var(--text-placeholder, #6a727c);
}
// App link field styling
.tj-text-input {
background-color: var(--controls-switch-tag, rgba(204, 209, 213, 0.30));
padding: 8px 12px;
border-radius: 6px;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 12px;
font-weight: 400;
line-height: 18px;
color: var(--text-default);
word-break: break-all;
border: none;
}
// Export button full width
.app-export-btn {
width: 100%;
}
}
// Accordion section (Canvas styles) - Overrides for common Accordion component
.global-settings-accordion {
display: flex;
flex-direction: column;
&.disabled {
opacity: 0.5;
pointer-events: none;
}
// Override accordion item styles
.accordion-item {
border: none;
background: transparent;
}
// Override accordion header styles
.accordion-header {
padding: 12px 16px;
margin: 0;
border: none;
&:hover {
background: transparent;
}
}
// Override accordion button styles
.accordion-button {
padding: 0;
background: transparent;
box-shadow: none;
&:hover,
&:focus {
background: transparent;
box-shadow: none;
}
&::after {
display: none;
}
&.inspector {
padding-left: 0px !important;
padding-right: 0px !important;
}
}
// Override accordion title text
.accordion-title-text {
font-family: 'IBM Plex Sans', sans-serif;
font-size: 12px !important;
font-weight: 500;
line-height: 18px;
color: var(--text-default);
}
// Override accordion body styles
.accordion-body,
.accordion-body-custom {
display: flex;
flex-direction: column;
gap: 8px;
padding: 0 16px 16px 16px !important;
overflow: hidden;
}
// Override accordion collapse
.accordion-collapse {
border: none;
}
}
.app-slug-container {
display: flex;
gap: 12px;
flex-direction: column;
}
// Canvas settings row layout
.canvas-settings-row {
display: flex;
justify-content: space-between;
align-items: center;
align-self: stretch;
min-height: 32px;
}
.canvas-settings-label {
font-family: 'IBM Plex Sans', sans-serif;
font-size: 12px;
font-weight: 400;
line-height: 18px;
color: var(--text-default, #1b1f24);
white-space: nowrap;
}
.canvas-settings-input-wrapper {
display: flex;
width: 158px;
flex-shrink: 0;
flex-direction: column;
align-items: flex-start;
gap: 2px;
}
// Max canvas width input container
.canvas-width-input-container {
display: flex;
width: 158px;
height: 32px;
.canvas-width-input {
flex: 1;
min-width: 0;
height: 32px;
padding: 7px 12px;
border: 1px solid var(--border-default, #ccd1d5);
border-right: none;
border-radius: 6px 0 0 6px;
background: var(--background-surface-layer-01);
font-family: 'IBM Plex Sans', sans-serif;
font-size: 12px;
font-weight: 400;
line-height: 18px;
color: var(--text-default, #1b1f24);
outline: none;
&:focus {
border-color: var(--border-accent-strong, #4368e3);
}
}
.canvas-width-type-select {
width: 42px;
min-width: 42px;
height: 32px;
padding: 7px;
border: 1px solid var(--border-default, #ccd1d5);
border-radius: 0 6px 6px 0;
background: var(--background-surface-layer-01);
font-family: 'IBM Plex Sans', sans-serif;
font-size: 12px;
font-weight: 400;
line-height: 18px;
color: var(--text-default, #1b1f24);
cursor: pointer;
outline: none;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23ACB2B9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 4px center;
padding-right: 20px;
&:focus {
border-color: var(--border-accent-strong, #4368e3);
}
}
}
// Canvas color input container
.canvas-color-input-container {
display: flex;
align-items: center;
width: 158px;
.fx-canvas {
display: none;
}
// Force ColorSwatches to fill 100% width
[data-cy="color-picker-parent"],
.fx-container,
.row,
.col {
width: 100%;
}
.field {
width: 100%;
min-width: 158px !important;
}
.color-picker-input {
width: 100% !important;
}
}
// Canvas toggle container
.canvas-toggle-container {
width: 158px;
// Force ToggleGroup to fit
.ToggleGroup {
width: 158px;
}
}
}