MediaWiki:Common.css: Difference between revisions

From ICTED-WIKI
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* Root Theme Variables */
:root {
  --primary: #4f46e5;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --bg: #f9fafb;
  --text: #1f2937;
  --card-bg: #ffffff;
}


.myCustomBox {
/* Dark Mode Support */
     background-color: #e6f7ff;
@media (prefers-color-scheme: dark) {
    border: 2px solid #3399ff;
  :root {
    padding: 12px;
     --bg: #0f172a;
    margin: 10px 0;
    --text: #e5e7eb;
    border-radius: 5px;
    --card-bg: #1e293b;
  }
}
 
/* Global Styles */
body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text);
  margin: 0;
  padding: 0;
}
 
/* Main Content Container */
.wiki-container {
  max-width: 1000px;
  margin: 40px auto;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  animation: fadeIn 0.6s ease;
}
 
/* Headings */
h1, h2, h3 {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
 
/* Links */
a {
  color: var(--secondary);
  text-decoration: none;
  position: relative;
}
 
a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--accent);
  left: 0;
  bottom: -3px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
 
a:hover::after {
  transform: scaleX(1);
}
 
/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  color: white;
  padding: 20px;
  border-radius: 12px;
}
 
/* Cards / Sections */
.card {
  background: var(--card-bg);
  border-left: 5px solid var(--accent);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
 
.card:hover {
  transform: translateY(-5px);
}
 
/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
}
 
th {
  background: var(--primary);
  color: white;
  padding: 10px;
}
 
td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}
 
tr:hover {
  background: rgba(0,0,0,0.05);
}
 
/* Buttons */
button {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border: none;
  padding: 10px 20px;
  color: white;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
 
button:hover {
  transform: scale(1.05);
}
 
/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
}

Revision as of 04:55, 24 March 2026

/* Root Theme Variables */
:root {
  --primary: #4f46e5;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --bg: #f9fafb;
  --text: #1f2937;
  --card-bg: #ffffff;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --text: #e5e7eb;
    --card-bg: #1e293b;
  }
}

/* Global Styles */
body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* Main Content Container */
.wiki-container {
  max-width: 1000px;
  margin: 40px auto;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  animation: fadeIn 0.6s ease;
}

/* Headings */
h1, h2, h3 {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

/* Links */
a {
  color: var(--secondary);
  text-decoration: none;
  position: relative;
}

a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--accent);
  left: 0;
  bottom: -3px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

a:hover::after {
  transform: scaleX(1);
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  color: white;
  padding: 20px;
  border-radius: 12px;
}

/* Cards / Sections */
.card {
  background: var(--card-bg);
  border-left: 5px solid var(--accent);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
}

th {
  background: var(--primary);
  color: white;
  padding: 10px;
}

td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

tr:hover {
  background: rgba(0,0,0,0.05);
}

/* Buttons */
button {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border: none;
  padding: 10px 20px;
  color: white;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

button:hover {
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}