Module:NavboxMobile/styles.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary Tag: Reverted |
EnWikiAdmin (talk | contribs) No edit summary Tag: Reverted |
||
Line 75: | Line 75: | ||
} | } | ||
/* | |||
/* Custom styling for 2nd level group headings */ | |||
.navboxMobile-group-level2 { | .navboxMobile-group-level2 { | ||
padding: 0.5em; | |||
width: 95%; /* Slightly narrower than level 1 */ | |||
background-color: #e6e6ff; | |||
width: | box-shadow: inset 5px 0 #fff, inset -5px 0 #fff; | ||
width: auto; /* Allow content to define width */ | |||
box-sizing: border-box; | text-align: left; /* Optional, for alignment */ | ||
box-sizing: border-box; /* Ensure padding doesn't break the layout */ | |||
} | } | ||
/* Level 3: Subgroups */ | /* Level 3: Subgroups */ | ||
.navboxMobile-group-level3 { | .navboxMobile-group-level3 { | ||
background-color: #e6e6ff; /* Level 3 color */ | background-color: #e6e6ff; /* Level 3 color */ | ||
margin-top: 0.25em; /* Add spacing above for separation */ | margin-top: 0.25em; /* Add spacing above for separation */ | ||
width: 90%; /* Even narrower for level 3 */ | width: 90%; /* Even narrower for level 3 */ | ||
box-sizing: border-box; | box-sizing: border-box; | ||
margin: 0 auto; /* Center it within the parent */ | |||
box-shadow: inset 3px 0 #ccc, inset -3px 0 #ccc; | |||
padding: 0.5em; | |||
} | } | ||