Sass

  • 安装 Sass
  • 学习 Sass
  • 官方博客
  • Sass 中文文档
  • 参与社区
  • 英文官网

Contents

  • Syntax
    • Overview
    • Parsing a Stylesheet
    • Structure of a Stylesheet
    • Comments
    • Special Functions
  • Style Rules
    • Overview
    • Property Declarations
    • Parent Selector
    • Placeholder Selectors
  • Variables
  • Interpolation
  • At-Rules
    • Overview
    • @use
    • @forward
    • @import
    • @mixin and @include
    • @function
    • @extend
    • @error
    • @warn
    • @debug
    • @at-root
    • Flow Control
      • Overview
      • @if and @else
      • @each
      • @for
      • @while
    • From CSS
  • Values
    • Overview
    • Numbers
    • Strings
    • Colors
    • Lists
    • Maps
    • true and false
    • null
    • Functions
  • Operators
    • Overview
    • Equality
    • Relational
    • Numeric
    • String
    • Boolean
  • Built-In Modules
    • Overview
    • sass:color
    • sass:list
    • sass:map
    • sass:math
    • sass:meta
    • sass:selector
    • sass:string
  • Breaking Changes
    • Overview
    • / as Division
    • Color Units
    • Extending Compound Selectors
    • CSS Variable Syntax
  • Command Line
    • Overview
    • Dart Sass
    • Ruby Sass
    • Migrator
  • JavaScript API
  • sass
  • SourceLocation

Interface SourceLocation

A specific location within a source file.

This is always associated with a SourceSpan which indicates which file it refers to.

Hierarchy

  • SourceLocation

Index

Properties

  • column
  • line
  • offset

Properties

column

column: number
  • Defined in js-api-doc/logger/source_location.d.ts:20

The 0-based column number of this location.

line

line: number
  • Defined in js-api-doc/logger/source_location.d.ts:17

The 0-based line number of this location.

offset

offset: number
  • Defined in js-api-doc/logger/source_location.d.ts:14

The 0-based index of this location within its source file, in terms of UTF-16 code units.

  • Exports
  • Logger
  • types
  • SourceLocation
    • column
    • line
    • offset
  • 当前版本:
  • Dart Sass 1.45.2
  • LibSass 3.6.5
  • Ruby Sass ⚰
  • 实现指南

Sass © 2006–2022 the Sass team, and numerous contributors. It is available for use and modification under the MIT License.

  • Sass on GitHub
  • 站点源码
  • 样式指南
  • 社区指南
  • 友链:
  • Bootstrap 中文网
  • Less
  • Stylus
  • Tailwind CSS
  • cssnano
  • PurgeCSS
  • jQuery
  • Parcel
  • webpack
  • Rollup
  • Babel
  • npm
  • pnpm
  • Yarn
  • Next.js
  • Nuxt.js
  • Gridsome
  • Docusaurus
  • VuePress
  • Svelte
  • Alpine.js
  • Recoil
  • Gatsby.js
  • Fastify
  • Lerna
  • Markdown
  • Prettier
  • Axios
  • Deno
  • WebAssembly

京ICP备15031610号-15