fbook Posted April 20, 2022 Share Posted April 20, 2022 Site URL: https://jaycefox.squarespace.com/ Hello, can anyone suggest a code to adjust the font size and colour in 7.1 Masonry gallery? my password is "fox" Here is the code I am currently using for mouse over... .gallery-caption.gallery-caption-grid-masonry p { opacity: 0 !important; } figure.gallery-masonry-item { position: relative; } .gallery-caption { position: static; } /* title */ .gallery-caption-content { position: absolute; left: 0; top: 0; right: 0; bottom: 0; opacity: 0; background-color: #e0e0e0; display: flex; justify-content: center; align-items: center; z-index: 999; padding: 7%; transition: opacity ease 500ms !important; opacity: 0 !important; pointer-events: none; } .gallery-masonry-item:hover .gallery-caption-content { opacity: 80% !important; } /* overlay */ .gallery-masonry-item-wrapper a:after { background: #e0e0e0; /* overlay color */ content: ""; display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity ease 100ms !important; } .gallery-masonry-item:hover .gallery-grid-item-wrapper a:after { opacity: 0.50; } /* remove gap */ figcaption { padding: 0 !important; } figure.gallery-grid-item { position: relative; } .gallery-caption { position: static; } /* title */ .gallery-caption-content { position: absolute; left: 0; top: 0; right: 0; bottom: 0; opacity: 0; background-color: #3F3F3B; display: flex; justify-content: center; align-items: center; z-index: 999; padding: 7%; transition: opacity ease 500ms !important; opacity: 0 !important; pointer-events: none; } .gallery-grid-item:hover .gallery-caption-content { opacity: 75% !important; } /* overlay */ .gallery-grid-item-wrapper a:after { background: #3F3F3B; /* overlay color */ content: ""; display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity ease 100ms !important; } .gallery-grid-item:hover .gallery-grid-item-wrapper a:after { opacity: 0.40; } /* remove gap */ figcaption { padding: 0 !important; } @media only screen and (max-width: 1400px) { .gallery-masonry .gallery-masonry-wrapper { columns: 2; column-gap: 0; height: auto!important; display: block!important; padding: 0px; } .gallery-masonry-item-wrapper { height: auto!important; } .gallery-masonry-item { position: relative!important; transform: none!important; width: 100%!important; display: block; padding: 14px!important; box-sizing: border-box; } .gallery-masonry .gallery-masonry-item img { height: 100%!important; width: 100%!important; } } @media only screen and (max-width: 750px) { .gallery-masonry .gallery-masonry-wrapper { columns: 1; column-gap: 0; height: auto!important; display: block!important; padding: 0px; } .gallery-masonry-item-wrapper { height: auto!important; } .gallery-masonry-item { position: relative!important; transform: none!important; width: 100%!important; display: block; padding: 3px!important; box-sizing: border-box; } .gallery-masonry .gallery-masonry-item img { height: 100%!important; width: 100%!important; } } @media only screen and (max-width: 750px) { h1 {font-size:28px!important;}} Thanks Link to comment
tuanphan Posted April 24, 2022 Share Posted April 24, 2022 It looks like you solved with this CSS? p.gallery-caption-content { font-size: 27px !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
fbook Posted April 25, 2022 Author Share Posted April 25, 2022 Yes, searched around and found this code. Thanks for responding and offering to help with this. Cheers Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment