No edit summary |
No edit summary |
||
Line 137: | Line 137: | ||
border-color: #007acc; |
border-color: #007acc; |
||
outline: none; |
outline: none; |
||
} |
|||
/* Modern styling for the TOC box */ |
|||
#toc { |
|||
background-color: #f9f9f9; /* Light background */ |
|||
border: 1px solid #ddd; /* Light border for separation */ |
|||
border-radius: 10px; /* Rounded corners for a modern look */ |
|||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */ |
|||
padding: 15px; |
|||
margin-bottom: 20px; |
|||
max-width: 300px; /* Adjust width if necessary */ |
|||
} |
|||
/* TOC header styling */ |
|||
#toc h2 { |
|||
font-size: 18px; |
|||
font-weight: bold; |
|||
text-align: center; |
|||
margin: 0; |
|||
padding-bottom: 10px; |
|||
color: #007acc; /* Accent color for the title */ |
|||
border-bottom: 2px solid #007acc; /* Underline the title */ |
|||
} |
|||
/* Style for the TOC list */ |
|||
#toc ul { |
|||
list-style: none; /* Remove bullet points */ |
|||
padding-left: 0; |
|||
} |
|||
#toc ul li { |
|||
margin: 5px 0; |
|||
} |
|||
#toc ul li a { |
|||
text-decoration: none; /* Remove underline */ |
|||
color: #333; /* Darker text for clarity */ |
|||
padding: 5px 10px; |
|||
border-radius: 5px; |
|||
display: block; |
|||
transition: background-color 0.3s ease; |
|||
} |
|||
#toc ul li a:hover { |
|||
background-color: #007acc; /* Blue highlight on hover */ |
|||
color: #fff; /* White text on hover */ |
|||
} |
|||
/* Hide/show toggle button styling */ |
|||
#toc .toctoggle { |
|||
display: block; |
|||
text-align: right; |
|||
font-size: 12px; |
|||
color: #007acc; |
|||
margin-top: 5px; |
|||
padding-right: 10px; |
|||
} |
} |
Revision as of 15:56, 21 October 2024
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');
/* Modern body background */
body {
background-color: #f7f8fa; /* Light gray background for modern appearance */
font-family: 'Roboto', sans-serif; /* Use a clean, modern font */
}
/* Style for the content area */
#content {
background-color: #ffffff; /* Clean white background for content */
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
padding: 20px;
border-radius: 8px; /* Rounded corners for a smoother look */
transition: all 0.3s ease; /* Smooth transitions */
}
/* Customize the sidebar appearance */
#mw-panel {
background-color: #f1f1f1; /* Light background for sidebar */
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); /* Soft shadow to separate the sidebar */
padding: 15px;
border-radius: 10px;
}
/* Modern link styling */
a {
color: #007acc; /* Soft blue for links */
text-decoration: none; /* Remove underline */
transition: color 0.2s ease; /* Smooth transition on hover */
}
a:hover {
color: #005b99; /* Darker blue on hover */
text-decoration: underline;
}
/* Header styles for a cleaner look */
h1, h2, h3, h4, h5, h6 {
font-family: 'Roboto', sans-serif;
color: #333; /* Dark text for headers */
margin-bottom: 10px;
}
/* Sidebar items */
#mw-panel ul {
list-style: none; /* Remove bullets from sidebar links */
padding-left: 0;
}
#mw-panel li {
padding: 10px 0; /* Add space between sidebar links */
}
#mw-panel a {
color: #007acc; /* Sidebar link color */
font-weight: bold;
}
#mw-panel a:hover {
color: #005b99; /* Darker link color on hover */
}
/* Sticky sidebar for improved navigation */
.sticky {
position: fixed;
top: 0;
width: 220px; /* Adjust width based on your layout */
z-index: 1000;
background-color: #f1f1f1;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease;
}
/* Button styles for a modern feel */
input[type="submit"], button {
background-color: #007acc;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
margin: 5px 2px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
}
input[type="submit"]:hover, button:hover {
background-color: #005b99;
}
/* Custom dropdown styling (if you are using dropdowns) */
.dropdown {
position: relative;
}
.dropdown:hover > ul {
display: block;
}
.dropdown ul {
display: none;
position: absolute;
background-color: #ffffff;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.dropdown ul li {
list-style: none;
padding: 10px;
}
.dropdown ul li a {
text-decoration: none;
color: #007acc;
}
.dropdown ul li a:hover {
color: #005b99;
}
/* Make forms and input fields look modern */
input, select, textarea {
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 14px;
width: 100%;
box-sizing: border-box;
margin-bottom: 10px;
background-color: #f9f9f9;
}
input:focus, select:focus, textarea:focus {
border-color: #007acc;
outline: none;
}
/* Modern styling for the TOC box */
#toc {
background-color: #f9f9f9; /* Light background */
border: 1px solid #ddd; /* Light border for separation */
border-radius: 10px; /* Rounded corners for a modern look */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
padding: 15px;
margin-bottom: 20px;
max-width: 300px; /* Adjust width if necessary */
}
/* TOC header styling */
#toc h2 {
font-size: 18px;
font-weight: bold;
text-align: center;
margin: 0;
padding-bottom: 10px;
color: #007acc; /* Accent color for the title */
border-bottom: 2px solid #007acc; /* Underline the title */
}
/* Style for the TOC list */
#toc ul {
list-style: none; /* Remove bullet points */
padding-left: 0;
}
#toc ul li {
margin: 5px 0;
}
#toc ul li a {
text-decoration: none; /* Remove underline */
color: #333; /* Darker text for clarity */
padding: 5px 10px;
border-radius: 5px;
display: block;
transition: background-color 0.3s ease;
}
#toc ul li a:hover {
background-color: #007acc; /* Blue highlight on hover */
color: #fff; /* White text on hover */
}
/* Hide/show toggle button styling */
#toc .toctoggle {
display: block;
text-align: right;
font-size: 12px;
color: #007acc;
margin-top: 5px;
padding-right: 10px;
}