Giter Club home page Giter Club logo

Comments (9)

stevenklise avatar stevenklise commented on August 25, 2024

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.

shiffman avatar shiffman commented on August 25, 2024

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.

runemadsen avatar runemadsen commented on August 25, 2024

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.

shiffman avatar shiffman commented on August 25, 2024

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.

stevenklise avatar stevenklise commented on August 25, 2024

TODO: Move button where code will never overlap.

from magic-book-project.

shiffman avatar shiffman commented on August 25, 2024

slightly above or below code block?

from magic-book-project.

stevenklise avatar stevenklise commented on August 25, 2024

I moved it below the code block with commit b7789a3

from magic-book-project.

stevenklise avatar stevenklise commented on August 25, 2024

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:

#48 (comment)

http://skli.se/
@stevenklise

from magic-book-project.

shiffman avatar shiffman commented on August 25, 2024

perfect!

from magic-book-project.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.