Questions tagged [css]

Anything related to cascading style sheets (CSS) as they specifically relate to Sitecore, official Sitecore modules, CSS file storage in and serving from the Media Library, and beyond. This tag is not meant for generall CSS questions that are not specifically related to Sitecore.

Filter by
Sorted by
Tagged with
2
votes
0answers
51 views

Loading Page Specific CSS in Sitecore

We are using Sitecore 8.2 and we have around 10-15 Page templates and all the CSS is bundled in a Global CSS and over the years the CSS file has grown tremendously resulting in below issues: We are ...
4
votes
3answers
468 views

Sitecore MVC FieldRenderer.Render - Add and persist inline styles & classes to links in the Experience Editor

I am trying to add custom classes & inline styles to a rendered link field in the experience editor without using Glass. I have a model the looks like this: public class Header { public ...
0
votes
1answer
61 views

WFFM custom toggle switch [closed]

I am adding toggle switch as a custom field. Toggle.cs (Toggle C# code) public class Toggle: Sitecore.Form.Web.UI.Controls.Checkbox { } public class ToggleField : Sitecore.Forms.Mvc....
4
votes
1answer
664 views

Is there a way to put Sitecore Forms fields side by side without CSS

While dragging a form field onto the Sitecore Forms canvas, it seems that, there is no way within the interface to add columns of fields eg. two fields side by side. Is the only way to do this with ...
5
votes
3answers
195 views

SXA custom css priority level

How do I set the priority of css files so when it optimized all css files, custom css file gets higher priority?
3
votes
1answer
123 views

Sitecore Language wise css changes

We are working on Sitecore "Arabic" and "English" languages. As you know Arabic start from right to left and English start left to right. Due to this reason we have to write two class for same element ...
6
votes
2answers
371 views

Images for different breakpoints

I have read various implementation approaches to render images in desktop/mobile view without cropping/stretching it. Last time I had a chat with a fellow developer, they insisted on having a ...
3
votes
1answer
2k views

How do I replace css background url with @html.Sitecore().field(“Header Image”)

I am using Sitecore 8.2 and I am working with the RenderingModel. I have a template field called "Header Image" that I would like to render on my Layout. Here is the css .microsite-banner{ ...
3
votes
2answers
2k views

Apply Css class around <p>, Rich Text Editor - Sitecore 8.2u2

EDIT: I'm doing this in the Design part of RTE, NOT Html. I select a piece of text thats in a <'p>. Then "Apply Css Class" to add a class which changes the background color. This becomes a <'...
8
votes
3answers
1k views

What's an efficient Frontend development process / workflow for Sitecore?

Does anyone have a Frontend development/prototyping process/workflow that has proven to be effective and efficient? I have multiple sites running on Sitecore. We are also MVC based. As a Frontend ...
3
votes
1answer
540 views

SXA custom component, Is my component correct?

First of all, I'm sorry for my question because, I'm beginner in sitecore SXA and in English too. ;) I'm working on SXA compatible component and I have already advanced well I think but I must have ...
7
votes
1answer
704 views

Sitecore component CSS and script handling in an HTTP/2 environment

First project using Helix coming up. In our previous project we've used HTTP/2 on the CDN, so we have adopted a lot of new best practices. One of the most important new best practices in HTTP/2 is ...
8
votes
3answers
4k views

How to Render Javascript per page or component?

So I have renderings that depend on specific CSS or specifically Javascript. Do you load the same Javascript on all pages even if the Javascript is for a specific page/rendering, or do you pull in ...