Topic: MDB BIG BUNDLE: Provide Optimised CSS files: main.css, landing.css, admin.css .... etc

Axel Priam pro asked 5 years ago

Please, your updates on the sass are too hard to rebuild,Please provide a main.css file which contains the common lines between all templates, and separate landing.css, blog.css, so we don't have to make our visitors download unused css multiple times

jivancic pro commented 5 years ago

I agree , its big GAP .

Axel Priam pro answered 5 years ago

You could include in your build workflow a tool that diff the files the one with others ? So at each new build, you end up with new files that don't leads to code duplication

Bartłomiej Malanowski staff commented 5 years ago

Unfortunately, we cannot simply use the diff tool to show you the differences. It's because we're merging common classes to decrease the size of our CSS files. Also please keep mind that the "base" of each of our products is little difference. Ex. from magazine templates pack we removed unnecessary components. You could try to compile custom styles (like. admin/_style.css) as a separated file and load them when you need it. You can also create a file that would contain MDB Pro and custom styles for every template as we did in

I fully understand your point. As you might notice, in our templates pack, we have added a lot of code that uses the code of MDB Pro. We use some @extends and variables from the regular MDB Pro package that's why we don't provide separated CSS files like admin.css, portfolio.css etc. We're not planning to change it. You can fully customize your scss files, but if you need our help, just let us know Cheers!

Axel Priam pro answered 5 years ago

I want to be able to compose css files regarding of my needs homePage : <link rel="stylesheet" href="/css/main.css" /> <link rel="stylesheet" href="/css/landing.css" /> blogPage : <link rel="stylesheet" href="/css/main.css" /> <link rel="stylesheet" href="/css/blog.css" /> magazinePage : <link rel="stylesheet" href="/css/main.css" /> <link rel="stylesheet" href="/css/magazine.css" /> adminPage : <link rel="stylesheet" href="/css/main.css" /> <link rel="stylesheet" href="/css/admin.css" /> actually, the way the css files are expect us to use only one solution per website ( landing.css or admin.css or blog.css ) But I want to be able to use the admin template on a page and the landing on a other without making my visitors load mdb.css twice  

Marta Wierzbicka staff answered 5 years ago

Hi, could you develop your thought? Explain, please, what exactly you expect from us in this case? We will take into consideration your opinion. Best, Marta

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No