mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-10 12:27:31 -08:00
3db53a1934
* refactor(editor): N8N-4540 Main navigation layout rework (#4060) * ✨ Implemented new editor layout using css grid * ✨ Reworking main navigation layout, migrating some styling to css modules * ✨ Reworking main sidebar layout and responsiveness * 💄 Minor type update * ✨ Updated editor grid layout so empty cells are collapsed (`fit-content`), fixed updates menu items styling * ✨ Implemented new user area look & feel in main sidebar * 💄 Adjusting sidebar bottom padding when user area is not shown * 💄 CSS cleanup/refactor + minor vue refactoring * ✨ Fixing overscoll issue in chrome and scrolling behaviour of the content view * 👌 Addressing review feedback * ✨ Added collapsed and expanded versions of n8n logo * ✨ Updating infinite scrolling in templates view to work with the new layout * 💄 Updating main sidebar expanded width and templates view left margin * 💄 Updating main content height * 💄 Adding global styles for scrollable views with centered content, minor updates to user area * ✨ Updating zoomToFit logic, lasso select box position and new nodes positioning * ✨ Fixing new node drop position now that mouse detection has been adjusted * 👌 Updating templates view scroll to top logic and responsive padding, aligning menu items titles * 💄 Moving template layout style from global css class to component level * ✨ Moved 'Workflows' menu to node view header. Added new dropdown component for user area and the new WF menu * 💄 Updating disabled states in new WF menu * 💄 Initial stab at new sidebar styling * ✨ Finished main navigation restyling * ✨ Updating `zoomToFit` and centering logic * ✨ Adding updates menu item to settings sidebar * 💄 Adding updates item to the settings sidebar and final touches on main sidebar style * 💄 Removing old code & refactoring * 💄 Minor CSS tweaks * 💄 Opening credentials modal on sidebar menu item click. Minor CSS updates * 💄 Updating sidebar expand/collapse animation * 💄 Few more refinements of sidebar animation * 👌 Addressing code review comments * ✨ Moved ActionDropdown component to design system * 👌 Fixing bugs reported during code review and testing * 👌 Addressing design review comments for the new sidebar * ✔️ Updating `N8nActionDropdown` component tests * ✨ Remembering scroll position when going back to templates list * ✨ Updating zoomToFit logic to account for footer content * 👌 Addressing latest sidebar review comments * 👌 Addressing main sidebar product review comments * 💄 Updating css variable names after vite merge * ✔️ Fixing linting errors in the design system * ✔️ Fixing `element-ui` type import * 👌 Addressing the code review comments. * ✨ Adding link to new credentials view, removed old modal * 💄 Updating credentials view responsiveness and route highlight handling * 💄 Adding highlight to workflows submenu when on new workflow page * 💄 Updated active submenu text color
208 lines
3.6 KiB
SCSS
208 lines
3.6 KiB
SCSS
.clickable {
|
|
cursor: pointer !important;
|
|
}
|
|
.primary-color {
|
|
color: $color-primary;
|
|
}
|
|
.text-light {
|
|
color: $custom-font-light;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.el-dialog {
|
|
border: var(--border-base);
|
|
box-shadow: 0px 6px 16px rgb(68 28 23 / 6%);
|
|
border-radius: 8px;
|
|
|
|
@media (max-height: 1050px) {
|
|
margin: 4em auto !important;
|
|
}
|
|
|
|
@media (max-height: 930px) {
|
|
margin: 1em auto !important;
|
|
}
|
|
&.classic {
|
|
.el-dialog__header {
|
|
padding: 15px 20px;
|
|
}
|
|
|
|
.el-dialog__headerbtn {
|
|
position: absolute;
|
|
top: 0;
|
|
right: -50px;
|
|
color: var(--color-foreground-xlight);
|
|
background-color: var(--color-background-dark);
|
|
border-radius: 0 18px 18px 0;
|
|
z-index: 110;
|
|
font-size: 1.7em;
|
|
text-align: center;
|
|
line-height: 30px;
|
|
height: 50px;
|
|
width: 50px;
|
|
.el-dialog__close {
|
|
color: var(--color-foreground-xlight);
|
|
font-weight: 400;
|
|
}
|
|
.el-dialog__close:hover {
|
|
transform: scale(1.2);
|
|
}
|
|
}
|
|
.el-dialog__body {
|
|
color: $custom-dialog-text-color;
|
|
padding: 0 20px 20px 20px;
|
|
}
|
|
.el-dialog__title {
|
|
color: $custom-dialog-text-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
.el-message-box {
|
|
background-color: $custom-dialog-background;
|
|
border: none;
|
|
.el-message-box__headerbtn {
|
|
.el-message-box__close {
|
|
color: $custom-dialog-text-color;
|
|
}
|
|
}
|
|
.el-message-box__content,
|
|
.el-message-box__title {
|
|
color: $custom-dialog-text-color;
|
|
}
|
|
}
|
|
|
|
// Notification Message
|
|
.el-message p {
|
|
line-height: 1.5em;
|
|
}
|
|
|
|
// Table
|
|
.el-table {
|
|
thead th {
|
|
color: var(--color-text-base);
|
|
background-color: var(--color-background-base);
|
|
}
|
|
tr {
|
|
color: var(--color-text-dark);
|
|
|
|
td {
|
|
border: none;
|
|
}
|
|
}
|
|
.tr {
|
|
color: var(--color-text-dark);
|
|
}
|
|
}
|
|
.el-table--striped {
|
|
.el-table__body {
|
|
tr.el-table__row--striped {
|
|
background-color: var(--color-background-light);
|
|
td {
|
|
background: none;
|
|
}
|
|
}
|
|
tr.el-table__row:hover,
|
|
tr.el-table__row:hover > td {
|
|
background-color: var(--color-primary-tint-3);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Tabs
|
|
.type-selector:focus,
|
|
.el-tabs__header:focus,
|
|
.el-tabs__nav-wrap:focus,
|
|
.el-tabs__nav-scroll:focus,
|
|
.el-tabs__nav:focus {
|
|
outline: none;
|
|
}
|
|
.el-tabs__item.is-active {
|
|
font-weight: bold;
|
|
}
|
|
|
|
|
|
// Loading Indicator
|
|
.el-loading-mask {
|
|
background-color: var(--color-foreground-xlight);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
|
|
// Pagination
|
|
.el-pager li,
|
|
.el-pagination .btn-prev,
|
|
.el-pagination .btn-next {
|
|
background: none;
|
|
color: var(--color-text-dark);
|
|
}
|
|
.el-pagination button:disabled {
|
|
background: none;
|
|
color: var(--color-text-lighter);
|
|
}
|
|
.el-pager li.btn-quicknext,
|
|
.el-pager li.btn-quickprev {
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
// Notification
|
|
.el-notification {
|
|
border-radius: 4px;
|
|
border: none;
|
|
}
|
|
|
|
.el-notification__content {
|
|
text-align: left;
|
|
word-break: break-word;
|
|
}
|
|
|
|
|
|
.tags-container {
|
|
.el-tag {
|
|
color: $tag-text-color;
|
|
font-size: 12px;
|
|
background-color: $tag-background-color;
|
|
border-radius: 12px;
|
|
height: auto;
|
|
border-color: $tag-background-color;
|
|
font-weight: 400;
|
|
|
|
.el-icon-close {
|
|
color: $tag-background-color;
|
|
background-color: $tag-close-background-color !important;
|
|
max-height: 15px;
|
|
max-width: 15px;
|
|
margin-right: 6px;
|
|
|
|
&:hover {
|
|
background-color: $tag-close-background-hover-color !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.add-option {
|
|
> * {
|
|
border: none;
|
|
}
|
|
|
|
i.el-select__caret {
|
|
color: var(--color-text-dark);
|
|
}
|
|
.el-input .el-input__inner {
|
|
&,
|
|
&:hover,
|
|
&:focus {
|
|
border-radius: var(--border-radius-base);
|
|
color: var(--color-text-dark);
|
|
background-color: var(--color-background-base);
|
|
border-color: var(--color-foreground-base);
|
|
text-align: center;
|
|
}
|
|
|
|
&::placeholder {
|
|
color: var(--color-text-dark);
|
|
opacity: 1; /** Firefox */
|
|
}
|
|
}
|
|
}
|