Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

Шаблон:Tabs/styles.css: различия между версиями

Материал из YastreWiki
Новая страница: «.tab-container { margin: 1em 0; } .tabs-nav { display: flex; margin-bottom: -1px; padding-left: 0; list-style: none; border-bottom: 1px solid #ccc; white-space: nowrap; overflow-x: auto; } .tabs-nav a.tab-link { display: inline-block; padding: 0.6em 1.2em; border: 1px solid transparent; border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; background-color: #f8f9fa; color: #007bff;...»
 
Нет описания правки
Метка: ручная отмена
 
(не показано 16 промежуточных версий этого же участника)
Строка 1: Строка 1:
.tab-container {
.tab-container {
    margin: 1em 0;
max-height: 600px;
height: auto;
max-width: 400px;
width: 300px;
margin: 1em 0;
background: #12141A;
border: 1px solid #3A3D4A;
border-radius: 0.25rem;
overflow: hidden;
}
}


.tabs-nav {
.tabs-nav {
     display: flex;
     display: flex;
     margin-bottom: -1px;
     flex-wrap: wrap;
     padding-left: 0;
    background: #1A1D26;
     list-style: none;
}
     border-bottom: 1px solid #ccc;
 
.tab-link {
    padding: 10px 20px;
    cursor: pointer;
     color: #b0b0b0;
     transition: 0.2s;
     border-bottom: 2px solid #3A3D4A;
     white-space: nowrap;
     white-space: nowrap;
     overflow-x: auto;
     flex-grow: 1;
    text-align: center;
}
 
.tab-link:hover {
    background: #222631;
    color: #fff;
}
 
.tab-link.active {
    background: #12141A;
    color: #fff;
    border-bottom-color: #2962ff;
}
}


.tabs-nav a.tab-link {
.tab-link:last-child {
    display: inline-block;
     border-right: none;
    padding: 0.6em 1.2em;
    border: 1px solid transparent;
    border-top-left-radius: 0.25em;
     border-top-right-radius: 0.25em;
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
    margin-right: 2px;
    transition: all 0.2s ease-in-out;
}
}


.tabs-nav a.tab-link.active {
.tab-content {
     background-color: #ffffff;
     padding: 15px;
    border-color: #ccc;
     color: #e0e0e0;
    border-bottom-color: #ffffff;
    font-weight: bold;
     color: #212529;
}
}


.tab-content .tab-pane {
.tab-pane {
     display: none;
     display: none;
    padding: 1em;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #ffffff;
    border-radius: 0 0 0.25em 0.25em;
}
}


.tab-content .tab-pane.active {
.tab-pane.active {
     display: block;
     display: block;
}
}

Текущая версия от 06:59, 13 апреля 2026

.tab-container {
	max-height: 600px;
	height: auto;
	max-width: 400px;
	width: 300px;
	margin: 1em 0;
	background: #12141A;
	border: 1px solid #3A3D4A;
	border-radius: 0.25rem;
	overflow: hidden;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    background: #1A1D26;
}

.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    color: #b0b0b0;
    transition: 0.2s;
    border-bottom: 2px solid #3A3D4A;
    white-space: nowrap;
    flex-grow: 1;
    text-align: center;
}

.tab-link:hover {
    background: #222631;
    color: #fff;
}

.tab-link.active {
    background: #12141A;
    color: #fff;
    border-bottom-color: #2962ff;
}

.tab-link:last-child {
    border-right: none;
}

.tab-content {
    padding: 15px;
    color: #e0e0e0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}