Шаблон:RulesBox/styles.css: различия между версиями
Pok (обсуждение | вклад) Новая страница: «.rules-box__block { position: relative; display: flex; justify-content: space-between; border-radius: var(--border-radius-medium); box-shadow: var(--box-shadow-medium); } .rules-box__container { } .rules-box__title { font-size: 1.2em; } .rules-box__content { } .rules-box__container--addition { position: absolute; max-height: 85%; top: 0; right: 0; width: 20%; min-width: 300px; border-radius: 0.3em; background-color: #34343f; borde...» |
Pok (обсуждение | вклад) мНет описания правки |
||
| (не показаны 4 промежуточные версии этого же участника) | |||
| Строка 4: | Строка 4: | ||
justify-content: space-between; | justify-content: space-between; | ||
border-radius: var(--border-radius-medium); | border-radius: var(--border-radius-medium); | ||
box-shadow: var(--box-shadow-medium); | |||
} | } | ||
| Строка 12: | Строка 12: | ||
.rules-box__title { | .rules-box__title { | ||
font-size: | font-size: var(--font-size-xl); | ||
} | } | ||
| Строка 20: | Строка 20: | ||
.rules-box__container--addition { | .rules-box__container--addition { | ||
display: flex; | |||
flex-direction: column; | |||
position: absolute; | position: absolute; | ||
max-height: 85%; | max-height: 85%; | ||
| Строка 25: | Строка 27: | ||
right: 0; | right: 0; | ||
width: 20%; | width: 20%; | ||
min-width: clamp(200px, 20vw, 300px); | |||
border-radius: | border-radius: var(--border-radius-medium); | ||
background-color: | background-color: var(--theme-bg-color-250); | ||
border-left: 4px solid | border-left: 4px solid var(--theme-border-color-100); | ||
box-shadow: | box-shadow: var(--box-shadow); | ||
} | } | ||
.rules-box__container--addition { | .rules-box__container--addition, | ||
.rules-box__container--addition .mw-collapsible-toggle { | |||
position: absolute; | |||
padding: 10px 12px; | padding: 10px 12px; | ||
} | } | ||
.rules-box__title--addition { | .rules-box__title--addition { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Строка 44: | Строка 46: | ||
.rules-box__content--addition { | .rules-box__content--addition { | ||
overflow-y: auto; | overflow-y: auto; | ||
margin-top: 10px; | margin-top: 10px; | ||
padding-right: 10px; | |||
} | } | ||
| Строка 61: | Строка 62: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
width: 100%; | width: 100%; | ||
border | border: none; | ||
margin-top: 20px; | margin-top: 20px; | ||
} | } | ||
} | } | ||