question about css files for smartgwt project - css

I have what should be a simple problem, but so far I'm unable to come up with an answer. I would be very grateful if someone can humor me and just tell me where in the smartgwt jar I can find the stylesheets for changing the default look and feel of a smartgwt project.
I know how to inherit the supplied themes such as com.smartclient.theme.simplicity.Simplicity
but what I really need is to be able to modify simple things like global font size, style, color etc.
Please help...

Its located in war/[projectname]/skins/[skinName]/skin_styles.css in your apps war folder.
EDIT
In the Jar, its in
com/smartclient/theme/[themeName]/public/sc/skins/[themeName]

Related

CoreUI Sidebar modifications

The documentation says it can be done by changing SCSS files. I downloaded the zip of the repo, and changed _variables.scss, modified $sidebar-width: to 250px, but then I have absolutely no idea what to do. How to generate the one CSS file that will include my change everywhere? I experimented with using NPM, but I could not figure it out. I don't even know what NPM is, properly, or any such technology, for that matter.
Any help is much appreciated.

Recover sass files from map and css

I'm just thinking if there is any way to recover some *.scss files if we have only css and its map. Ex.: someday someone removed your scss files :) Is it possible? I know that map helps us to debug our css code and show where it is located in scss. It's a lot of information. But is it enought? Any way to do this?
Picture above shows that example: sass folder doesn't exist. But browser know what and where is from source map.
I've used this site before to convert css output back to scss formatting. http://css2sass.herokuapp.com/ Not perfect but its a start.

How to use SCSS with existing site

I have a question about SCSS. I am new at this, so if I'm not providing enough information please let me know so that I can update my question.
I am currently working on a Wordpress installation that has an SCSS directory, with all of the various .scss files.
I tried editing the files directly, and came across a lot of issues. I did some research, and it looks like the scss needs to be compiled into css so that the site can read it. Issue is, no matter how I try, it just simply doesn't work. The site styles break, and the updated code won't work. I know I can change the css directly, but I understand that if the scss is recompiled it will remove my direct css changes.
Any help would be so appreciated.
If you don't have any way to compile the SASS to CSS then an easy way to translate your code is by using sassmeister.

Theme development in Liferay

I'm trying to make a theme for Liferay 6.2 and I have some misunderstandings.
I create new project, choose theme, then click next and choose velocity and _styled responsively. But I want to get a standart theme which I can deploy and nothing change in comparison with default theme. I thought I got the point and after that I should copy overriden .css files in _diffs folder. But I don't achieve that. I attached screenshot with my result and I can't understand why I don't have default theme instead. Also I understand that it may be very dumb question but I hope someone would explain it briefly to me. Thanks in advance.
You should use the classic theme as base.
Something like:
property name="theme.parent" value="classic"
in your build.xml will build your project with the theme that comes with LR by default (the classic one).
Victor already gave the correct answer. If you're interested in the background: _styled is a theme that basically provides the basics for your own theme but doesn't make any assumption on its appearance. If you really want to build your own theme, this is the preferred one to start from. If you only want to tweak a few things from the classic theme, start with classic (as Victor says).
Note that classic is not meant to be extended (though it works) - contrary to the documentation, the css/custom.css file in classic theme is not empty for this reason. This means that you'll need to adopt the instructions for creating a theme and start with classic's own custom.css file.

Do I have to use Compass to modify CSS with Django-Grappelli?

I recently setup django-grappelli on my first django app. While I like the way it looks I want to customize the colors, and other CSS.
From my research, it looks like I will have to use Compass but I've never used Compass before and want to double check that this is the best method before I embark on that path!
Is Django-grapelli even the right choice for some one that wants to customize the color theme?
Things I tried
Modify the CSS in the Grappelli stylesheets but they are formatted in a way that makes it tedious.
Extend the style sheet but I am not sure where to do this for the admin.
Create a custom.css but could not figure out where to put the path
Thanks for your advice!
It seems to me like Compass is just a tool to write CSS. I've never used it, but at the moment I don't see how it could make modding the admin interface any easier than doing it manually!
Whenever I make changes to the admin (I've made changes to Grappelli, like you're trying to do), I always use what you've listed as number 2. I've never had any troubles! I can try to help you out, if you'd like to try again.
What I do first is go to my Python install directory and copy the Grappelli source from Lib/site-packages. I put this code in my project directory as a project-level app. So, if you're using Django 1.4, you'll have a folder that has your project folder as well as manage.py in it. Put the code there.
Then, using your favorite web developer tools (I prefer Chrome's), figure out which stylesheet you need to modify and which css file it's in. I do this by right-clicking the element and selecting Inspect Element. This brings up the dev tools, and at the right it tells you the css file its referenced from as well as which line its on. If you open up that css file in your favorite text editor and make changes to it, it should work!
Let me know if you're having any trouble with this. I can try to help you out further.
(and, P.S., I wasn't trying to be pedantic with a basic overview of the use of Chrome's developer tools. I was just trying to be helpful by not assuming anything. I hope you don't take it as an insult.)

Resources