2022.2

Table Of Contents
l
Aruleforthetextcolorofalltablecells(tdelements),forexample:td { color: green; }.
l
Aruleforthetextcoloroftablecellswithacertainclass,forexample.green { color:
green; }.
l
AruleforthetextcolorofatablecellwithacertainID,forexample:#greentext { color:
green; }.
l
Aninlinestylerule(localformatting)addedtotheHTMLtagofaparticulartablecell,forexample:
<td style="color: green;">...</td>.
Eachoftheserulesismorespecificthanthepreviousrules.Alloftheserulesaremorespecificthanthe
rulethatappliestothetableasawhole.
Note: When!importantisaddedtoastylerule(e.g.color: red !important;),thisrule
overridesanyotherstylerules,eveninlinestylerules.
UsingaSassfile
ACSSpreprocessorisaCSSextensionlanguagethatallowsyoutoenhanceCSSwithcode(vari-
ables,forexample)andthencompileitintoplainCSS.CSSPreprocessorSassisintegratedinCon-
nect.
FormoreinformationaboutSass,see:https://sass-lang.com/.
Adding a Sass file
ToaddaSassfile:
1. Right-clicktheStylesheetfolderontheResourcespane,andclickNew Stylesheet > SCSS
file.
2. EnteranameforthefileasitappearsintheStylesheetresources.
WhenthenameofSassfilebeginswithanunderscore,itisconsideredapartial.scssfile(e.g._
mySass.scss).Partialfilesaretypicallyimportedinabase.scssfile.TheymayincludeSassvari-
ablesorotherdirectivesdeclaredinthebasefile,andtheycannotbecompiled.
Compiling a Sass file
ASassfileneedstobecompiledintoaplainCSSfilebeforeitcanbeappliedtoasection.Tocompile
it:
1. OpentheStylesheetfolderontheResourcespane.
2. Right-clickthe.scssfileandselectCompile.
ThecompiledstylesheetwillhavethesamenameastheSassfile,butwiththeextension.css.
CompiledCSSfilescanberecognizedbytheirfirstline:/*Compiledbyhttps://sass-lang.com/libsass
Page 270