Learn how to customize the mobile menu of your mobile apps with the help of custom CSS.
The ease of navigation of your app determines the experience it provides to its users. The mobile menu is vital in providing ease of navigation. In this tutorial, we take you through how to customize the mobile menu according to your user needs and branding guidelines.
After this tutorial, you will be familiar with the CSS selectors required to customize the mobile menu of your mobile app.
Using custom CSS can result in undesired formatting or styling. Use custom CSS only if you have experience working with CSS, and always double-check what your app looks like after applying your styles.
- You have the role of an administrator in the Staffbase Studio.
-
In the Studio, click the gear wheel to open the settings.
-
Under Customization, click Branding.
The Branding page opens. -
Under Custom Styling, click Adjust the styling of your app.
The Custom Styling editor opens. -
In the editor, copy and paste the CSS snippet.
1/* =============================================================================2= MENU (SIDEBAR) ===============================================================3================================================================================ */45.mobile #sidebar{6 -webkit-box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.15);7 -moz-box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.15);8 box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.15);9 background-color: #fff;10 border-right: 1px solid #eeeeee;11}1213.clientapp.mobile.loggedout #sidebar .plugin-list>.search-widget{14 background: #ffffff;15 color: #000000;16}1718.mobile #sidebar .profile-header{19 background: #ffffff;20 color: #000000;21}2223.ios #wrapper{24 border-right: 1px solid #eeeeee;25 -webkit-box-shadow: none;26 -moz-box-shadow: none;27 -ms-box-shadow: none;28 box-shadow: none;29}3031.mobile #sidebar .plugin-list{32 background: #F5F5F5;33 color: #000000;34}3536.mobile #sidebar .plugin-list>.item:first-of-type{37 margin-top: 10px;38}3940.retina.mobile #sidebar .channel-list,41.mobile #sidebar .channel-list:not(.loading){42 background-color: #ffffff;43}4445.retina.mobile #sidebar .plugin-list>.item:not(:first-of-type),46.retina.mobile #sidebar .plugin-list>.item,47.mobile #sidebar .plugin-list>.item,48.retina.mobile #sidebar .channel-list{49 margin: 10px 15px;50 background: #fff;51 border-radius: 8px;52 box-shadow: 0px 2px 4px rgba(30, 31, 31, 0.05);53}5455.mobile #sidebar .plugin-list>.item:not(:first-of-type){56 border: 0 !important;57}5859.retina.mobile #sidebar .channel-list .item+.item,60.mobile #sidebar .channel-list .item+.item,61.retina.mobile #sidebar .channel-list,62.mobile #sidebar .channel-list,63.mobile #sidebar .channel-list .item{64 background: #fff;65 border: 0;66 box-shadow: 0;67}6869#sidebar .channel-list .item:before,70.ios #sidebar .channel-list .item:before{71 background-color: #000000;72 top: 20px;73}7475.mobile.touch #sidebar .channel-list .item.active,76.mobile.touch #sidebar .plugin-list>.item.active,77.mobile.touch #sidebar .actor.active,78.mobile.touch #sidebar .profile-header .item.active, .mobile.touch #sidebar>.menu-list .item.active{79 background-color: #eeeeee;80}8182.mobile #sidebar .plugin-list:first-child>.search-widget,83.mobile.loggedout #sidebar .plugin-list>.search-widget{84 padding-bottom: 15px;85 padding-top: 15px86}8788.mobile #sidebar .item>.icon,89.mobile #sidebar .item>.image,90.mobile #sidebar .item>.we-icon{91 color: #4658F7;92}9394/* SIDEBAR HEADER ==================================================================== */9596.mobile #sidebar .profile-header .actor{97 background: #fff;98}99100.mobile #sidebar .plugin-list>.search-widget{101 background: #eeeeee;102}103104.mobile #sidebar .plugin-list>.search-widget .search-wrap span.we-icon.search{105 top: 15px;106}107108.mobile .no-header .plugin-list.scroller form input::placeholder{109 color: #333;110}111112.mobile #sidebar .plugin-list>.search-widget .search-wrap input{113 background-color: #fff;114 border: none;115 border-radius: 5px;116 height: 45px;117 -webkit-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.2);118 -moz-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.2);119 box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.2);120}121122.mobile #sidebar .plugin-list:first-child>.search-widget,123.mobile.loggedout #sidebar .plugin-list>.search-widget{124 padding-bottom: 15px;125 padding-top: 15px;126}127128.mobile .no-header .plugin-list.scroller form{129 height: 50px;130 box-shadow: 0px 2px 4px rgb(30 31 31 / 4%);131 border-radius: 8px;132}133134.mobile .no-header .plugin-list.scroller form .we-icon{135 line-height: 45px;136}137138.mobile .no-header .plugin-list.scroller > div > div {139 background: #E2E2E4 ;140 padding: 15px;141 margin-bottom: 20px;142}
-
Click Preview to test your CSS customizations.
-
Save the changes.
You have customized the mobile menu of your Staffbase app.