Comments (9)
Hmmm, does it make more sense to have the button on by default or off? Or detect for comments?
Or reposition the button to only show it on hover, in the top right corner or such?
Steve Klise
Sent from my phone
http://skli.se
@stevenklise
On Monday, June 25, 2012 at 11:33 AM, Daniel Shiffman wrote:
the show raw button is fantastically amazing! but sometimes it seems unnecessary (one line of code) and causes the code block to take up a lot of additional space. so maybe we play around with different css design or add an option to hide it for some blocks of code.
Reply to this email directly or view it on GitHub:
#48
from magic-book-project.
I would say by default on and maybe reposition button in top right corner? button can be smaller, maybe like a tab in a way. Like you are tabbing between raw and styled?
from magic-book-project.
I changed the styling on this. I'll send an email out later for you to pull down and test my changes. You can close the issue if this fixes it.
from magic-book-project.
this is great. in my shiffman branch i am experimenting with absolutely positioning it above the code block aligned on the right. not sure if this is the proper way to do it though.
.source-code a.toggle {
position: absolute;
right: 20px;
top: -20px;
margin-top: 0em;
font-size: 0.8em;
color: #656565;
}
from magic-book-project.
TODO: Move button where code will never overlap.
from magic-book-project.
slightly above or below code block?
from magic-book-project.
I moved it below the code block with commit b7789a3
from magic-book-project.
I placed it below the code block, take a look it should be merged in to
master now.
On Mon, Jul 9, 2012 at 11:53 AM, Daniel Shiffman <
[email protected]
wrote:
slightly above or below code block?
Reply to this email directly or view it on GitHub:
from magic-book-project.
perfect!
from magic-book-project.
Related Issues (20)
- front matter page numbering HOT 9
- License
- //[offset-down] (or up) problem? HOT 2
- Table of Contents Heading HOT 3
- "Note" heading turns into h5 if it's underneath an existing h4 HOT 2
- Literal commas where commas are delimiters HOT 4
- create_html_chapters breaks references between chapters
- Index listing letter header for each entry
- Index alphabetical order should not be case-sensitive
- Project description URL HOT 3
- Nesting of spans not working properly
- index issues HOT 1
- Sinatra doesn't find file, despite file existing: HOT 1
- asciidoc::ascii_element#parse_metadata gets a nil xml element when reading an .asc file HOT 2
- quotes in index
- remove noc specific code HOT 3
- Gemfile.lock out of date? HOT 1
- Use of PrinceXML HOT 6
- SyntaxError: ./helpers/magicrocco.rb:128: undefined (?...) sequence: /(?<code>.*[^\n$])(?<end>\n|$)/ HOT 1
- Problem cloning the rep
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 magic-book-project.