dev

Note: After publishing, you may have to bypass your browser's cache to see the changes.

/* main */
#articleCategories .categories li,
#articleCategories .container,
.WikiaArticleInterlang,
.catlinks li,
.catlinks li:first-child
{padding: 0; margin: 0;}

/* div with cat */
.page-footer__categories,
.page-footer__languages {
	margin-top: .5rem;
}
#articleCategories .categories,
.WikiaArticleInterlang,
.catlinks ul,
#wikiPreview .mw-normal-catlinks,
#wikiPreview .iw-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
#wikiPreview .iw-list {justify-content: flex-end;}

/* cat links */
#articleCategories .categories li,
.catlinks li {
	border: none;
    font-size: 13px !important;
	line-height: 2 !important;
    height: 26px;
    transition: all .2s;
}

.CategorySelect.articlePage .add,
#articleCategories .categories a,
.WikiaArticleInterlang a,
.catlinks a,
#wikiPreview .iw-list a {
    display: block;
    font-size: 13px !important;
	line-height: 2 !important;
    height: 26px;
	padding: 0 10px;
    color: var(--theme-page-text-color) !important;
    background-color: rgb(var(--theme-link-color--rgb),.15);
    border-radius: 3px;	
}
.WikiaArticleInterlang a {font-weight: 500;}

#articleCategories .categories li.last {
    transition: .2s;
    opacity: .6;
}
.CategorySelect.articlePage .add:hover,
#articleCategories .categories li a:hover,
.catlinks li a:hover,
.WikiaArticleInterlang a:hover,
#wikiPreview .iw-list a:hover {
    background-color: rgb(var(--theme-link-color--rgb),.3);
    opacity: 1;
}
#articleCategories .category a {
	--theme-link-color: var(--theme-page-text-color);
	--theme-link-color--hover: var(--theme-page-text-color);
	line-height: 2;
	
}
/* add cat */
.CategorySelect.articlePage .toolbar {
    border: none;
    padding: 0;
}
/* Add button */
.CategorySelect.articlePage .add {
	line-height: 22px;
	font-weight: normal;
	color: gray;
    font-size: 10px !important;
	border: none;
}

/* В предпросмотре */
#wikiPreview .iw-list {text-align: right}

.mw-normal-catlinks > a {display: none;}
#wikiPreview .mw-normal-catlinks {
	color: transparent;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--theme-border-color);
	max-height: 80px;
	padding: 10px 0;
	overflow-y: auto;
}
.mw-normal-catlinks {color: transparent;}
.mw-normal-catlinks ul {margin-top: -28px;}