mirror of
https://github.com/danog/sass-site.git
synced 2025-01-08 14:08:45 +01:00
170 lines
6.5 KiB
HTML
170 lines
6.5 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>
|
|
Module: Sass::Selector
|
|
|
|
— Documentation by YARD 0.9.12
|
|
|
|
</title>
|
|
|
|
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
|
|
|
<link rel="stylesheet" href="../../assets/css/docs.css" type="text/css" charset="utf-8" />
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
hasFrames = window.top.frames.main ? true : false;
|
|
relpath = '../';
|
|
framesUrl = "../frames.html#!Sass/Selector.html";
|
|
</script>
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
|
|
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
<div id="header">
|
|
<div id="menu">
|
|
|
|
<a href="../_index.html">Index (S)</a> »
|
|
<span class='title'><span class='object_link'><a href="../Sass.html" title="Sass (module)">Sass</a></span></span>
|
|
»
|
|
<span class="title">Selector</span>
|
|
|
|
|
|
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
</div>
|
|
|
|
<div id="search">
|
|
|
|
<a class="full_list_link" id="class_list_link"
|
|
href="../class_list.html">
|
|
Class List
|
|
</a>
|
|
|
|
<a class="full_list_link" id="method_list_link"
|
|
href="../method_list.html">
|
|
Method List
|
|
</a>
|
|
|
|
<a class="full_list_link" id="file_list_link"
|
|
href="../file_list.html">
|
|
File List
|
|
</a>
|
|
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<iframe id="search_frame"></iframe>
|
|
|
|
<div id="content"><h1>Module: Sass::Selector
|
|
|
|
|
|
|
|
</h1>
|
|
|
|
<dl class="box">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt class="r1 last">Defined in:</dt>
|
|
<dd class="r1 last">.ruby-sass/lib/sass/selector.rb<span class="defines">,<br />
|
|
.ruby-sass/lib/sass/selector/abstract_sequence.rb,<br /> .ruby-sass/lib/sass/selector/comma_sequence.rb,<br /> .ruby-sass/lib/sass/selector/pseudo.rb,<br /> .ruby-sass/lib/sass/selector/sequence.rb,<br /> .ruby-sass/lib/sass/selector/simple.rb,<br /> .ruby-sass/lib/sass/selector/simple_sequence.rb</span>
|
|
</dd>
|
|
|
|
</dl>
|
|
<div class="clear"></div>
|
|
|
|
<h2>Overview</h2><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
<p>A namespace for nodes in the parse tree for selectors.</p>
|
|
|
|
<p><span class='object_link'><a href="Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">CommaSequence</a></span> is the toplevel selector, representing a comma-separated
|
|
sequence of <span class='object_link'><a href="Selector/Sequence.html" title="Sass::Selector::Sequence (class)">Sequence</a></span>s, such as `foo bar, baz bang`. <span class='object_link'><a href="Selector/Sequence.html" title="Sass::Selector::Sequence (class)">Sequence</a></span> is the
|
|
next level, representing <span class='object_link'><a href="Selector/SimpleSequence.html" title="Sass::Selector::SimpleSequence (class)">SimpleSequence</a></span>s separated by combinators (e.g.
|
|
descendant or child), such as `foo bar` or `foo > bar baz`.
|
|
<span class='object_link'><a href="Selector/SimpleSequence.html" title="Sass::Selector::SimpleSequence (class)">SimpleSequence</a></span> is a sequence of selectors that all apply to a single
|
|
element, such as `<a href="attr=val">foo.bar</a>`. Finally, <span class='object_link'><a href="Selector/Simple.html" title="Sass::Selector::Simple (class)">Simple</a></span> is the
|
|
superclass of the simplest selectors, such as `.foo` or `#bar`.</p>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
|
|
</div><h2>Defined Under Namespace</h2>
|
|
<p class="children">
|
|
|
|
|
|
|
|
|
|
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Selector/AbstractSequence.html" title="Sass::Selector::AbstractSequence (class)">AbstractSequence</a></span>, <span class='object_link'><a href="Selector/Attribute.html" title="Sass::Selector::Attribute (class)">Attribute</a></span>, <span class='object_link'><a href="Selector/Class.html" title="Sass::Selector::Class (class)">Class</a></span>, <span class='object_link'><a href="Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">CommaSequence</a></span>, <span class='object_link'><a href="Selector/Element.html" title="Sass::Selector::Element (class)">Element</a></span>, <span class='object_link'><a href="Selector/Id.html" title="Sass::Selector::Id (class)">Id</a></span>, <span class='object_link'><a href="Selector/Parent.html" title="Sass::Selector::Parent (class)">Parent</a></span>, <span class='object_link'><a href="Selector/Placeholder.html" title="Sass::Selector::Placeholder (class)">Placeholder</a></span>, <span class='object_link'><a href="Selector/Pseudo.html" title="Sass::Selector::Pseudo (class)">Pseudo</a></span>, <span class='object_link'><a href="Selector/Sequence.html" title="Sass::Selector::Sequence (class)">Sequence</a></span>, <span class='object_link'><a href="Selector/Simple.html" title="Sass::Selector::Simple (class)">Simple</a></span>, <span class='object_link'><a href="Selector/SimpleSequence.html" title="Sass::Selector::SimpleSequence (class)">SimpleSequence</a></span>, <span class='object_link'><a href="Selector/Universal.html" title="Sass::Selector::Universal (class)">Universal</a></span>
|
|
|
|
|
|
</p>
|
|
|
|
<h2>Constant Summary</h2>
|
|
|
|
<dl class="constants">
|
|
|
|
<dt id="SPECIFICITY_BASE-constant" class="">SPECIFICITY_BASE =
|
|
<div class="docstring">
|
|
<div class="discussion">
|
|
|
|
<p>The base used for calculating selector specificity. The spec says this
|
|
should be “sufficiently high”; it's extremely unlikely that any single
|
|
selector sequence will contain 1,000 simple selectors.</p>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
|
|
</div>
|
|
</dt>
|
|
<dd><pre class="code"><span class='int'>1_000</span></pre></dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div id="footer">
|
|
Generated on Mon Oct 22 13:20:50 2018 by
|
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
0.9.12 (ruby-2.5.3).
|
|
</div>
|
|
<script>
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
|
ga('create', 'UA-535380-14', 'sass-lang.com');
|
|
ga('send', 'pageview');
|
|
</script>
|
|
|
|
</body>
|
|
</html> |