Login
Forgot Password?

OR

Login with Google Login with Twitter Login with Facebook
  • Join
  • Profiles
  • Groups
  • SuicideGirls
  • Photos
  • Videos
  • Shop
Vital Stats

thehedgehog

northampton, MA

Member Since 2004

Followers 22 Following 26

  • Everything
  • Photos
  • Video
  • Blogs
  • Groups
  • From Others

Wednesday Aug 18, 2004

Aug 17, 2004
0
  • Facebook
  • Tweet
  • Email
for you php folks, here's a quick thing i whipped up this mornin' while working on a rather unrelated coding project:

source:
http://universal.graphicsdesign.org/stylesheet_preview.txt

basicly you paste a stylesheet into that, and it'll give you a complete list of the classes, formatted as the class (with the name repeated in plaintext below it)

if you want a quick stylesheet to try it out with, here ya go:
http://universal.graphicsdesign.org/example_stylesheet.txt

handy if you've got a site using quite a few styles and you just want a quick visual reference -- ugh, how many times i've had to work without a proper style guide is sick.

it's absolute crap, 30 second code, but i thought there'd be some merit to having something like this around, perhaps a bit better developed (using regular expressions rather than a billion search and replaces, formatting tag-specific classes with tiny tables and paragraph tags and stuff, changing the background color on the fly, accepting URLs as arguments, gracefully getting around any style tags present in case it's not being pasted from an actual remote .css file, etcetera.)

i should probably join relevant_group_who_gives_a_feck and just leave it at that :]



minor update

added change-background color functionality, textarea prepopulates with anything that was previously entered (handy for editing a class visually rather than having to click okay ten times to see the result in most wysiwyg editors, heh), cleaned up the firsttime landing view and added the ability to load a remote css file.

also added a quick lil user-input scrubber function, which, though it's far from flawless, should do for a quick lil' online demo:

http://www.universal.graphicsdesign.org/stylesheets_preview.php

see the demo with a preloaded css file (oh how i miss the days when globals were considered safe for everything, heh)

view that here

once i'm done my main project i'll be tempted to add at least some functionality for doin tag-specific ones, ie: H1, P, DIV B, I, TD type stuff.
VIEW 3 of 3 COMMENTS
dogslife:
Those are some pretty stylin' sty-

Sorry, I got nothin'.
Aug 18, 2004
scopitone6248:
Groovy
Aug 18, 2004

More Blogs

  • 11.23.04
    10

    Wednesday Nov 24, 2004

    as siv mentioned in her journal, sheand i've decided to do a trial se…
  • 11.22.04
    5

    Monday Nov 22, 2004

    Read More
  • 10.15.04
    3

    Saturday Oct 16, 2004

    stuff. things.
  • 10.14.04
    1

    Friday Oct 15, 2004

    hasbro should really suck a fuck. http://www.fenslerfilm.com/
  • 09.19.04
    5

    Sunday Sep 19, 2004

    this guy has attained a new level of dork. http://triggur.org/cost…
  • 09.16.04
    1

    Thursday Sep 16, 2004

    last night we were all out at the pub, and then some friends came bac…
  • 08.17.04
    3

    Wednesday Aug 18, 2004

    for you php folks, here's a quick thing i whipped up this mornin' whi…
  • 08.11.04
    4

    Wednesday Aug 11, 2004

    so i'm taking a bartending / mixology course. i'm about halfway throu…
  • 08.08.04
    7

    Sunday Aug 08, 2004

    mornin kids, time for some air-head post-toke-in-a-bad-college-film t…
  • 08.08.04
    0

    Sunday Aug 08, 2004

    heh, good old double posts :]

We at SuicideGirls have been celebrating alternative pin-up girls for:

24
years
1
month
5
days
  • 5,509,826 fans
  • 41,393 fans
  • 10,327,617 followers
  • 4,614 SuicideGirls
  • 1,113,818 followers
  • 14,988,622 photos
  • 321,315 followers
  • 61,553,444 comments
  • Join
  • Profiles
  • Groups
  • Photos
  • Videos
  • Shop
  • Help
  • About
  • Press
  • LIVE

Legal/Tos | DMCA | Privacy Policy | 18 U.S.C. 2257 Record-Keeping Requirements Compliance Statement | Complaint / Content Removal Policy | Contact Us | Vendo Payment Support
©SuicideGirls 2001-2025

Press enter to search
Fast Hi-res

Click here to join & see it all...

Crop your photo