Module:NavboxMobile/styles.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary Tag: Reverted |
EnWikiAdmin (talk | contribs) No edit summary Tag: Reverted |
||
Line 78: | Line 78: | ||
.navboxMobile-group-level2 { | .navboxMobile-group-level2 { | ||
background-color: #e6e6ff; /* Level 2 color */ | background-color: #e6e6ff; /* Level 2 color */ | ||
margin-top: 0. | margin-top: 0.5em; /* Add space above for separation */ | ||
border-top: 2px solid white; /* White border at the top for separation */ | border-top: 2px solid white; /* White border at the top for separation */ | ||
border-left: | border-left: 2em solid transparent; /* Indent significantly */ | ||
border-right: | border-right: 2em solid transparent; /* Indent significantly */ | ||
margin-left: | margin-left: 2em; /* Indent significantly */ | ||
margin-right: | margin-right: 2em; /* Indent significantly */ | ||
padding: 0.25em 0.5em; /* Reduced padding for text */ | padding: 0.25em 0.5em; /* Reduced padding for text */ | ||
} | } | ||
Line 91: | Line 91: | ||
.navboxMobile-group-level3 { | .navboxMobile-group-level3 { | ||
background-color: #e6e6ff; /* Level 3 color */ | background-color: #e6e6ff; /* Level 3 color */ | ||
margin-top: 0. | margin-top: 0.5em; /* Add space above for separation */ | ||
border-top: 2px solid white; /* White border at the top for separation */ | border-top: 2px solid white; /* White border at the top for separation */ | ||
border-left: | border-left: 4em solid transparent; /* Indent more compared to level 2 */ | ||
border-right: | border-right: 4em solid transparent; /* Indent more compared to level 2 */ | ||
margin-left: | margin-left: 4em; /* Indent further */ | ||
margin-right: | margin-right: 4em; /* Indent further */ | ||
padding: 0.25em 0.5em; /* Reduced padding for text */ | padding: 0.25em 0.5em; /* Reduced padding for text */ | ||
} | } |
Revision as of 00:17, 25 November 2024
/* Container Styles */
.navboxMobile {
box-sizing: border-box;
border: 1px solid #a2a9b1;
width: 100%;
clear: both;
font-size: 100%;
text-align: left;
padding: 1px;
margin: 0.5em 0 0; /* Reduced top margin */
background-color: #fdfdfd;
}
/* Inner and Subgroup Tables */
.navboxMobile-inner,
.navboxMobile-subgroup {
width: 100%;
}
/* Title Row */
.navboxMobile-title {
display: flex;
align-items: center;
justify-content: center; /* Centers the title */
position: relative; /* Allows for absolute positioning of navbar */
margin-left: 0; /* Ensure no indentation for the title */
margin-right: 0; /* Align with top-level headings */
padding: 0.25em 1em; /* Reduced padding for text inside title */
line-height: 1.5em;
text-align: center;
background-color: #ccf;
font-size: 1.2em;
}
.navboxMobile-title-content {
font-size: 1.1em;
margin: 0.5em 0;
}
/* Navbar Container */
.navboxMobile-title .navbar-container {
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
}
/* Above and Below Content */
.navboxMobile-abovebelow-content,
.navboxMobile-below-content {
padding: 0.25em 1em;
line-height: 1.5em;
background-color: #ddf;
font-size: 1em;
}
/* Group Content */
.navboxMobile-group-content {
/*line-height: 1.5em;*/
text-align: center; /* Centered text */
font-size: 1em;
padding: 0.25em 0.5em; /* Reduced padding for all levels */
}
/* Level 1: Top-level Groups */
.navboxMobile-group-level1 {
background-color: #ddf; /* Level 1 color */
margin-top: 0.25em; /* Add space above for separation */
border-top: 2px solid white; /* White border at the top for separation */
border-left: 0; /* Consistent border with title width */
border-right: 0;
margin-left: 0; /* Same width as title */
margin-right: 0;
padding: 0.25em 0.5em; /* Reduced padding for text */
}
/* Level 2: Main Groups */
.navboxMobile-group-level2 {
background-color: #e6e6ff; /* Level 2 color */
margin-top: 0.5em; /* Add space above for separation */
border-top: 2px solid white; /* White border at the top for separation */
border-left: 2em solid transparent; /* Indent significantly */
border-right: 2em solid transparent; /* Indent significantly */
margin-left: 2em; /* Indent significantly */
margin-right: 2em; /* Indent significantly */
padding: 0.25em 0.5em; /* Reduced padding for text */
}
/* Level 3: Subgroups */
.navboxMobile-group-level3 {
background-color: #e6e6ff; /* Level 3 color */
margin-top: 0.5em; /* Add space above for separation */
border-top: 2px solid white; /* White border at the top for separation */
border-left: 4em solid transparent; /* Indent more compared to level 2 */
border-right: 4em solid transparent; /* Indent more compared to level 2 */
margin-left: 4em; /* Indent further */
margin-right: 4em; /* Indent further */
padding: 0.25em 0.5em; /* Reduced padding for text */
}
/* Odd and Even Rows with Increased Specificity */
.navboxMobile-list-content.navboxMobile-even {
background-color: #f7f7f7;
}
.navboxMobile-list-content.navboxMobile-odd {
background-color: transparent;
}
/* List Content */
.navboxMobile-list-content {
line-height: 1.5em;
padding: 0.25em 0;
font-size: 1em;
text-align: left; /* Align list items to the left */
}
/* List with Group */
.navboxMobile-list-with-group {
text-align: left;
border-left: 2px solid #fdfdfd;
}
/* Styles Container */
.navboxMobile-styles {
/* Additional styles if necessary */
}
/* Container Padding */
.navboxMobile-container {
padding: 3px;
}
/* Navbar Specific Styles */
.navboxMobile .navbar {
display: block;
font-size: 100%;
}
.navboxMobile-title .navbar {
float: left;
text-align: left;
margin-right: 0.5em;
}
/* Responsive Adjustments */
@media all and (min-width: 720px) {
.navboxMobile {
/* Example: Adjustments for larger mobile screens */
}
}
/* Hide on Print */
@media print {
.navboxMobile {
display: none !important;
}
}