How do you use the desktop.css file in teh custom folder
Hi,
I have edited the common.css file, for some customisations, but was wondering is that the best way of customising the CSS.
I have noticed that there is a custom folder C:\inetpub\wwwroot\Html5Viewer261\Resources\Styles\Custom which includes a desktop.css file. How do I go about getting the viewer to pick up the custom changes. e.g.
in the common.css i have the following
.menu-hyperlinks .list-menu-button {
color: #1B7DBF;
text-decoration: underline;
padding-top: 10px;
I have added the following to the desktop.css
.menu-hyperlinks .list-menu-button {
color: #1B7DBF;
text-decoration: underline;
padding-top: 100px;
But it doesnt seem to get picked up by the viewer when I refresh. How do I do this correctly?
Thanks
Halil
0
-
What worked for me is to cutomize the CSS files in the viewer's custom folder... for example in here...
Sites\Standard\Viewers\std\VirtualDirectory\Resources\Styles\Custom0 -
Masao,
The desktop.css that I am editing is in C:\inetpub\wwwroot\Html5Viewer261\Resources\Styles\Custom
but does not seem to work.0 -
Any CSS in the viewer's Custom folder (where Masao mentions) should overwrite the CSS from the viewer template deployed in IIS (where Halil mentions).
Halil, edits in that specific desktop.css may be getting overwritten by the custom.css since that is the default. You can use a browser's developer tools to see the source of any element, whether custom.css or desktop.css. It should even show the CSS that is being overridden by other sources.0 -
In my experience, the files in \webroot\........\styles\custom never get called. Load up your site through Fiddler and you'll see that it only calls the files in \webroot\.....\resources\styles and the ones in your viewers custom folder. 0 -
The full path to the viewer's custom folder is...
C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\[site name]\Viewers\[viewer name]\VirtualDirectory\Resources\Styles\Custom0 -
Masao,
It is now picking it up using the full path you mentioned.
Thanks0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
6 kommentarer