Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

8.7 KB
Raw Blame
.evaluation-cadence-container {
	border-bottom: 1px solid var(--l1-border);
	.evaluation-cadence-item {
		border-bottom: none !important;
	}

	.edit-custom-schedule {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 16px;

		.ant-typography {
			color: var(--l1-foreground);
			font-size: 13px;

			.highlight {
				background-color: var(--l1-background);
				padding: 4px 8px;
				border-radius: 4px;
				color: var(--l2-foreground);
				font-weight: 500;
				margin: 0 4px;
				font-size: 13px;
			}
		}

		.ant-btn-group {
			.ant-btn {
				border: 1px solid var(--l1-border);
				color: var(--l2-foreground);
				font-size: 13px;
				display: flex;
				align-items: center;
				gap: 8px;
			}
		}
	}
}

.evaluation-cadence-details {
	margin: 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	border: 1px solid var(--l1-border);

	.evaluation-cadence-details-title {
		color: var(--l1-foreground);
		font-size: 13px;
		font-weight: 500;
		padding-left: 16px;
		padding-top: 16px;
	}

	.query-section-tabs {
		display: flex;
		align-items: center;

		.query-section-query-actions {
			display: flex;
			border-radius: 2px;
			border: 1px solid var(--l1-border);
			background: var(--l2-background);
			flex-direction: row;
			border-bottom: none;
			margin-bottom: -1px;

			.explorer-view-option {
				display: flex;
				align-items: center;
				justify-content: center;
				flex-direction: row;
				border: none;
				padding: 9px;
				box-shadow: none;
				border-radius: 0px;
				border-left: 0.5px solid var(--l1-border);
				border-bottom: 0.5px solid var(--l1-border);
				width: 120px;
				height: 36px;

				gap: 8px;

				&.active-tab {
					background-color: var(--l1-background);
					border-bottom: none;

					&:hover {
						background-color: var(--l1-background) !important;
					}
				}

				&:disabled {
					background-color: var(--l2-background);
					opacity: 0.6;
				}

				&:first-child {
					border-left: 1px solid transparent;
				}

				&:hover {
					background-color: transparent !important;
					border-left: 1px solid transparent !important;
					color: var(--l1-foreground);
				}
			}
		}
	}

	.evaluation-cadence-details-content {
		display: flex;
		gap: 16px;
		border-top: 1px solid var(--l1-border);
		padding: 16px;

		.evaluation-cadence-details-content-row {
			display: flex;
			flex-direction: column;
			gap: 16px;
			flex: 1;
			height: 500px;
			overflow-y: scroll;
			padding-right: 16px;

			.editor-view,
			.rrule-view {
				display: flex;
				flex-direction: column;
				gap: 16px;

				textarea {
					height: 200px;
					background: var(--l2-background);
					border: 1px solid var(--l1-border);
					border-radius: 4px;
					color: var(--l2-foreground) !important;
					font-family: 'Space Mono';
					font-size: 13px;

					&::placeholder {
						font-family: 'Space Mono';
						color: var(--muted-foreground) !important;
					}
				}

				.select-group {
					display: flex;
					flex-direction: column;
					gap: 4px;

					.ant-typography {
						color: var(--l1-foreground);
						font-size: 13px;
						font-weight: 500;
					}

					.ant-select {
						border: 1px solid var(--l1-border);

						.ant-select-selector {
							background-color: var(--l2-background);
							border: 1px solid var(--l1-border);
							color: var(--l1-foreground);

							&:hover {
								border-color: var(--l1-border);
							}

							&:focus {
								border-color: var(--l1-border);
							}
						}
					}

					.ant-picker {
						background-color: var(--l2-background);
						border: 1px solid var(--l1-border);

						.ant-picker-input {
							background-color: var(--l2-background);
							color: var(--l1-foreground);
						}
					}
				}
			}

			.buttons-row {
				display: flex;
				align-items: center;
				gap: 16px;
				margin-top: 16px;
			}

			.no-schedule {
				display: flex;
				align-items: center;
				justify-content: center;
				flex-direction: column;
				gap: 8px;
				height: 100%;
				color: var(--l1-foreground);
				font-size: 13px;
			}

			.schedule-preview {
				display: flex;
				flex-direction: column;
				width: 100%;
				flex: 1;
				min-height: 0;

				.schedule-preview-header {
					display: flex;
					align-items: center;
					gap: 8px;
					padding: 8px 0;
					background-color: var(--card);
					position: sticky;
					top: 0;
					z-index: 1;
					border-bottom: 1px solid var(--l1-border);

					.schedule-preview-title {
						color: var(--l2-foreground);
						font-size: 13px;
						font-weight: 500;
					}
				}

				.schedule-preview-list {
					display: flex;
					flex-direction: column;
					gap: 0;
					flex: 1;
					overflow-y: auto;
					padding-top: 8px;

					&::-webkit-scrollbar {
						width: 0.1rem;
					}

					&::-webkit-scrollbar-track {
						background: transparent;
					}

					&::-webkit-scrollbar-thumb {
						background: var(--l1-border);
					}

					&::-webkit-scrollbar-thumb:hover {
						background: var(--l3-background);
					}

					.schedule-preview-item {
						display: flex;
						align-items: center;
						gap: 12px;
						padding: 8px 0;

						.schedule-preview-timeline {
							display: flex;
							flex-direction: column;
							align-items: center;
							min-width: 20px;

							.schedule-preview-timeline-line {
								width: 1px;
								height: 20px;
								background-color: var(--l2-background);
							}
						}

						.schedule-preview-content {
							display: flex;
							align-items: center;
							gap: 12px;
							flex: 1;

							.schedule-preview-date {
								color: var(--l2-foreground);
								font-size: 13px;
								font-weight: 400;
								white-space: nowrap;
							}

							.schedule-preview-separator {
								flex: 1;
								height: 1px;
								border-top: 1px dashed var(--l1-border);
							}

							.schedule-preview-timezone {
								color: var(--muted-foreground);
								font-size: 12px;
								font-weight: 400;
								white-space: nowrap;
							}
						}
					}
				}
			}
		}
	}
}

.ant-picker-date-panel {
	background-color: var(--l2-background);
	border: 1px solid var(--l1-border);
}

.ant-picker-date-panel-layout {
	background-color: var(--l2-background);
	border: 1px solid var(--l1-border);
}

.ant-picker-date-panel-header {
	background-color: var(--l2-background);
	border: 1px solid var(--l1-border);
}

// Custom modal styles for preview
.evaluation-cadence-preview-modal {
	.ant-modal-content {
		background-color: var(--l2-background);
		border: 1px solid var(--l1-border);
		border-radius: 8px;
	}

	.ant-modal-header {
		background-color: var(--l2-background);
		border-bottom: 1px solid var(--l1-border);
		padding: 16px 20px;

		.ant-modal-title {
			color: var(--l1-foreground);
			font-size: 16px;
			font-weight: 600;
		}
	}

	.ant-modal-close {
		color: var(--l2-foreground);
		top: 16px;
		right: 20px;

		&:hover {
			color: var(--l1-foreground);
		}
	}

	.ant-modal-body {
		padding: 0;
		background-color: var(--l2-background);
	}

	.evaluation-cadence-details {
		border: none;
		margin: 0;

		.evaluation-cadence-details-content {
			border-top: none;
			padding: 0;

			.evaluation-cadence-details-content-row {
				height: auto;
				max-height: 60vh;
				overflow-y: auto;
				padding: 12px;

				&::-webkit-scrollbar {
					width: 6px;
				}

				&::-webkit-scrollbar-track {
					background: transparent;
				}

				&::-webkit-scrollbar-thumb {
					background: var(--l2-background);
					border-radius: 3px;
				}

				&::-webkit-scrollbar-thumb:hover {
					background: var(--l3-background);
				}

				.schedule-preview {
					.schedule-preview-header {
						background-color: var(--card);
						border-bottom: 1px solid var(--l1-border);
						padding: 12px 16px;
						margin: -12px -12px 16px -12px;

						.schedule-preview-title {
							color: var(--l1-foreground);
							font-size: 13px;
							font-weight: 500;
						}
					}

					.schedule-preview-list {
						.schedule-preview-item {
							padding: 12px 0;
							border-bottom: 1px solid var(--l1-border);

							&:last-child {
								border-bottom: none;
							}

							.schedule-preview-timeline {
								.schedule-preview-timeline-line {
									width: 2px;
									height: 24px;
									background-color: var(--primary-background);
									border-radius: 1px;
								}
							}

							.schedule-preview-content {
								.schedule-preview-date {
									color: var(--l1-foreground);
									font-size: 13px;
									font-weight: 500;
								}

								.schedule-preview-timezone {
									background-color: var(--l1-background);
									padding: 4px 8px;
									border-radius: 4px;
									font-size: 12px;
								}
							}
						}
					}
				}

				.no-schedule {
					min-height: 300px;
					padding: 40px 12px;

					svg {
						color: var(--muted-foreground);
					}
				}
			}
		}
	}
}

// Light mode styles