Template:Import style/sticky2.css

From Wikipedia, the free encyclopedia
/* This doens't work for some reason. If someone can fix it, please do, or just delete it. */

.is-sticky {
	position: sticky;
	top: 0;
}

body.vector-sticky-header-visible .is-sticky {
	top: 3.125rem;
}

.is-sticky-head > thead {
	position: sticky;
	top: 0;
}

body.vector-sticky-header-visible .is-sticky-head > thead {
	top: 3.125rem;
}

/**
 * Fix missing borders due to position sticky and "wikitable" collapsed
 * borders.
 */
.is-sticky {
	border-collapse: separate;
	border-color: #a2a9b1; /* Set so same on mobile version (#54595d). */
	border-spacing: 0;
	border-width: 0 1px 1px 0;
}

.is-sticky td,
.is-sticky th {
	border-color: #a2a9b1; /* Set so same on mobile version (#eaecf0). */
	border-width: 1px 0 0 1px;
}