mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.4 KiB
63 lines
1.4 KiB
@import '_mixins';
|
|
@import '_vars';
|
|
|
|
$trigger-content-changed-text: #3389ff;
|
|
$trigger-content-changed-icon: #297ff6;
|
|
|
|
$action-webhook-text: #4bb958;
|
|
$action-webhook-icon: #47b353;
|
|
|
|
$action-algolia-text: #0d9bf9;
|
|
$action-algolia-icon: #1690f5;
|
|
|
|
@mixin build-element($text-color, $icon-color) {
|
|
& {
|
|
background: $text-color;
|
|
}
|
|
|
|
&:hover {
|
|
background: $icon-color;
|
|
}
|
|
|
|
.rule-element-icon {
|
|
background: $icon-color;
|
|
}
|
|
}
|
|
|
|
.rule-element {
|
|
& {
|
|
@include truncate;
|
|
@include transition(background-color .4s ease);
|
|
color: $color-dark-foreground;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
line-height: 2.8rem;
|
|
font-size: 1rem;
|
|
font-weight: normal;
|
|
padding-right: .8rem;
|
|
width: 15rem;
|
|
}
|
|
|
|
&-icon {
|
|
height: 3rem;
|
|
display: inline-block;
|
|
line-height: 3rem;
|
|
font-size: 1.2rem;
|
|
font-weight: normal;
|
|
margin: 0;
|
|
margin-right: .5rem;
|
|
padding: 0 .8rem;
|
|
}
|
|
}
|
|
|
|
.rule-element-ContentChanged {
|
|
@include build-element($trigger-content-changed-text, $trigger-content-changed-icon)
|
|
}
|
|
|
|
.rule-element-Webhook {
|
|
@include build-element($action-webhook-text, $action-webhook-icon)
|
|
}
|
|
|
|
.rule-element-Algolia {
|
|
@include build-element($action-algolia-text, $action-algolia-icon)
|
|
}
|