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

  • 02.27.05
    23

    Sunday Feb 27, 2005

    okay now normally if i'm going to give someone flowers, i buy them at…
  • 12.23.04
    6

    Thursday Dec 23, 2004

    i've aquired a new job, but obviously i won't get paid until i er.. y…
  • 12.15.04
    5

    Thursday Dec 16, 2004

    Read More
  • 12.13.04
    6

    Monday Dec 13, 2004

    Siv (10:03:07 AM): oh man did you ever listen to motely crue? Siv (1…
  • 12.04.04
    14

    Sunday Dec 05, 2004

    i swear one day we're all just gonna find siv behind a cage in some r…
  • 12.03.04
    8

    Friday Dec 03, 2004

    Read More
  • 11.30.04
    15

    Tuesday Nov 30, 2004

    i was in a gas station a few minutes ago and some guy's there with cr…
  • 11.28.04
    8

    Sunday Nov 28, 2004

    siv and i just had the most awesome conversation ever. i'm a mixture …
  • 11.26.04
    5

    Friday Nov 26, 2004

    sorry, this has a few personal references that may or may not be inte…
  • 11.24.04
    2

    Thursday Nov 25, 2004

    ------------------ 4 7 13 8 | 7 13 8 4 | 13 8 4 7 | 8 4 7 13 ------…

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

23
years
9
months
27
days
  • 5,509,826 fans
  • 41,393 fans
  • 10,327,617 followers
  • 4,593 SuicideGirls
  • 1,117,733 followers
  • 14,933,073 photos
  • 321,315 followers
  • 61,423,823 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 | 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