Comments (6)
I believe it's because you set the example class on the pre element as well as the div element that contains it. It seems that this redundancy is generated by respec. I would certainly think that one example class should be sufficient.
from tr-design.
The original, respec code is:
<pre class="example highlight">
{
"name": "inventory_date",
"titles": "Inventory Date",
"dc:description": "The date of the operation that was performed.",
"datatype": {
"base": "date",
"format": "M/d/yyyy"
}
}
</pre>
Ie, it is definitely respec that adds both. But one would expect that changing the style sheet would not lead to such differences anyway...
from tr-design.
Hmm. We could change respec so that when it wraps the example in a div
it removes the class example from the pre... but that feels weird.
On Wed, Nov 11, 2015 at 2:33 AM, Ivan Herman [email protected]
wrote:
The original, respec code is:
<pre class="example highlight">
{
"name": "inventory_date",
"titles": "Inventory Date",
"dc:description": "The date of the operation that was performed.",
"datatype": {
"base": "date",
"format": "M/d/yyyy"
}
}
Ie, it is definitely respec that adds both. But one would expect that
changing the style sheet would not lead to such differences anyway...—
Reply to this email directly or view it on GitHub
#26 (comment).
Shane McCarron
[email protected]
from tr-design.
While I can work around this ReSpec issue in the style sheet sort-of (by replacing all occurrences of
.example' with ':not(.example) > .example', which will catch most cases of this ReSpec output), it does seem redundant to me to have the example class on both elements. I would prefer that ReSpec remove the nested 'example' class. On the off chance you need to style PRE blocks inside examples specially, it's very easy to do with '.example pre'.
Let me know what you think.
from tr-design.
I addressed this in my support for your stylesheets.
On Mon, Nov 30, 2015 at 1:55 PM, fantasai [email protected] wrote:
While I can work around this ReSpec issue in the style sheet sort-of (by
replacing all occurrences of
.example' with ':not(.example) > .example', which will catch most cases of
this ReSpec output), it does seem redundant to me to have the example class
on both elements. I would prefer that ReSpec remove the nested 'example'
class. On the off chance you need to styleblocks inside examples specially, it's very easy to do with '.example pre'.
Let me know what you think.
—
Reply to this email directly or view it on GitHub
#26 (comment).
Shane McCarron
[email protected]
from tr-design.
Excellent. I'll close the issue then.
from tr-design.
Related Issues (20)
- Notes are endorsed by their Groups HOT 6
- DRY.css points at the wrong logo
- Link to Lower Level HOT 2
- Sample headers section missing and broken links in README
- Bidi support
- WCAG 2.2 target size issues on Table of contents HOT 1
- Should "It is not a W3C Standard nor is it on the W3C Standards Track." be more clearly displayed? HOT 1
- Linking to latest Snapshot
- Auto-add title attribute for amendments
- Add a "domintro" style HOT 12
- Links within `ins` elements cannot be distinguished visually HOT 5
- Incorporate RFC2119 styling HOT 5
- Styling Audit HOT 1
- Where are the current styles? HOT 3
- Dashed underline for text insertion style not working HOT 2
- Upstream style for test boxes generated by bikeshed
- Upstream "algo container" styles to W3C stylesheet? HOT 8
- Images for invisible, whitespace, and combining characters HOT 5
- current "Single Codepoint Template" is incorrect and produces poor rendering
- .dark class for dark mode HOT 3
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 tr-design.