// Copyright (c) 2017-2025, CKSource Holding sp. z o.o. All rights reserved.
// For licensing, see LICENSE.md.

.main__content--api {
	.main-description {
		width: 100%;

		&__outer {
			display: flex;
			position: relative;

			.see-source {
				position: absolute;

				// To keep vertical align with API dropdown elements.
				right: 5px;

				// To keep vertical align with paragraph.
				top: 0.2em;

				// To keep "See source" link clickable.
				z-index: 1;

				// If "See source" exists, we need to add spacing to first paragraph to prevent overlapping text.
				+ .main-description p:first-child{
					padding-right: 100px;
				}
			}
		}

	}
}
