Module:NavboxMobile/styles.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary |
EnWikiAdmin (talk | contribs) No edit summary |
||
Line 59: | Line 59: | ||
margin-top: 0.05em; | margin-top: 0.05em; | ||
padding: 0.1em; /* Unified padding */ | padding: 0.1em; /* Unified padding */ | ||
border: 2px solid white; | border-top: 2px solid white; | ||
border-bottom: 1px solid white; | |||
border-left: 2px solid white; | |||
border-right: 2px solid white; | |||
} | } | ||
Line 67: | Line 70: | ||
margin-top: 0.05em; | margin-top: 0.05em; | ||
padding: 0.1em; /* Unified padding */ | padding: 0.1em; /* Unified padding */ | ||
border: 2px solid white; | border-top: 2px solid white; | ||
border-bottom: 1px solid white; | |||
border-left: 2px solid white; | |||
border-right: 2px solid white; | |||
box-shadow: inset 8px 0 #fff, inset -8px 0 #fff; /* Retained box shadow */ | box-shadow: inset 8px 0 #fff, inset -8px 0 #fff; /* Retained box shadow */ | ||
} | } | ||
Line 76: | Line 82: | ||
margin-top: 0.05em; | margin-top: 0.05em; | ||
padding: 0.1em; /* Slightly smaller padding for third-level */ | padding: 0.1em; /* Slightly smaller padding for third-level */ | ||
border: 2px solid white; | border-top: 2px solid white; | ||
border-bottom: 1px solid white; | |||
border-left: 2px solid white; | |||
border-right: 2px solid white; | |||
box-shadow: inset 16px 0 #fff, inset -16px 0 #fff; /* Retained box shadow */ | box-shadow: inset 16px 0 #fff, inset -16px 0 #fff; /* Retained box shadow */ | ||
} | } | ||
Line 91: | Line 100: | ||
border-top: 1px solid white; | border-top: 1px solid white; | ||
border-bottom: 2px solid white; | border-bottom: 2px solid white; | ||
border-left: 2px solid white; | |||
border-right: 2px solid white; | |||
} | } | ||
Line 101: | Line 112: | ||
border-top: 1px solid white; | border-top: 1px solid white; | ||
border-bottom: 2px solid white; | border-bottom: 2px solid white; | ||
border-left: 2px solid white; | |||
border-right: 2px solid white; | |||
} | } | ||
Line 112: | Line 125: | ||
padding-left: 18px; /* Inner spacing */ | padding-left: 18px; /* Inner spacing */ | ||
padding-right: 18px; | padding-right: 18px; | ||
border-left: 2px solid white; | |||
border-right: 2px solid white; | |||
} | } | ||
Revision as of 04:53, 27 November 2024
/* Container Styles */
.navboxMobile {
box-sizing: border-box;
border: 1px solid #a2a9b1;
border-collapse: collapse; /* Ensure all rows share a border */
white-space: normal; /* Allow wrapping for content */
text-align: left;
padding: 1px;
margin: 0 auto; /* Reduced top margin */
background-color: #fdfdfd;
}
/* Inner and Subgroup Tables */
.navboxMobile-inner,
.navboxMobile-subgroup {
box-sizing: border-box;
}
.navboxMobile td, .navboxMobile th {
white-space: normal; /* Prevent nowrap constraints */
word-wrap: break-word;
overflow-wrap: anywhere;
}
/* Above and Below Content */
.navboxMobile-abovebelow-content,
.navboxMobile-below-content {
padding: 0.25em 1em;
line-height: 1.0em;
background-color: #ddf;
font-size: 1em;
}
/* Group Content */
.navboxMobile-group-content {
text-align: center; /* Centered text */
font-size: 1em;
}
/* Title Row */
.navboxMobile-title {
align-items: center;
justify-content: center;
position: relative;
padding: .1em; /* Unified padding */
text-align: center;
background-color: #ccf;
font-size: 1.0em;
border: 2px solid white; /* Uniform 2px white border */
}
/* Level 1: Top-level Groups */
.navboxMobile-group-level1 {
background-color: #ddf;
margin-top: 0.05em;
padding: 0.1em; /* Unified padding */
border-top: 2px solid white;
border-bottom: 1px solid white;
border-left: 2px solid white;
border-right: 2px solid white;
}
/* Level 2 Groups */
.navboxMobile-group-level2 {
background-color: #e6e6ff;
margin-top: 0.05em;
padding: 0.1em; /* Unified padding */
border-top: 2px solid white;
border-bottom: 1px solid white;
border-left: 2px solid white;
border-right: 2px solid white;
box-shadow: inset 8px 0 #fff, inset -8px 0 #fff; /* Retained box shadow */
}
/* Level 3 Groups */
.navboxMobile-group-level3 {
background-color: #e6e6ff;
margin-top: 0.05em;
padding: 0.1em; /* Slightly smaller padding for third-level */
border-top: 2px solid white;
border-bottom: 1px solid white;
border-left: 2px solid white;
border-right: 2px solid white;
box-shadow: inset 16px 0 #fff, inset -16px 0 #fff; /* Retained box shadow */
}
/* List Content */
.navboxMobile-list-content {
line-height: 1.2em;
font-size: 1em;
text-align: center;
padding: 0.25em; /* Inner spacing */
white-space: normal;
word-wrap: break-word;
overflow-wrap: break-word;
border-top: 1px solid white;
border-bottom: 2px solid white;
border-left: 2px solid white;
border-right: 2px solid white;
}
/* Level 2 Content */
.navboxMobile-list-level2 {
box-shadow: inset 8px 0 #fff, inset -8px 0 #fff; /* Retain shadows */
box-sizing: border-box;
margin: 0 auto;
border: 2px solid white; /* Uniform 2px border */
border-top: 1px solid white;
border-bottom: 2px solid white;
border-left: 2px solid white;
border-right: 2px solid white;
}
/* Level 3 Content */
.navboxMobile-list-level3 {
box-shadow: inset 16px 0 #fff, inset -16px 0 #fff; /* Retain shadows */
box-sizing: border-box;
margin: 0 auto;
border-top: 1px solid white;
border-bottom: 2px solid white;
padding-left: 18px; /* Inner spacing */
padding-right: 18px;
border-left: 2px solid white;
border-right: 2px solid white;
}
/* Responsive Adjustments */
@media all and (min-width: 720px) {
.navboxMobile {
/* Adjustments for larger mobile screens */
}
}
/* Hide on Print */
@media print {
.navboxMobile {
display: none !important;
}
}
/* Odd and Even Rows with Increased Specificity */
.navboxMobile-list-content.navboxMobile-even {
background-color: #eaeaea;
}
.navboxMobile-list-content.navboxMobile-odd {
background-color: #f4f4f4;
}
/* Adjust for odd/even rows if needed */
.navboxMobile-list-content.navboxMobile-even,
.navboxMobile-list-content.navboxMobile-odd {
word-wrap: break-word;
overflow-wrap: anywhere;
}
/* 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: 1px;
}
/* Navbar Specific Styles */
.navboxMobile .navbar {
display: block;
font-size: 100%;
}
.navboxMobile-title .navbar {
float: left;
text-align: left;
margin-right: 0.5em;
}
.navboxMobile-navbar {
text-align: right; /* Align Navbar content to the right */
font-size: 0.85em; /* Optional: Adjust size */
padding: 0.0em 0; /* Add a little padding */
border-top: none;
}