LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback
User Name
Password
LQ Suggestions & Feedback Do you have a suggestion for this site or an idea that will make the site better? This forum is for you.
PLEASE READ THIS FORUM - Information and status updates will also be posted here.

Notices


Reply
  Search this Thread
Old 01-11-2017, 08:35 AM   #1
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Rollover effect in long tables


In some cases, it'd be easier to follow the contents of long tables if there were a rollover effect for the active row. It is still a good portion eye candy, though I think it does help with usability.

Below is an illustration of the effect with some arbitrary colors using the CSS that vBulletin uses.

Code:
div.KonaBody > table.tborder > tbody > tr:hover > td.alt1 {
        transition-timing-function: ease;
        background-color: #ccc;
}

div.KonaBody > table.tborder > tbody > tr:hover > td.alt2 {
        transition-timing-function: ease;
        background-color: #aac;
}
It's sad, typographic markup rather than nice, structural markup because of the sad choices vBulletin uses for element classes. But it does identify just the desired elements.
 
Old 01-11-2017, 08:39 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Where do we have long tables?
 
Old 01-11-2017, 08:42 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309

Original Poster
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by dugan View Post
Where do we have long tables?
I was thinking specifically of these:

There may be others.
 
Old 01-12-2017, 06:48 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Do you have screenshots showing a mockup example versus code?

I know what the cited screens appear like, however I'm unclear what you are proposing.
 
Old 01-12-2017, 07:05 AM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309

Original Poster
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Yes, but it does not seem possible to upload images without activating scripts. I think that will lead to another request in the LQ Suggestions & Feedback subforum.

Below are the steps needed to make your own sample:

Code:
dir=$(mktemp -d) && cd $dir
wget -k -p 'https://www.linuxquestions.org/questions/lqsearch.php?do=getnew&daysprune=7'
cd ./www.linuxquestions.org/questions/
sed -i -e 's|</head>|<link rel="stylesheet" href="./index.css" media="screen, projection" type="text/css" /></head>|';
cat <<EOF > index.css
div.KonaBody > table.tborder > tbody > tr:hover > td.alt1 {
        transition-timing-function: ease;
        background-color: #ccc;
}
div.KonaBody > table.tborder > tbody > tr:hover > td.alt2 {
        transition-timing-function: ease;
        background-color: #aac;
}
EOF
chromium-browser  'lqsearch.php?do=getnew&daysprune=7'

Last edited by Turbocapitalist; 01-12-2017 at 07:06 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CSS help: stopping rollover effect upnort Linux - General 2 03-24-2015 10:00 AM
Web Browser Mouse Rollover Effect Woodsman Linux - Software 4 02-06-2011 04:15 PM
mouse cursor edge rollover effect exodist Linux - Software 3 09-22-2008 12:28 AM
Rollover to db9 rkemp Linux - Networking 0 12-20-2004 12:43 AM
Keyboard delay is too long and kbdrate seems to have no effect (RH8.0) szatki Linux - General 0 02-20-2004 10:21 AM

LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration