Module:NavboxMobile/styles.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary  | 
				EnWikiAdmin (talk | contribs) No edit summary  | 
				||
| Line 32: | Line 32: | ||
     text-align: center;  |      text-align: center;  | ||
     background-color: #ccf;  |      background-color: #ccf;  | ||
     font-size: 1.  |      font-size: 1.0em;  | ||
}  | }  | ||
| Line 43: | Line 43: | ||
.navboxMobile-title-content {  | .navboxMobile-title-content {  | ||
     font-size: 1.  |      font-size: 1.0em;  | ||
     margin: 0.5em 0;  |      margin: 0.5em 0;  | ||
}  | }  | ||
Revision as of 07:02, 25 November 2024
/* Container Styles */
.navboxMobile {
    box-sizing: border-box;
    border: 1px solid #a2a9b1;
    border-collapse: collapse; /* Ensure all rows share a border */
    width: 100%;
    max-width: 100%;
    white-space: normal; /* Allow wrapping for content */
    font-size: 100%;
    text-align: left;
    padding: 1px;
    margin: 0 auto; /* Reduced top margin */
    background-color: #fdfdfd;
}
/* Inner and Subgroup Tables */
.navboxMobile-inner,
.navboxMobile-subgroup {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
/* Title Row */
.navboxMobile-title {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the title */
    position: relative; /* Allows for absolute positioning of navbar */
    padding: 1px; /* Increased padding to give more room */
   /*  line-height: 1.3em; Increased line height for better vertical spacing */
    text-align: center;
    background-color: #ccf;
    font-size: 1.0em;
}
.navboxMobile td, .navboxMobile th {
    white-space: normal; /* Prevent nowrap constraints */
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.navboxMobile-title-content {
    font-size: 1.0em;
    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.0em;
    background-color: #ddf;
    font-size: 1em;
}
/* Group Content */
.navboxMobile-group-content {
    padding: 0.5em 0.5em;
    line-height: 1.0em;
    text-align: center; /* Centered text */
    font-size: 1em;
}
/* Level 1: Top-level Groups */
.navboxMobile-group-level1 {
    background-color: #ddf; /* Level 1 color */
    margin-top: 0.1em; /* Add spacing above for separation */
    border-top: 1px solid white; /* White border at the top for separation */
}
/* Level 2: */
.navboxMobile-group-level2 {
    background-color: #e6e6ff; /* Level 2 color */
    box-shadow: inset 5px 0 #fff, inset -5px 0 #fff; /* Create shadow effect */
    margin-top: 0.1em; /* Add spacing above for separation */
    border-top: 1px solid white; /* White border at the top for separation */
    box-sizing: border-box;
}
/* Level 2 Content */
.navboxMobile-list-level2 {
    box-shadow: inset 5px 0 #fff, inset -5px 0 #fff; /* Shadow effect */
    box-sizing: border-box;
    margin: 0 auto; /* Center the content */
    border: none; /*need*/
    padding-left: 7px;
    padding-right: 7px;
}
/* Level 3: Subgroups */
.navboxMobile-group-level3 {
    background-color: #e6e6ff; /* Level 3 color */
    margin-top: 0.1em; /* Add spacing above for separation */
    box-shadow: inset 10px 0 #fff, inset -10px 0 #fff; /* Create shadow effect */
    border-top: 1px solid white; /* White border at the top for separation */
    box-sizing: border-box;
}
/* Level 3 Content */
.navboxMobile-list-level3 {
    box-shadow: inset 10px 0 #fff, inset -10px 0 #fff; /* Shadow effect */
    box-sizing: border-box;
    margin: 0 auto; /* Center the content */
    border:none;
    padding-left:12px;
    padding-right: 12px;
}
/* Odd and Even Rows with Increased Specificity */
.navboxMobile-list-content.navboxMobile-even {
    background-color: #f7f7f7;
}
.navboxMobile-list-content.navboxMobile-odd {
    background-color: #ffffff;
}
/* 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 Content */
.navboxMobile-list-content {
    line-height: 1.2em;
    font-size: 1em;
    text-align: center;
    padding:0.25em;
    white-space:normal;
    word-wrap: break-word;
    overflow-wrap: break-word; /* Ensure compatibility for older browsers */
}
/* 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;
}
/* Responsive Adjustments */
@media all and (min-width: 720px) {
    .navboxMobile {
        /* Example: Adjustments for larger mobile screens */
    }
}
/* Hide on Print */
@media print {
    .navboxMobile {
        display: none !important;
    }
}
.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;
}