n8n/packages/editor-ui/src/n8n-theme.scss
Ahsan Virani 421dd72224
Introduce telemetry (#2099)
* introduce analytics

* add user survey backend

* add user survey backend

* set answers on survey submit

Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>

* change name to personalization

* lint

Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>

* N8n 2495 add personalization modal (#2280)

* update modals

* add onboarding modal

* implement questions

* introduce analytics

* simplify impl

* implement survey handling

* add personalized cateogry

* update modal behavior

* add thank you view

* handle empty cases

* rename modal

* standarize modal names

* update image, add tags to headings

* remove unused file

* remove unused interfaces

* clean up footer spacing

* introduce analytics

* refactor to fix bug

* update endpoint

* set min height

* update stories

* update naming from questions to survey

* remove spacing after core categories

* fix bug in logic

* sort nodes

* rename types

* merge with be

* rename userSurvey

* clean up rest api

* use constants for keys

* use survey keys

* clean up types

* move personalization to its own file

Co-authored-by: ahsan-virani <ahsan.virani@gmail.com>

* Survey new options (#2300)

* split up options

* fix quotes

* remove unused import

* add user created workflow event (#2301)

* simplify env vars

* fix versionCli on FE

* update personalization env

* fix event User opened Credentials panel

* fix select modal spacing

* fix nodes panel event

* fix workflow id in workflow execute event

* improve telemetry error logging

* fix config and stop process events

* add flush call on n8n stop

* ready for release

* improve telemetry process exit

* fix merge

* improve n8n stop events

Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>
Co-authored-by: Mutasem <mutdmour@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-10-19 05:57:49 +02:00

215 lines
3.6 KiB
SCSS

@import "./n8n-theme-variables";
@import "~n8n-design-system/theme/dist/index.css";
body {
background-color: $--custom-node-view-background;
}
.clickable {
cursor: pointer;
}
.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: #fff;
background-color: $--custom-table-background-main;
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: #fff;
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: #fff;
background-color: $--custom-table-background-main;
}
tr {
color: #555;
td {
border: none;
}
}
.tr {
color: #555;
}
}
.el-table--striped {
.el-table__body {
tr.el-table__row--striped {
background-color: $--custom-table-background-stripe-color;
td {
background: none;
}
}
tr.el-table__row:hover,
tr.el-table__row:hover > td {
background-color: $--custom-table-background-hover-color;
}
}
}
// Transfer list (nodes)
.el-transfer {
.el-transfer-panel {
background-color: $--custom-input-background;
// border: 1px solid #404040;
border: none;
border-radius: 10px;
padding: 1em;
.el-transfer-panel__header {
background: none;
}
}
.el-transfer__buttons button {
border: 2px solid $--color-primary;
}
.el-transfer__buttons button.is-disabled {
border: 2px solid #aaa;
background-color: #fff;
}
}
// 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 {
color: #555;
}
.el-tabs__item.is-active {
font-weight: bold;
}
// Loading Indicator
.el-loading-mask {
background-color: #fff;
opacity: 0.8;
}
// Pagination
.el-pager li,
.el-pagination .btn-prev,
.el-pagination .btn-next {
background: none;
color: #555;
}
.el-pagination button:disabled {
background: none;
color: $--custom-input-background-disabled;
}
.el-pager li.btn-quicknext,
.el-pager li.btn-quickprev {
color: #555;
}
// Notification
.el-notification {
border-radius: 0;
border: none;
}
.el-notification__content {
text-align: left;
}
.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;
}
}
}
}