Transparency of mobile menu

Permalink Browser Info Environment
Hello!

I love this theme! So very easily customized! My only thing I can't find to put in the custom css is the opacity of the drop down mobile menu. My client would like the background to be transparent. Any help you could give would be greatly appreciated!

Type: Ticket
Status: Archived
heyerarc
View Replies:
pilipala replied on at Permalink Reply 1 Attachment
pilipala
Hi

I have just tested customisation of the submenu background in the design panel, and the CSS from the customisation is being ouputted before the theme's default styles, so the theme styles are overwriting the transparency customisation. We will look into this.

This should be how you would do it (but please note it is not working as explained above):
1. From any page click on the gear icon at the top left of the menu.

2. Then click on "Design" and click on "Customize".

https://documentation.concrete5.org/editors/in-page-editing/the-tool...

You can change individual properties in the menu here, or add custom CSS.

3. Click on "Submenu background" and move the slider to your preferred transparency below the box that says rgba. Then select choose (see attached image).

4. When you have made your changes, click "Save Changes" (bottom right of your page) and then you will be prompted whether the changes are for this page only or the entire site.

5. Click on the pencil icon and choose "Publish Changes".

This is not working, so please just add the custom CSS in the design panel. So instead of selecting "Submenu background", scroll down, and click on the gear icon next to "Custom CSS", add your CSS in the pop up box, click "Save".

For example (adjust rgba value for transparency value and colour):
div.ccm-page .dropdown-menu {
        background-color: #FFF;
   background-color: rgba(255, 255, 255, 0.4);
}

Save changes as above.

Thanks, Jennifer
heyerarc replied on at Permalink Reply
heyerarc
Jennifer,

It looks like it works as the menu is sliding down but once it is down all the way the background changes to solid white.
heyerarc replied on at Permalink Reply
heyerarc
Thank you so much! I will give that a try right now.
pilipala replied on at Permalink Reply 1 Attachment
pilipala
Hello,

You may need to clear cache and refresh your browser to see the CSS changes, or possibly you may need to adjust the rgba value if you want it more transparent (e.g. try changing the 0.4 to 0.3). Although if you make it too transparent, it will be difficult for people to read the links. I've attached an image of my test site using that CSS so that you can compare your transparency with mine.

If that still doesn't work, you could try this CSS instead:
div.ccm-page .navbar-default .navbar-nav .open .dropdown-menu {
    background-color: #FFF;
    background-color: rgba(255, 255, 255, 0.4);
}


If it still doesn't work for you, you can send us the link to your test site if you want us to look at your CSS. Please note this is a public thread, so if you want to send it privately, please pm or email contact@pilipalawebdesign.com


Thanks,

Jennifer
pilipala replied on at Permalink Reply
pilipala
I read your support query again, and realise that you are trying to make your mobile menu transparent, not your drop down menu! Sorry, I misread that initially. That would explain why it didn't work... The CSS below should work. The styles within the media query are for the main menu, and the first styles are for the mobile menu. You can change the rgba values to your preference.

div.ccm-page .navbar-collapse.in {
  background-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.4);
}
div.ccm-page .navbar-fixed-top {
   background-color: #ffffff;
   background-color: rgba(255, 255, 255, 0.4);
}
div.ccm-page .navbar-fixed-top.opaque {
   background-color: #ffffff;
   background-color: rgba(255, 255, 255, 0.4);
}
@media (min-width: 992px) {
    div.ccm-page .navbar-fixed-top {
   background-color: #ffffff;


The theme menu styles are located here:

juniper\themes\juniper\css\build\topmenu.less

But I would use this for reference, and change it in "custom CSS" as described above.

You can inspect the CSS using a tool like Firefox page inspector, if you find you want to adjust more styles in the menu:

https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector...
https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to...

Thanks,

Jennifer
heyerarc replied on at Permalink Reply
heyerarc
Jennifer,

That did it! Thank you so much for the quick replies and help!

Tracy
pilipala replied on at Permalink Reply
pilipala
You're welcome! Thanks for letting us know that it worked.
Best, Jennifer
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.3
Version Installed - 8.4.3
Database Version - 20180716000000

# concrete5 Packages
Cycle2 Slide Show (1.0.2), Easy Image Gallery (1.4.2), Fruitful (1.2), Juniper (1.0.5), Stucco (2.1.6)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.6.37

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, ionCube Loader, json, libxml, magickwand, mailparse, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, OAuth, oci8, odbc, openssl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, session, SimpleXML, snmp, soap, sockets, SourceGuardian, SPL, sqlite3, standard, tidy, tokenizer, uploadprogress, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 64M
sql.safe_mode - Off
upload_max_filesize - 64M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
oci8.max_persistent - -1
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.