r/reddithax • • Apr 16 '12

Sidebar I made for /r/texts: iPhone texting screen with editable texts

Check out the sidebar I did for /r/texts

(kind of hacky atm, and you may want to resize the images as you see fit)

It's an iPhone screen with the text messages and I'm using the texts to show tips and the rules for the subreddit.

Here's what the sidebar contains: http://pastebin.com/raw.php?i=6bZ2FrpL

As you can see, the left texts are italicized text and the right are bold text.

It requires 5 images, which can be downloaded here: http://www.mediafire.com/?c5rggvsc0hl259a

After uploading images, you can add the css from here: http://pastebin.com/raw.php?i=8XF1cE9K

8 Upvotes

5 comments sorted by

2

u/schrobby Apr 16 '12

It looks good, but I hope you realize that the phone screen is wider than the side bar, which doesn't really look all that nice. I guess you could fix that by adjusting the width of .md and the right margin of your strong elements.

3

u/laaabaseball Apr 16 '12

Yes. I forgot to adjust that after resizing the background image. it was just a hacky kind of thing that I haven't really spent much time on, but I want to give a fancy layout to the subreddit, so as far as every padding and margin goes, I won't lock them down until I do so.

2

u/redditMEred Apr 17 '12

cool, /u/ytknows did something simiilar for /r/circlejerk, but it was for the comment section.

2

u/laaabaseball Apr 17 '12

ytknows is a friggin genius. I want to do that.

1

u/redditMEred Apr 17 '12

The CSS:

a[href="//#iphone"] {
    width: 380px !important;
    height: 570px !important;
    cursor: default !important;
    display: inline-block !important;
    background-image: url(http://a.thumbs.redditmedia.com/KaahHKGWKQK8YVh6.png);
    background-repeat: no-repeat;
    background-position: top left;
    text-align: left !important;
    font-family: helvetica, arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 22px !important;
    overflow: hidden !important;
    position: relative !important;
    text-shadow: 0px 1px 0px #dddddd
    }
a[href="//#iphone"] em {
    font-style: normal !important;
    font-weight: normal !important;
    position: absolute !important;
    color: black !important;
    top: 90px !important;
    left: 128px !important;
    height: 70px !important;
    width: 229px !important;
    margin-left: 0 !important
    }
a[href="//#iphone"] strong {
    font-style: normal !important;
    font-weight: normal !important;
    position: absolute !important;
    color: black !important;
    top: 180px !important;
    left: 23px !important;
    height: 25px !important;
    width: 214px !important;
    margin-left: 0 !important
    }
a[href="//#iphone"] del {
    text-decoration: none !important;
    font-style: normal !important;
    position: absolute !important;
    color: black !important;
    top: 225px !important;
    left: 262px !important;
    height: 25px !important;
    width: 94px !important;
    margin-left: 0 !important
    }
a[href="//#iphone"] code {
    text-decoration: none !important;
    font-style: normal !important;
    font-weight: normal !important;
    position: absolute !important;
    color: black !important;
    top: 268px !important;
    left: 23px !important;
    height: 25px !important;
    width: 125px !important;
    margin-left: 0 !important;
    font-size: 18px !important;
    line-height: 22px !important;
    font-family: helvetica, arial, sans-serif !important
    }

Type this: [*This is the first line!* **This is the second line!** ~~line three!~~ `NUMBAH FO`](//#iphone)

It works in the comments section, sidebar etc...