User:Vaileasys/Sandbox: Difference between revisions
(wiki dark theme css) |
(added color values) |
||
Line 1: | Line 1: | ||
Notes for wiki dark theme | Notes for wiki dark theme | ||
==Things to remember== | |||
*toc uses linear-gradient for <code>.sidebar-toc:after</code> selector | *toc uses linear-gradient for <code>.sidebar-toc:after</code> selector | ||
*change wikitable colours (will also modify infobox and various other templates colours) | *change wikitable colours (will also modify infobox and various other templates colours) | ||
Line 9: | Line 9: | ||
**including toc 'current' heading | **including toc 'current' heading | ||
*change search bar colours | *change search bar colours | ||
*edit window | |||
*some files need to be made white and uploaded | *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/skins/Vector/resources/common/images/search.svg?bbf78 magnifying glass] | ||
Line 20: | Line 21: | ||
**<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 | **<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 | ||
==Values== | |||
*font (body): <code>#c1ccc1</code> | |||
*font (heading): <code>e3e1df</code> | |||
*font (interface heading): <code>b0a99f</code> | |||
*font (interface selected): <code>d3cfca</code> | |||
*background (body): <code>#1f1f1f</code> | |||
*background (sidebar & vertical bar): <code>#181818</code> | |||
*border: <code>2b2b2b</code> | |||
*wikitable border: <code>484e51</code> | |||
*table row1: <code>1c1c1c</code> | |||
*table row2: <code>212121</code> | |||
*wikitable header: <code>2b2b2b</code> | |||
=== | |||
==CSS== | |||
===To change=== | |||
====Vector-2022.css==== | ====Vector-2022.css==== | ||
<syntaxhighlight lang="css"> | <syntaxhighlight lang="css"> | ||
Line 97: | Line 112: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Final=== | |||
====Common.css==== | ====Common.css==== | ||
<syntaxhighlight lang="css"> | |||
</syntaxhighlight> | |||
===No longer adding=== | |||
<syntaxhighlight lang="css"> | <syntaxhighlight lang="css"> | ||
/* gallery grow image on hover */ | /* gallery grow image on hover */ |
Revision as of 12:16, 29 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
- edit window
- 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
Values
- font (body):
#c1ccc1
- font (heading):
e3e1df
- font (interface heading):
b0a99f
- font (interface selected):
d3cfca
- background (body):
#1f1f1f
- background (sidebar & vertical bar):
#181818
- border:
2b2b2b
- wikitable border:
484e51
- table row1:
1c1c1c
- table row2:
212121
- wikitable header:
2b2b2b
CSS
To change
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 */
}
}
Final
Common.css
No longer adding
/* 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);
}