MediaWiki:Tabber.css: Difference between revisions
From Elwiki
(Created page with "→Tabs styling (new): div.tabdiv > ul > li:hover, div.tabdiv > ul > li.active { background: var(--accent-color); border-bottom-color: var(--accent-color); color: white; } div.tabdiv > ul > li.active { cursor: initial; } div.tabdiv > ul > li { box-shadow: 0 0 0 1px var(--border-color); transition: border-color 0.3s, background-color 0.3s, color 0.2s; cursor: pointer; padding: 5px 15px; height: auto; line-height: normal; ma...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 191: | Line 191: | ||
place-content: center; | place-content: center; | ||
place-items: center; | place-items: center; | ||
} | |||
div.tabber-new .google-auto-placed{ | |||
display: none; | |||
} | } | ||
/* Tabs styling (new) end */ | /* Tabs styling (new) end */ |
Latest revision as of 07:19, 15 February 2024
/* Tabs styling (new) */
div.tabdiv > ul > li:hover,
div.tabdiv > ul > li.active {
background: var(--accent-color);
border-bottom-color: var(--accent-color);
color: white;
}
div.tabdiv > ul > li.active {
cursor: initial;
}
div.tabdiv > ul > li {
box-shadow: 0 0 0 1px var(--border-color);
transition: border-color 0.3s, background-color 0.3s, color 0.2s;
cursor: pointer;
padding: 5px 15px;
height: auto;
line-height: normal;
margin-right: 3px !important;
margin-bottom: 0;
color: var(--text-color);
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
background-color: var(--theme-tone-2);
border-radius: 4px 4px 0 0;
font-weight: 500;
}
div.tabdiv > ul > li a {
transition: color 0.3s;
color: var(--inactive-color) !important;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
}
div.tabdiv > ul > li.active a:not(.infobox a),
div.tabdiv > ul > li:hover a:not(.infobox a) {
color: white !important;
}
div.tabdiv div.tabdiv:not(.forceport) > ul,
table.infobox div.tabdiv:not(.forceport) > ul,
div.tabdiv,
div.tabdiv > ul,
div.tabdiv.forceland > ul {
border: none;
}
.image > div.tabdiv > ul {
padding-top: 7px;
padding-bottom: 5px;
}
div.tabber-new {
display: flex;
flex-direction: column;
}
div.tabber-new > ul {
display: flex;
flex-wrap: wrap;
}
.tabber-new .tabber-tab {
color: var(--inactive-color);
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
background-color: var(--theme-tone-2);
border-radius: 4px 4px 0 0;
margin-left: 1px;
}
div.tabdiv.tabber-new > div {
padding: 0;
}
.tabber-center .tabber-ul {
justify-content: center;
}
div.tabber-vertical {
display: flex !important;
flex-direction: row;
}
.tabber-vertical > .tabber-ul .tabber-tab:first-child {
margin-top: 0;
}
.tabber-vertical > .tabber-ul {
flex-direction: column;
margin-right: 25px;
}
div.tabber-border div.tabber-content {
border: 1px solid var(--border-color);
padding: 15px;
border-radius: 0 5px 5px 5px;
}
div.tabber-border.tabber-padding > div.tabber-content {
padding: 10px 20px;
}
.tabber-content > table:first-child {
margin-top: 0;
}
.tabber-content > h2 {
margin-top: 0.5em;
}
.tabber-content p:not(.fadeout-container):first-child {
margin-top: 0;
}
.tabber-content p:not(.fadeout-container):last-child {
margin-bottom: 0;
}
.tabber-new.fancy > ul {
gap: 0 6px;
}
.tabber-new.fancy > .tabber-ul .tabber-tab,
.tabber-new.fancy > .tabber-ul .tabber-tab.active {
background-color: transparent;
transform: skew(-10deg);
border-radius: 0;
text-align: center;
/*color: #5f5f5f;*/
border: none;
transition: none;
font-weight: 500;
z-index: 2;
box-shadow: none;
margin-left: 0;
}
.tabber-new.fancy > .tabber-ul .tabber-tab:hover,
.tabber-new.fancy > .tabber-ul .tabber-tab.active {
background-image: linear-gradient(to left bottom, #00a5ea 0, transparent 70%),
linear-gradient(to left top, #20b7e5 49px, #00f6ff 50px);
color: white;
}
.tabber-new.fancy > .tabber-ul .tabber-tab::after {
content: "";
display: block;
opacity: 0;
pointer-events: none;
position: absolute;
width: 18px;
right: -11px;
bottom: -8px;
height: 18px;
background-repeat: no-repeat;
background-image: url("https://elwiki.net/wiki/images/6/64/Tabber_-_Arrow.png");
}
.tabber-new.fancy > .tabber-ul .tabber-tab.active::after {
opacity: 1;
}
.tabber-new.fancy > .tabber-content table {
border-color: #bdbdbd;
}
.tabber-new.fancy > .tabber-ul .tabber-tab-content {
transform: skew(10deg);
display: block;
}
.infobox-new .tabber-infobox-full-size > .tabber-ul {
place-content: unset;
place-items: unset;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 1px;
}
.infobox-new .tabber-infobox-full-size > .tabber-ul > .tabber-tab {
border: 0;
outline: 1px solid var(--border-color);
display: inline-flex;
place-content: center;
place-items: center;
}
div.tabber-new .google-auto-placed{
display: none;
}
/* Tabs styling (new) end */