you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (12 children)

[deleted]

    [–]JasonCarswell 3 insightful - 3 fun3 insightful - 2 fun4 insightful - 3 fun -  (11 children)

    VERY COOL!

    Can you share the Markdown and CSS?

    >! Can you share the Markdown and CSS?
    I guess I just did for the Markdown.
    And stylesheet CSS:

    .md-spoiler-text > p { opacity: 0; transition: opacity 0.5s }
    .md-spoiler-text:hover > p { opacity: 1 }
     
    .md .md-spoiler-text {
    background: #4f4f4f;
    border-radius: 2px;
    transition: background ease-out 1s;
    }

    I think /u/d3rr might like this.

    [–][deleted]  (7 children)

    [deleted]

      [–]JasonCarswell 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (6 children)

      From my understanding it all seems necessary to what you have showing. You could even get fancy and make it different colours, rounded corners, and potentially other good stuff.

      [–][deleted]  (5 children)

      [deleted]

        [–][deleted] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (2 children)

        Thanks, but I've been playing around with CSS for half a decade, and Jason's probably been doing it for much longer. Your code is pretty decent; I looked through it once on s/politics so I could find an exploit to use headings (which was patched a few days later, to your credit, and was just a single, missing comma).

        Copying code is actually pretty normal, even for experienced developers. You can't memorize every, single feature of a language, and sometimes I mix up the various languages I know. Also, if you're working with a new module/package/whatever: you'll probably have to dig through documentation and copy a few lines of code to learn the basics.

        [–]Vulptex 2 insightful - 3 fun2 insightful - 2 fun3 insightful - 3 fun -  (0 children)

        Unless you're cqtz, then you're automatically an expert in everything who can singlehandedly outdo corporate giants full of professionals in absurdly quick amounts of time. By accident while casually doing something as a hobby. After just barely dabbling in the said subject.

        [–]JasonCarswell 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

        I only used CSS with HTML over a decade ago and a bit for a couple years on SaidIt - both very different beasts. I'm no expert but hammered at it with tenacity though it hurts my brain.

        [–]Vulptex 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

        I bet none of them compare to cqtz

        [–]JasonCarswell 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (0 children)

        Thanks for the invite. I'm full up with subs. Let me know if you have a special CSS request.

        I think socks and ActuallyNot might like to modominate your /s/Facts.

        [–][deleted]  (1 child)

        [deleted]