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.

5.0 KB
Raw Blame
.periscope-btn-group {
	display: inline-flex;

	.ant-btn {
		border-radius: 0;
	}
}

.periscope-btn {
	display: flex;
	justify-content: center;
	align-items: center;

	padding: 6px;

	border: 1px solid var(--periscope-btn-border-color, var(--l1-border));
	border-radius: 3px;
	background: var(--periscope-btn-background-color, var(--l2-background));
	box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
	color: var(--l2-foreground);

	&.ghost {
		box-shadow: none;
		border: none;
		background: transparent;
		color: var(--l2-foreground);
	}

	cursor: pointer;

	&.primary {
		color: var(--primary-foreground) !important;
		background-color: var(--primary-background) !important;
		border: none;
		box-shadow: 0 2px 0
			color-mix(in srgb, var(--primary-background) 9%, transparent);
	}

	&.secondary {
		border-radius: 3px;
		border: 1px solid var(--secondary-border);
		background: var(--secondary-background);
		color: var(--secondary-foreground);
	}

	&:disabled {
		opacity: 0.5;
	}

	&.link {
		color: var(--l2-foreground);

		border: none;
		box-shadow: none;
		background: transparent;
		font-size: 12px;
		font-weight: 400;
		letter-spacing: -0.07px;
		line-height: 20px;

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

	&.text {
		color: var(--l1-foreground) !important;
		background-color: transparent !important;
		border: none;
		box-shadow: none;
		box-shadow: none;
		padding: 4px 4px;

		&:hover {
			color: var(--l2-foreground) !important;
			background-color: transparent !important;
		}
	}

	&.success {
		color: var(--l1-foreground) !important;
		border-radius: 2px;
		border: 1px solid
			color-mix(in srgb, var(--success-background) 10%, transparent);
		background: color-mix(
			in srgb,
			var(--success-background) 10%,
			transparent
		) !important;
		box-shadow: none !important;
	}

	&.warning {
		color: var(--l1-foreground) !important;
		border-radius: 2px;
		border: 1px solid
			color-mix(in srgb, var(--warning-background) 10%, transparent);
		background: color-mix(
			in srgb,
			var(--warning-background) 10%,
			transparent
		) !important;
		box-shadow: none !important;
	}

	&.danger {
		border-radius: 2px;
		color: var(--l1-foreground) !important;
		background: var(--danger-background) !important;
		text-align: center;
		font-variant-numeric: slashed-zero;
		box-shadow: none !important;

		&:hover {
			border: 1px solid var(--danger-background) !important;
		}
	}
}

.periscope-tab {
	display: flex;
	align-items: center;
	gap: 8px;
}

.periscope-input {
	&.borderless {
		border: none;
		border-radius: 0;
	}
}

.periscope-input-with-label {
	display: flex;
	flex-direction: row;
	border-radius: 2px 0px 0px 2px;
	background-color: var(
		--input-with-label-background-color,
		var(--l2-background)
	);

	.label {
		font-size: 12px;

		color: var(--input-with-label-color, var(--l2-foreground));
		font-size: 12px;
		font-style: normal;
		font-weight: 500;
		line-height: 18px;
		letter-spacing: 0.56px;

		max-width: 150px;
		min-width: 80px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		padding: 0px 8px;
		border-radius: 2px 0px 0px 2px;
		border: 1px solid var(--input-with-label-border-color, var(--l2-border));
		background: var(--input-with-label-background-color, var(--l2-background));
		display: flex;
		justify-content: flex-start;
		align-items: center;
		font-weight: var(--font-weight-light);
	}

	.input {
		flex: 1;
		border-radius: 0px 2px 2px 0px;
		border-right: none;
		border-left: none;
		border-top-right-radius: 0px;
		border-bottom-right-radius: 0px;
		border-top-left-radius: 0px;
		border-bottom-left-radius: 0px;

		background: var(--input-with-label-background-color, var(--l2-background));

		min-width: 0;

		.ant-select {
			font-family: 'Space Mono', monospace !important;

			border: none;
			min-height: 36px;
			.ant-select-selection-search-input {
				min-width: max-content !important;
				max-width: 100% !important;
			}
		}

		.ant-select-selector {
			min-height: 36px;
			border-color: var(--input-with-label-border-color, var(--l2-border));
			background: var(--input-with-label-background-color, var(--l2-background));
			border-radius: 0;
			position: relative;
			margin-left: -1px;
		}

		.ant-select:hover .ant-select-selector,
		.ant-select-focused .ant-select-selector {
			z-index: 1;
		}

		.ant-select-disabled .ant-select-selector {
			background: var(
				--input-with-label-background-color,
				var(--l2-background)
			) !important;
		}

		.ant-select-selection-placeholder {
			color: var(--input-with-label-color, var(--l2-foreground));
		}
	}

	.close-btn {
		border-radius: 0px 2px 2px 0px;
		border: 1px solid var(--input-with-label-border-color, var(--l2-border));
		background: var(--input-with-label-background-color, var(--l2-background));
		height: 100%;
		width: 38px;
		margin-left: -1px;
		position: relative;

		&:hover,
		&:focus {
			z-index: 2;
		}

		&:focus:not(:focus-visible),
		&.ant-btn:focus:not(:focus-visible) {
			border-color: var(--l2-border);
			outline: none;
			box-shadow: none;
		}
	}
}