Comments (5)
Don't understand: Notice that the Extending selector was grouped before the Extended selector. ...
I guess this means something like:
.questions:extend(.answers) {
background: blue;
}
.answers {
color: red;
}
with result:
.questions {
background: blue;
}
.answers,
.questions {
color: red;
}
I.e. .answers
goes first in the list even if defined after .questions
. (Probably it's too minor stuff to be mentioned at all)
from less-docs.
Except its reverse.. the extending selector goes last in the list? (I guess depending on the definition of extending selector). Also the xamples that were around this were the wrong way round too. I think I worked it into some of the sentences anyway that it is added on to the end of the selector list.
from less-docs.
I did all of the initial docs for extends while we were still discussing how you were going to implement it, so I imagine a lot of it was wrong
from less-docs.
Actually those "extending" and "extended" labels are not so easy to define unambiguously. Hence sometimes we can even confuse ourselves.
For example a:extend(b)
looks like a
extends b
. So we may say that
a
is the "extending" andb
is the "extended".
However, since it's a
who inherites b
's properties, it is also true that
a
is extended byb
's properties
so it's
a
is extended byb
so it's
a
is the "extended" andb
is the "extending"
:)
It all depends on how exactly one defines "extend" (as English word not as LESS keyword) in context of CSS classes... and the flip point is very thin and subtle... (Luckily examples make things unambiguous).
from less-docs.
Cool Jon, thanks, makes sense now & feel free to critique or add to the
extend documentation
from less-docs.
Related Issues (20)
- Screen overflow on mobile
- Documenting dynamic property iteration (or whatever you want to call it). HOT 1
- A simple less-include triggers a deprecated-warning into the console - how to solve this issue?
- A part of Extend document is error at the "Selector Interpolation with Extend".
- 数学运算:less编译为css是,除法没有被编译成功,这是一个bug嘛? HOT 1
- HTTPS certificate is invalid for lesscss.org HOT 1
- Permutation of 4 is 24, not 16 HOT 1
- Remove IE11 as a supported browser HOT 1
- Overview > Operations > Conversion is impossible example giving different results
- Typo : In CDN
- Overview -> Operatins the division example is misleading HOT 3
- A plan for Chinese doc. HOT 6
- ci: auto deploy lesscss.org
- Error getting started with LESS HOT 1
- Official website problem
- Guide link is broken HOT 2
- Migrating from v3.x to v4.x HOT 2
- 此less脚本 将 less 转 css 时,会导致某些属性无法获取 HOT 1
- `default()` guard should be documented / mentioned with mixin documentation
- Mismatch between Expected and Actual Output in Official Documentation Example
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from less-docs.