s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
StyleSelector
chevron_left
Classes
class
StyleSelector
search
Constructors
functions
StyleSelector
Fields
crop_din
AdjacentSibling
crop_din
AnyOf
crop_din
AsString
crop_din
Block
crop_din
DecendantOf
crop_din
Element
crop_din
Flags
crop_din
GeneralSibling
crop_din
Has
crop_din
ImmediateParent
crop_din
Not
crop_din
NthChild
crop_din
Parent
crop_din
SelfScore
crop_din
UniversalSelector
Properties
data_object
Classes
data_object
Id
data_object
Score
Methods
functions
Finalize
functions
Test
functions
TestBroadphase
functions
TestParent
StyleSelector
A CSS selector like "Panel.button.red:hover .text"
class
Sandbox.UI
.
sealed
Sandbox.Engine
build
Constructors
1
StyleSelector
(
)
crop_din
Fields
15
AdjacentSibling
bool
For + combinator
AnyOf
StyleSelector[]
AsString
string
Block
StyleBlock
DecendantOf
StyleSelector[]
Element
string
Flags
PseudoClass
GeneralSibling
bool
For ~ combinator
Has
StyleSelector[]
ImmediateParent
bool
Not
StyleSelector
NthChild
Func`2
Parent
StyleSelector
Descendant combinator A B Child combinator A > B Adjacent sibling combinator A + B General sibling combinator A ~B
SelfScore
int
UniversalSelector
bool
True if this has a universal selector (*)
data_object
Properties
3
Classes
String[]
Id
string
The Id selector - minus the # https://developer.mozilla.org/en-US/docs/Web/CSS/ID_selectors
Score
int
functions
Methods
4
Finalize
(
block
)
Test
(
target
,
forceFlag
)
bool
Test whether target passes our selector test. We use forceFlag to do alternate tests for flags like ::before and ::after. It's basically added to the target's pseudo class list for the test.
TestBroadphase
(
target
)
bool
TestParent
(
target
,
recusive
)
bool
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.