serviceportal.io - 6 Comments









Search Preview

SCSS Variables in Service Portal - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes

serviceportal.io
Skip to content
.io > serviceportal.io

SEO audit: Content analysis

Language Error! No language localisation is found.
Title SCSS Variables in Service Portal - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes
Text / HTML ratio 28 %
Frame Excellent! The website does not use iFrame solutions.
Flash Excellent! The website does not have any flash contents.
Keywords cloud SCSS Portal CSS Error Reply Service September variables widget enter variable ServiceNow pm Firth Nathan color make Variables portal valid
Keywords consistency
Keyword Content Title Description Headings
SCSS 11
Portal 9
CSS 8
Error 8
Reply 7
Service 7
Headings
H1 H2 H3 H4 H5 H6
0 2 1 3 0 0
Images We found 14 images on this web page.

SEO Keywords (Single)

Keyword Occurrence Density
SCSS 11 0.55 %
Portal 9 0.45 %
CSS 8 0.40 %
Error 8 0.40 %
Reply 7 0.35 %
Service 7 0.35 %
September 7 0.35 %
variables 6 0.30 %
widget 5 0.25 %
enter 5 0.25 %
variable 5 0.25 %
ServiceNow 5 0.25 %
pm 5 0.25 %
Firth 4 0.20 %
Nathan 4 0.20 %
color 4 0.20 %
make 4 0.20 %
Variables 4 0.20 %
portal 4 0.20 %
valid 3 0.15 %

SEO Keywords (Two Word)

Keyword Occurrence Density
Service Portal 7 0.35 %
says September 6 0.30 %
Error Please 6 0.30 %
2018 at 6 0.30 %
Please enter 5 0.25 %
the widget 4 0.20 %
want to 4 0.20 %
in the 4 0.20 %
September 10 4 0.20 %
10 2018 4 0.20 %
Nathan Firth 4 0.20 %
the variable 4 0.20 %
enter a 3 0.15 %
This is 3 0.15 %
that you 3 0.15 %
will be 3 0.15 %
on the 3 0.15 %
to make 3 0.15 %
you want 3 0.15 %
of CSS 3 0.15 %

SEO Keywords (Three Word)

Keyword Occurrence Density Possible Spam
Error Please enter 5 0.25 % No
September 10 2018 4 0.20 % No
you want to 3 0.15 % No
want to reuse 3 0.15 % No
Please enter a 3 0.15 % No
says September 10 3 0.15 % No
10 2018 at 3 0.15 % No
the default attribute 2 0.10 % No
name Error Please 2 0.10 % No
24 2018 at 2 0.10 % No
September 24 2018 2 0.10 % No
says September 24 2 0.10 % No
Please enter your 2 0.10 % No
Reply Nathan Firth 2 0.10 % No
Nathan Firth says 2 0.10 % No
Firth says September 2 0.10 % No
in Service Portal 2 0.10 % No
to reuse throughout 2 0.10 % No
that you want 2 0.10 % No
be updated based 1 0.05 % No

SEO Keywords (Four Word)

Keyword Occurrence Density Possible Spam
Error Please enter a 3 0.15 % No
September 10 2018 at 3 0.15 % No
says September 10 2018 3 0.15 % No
you want to reuse 3 0.15 % No
Nathan Firth says September 2 0.10 % No
Reply Nathan Firth says 2 0.10 % No
Error Please enter your 2 0.10 % No
says September 24 2018 2 0.10 % No
September 24 2018 at 2 0.10 % No
name Error Please enter 2 0.10 % No
want to reuse throughout 2 0.10 % No
that you want to 2 0.10 % No
always I realized that 1 0.05 % No
realized that you can 1 0.05 % No
can also override Bootstrap 1 0.05 % No
Reply Tony Cosentino says 1 0.05 % No
you can also override 1 0.05 % No
Tony Cosentino says September 1 0.05 % No
that you can also 1 0.05 % No
Cosentino says September 24 1 0.05 % No

Internal links in - serviceportal.io

Widgets
Widgets - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes
Contact
Contact - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes
Images and Update Sets – How to Sync Attachments on Widget Instances
Images and Update Sets - How to Sync Attachments on Widget Instances - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes
Mat Adams
Mat Adams, Author at ServicePortal.io
Announcements
Announcements Archives - ServicePortal.io
Apps & Widgets
Apps & Widgets Archives - ServicePortal.io
CMS
CMS Archives - ServicePortal.io
Design & Themes
Design & Themes Archives - ServicePortal.io
Tips & Tricks
Tips & Tricks Archives - ServicePortal.io
Tutorials
Tutorials Archives - ServicePortal.io
Uncategorized
Uncategorized Archives - ServicePortal.io
Videos
Videos Archives - ServicePortal.io
Custom Context Menu Options
Custom Context Menu Options - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes
6 Comments
SCSS Variables in Service Portal - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes
Nathan Firth
Nathan Firth, Author at ServicePortal.io
Service Portal Features of London
Service Portal Features of London - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes
7 Comments
Building a Better Service Portal: Lessons from the Field - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes
4 Comments
Unlocking Service Portal Widgets - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes
2 Comments
Widgets and Demo Portal from our K18 Service Portal Sessions - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes
Gamification in Service Portal (Knowledge18 CreatorCon)
Gamification in Service Portal (Knowledge18 CreatorCon) - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes
Mark Miller
Mark Miller, Author at ServicePortal.io
Let’s grab a drink at Knowledge18 and talk Service Portal
Let’s grab a drink at Knowledge18 and talk Service Portal - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes
Phil Windyk
Phil Windyk, Author at ServicePortal.io
2
Service Portal Tutorials, Themes and Widgets for ServiceNow - ServicePortal.io
8
Service Portal Tutorials, Themes and Widgets for ServiceNow - ServicePortal.io

Serviceportal.io Spined HTML


SCSS Variables in Service Portal - ServicePortal.io - Service Portal Tutorials, Widgets, & Themes Skip to content 0WaresWidgets Documentation Contact SCSS Variables in Service Portal Learn how to streamline your stylesheets in Service Portal by utilizing the full power of SCSS. In this tutorial, I’ll walk you through how to use CSS Variables in your widgets, so that they can be overridden in the Theme and Portal records. This is very useful when creating highly reusable widgets, themes or in situations where you have multiple portals sharing a theme. SCSS is a subset of the Syntactically Awesome StyleSheets (Sass) specification and is an extension of CSS. Every valid CSS stylesheet is valid SCSS. SCSS supports the following: Variables Variables are a way to store information that you want to reuse throughout your stylesheet. You can store things like colors, font stacks, or any CSS value you think you want to reuse. SCSS uses the $ symbol to make something a variable. Nesting SCSS lets you nest your CSS selectors in a way that follows the same visual hierarchy of your HTML. Operators SCSS has a handful of standard math operators like +, -, *, /, and %. Mixins A mixin lets you make groups of CSS declarations that you want to reuse throughout your site. You can pass in values to make your mixin increasingly flexible. Functions SASS supports the use of functions by providing some keyword arguments, which are specified using normal CSS function syntax. Quick note: The order of CSS that is shown in the video is based on the Kingston release. In Jakarta, the Theme variables were loaded surpassing the Portal variables. For remoter reading, trammels out the pursuit resources: https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/build/service-portal/concept/scss-primer.html https://sass-lang.com/guide https://devhints.io/sass https://www.tutorialspoint.com/sass/index.htm Posted on September 10, 2018 by Nathan Firth 6 comments Julien LEROY says: September 10, 2018 at 7:24 pm Hi guys, Thank you for this tomfool and fast video. Why do we need to put the !default symbol when creating the variable in the portal ? what are the advantages ? Because i seem that if i juste create the variable like this in my portal : $color: #fff; and i redifine it in a widget like this : $color: #eee; This will work with the archetype stylsheet priority right ? and then in the widget verisimilitude will be #eee and will be #fff for the rest of the portal. Cheers. Reply Nathan Firth says: September 10, 2018 at 8:10 pm If you don’t use the !default attribute, the last one to set the variable would win (in this example the widget). However, then you would unchangingly have to make changes to the widget to transpiration the color. The goal is to have the widget set the defaults that can then be overridden as needed. Reply Brian says: September 10, 2018 at 9:07 pm Is it possible to dynamically set/update SCSS variables from a server-side script? The use-case might be that each visitor would have it’s own branding elements, but we wouldn’t want to create separate portal for each company. Reply Harneet says: September 11, 2018 at 3:20 pm Hi Brain, In that case, you can pass the branding specific configurations to the SCSS variables through variables like data.configCompanyA and the branding will be updated based in the variable values sent through server side values. Reply Tony Cosentino says: September 24, 2018 at 9:37 am Great content as unchangingly ! I realized that you can moreover override Bootstrap SASS variables in your theme. This is useful in order to update some styles without having to clone widgets. https://getbootstrap.com/docs/3.3/customize/#less-variables Reply Nathan Firth says: September 24, 2018 at 6:09 pm Yes! This is a huge goody of using SCSS. Reply Leave a Reply Cancel reply Your email write will not be published. Required fields are marked * Comment * Name * Email * Website Recent Posts Images and Update Sets – How to Sync Attachments on Widget Instances Custom Context Menu Options Service Portal Features of LondonTowersa Better Service Portal: Lessons from the Field Unlocking Service Portal Widgets Subscribe to get notified when we post new wares or tutorials. EmailWriteNathan Firth Founder of NewRocket, Inc. and ServiceNow architect, web developer, and entrepreneur with over 20 years wits in web development. Former senior engineer and team lead of Service Portal at ServiceNow. I'm originally from Sweden, but currently living in San Diego, CA. I have a trappy wife and three wondrous kids. About ServicePortal.io ServicePortal.io is an self-sustaining ServiceNow blog that focuses on the new Service Portal, ServiceNow CMS, and towers custom apps on the ServiceNow platform. Search Search Copyright © 2018 NewRocket, Inc. EmailWrite* First Name * Last Name * Stay up to stage with new posts on ServicePortal.io Error: Please enter a valid email addressError: Invalid emailError: Please enter your first nameError: Please enter your last nameError: Please enter a usernameError: Please enter a passwordError: Please personize your passwordError: Password and password confirmation do not match Download Now