Участник:Kemran2933/box: различия между версиями
Добавлен раскрывающийся блок в стиле TGUI: Tabs и CSS, без JavaScript |
Доступность переключателя с клавиатуры |
||
| Строка 3: | Строка 3: | ||
.kemran-box.tabs-togglebox > .tabs-container {display:grid; border:0; padding:0; background:transparent;} | .kemran-box.tabs-togglebox > .tabs-container {display:grid; border:0; padding:0; background:transparent;} | ||
.kemran-box.tabs-togglebox > .tabs-container > .tabs-input {position:absolute; width:1px; height:1px; margin:-1px; padding:0; opacity:0; overflow:hidden;} | .kemran-box.tabs-togglebox > .tabs-container > .tabs-input {display:block; position:absolute; width:1px; height:1px; margin:-1px; padding:0; opacity:0; overflow:hidden;} | ||
.kemran-box.tabs-togglebox > .tabs-container > .tabs-label {display:flex; align-items:center; gap:7px; box-sizing:border-box; width:100%; min-height:27px; margin:0; padding:4px 9px; border:0; border-radius:0; background:transparent; color:inherit; font:700 12px/18px Arial,sans-serif; cursor:pointer; user-select:none;} | .kemran-box.tabs-togglebox > .tabs-container > .tabs-label {display:flex; align-items:center; gap:7px; box-sizing:border-box; width:100%; min-height:27px; margin:0; padding:4px 9px; border:0; border-radius:0; background:transparent; color:inherit; font:700 12px/18px Arial,sans-serif; cursor:pointer; user-select:none;} | ||
.kemran-box .tabs-label::before {content:""; width:5px; height:5px; flex:none; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(-45deg); transition:transform .25s ease;} | .kemran-box .tabs-label::before {content:""; width:5px; height:5px; flex:none; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(-45deg); transition:transform .25s ease;} | ||