Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Feedback > A minimalistic CSDb style for Stylish
2017-02-08 12:51
jailbird

Registered: Dec 2001
Posts: 1576
A minimalistic CSDb style for Stylish

I couldn't sleep last night so I decided to restyle CSDb a bit, maybe some of you will find it useful.

Since the HTML is not semantic at all, and it was a real pain in the ass to make it work, I am pretty sure it's full of shit, so feel free to improve/change it.

Oh, and it works only when you're logged in.

Get it from https://github.com/csisztaiarnold/csdb_stylish

Preview on YouTube: https://www.youtube.com/watch?v=mLMcTCREKf8
2017-02-08 12:58
Oswald

Registered: Apr 2002
Posts: 5022
looks great, extra thumbs for the joke :)
2017-02-08 19:21
Digger

Registered: Mar 2005
Posts: 421
Awesome selector gang-bang JB! It used to be Greasemonkey doing this in 2000.
2017-02-08 20:11
Hein

Registered: Apr 2004
Posts: 933
That's too freaking pragmatic for this database.

2017-02-09 10:29
Shadow
Account closed

Registered: Apr 2002
Posts: 355
Nice work Jailbird, a little more modern feel to it compared to standard CSDb!
2017-02-09 17:19
CreaMD

Registered: Dec 2001
Posts: 3035
Neat, I think now when it is proof-of-concepted (is that the term?) it might also be replaced for CSDB by Perff ;-) I kinda like it, although I only clicked through the video. If that's also responsive, immediate replacement is a must.
2017-02-09 17:29
chatGPZ

Registered: Dec 2001
Posts: 11130
verdammte webdesignspacken
2017-02-09 19:15
jailbird

Registered: Dec 2001
Posts: 1576
Quote: Neat, I think now when it is proof-of-concepted (is that the term?) it might also be replaced for CSDB by Perff ;-) I kinda like it, although I only clicked through the video. If that's also responsive, immediate replacement is a must.

Nah, due to the archaic, nested table structure, the inline styles and the total absence of semantics, it's impossible to make it responsive with CSS only (except from hiding stuff with media queries). Inportant sections which would need isolated block-elements or groupings are often separated by line breaks or empty table cells. Also, almost all the input buttons are made of images. The HTML would definitely need a rewrite from ground up.

And even when I use targeted selectors for styling specific elements, there is a great chance that the same selector will affect another element on another page as they're often conflicting.

So in the current state of CSDb, we're limited to play around with whitespaces, colors and font styles. That's about it.

The first version was rather fast experiment to check out what's possible with Stylish, but I keep tinkering with the style, so you could expect a better version soon
2017-02-09 22:48
jailbird

Registered: Dec 2001
Posts: 1576
Updated the forum area:

Forum table > Topics table > Thread
2017-02-10 08:25
CreaMD

Registered: Dec 2001
Posts: 3035
Beauty.
2017-02-10 10:45
jailbird

Registered: Dec 2001
Posts: 1576
I have added the stylesheet to userstyles.org, so from now on, once you have installed both the extension and the style, you could always be up do date with the latest production version of the sheet (Manage installed styles > Check for update).

It's still a work in progress, so use it with caution.

Installation instructions: https://github.com/csisztaiarnold/csdb_stylish#installation

There's no Stylish plugin for IE/Edge, but I guess it could be substituted with Greasemonkey.
2017-02-20 20:27
bOOZElEE

Registered: Dec 2002
Posts: 35
Quoting Jailbird
The HTML would definitely need a rewrite from ground up.

I second that.

It'd be great to make an overhaul and switch to semantic and responsive HTML5 markup.

I can listen to SID-Tunes on my phone, why shouldn't I be able to read CSDb properly on it ;)
2017-02-20 20:28
chatGPZ

Registered: Dec 2001
Posts: 11130
you should be making gfx instead :)
2017-02-20 20:50
bOOZElEE

Registered: Dec 2002
Posts: 35
Oh c'mon, sweetheart. It's my 24th post in about 15 years and I'm still being ranted at by you, just for being inactive ;)

But seriously: if (part) of the source code would be made available (f.e. in a repository) there should be imho enough people willing to help switching to a more semantic approach.

Unless there's something I'm not aware off and html table layout is still necessary? People using AWeb or IBrowse on AMIGA f.e.? :)
2017-02-21 00:00
jailbird

Registered: Dec 2001
Posts: 1576
WTF, I'd never thought I'd communicate, nevertheless to agree with Rayden, but yeah.

My current shit is somewhat bareable. It is better, but it IS... shit.

As is CSDb.

Do better
2017-02-21 00:03
jailbird

Registered: Dec 2001
Posts: 1576
BTW a single class on the <body> depending on the first URI segment would help ALFULLY a lot! Perffffff pls!
2017-02-21 00:13
jailbird

Registered: Dec 2001
Posts: 1576
Plus another update :

- it looks better (except the PM, but who uses that anyway)
- votes look better:



And similar small improvement stuff but I have to pee and sleep
2017-02-21 06:59
chatGPZ

Registered: Dec 2001
Posts: 11130
Quote:
But seriously: if (part) of the source code would be made available (f.e. in a repository) there should be imho enough people willing to help switching to a more semantic approach.

after looking at the code myself, i dare to say that those who look at it only want to do one thing: delete it all.
2017-02-21 07:41
JackAsser

Registered: Jun 2002
Posts: 1989
Quote: Quote:
But seriously: if (part) of the source code would be made available (f.e. in a repository) there should be imho enough people willing to help switching to a more semantic approach.

after looking at the code myself, i dare to say that those who look at it only want to do one thing: delete it all.


That is indeed usually the case when it comes to bad code. The only viable approach would be to expose the content of the database as an API imo (since giving the full database exposes private messages between persons etc).

Another approach is of course to gut out everything personal from the database and keep it a pure tracking of releases (i.e. remove PMs, forum, user comments) then make everything public domain with public read only access. Read write access for selected trusted implementors.
2017-02-21 07:45
chatGPZ

Registered: Dec 2001
Posts: 11130
even the db itself needs a serious rework / restructuring.

think of the C code you wrote 20 years ago. its that bad.
2017-02-21 08:56
Peacemaker

Registered: Sep 2004
Posts: 243
Jailbird: Looking good. If you it could only beeing applied by inserting your .css why, not? :D
2017-02-21 09:26
CreaMD

Registered: Dec 2001
Posts: 3035
Quote: BTW a single class on the <body> depending on the first URI segment would help ALFULLY a lot! Perffffff pls!

Jb, contact Perff directly, that should be a simple and straightforward task for him.

Other way, parse url with js, add body class dynamically with js. (using js not possible, right?)

roman
2017-02-21 09:35
Perff
Administrator

Posts: 1665
Nice things I see people are saying about my old code here! ;)
But, yes it IS bad. :/

@Jailbird: Let me know what you like me to do (didn't get it from your comment), and I'll look at it. :)
2017-02-21 09:38
chatGPZ

Registered: Dec 2001
Posts: 11130
I'd say exactly the same about my own code from 20 years ago. Horrible =)
2017-02-21 10:13
jailbird

Registered: Dec 2001
Posts: 1576
HTML and CSS aint code anyway ;)
@Perff: I/we would need a unique (but permanent) class in the body of each page based on the first URI segment. Fe. forum for this, home for home, release for the release page, event for the events, etc. So I could write direct selectors which don't influence elements on other pages. I am sure it would be easy to automate it. Thanx! XOXO

Ps: plus a unique class for the menu items, but that's useful just for the lurkers so no priority
2017-02-21 21:14
bOOZElEE

Registered: Dec 2002
Posts: 35
Quoting Jailbird
WTF, I'd never thought I'd communicate, nevertheless to agree with Rayden, but yeah.


Nonetheless you're welcome :)

I highly appreciate the work you put into the CSS, but the stylish approach feels to me like a Bondo Bucket: shiny at the first glance, but as the base isn't solid she starts falling apart if you take her out for the first ride in town ;)

But it cleary shows what could (and imho should) be done to give CSDb a more contemporary look and feel. I like.

A repository/archive just containing the current templates (no DB involved) would be a first step - just to take a look at the current code. But given the age of the code, I suspect some fancy interwoven HTML/PHP stuff and I doubt I really want to see it... ;) (@Perff: no offence meant)
2017-02-22 07:53
chatGPZ

Registered: Dec 2001
Posts: 11130
hardcoded permissions anyone? :o)
2017-02-22 09:55
Mixer

Registered: Apr 2008
Posts: 422
We also need a style that uses only the c-64 system font and petscii graphics.
2017-02-22 19:08
Hein

Registered: Apr 2004
Posts: 933
Quote: HTML and CSS aint code anyway ;)
@Perff: I/we would need a unique (but permanent) class in the body of each page based on the first URI segment. Fe. forum for this, home for home, release for the release page, event for the events, etc. So I could write direct selectors which don't influence elements on other pages. I am sure it would be easy to automate it. Thanx! XOXO

Ps: plus a unique class for the menu items, but that's useful just for the lurkers so no priority


That sounds easier than doing a rewrite from ground up. Can't be good.
2017-02-23 20:59
jailbird

Registered: Dec 2001
Posts: 1576
Quote: That sounds easier than doing a rewrite from ground up. Can't be good.

Definitely not good. The current situation is, CSDb doesn't have CSS at all. Everything is inline, but not even stlye. font="#fff" stuff and similar, in layers and layers of nested tables.

But. I don't think it will be ever rewritten.

Seems that this is the only way to make changes.
2017-02-24 00:03
Compyx

Registered: Jan 2005
Posts: 631
Looked at the HTML source, and indeed there's a lot deprecated stuff in there.

Then again, I tend to drop out off/into the scene and CSDb looking exactly the same after ten years makes me feel right at home. So I'm fine with the current look.
2017-02-25 09:11
hedning

Registered: Mar 2009
Posts: 4602
I love CSDb just as it is. Make demos for the C64 instead.
2017-02-26 02:25
Mekong

Registered: Mar 2013
Posts: 6
Aside from the votes, looks like a downgrade to me. CSDb is probably the only site where I don't have to block any elements and can exempt the original style from the dark custom one I use for everything else. I wish the rest of the Internet was this "outtdated" as in displaying content quickly, clearly and on any system.
2017-02-26 07:38
Hein

Registered: Apr 2004
Posts: 933
2017-02-26 14:18
Perff
Administrator

Posts: 1665
Quoting Jailbird
HTML and CSS aint code anyway ;)
@Perff: I/we would need a unique (but permanent) class in the body of each page based on the first URI segment. Fe. forum for this, home for home, release for the release page, event for the events, etc. So I could write direct selectors which don't influence elements on other pages. I am sure it would be easy to automate it. Thanx! XOXO

Ps: plus a unique class for the menu items, but that's useful just for the lurkers so no priority


Put in a class in the body as requested. Hope you can use it. :)
2017-02-27 09:23
jailbird

Registered: Dec 2001
Posts: 1576
Quote: I love CSDb just as it is. Make demos for the C64 instead.

I don't know how to code, that's why I do HTML :)

Quoting Perff
Put in a class in the body as requested. Hope you can use it. :)

AMAZING! THANX A LOT!

Quoting Mekong
Aside from the votes, looks like a downgrade to me.

Exactly, hence the "minimal" in its project title :)
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
JCH/Vibrants
Didi/Laxity
acrouzet/G★P
Guests online: 94
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Graphicians
1 Sulevi  (10)
2 Mirage  (9.8)
3 Lobo  (9.7)
4 Mikael  (9.7)
5 Archmage  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.083 sec.