User:Coderreyansh/vector-2022.css
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .js page for this skin is at User:Coderreyansh/vector-2022.js. |
/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body */
body {
font-family: 'Segoe UI', 'Roboto', sans-serif;
background-color: #f3f3f3;
line-height: 1.6;
color: #1b1b1b;
padding: 20px;
transition: background-color 0.3s ease;
position: relative;
min-height: 100vh;
}
/* Reyansh's Wikipedia Header */
#header {
font-family: 'Segoe UI', sans-serif;
font-weight: 700;
color: #0078d4;
text-align: center;
font-size: 3.5em;
padding: 30px 0;
background: linear-gradient(145deg, #0078d4, #005a9e);
color: white;
text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border-bottom: 5px solid #005a9e;
border-radius: 0 0 20px 20px;
margin-bottom: 50px;
position: sticky;
top: 0;
z-index: 1000;
}
/* Title Animation */
#header:hover {
animation: headerPulse 1s infinite alternate;
}
@keyframes headerPulse {
0% { text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
100% { text-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); }
}
/* Dark Mode Toggle */
.dark-toggle {
position: absolute;
top: 20px;
right: 20px;
background-color: #0078d4;
border: none;
color: white;
padding: 10px 20px;
border-radius: 20px;
cursor: pointer;
font-size: 1.2em;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.dark-toggle:hover {
background-color: #005a9e;
transform: scale(1.05);
}
/* Main Content */
#content {
max-width: 950px;
margin: 0 auto;
background-color: white;
padding: 30px;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* Headings */
h1, h2, h3 {
font-family: 'Segoe UI', sans-serif;
color: #0078d4;
margin-top: 25px;
margin-bottom: 15px;
line-height: 1.3;
transition: color 0.3s ease;
}
h1 {
font-size: 2.8em;
border-bottom: 3px solid #e5e5e5;
padding-bottom: 15px;
}
h2 {
font-size: 2.1em;
}
h3 {
font-size: 1.7em;
}
/* Headings Hover Effect */
h1:hover, h2:hover, h3:hover {
color: #005a9e;
}
/* Paragraphs */
p {
margin-bottom: 20px;
font-size: 1.1em;
text-align: justify;
color: #333;
}
/* Links */
a {
color: #0078d4;
text-decoration: none;
font-weight: 600;
border-bottom: 2px solid transparent;
transition: border-color 0.2s ease, color 0.2s ease;
}
a:hover {
color: #005a9e;
border-bottom-color: #005a9e;
}
/* Blockquotes */
blockquote {
font-style: italic;
background-color: #e6f2fb;
border-left: 5px solid #0078d4;
padding: 15px 25px;
margin: 25px 0;
border-radius: 10px;
transition: background-color 0.3s ease;
}
/* Lists */
ul, ol {
margin: 25px;
padding-left: 45px;
}
li {
margin-bottom: 12px;
}
/* Table Styles */
table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
margin: 25px 0;
background-color: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
table, th, td {
border: 1px solid #e0e0e0;
}
th, td {
padding: 15px;
text-align: left;
}
th {
background-color: #f3f3f3;
color: #333;
font-weight: bold;
}
/* Modern Infobox */
.infobox {
float: right;
width: 250px;
margin: 0 0 25px 25px;
background: linear-gradient(145deg, #f3f3f3, #e0e0e0);
border: 1px solid #ccc;
padding: 15px;
font-size: 0.9em;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.infobox th {
text-align: left;
background-color: #f0f0f0;
font-weight: bold;
}
.infobox td {
padding: 8px;
}
/* Refined Buttons - Fluent UI Style */
button, .btn {
background: linear-gradient(135deg, #0078d4, #005a9e);
border: 1px solid #005a9e;
padding: 12px 24px;
color: white;
border-radius: 10px;
font-size: 1.1em;
cursor: pointer;
transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}
button:hover, .btn:hover {
background: linear-gradient(135deg, #005a9e, #004578);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
transform: translateY(-2px);
}
button:active, .btn:active {
background: linear-gradient(135deg, #004578, #003556);
box-shadow: none;
transform: translateY(1px);
}
button:focus, .btn:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.3);
}
button::before, .btn::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 300%;
height: 300%;
background: rgba(255, 255, 255, 0.3);
border-radius: 50%;
transform: translate(-50%, -50%) scale(0);
transition: transform 0.5s ease;
}
button:active::before, .btn:active::before {
transform: translate(-50%, -50%) scale(1);
transition: transform 0.2s ease;
}
/* Footer */
footer {
margin-top: 40px;
font-size: 0.9em;
color: #666;
text-align: center;
}
footer a {
color: #0078d4;
}
/* Dark Mode */
body.dark-mode {
background-color: #1e1e1e;
color: #d3d3d3;
}
body.dark-mode #content {
background-color: #2e2e2e;
color: #d3d3d3;
}
body.dark-mode blockquote {
background-color: #353535;
color: #d3d3d3;
}
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
color: #89cff0;
}
body.dark-mode a {
color: #89cff0;
}
/* Transitions and Animations */
body, #content, blockquote, button {
transition: all 0.3s ease;
}