Tutorialsteacher

Follow Us

Articles
  • C#
  • C# OOP
  • ASP.NET Core
  • ASP.NET MVC
  • LINQ
  • Inversion of Control (IoC)
  • Web API
  • JavaScript
  • TypeScript
  • jQuery
  • Angular 11
  • Node.js
  • D3.js
  • Sass
  • Python
  • Go lang
  • HTTPS (SSL)
  • Regex
  • SQL
  • SQL Server
  • PostgreSQL
  • MongoDB
  • Sass - Get Started
  • What is Sass
  • Sass - Setup Environment
  • Sass - Syntax
  • Sass - Variable
  • Sass - Script
  • Sass - Data Types
  • Sass - Operators
  • Sass - Functions
  • String Functions
  • Numeric Functions
  • List Functions
  • Map Functions
  • Selector Functions
  • Introspection Functions
  • Color Functions
  • Control Directives
  • Import Files and Partials
  • Sass - Mixins
  • Sass - Inheritance
Entity Framework Extensions - Boost EF Core 9
  Bulk Insert
  Bulk Delete
  Bulk Update
  Bulk Merge

Sass - Introspection Functions

The functions in this group allow you to examine the state of Sass itself. You won't use them often when you're building stylesheets, but they're invaluable for figuring out what's going on when something doesn't work quite the way you expected it to.

FunctionDescriptionExamplesResult
variable-exists($name)Returns a Boolean value indicating whether the specified variable exists, either globally or in the current scope$a: 10px;true
variable-exists($not-declared)false
global-variable-exists($name)Returns a Boolean value indicating whether the specified variable exists at the global level$a: 10px;
global-variable-exists(a);
true
mixin-exists($name)Returns a Boolean value indicating whether the specified mixin exists@mixin text-color {color: red; }true
inspect($value)Returns $value as it is represented by Sass.inspect(12)"12"
type-of($value)Returns a string containing the Sass data type of $valuetype-of(1 2 3)"list"
unit($number)Returns the unit associated with a number, or an empty string if the number is unitless$a: 10px;"px"
$a: 10;""
unitless($number)Returns a Boolean value indicating whether the specified number has a unit associated with it$a: 10px;false
comparable($number1, $number2)Returns a Boolean value indicating whether the specified numbers can be added, subtracted or comparedcomparable(1em, 4em)true
comparable(1em, 3px)false
comparable(1em, 5)true
TUTORIALSTEACHER.COM

TutorialsTeacher.com is your authoritative source for comprehensive technologies tutorials, tailored to guide you through mastering various web and other technologies through a step-by-step approach.

Our content helps you to learn technologies easily and quickly for learners of all levels. By accessing this platform, you acknowledge that you have reviewed and consented to abide by our Terms of Use and Privacy Policy, designed to safeguard your experience and privacy rights.

[email protected]

ABOUT USTERMS OF USEPRIVACY POLICY
copywrite-symbol

2024 TutorialsTeacher.com. (v 1.2) All Rights Reserved.