User:Vaileasys/Sandbox: Difference between revisions
(→Extra blank heading: final) |
(wiki dark theme css) |
||
Line 1: | Line 1: | ||
Notes for wiki dark theme | |||
== | ===Things to remember=== | ||
==== | *toc uses linear-gradient for <code>.sidebar-toc:after</code> selector | ||
*change wikitable colours (will also modify infobox and various other templates colours) | |||
**also wikitable caption color | |||
*check to make sure toggleboxes and navboxes use wikitable colors for background-color - otherwise modify | |||
*change sidebar heading colours | |||
**including toc 'current' heading | |||
*change search bar colours | |||
*some files need to be made white and uploaded | |||
**[https://pzwiki.net/w/skins/Vector/resources/common/images/search.svg?bbf78 magnifying glass] | |||
**[https://pzwiki.net/w/load.php?modules=skins.vector.icons.js&image=speechBubbles&format=original&lang=en&skin=vector-2022&version=px0b5 talk/discuss] | |||
**[https://pzwiki.net/w/load.php?modules=skins.vector.icons.js&image=history&format=original&skin=vector-2022&version=px0b5 history] | |||
**[https://pzwiki.net/w/load.php?modules=skins.vector.icons&image=unStar&format=rasterized&skin=vector-2022&version=1gny3 watchlist star] | |||
**[https://pzwiki.net/w/load.php?modules=skins.vector.icons&image=userAvatar&format=rasterized&skin=vector-2022&version=1gny3 user avatar] | |||
**[https://pzwiki.net/w/skins/Vector/resources/common/images/arrow-down.svg?9426f down arrow] | |||
**[https://pzwiki.net/w/load.php?modules=skins.vector.icons&image=watchlist&format=original&lang=en&skin=vector-2022&version=1gny3 watchlist] | |||
**<code>data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E %3Ctitle%3E chevron %3C/title%3E %3Cpath d=%22m9 2 1.3 1.3L3.7 10l6.6 6.7L9 18l-8-8 8-8zm8.5 0L19 3.3 12.2 10l6.7 6.7-1.4 1.3-8-8 8-8z%22/%3E %3C/svg%3E</code> hide sidebar | |||
**<code>data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E %3Ctitle%3E menu %3C/title%3E %3Cpath d=%22M1 3v2h18V3zm0 8h18V9H1zm0 6h18v-2H1z%22/%3E %3C/svg%3E</code> show sidebar | |||
===CSS=== | |||
====Vector-2022.css==== | |||
<syntaxhighlight lang="css"> | |||
@media screen { | |||
body { | |||
background-color: #f8f9fa; /*vertical bar background color*/ | |||
color: #202122; /*body font color*/ | |||
} | |||
.mw-page-container { | |||
background-color: #ffffff; /* body background color */ | |||
{ | } | ||
/* sticky header that displays after scrolling */ | |||
.vector-sticky-header { | |||
{ | background: #ffffff; | ||
background-color: #fffffff7; | |||
border-bottom: 1px solid #eaecf0; | |||
} | |||
{ | |||
.mw-sidebar { | |||
background-color: #f8f9fa /* sidebar background color */ | |||
{ | } | ||
.sidebar-toc { | |||
background-color: #ffffff; /* toc background color */ | |||
{ | } | ||
{ | |||
/* toc button */ | |||
#vector-toc-collapsed-button { | |||
{ | display: none; | ||
{ | float: left; | ||
margin-right: 4px; | |||
margin-left: -0.75em; | |||
{ | padding: 7px 10px 7px 10px; | ||
{ | background-color: #ffffff | ||
} | |||
/* toc button (hover/active) */ | |||
#vector-toc-collapsed-button:hover,#vector-toc-collapsed-button:active { | |||
background-color: #f8f9fa | |||
} | |||
/* Code */ | |||
pre,code,.mw-code { | |||
background-color: #f8f9fa; | |||
color: #000; | |||
border: 1px solid #eaecf0 | |||
} | |||
/* category links bar */ | |||
.catlinks { | |||
border: 1px solid #a2a9b1; | |||
background-color: #f8f9fa; | |||
} | |||
/* headings */ | |||
h1,h2,h3,h4,h5,h6 { | |||
color: #000; | |||
} | |||
/* gallery thumb */ | |||
li.gallerybox div.thumb { | |||
border: 1px solid #c8ccd1; | |||
background-color: #f8f9fa | |||
} | |||
} | |||
@media screen and (min-width: 1000px) { | |||
/* weird toc gradient */ | |||
.vector-toc-not-collapsed .sidebar-toc:after { | |||
background: linear-gradient(rgba(255,255,255,0),#ffffff); /* change to none */ | |||
} | |||
} | |||
</syntaxhighlight> | |||
====Common.css==== | |||
<syntaxhighlight lang="css"> | |||
/* gallery grow image on hover */ | |||
li.gallerybox div.thumb img { | |||
transition: all 0.2s ease-in-out | |||
} | |||
li.gallerybox div.thumb img:hover { | |||
transform: scale(1.05); | |||
} | |||
</syntaxhighlight> |
Revision as of 14:48, 25 March 2024
Notes for wiki dark theme
Things to remember
- toc uses linear-gradient for
.sidebar-toc:after
selector - change wikitable colours (will also modify infobox and various other templates colours)
- also wikitable caption color
- check to make sure toggleboxes and navboxes use wikitable colors for background-color - otherwise modify
- change sidebar heading colours
- including toc 'current' heading
- change search bar colours
- some files need to be made white and uploaded
- magnifying glass
- talk/discuss
- history
- watchlist star
- user avatar
- down arrow
- watchlist
data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E %3Ctitle%3E chevron %3C/title%3E %3Cpath d=%22m9 2 1.3 1.3L3.7 10l6.6 6.7L9 18l-8-8 8-8zm8.5 0L19 3.3 12.2 10l6.7 6.7-1.4 1.3-8-8 8-8z%22/%3E %3C/svg%3E
hide sidebardata:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E %3Ctitle%3E menu %3C/title%3E %3Cpath d=%22M1 3v2h18V3zm0 8h18V9H1zm0 6h18v-2H1z%22/%3E %3C/svg%3E
show sidebar
CSS
Vector-2022.css
@media screen {
body {
background-color: #f8f9fa; /*vertical bar background color*/
color: #202122; /*body font color*/
}
.mw-page-container {
background-color: #ffffff; /* body background color */
}
/* sticky header that displays after scrolling */
.vector-sticky-header {
background: #ffffff;
background-color: #fffffff7;
border-bottom: 1px solid #eaecf0;
}
.mw-sidebar {
background-color: #f8f9fa /* sidebar background color */
}
.sidebar-toc {
background-color: #ffffff; /* toc background color */
}
/* toc button */
#vector-toc-collapsed-button {
display: none;
float: left;
margin-right: 4px;
margin-left: -0.75em;
padding: 7px 10px 7px 10px;
background-color: #ffffff
}
/* toc button (hover/active) */
#vector-toc-collapsed-button:hover,#vector-toc-collapsed-button:active {
background-color: #f8f9fa
}
/* Code */
pre,code,.mw-code {
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0
}
/* category links bar */
.catlinks {
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
}
/* headings */
h1,h2,h3,h4,h5,h6 {
color: #000;
}
/* gallery thumb */
li.gallerybox div.thumb {
border: 1px solid #c8ccd1;
background-color: #f8f9fa
}
}
@media screen and (min-width: 1000px) {
/* weird toc gradient */
.vector-toc-not-collapsed .sidebar-toc:after {
background: linear-gradient(rgba(255,255,255,0),#ffffff); /* change to none */
}
}
Common.css
/* gallery grow image on hover */
li.gallerybox div.thumb img {
transition: all 0.2s ease-in-out
}
li.gallerybox div.thumb img:hover {
transform: scale(1.05);
}