Rank: Newbie
Groups: Authorized User
Joined: 5/30/2019(UTC) Posts: 3
Thanks: 1 times
|
Challenge: In this version, the rules in custom.css get picked up, but they are a lower priority than the theme's default rules.We would not want to add a !important rule to every basic entry and end up duplicating most basic rules for headers, fonts, etc. Steps taken: 1. I copied the existing theme in admin and set that to be the default. 2. I added rules to custom.css in the assigned theme for something basic for testing, the headings. 3. I used browser web development tools to see the outcome. The rules in custom.css in the correct theme get picked up, but they are a lower priority than the theme's default rules. 4. In estex/Views/Shared/_ThemeStyles.cshtml, I modified the load order so that custom.css in the applied theme is loaded last. It did not work. If anyone has any ideas or thoughts on what else I could try, I would appreciate the feedback. Thanks! Julie Edited by user Thursday, May 30, 2019 9:10:51 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, System, Admin Joined: 10/18/2018(UTC) Posts: 183
Thanks: 1 times Was thanked: 6 time(s) in 6 post(s)
|
Hello,
I don't understand the issue except for the skin file custom.css is loaded last and I've never had any issues making overrides there. You shouldn't need to make any changes to any view files for this to work. Please post an example or two of the overrides you are trying to make.
<link href="/Themes/Sample/Content/fonts.css" rel="stylesheet"/> <link href="/Themes/Sample/Content/font-awesome.min.css" rel="stylesheet"/> <link href="/Themes/Sample/Content/animate.css" rel="stylesheet"/> <link href="/Themes/Sample/Content/style.css" rel="stylesheet"/> <link href="/Themes/Sample/Content/color/dark-blue.css" rel="stylesheet"/> <link href="/Themes/Sample/Content/default.css" rel="stylesheet"/> <link href="/Themes/Sample/Content/custom.css" rel="stylesheet"/> <link href="/Themes/Sample/Content/skin.css" rel="stylesheet"/>
|
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
We set debug="true" in the web.config so stylesheets wouldn't be bundled and Julie could see the changes better.
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, System, Admin Joined: 10/18/2018(UTC) Posts: 183
Thanks: 1 times Was thanked: 6 time(s) in 6 post(s)
|
Hi Judy,
Good idea! I always have my build running in debug mode unless I'm doing testing to keep Google as happy as possible. We worked hard to implement bundling and delayed downloading of resources. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close