MediaWiki:Common.css: различия между версиями
Shihov (обсуждение | вклад) Нет описания правки |
Shihov (обсуждение | вклад) Нет описания правки |
||
Строка 1: | Строка 1: | ||
.category-tagcloud.auto { | |||
padding: 1em; | |||
border-radius: 12px; | |||
background: #fafafa; | |||
border: 1px solid #ccc; | |||
max-width: 100%; | |||
box-shadow: 0 0 4px rgba(0,0,0,0.1); | |||
line-height: 1.6; | |||
font-family: sans-serif; | |||
} | |||
.category-tagcloud.auto a { | |||
margin: 4px; | |||
display: inline-block; | |||
color: #223388; | |||
text-decoration: none; | |||
transition: all 0.2s ease; | |||
} | |||
/* Имитируем облако — рандомные размеры и веса */ | |||
.category-tagcloud.auto a:nth-child(6n+1) { font-size: 90%; font-weight: 400; } | |||
.category-tagcloud.auto a:nth-child(6n+2) { font-size: 110%; font-weight: 500; } | |||
.category-tagcloud.auto a:nth-child(6n+3) { font-size: 120%; font-weight: 600; } | |||
.category-tagcloud.auto a:nth-child(6n+4) { font-size: 140%; font-weight: 700; } | |||
.category-tagcloud.auto a:nth-child(6n+5) { font-size: 100%; font-weight: 400; } | |||
.category-tagcloud.auto a:nth-child(6n) { font-size: 130%; font-weight: 500; } | |||
.category-tagcloud.auto a:hover { | |||
color: #0055aa; | |||
text-decoration: underline; | |||
} | |||
.category-tagcloud { | .category-tagcloud { | ||
border: 2px solid #cccccc; | border: 2px solid #cccccc; |