Lesley Posted July 10, 2022 Share Posted July 10, 2022 Site URL: https://www.slowmaterial.org/ Hello! I am building a summary block and found this code to style the titles, but I keep getting a syntax error on the font family line. Does anyone have any insight into whaat is going wrong? Thanks much. https://www.slowmaterial.org/summary-library // *summary block header changes* // .SQS-BLOCK-SUMMARY-V2 { .SUMMARY-TITLE, .SUMMARY-HEADING {FONT-FAMILY Proxima Nova; FONT-WEIGHT 400; FONT-SIZE 14PX !IMPORTANT; COLOR #003D4C; TEXT-TRANSFORM CAPITALIZE; FONT-STYLE NONE; } } Link to comment
tuanphan Posted July 11, 2022 Share Posted July 11, 2022 Your code missing a lot of : symbol // *summary block header changes* // .SQS-BLOCK-SUMMARY-V2 { .SUMMARY-TITLE, .SUMMARY-HEADING { font-family: proxima-nova; font-weight: 400; font-size: 14px !important; color: #003d4c; text-transform: capitalize; font-style: none; } } Lesley 1 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
Lesley Posted July 11, 2022 Author Share Posted July 11, 2022 Tuan, Thank you! (For some reason, they weren't displaying when I copy-pasted and I was missing one.) May I ask another question?! The code is not working anyway! The titles under each summary entry are not changing size or color. Am I using the wrong code entirely? https://www.slowmaterial.org/summary-library I appreciate your help - thanks much. Link to comment
Solution derricksrandomviews Posted July 11, 2022 Solution Share Posted July 11, 2022 (edited) Just for you to examine, here is the code I use for my 7.0 blog summary blocks (should work with 7.1 without any other summary block code of course) The border radius of the summary block item can be adjusted for just about any shape. The read more button has a gradient color which can also be changed easily. Title font and size is also easy to adjust. You can see my summary items here: https://myrandomviews.com/blogsummary // DB Summary Block Design // img.summary-thumbnail-image.loaded:hover { opacity: 0.5; } .summary-title-link { font-family: proxima-nova, serif; font-size: 18px; } .summary-excerpt p { font-size: 14px !important; } .sqs-block-summary-v2 .summary-item { background-color: #ffffff; border-radius: 70px 15px 70px 15px; -webkit-box-shadow: 0px 0px 15px rgba(100, 100, 100, 100.1) !important; -moz-box-shadow: 0px 0px 15px rgba(100, 100, 100, 100.1) !important; box-shadow: 6px 5px 15px rgba(100, 100, 100, 100.1) !important; } // DB Summary Content Padding // .sqs-block-summary-v2 .summary-item .summary-content { padding: 20px 40px 20px 40px; } // DB Summary Block Button // .sqs-block-summary-v2 .summary-item-record-type-text .summary-read-more-link { display: inline-block; margin-top: 10px; background: linear-gradient(to right, #F07C63, #E45372); color: white; border: 0px solid white; border-radius: 50px; padding: 10px 20px; filter: drop-shadow(8px 8px 8px #666666); } Edited July 11, 2022 by derricksrandomviews Lesley 1 Link to comment
Lesley Posted July 11, 2022 Author Share Posted July 11, 2022 Derrick! Thank you!!! Whoop. I made the change I wanted, and now I'm going to play with some of these other options you've offered. Thank you! I appreciate the help! derricksrandomviews 1 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