Sponsored Content
The Lounge What is on Your Mind? JQuery and CSS Flex Code for Responsive Forum Home Page Post 303021503 by Neo on Saturday 11th of August 2018 06:45:52 AM
Old 08-11-2018
Update:

Responsive CSS Flexbox is now working on the forum home page and the forum display pages.

Hopefully, this adds value to everyone.

If not please post back and complain and let us know!

Next, I will get this working for search results and thread views for the lists of threads and and discussions.

For those who don't like responsive and prefer the old fashioned unresponsive horizontal scrollbars, if enough people comment (I cannot imagine anyone prefers horizontal scrollbars over a responsive website) I will add a UserCP switch for uses to turn off.

However, recommend you give responsive a try and move away from 10 year old web technologies.

Better we make "responsive better" versus depending on horizontal scrollbars and 10 year old table overflow technology when we can be responsive and change the view based on the width of the screen.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

need to know best forum site for flex code

Hi All, Please help me to know the similar forum site but for the flex code. Thanks (6 Replies)
Discussion started by: aish11
6 Replies

2. What is on Your Mind?

Forum Update: Disabled Home Page Forum Statistics for Guests (Not Registered)

Just a quick update; to speed up the forums, I have disabled the forum statistics on the home page for non registered users. No changes for registered users. (0 Replies)
Discussion started by: Neo
0 Replies

3. What is on Your Mind?

Man Page Repositories - Added jQuery and Bootstrap

I added both jQuery and Bootstrap Javacript libs to all man page repository pages. TODO: I need to add pagination to these repos because most are very large and load to slow on a single page. For the first upgrade, I manually added one new CSS Class (repository) to the main repo tables and... (0 Replies)
Discussion started by: Neo
0 Replies

4. What is on Your Mind?

Forum Description Animation with jQuery

I found that the pages that lists all the forums were too cluttered with the forum descriptions, so I added a bit of jQuery to hide the forum descriptions and to fade them in and out on mouseover: <script> $(document).ready(function() { jQuery(".neo-forum-description").hide();... (2 Replies)
Discussion started by: Neo
2 Replies

5. What is on Your Mind?

JQuery and CSS Flex Code for Responsive WOL Page

I have just wrote this jQuery to the WOL page, so the table of users on line will not need scrollbars and will instead transform into a responsive table: <script> jQuery(document).ready(function (){ jQuery("#neo-who-flex-tcat"). css({"display":"flex","flex-flow":"row wrap", ... (0 Replies)
Discussion started by: Neo
0 Replies

6. Web Development

PHP Changes to WOL for New Forum Home Page

Wrote some PHP code today to make the Who Is Online (WOL) in the forums work properly with the new home page: Wrote this global plugin to add the location to both the user table (for members) and session table (for guests + registered users) <?php if (THIS_SCRIPT != 'misc' and... (0 Replies)
Discussion started by: Neo
0 Replies

7. Web Development

New Supplementary CSS for Forum Postbit

Working on moving inline style to a supplementary CSS file. This one is postbit.css: .pb-wrapper { border-style: solid; border-width: 1px; border-color: rgba(110, 117, 182, 0.99); padding: 0px 0px 0px 0px; } .pb-wrapper-b { padding: 0px; border-width: 0px 0px 1px... (0 Replies)
Discussion started by: Neo
0 Replies

8. What is on Your Mind?

New Responsive 404 Page for UNIX.com

Just created (actually, only modified... it was created by ShoutOut) a new responsive 404 "not found" page with the help of ShoutOut free templates. https://www.unix.com/status/404.html Same for 401 and 403 errors. Picture sans animation: ... (2 Replies)
Discussion started by: Neo
2 Replies

9. What is on Your Mind?

Mobile: Advanced Forum Statistics to Forum Home Page

For mobile users, I have just added a "first beta" Advanced Forum Statistics to the home page on mobile using CSS overflow:auto; so you can swipe if you need to see more. Google Search Console mobile usability says this page is "mobile friendly" so perhaps this will be useful for some of our... (12 Replies)
Discussion started by: Neo
12 Replies
CSS::Tiny(3)						User Contributed Perl Documentation					      CSS::Tiny(3)

NAME
CSS::Tiny - Read/Write .css files with as little code as possible SYNOPSIS
# In your .css file H1 { color: blue } H2 { color: red; font-family: Arial } .this, .that { color: yellow } # In your program use CSS::Tiny; # Create a CSS stylesheet my $CSS = CSS::Tiny->new(); # Open a CSS stylesheet $CSS = CSS::Tiny->read( 'style.css' ); # Reading properties my $header_color = $CSS->{H1}->{color}; my $header2_hashref = $CSS->{H2}; my $this_color = $CSS->{'.this'}->{color}; my $that_color = $CSS->{'.that'}->{color}; # Changing styles and properties $CSS->{'.newstyle'} = { color => '#FFFFFF' }; # Add a style $CSS->{H1}->{color} = 'black'; # Change a property delete $CSS->{H2}; # Delete a style # Save a CSS stylesheet $CSS->write( 'style.css' ); # Get the CSS as a <style>...</style> tag $CSS->html; DESCRIPTION
"CSS::Tiny" is a perl class to read and write .css stylesheets with as little code as possible, reducing load time and memory overhead. CSS.pm requires about 2.6 meg or ram to load, which is a large amount of overhead if you only want to do trivial things. Memory usage is normally scoffed at in Perl, but in my opinion should be at least kept in mind. This module is primarily for reading and writing simple files, and anything we write shouldn't need to have documentation/comments. If you need something with more power, move up to CSS.pm. With the increasing complexity of CSS, this is becoming more common, but many situations can still live with simple CSS files. CSS Feature Support "CSS::Tiny" supports grouped styles of the form "this, that { color: blue }" correctly when reading, ungrouping them into the hash structure. However, it will not restore the grouping should you write the file back out. In this case, an entry in the original file of the form H1, H2 { color: blue } would become H1 { color: blue } H2 { color: blue } "CSS::Tiny" handles nested styles of the form "P EM { color: red }" in reads and writes correctly, making the property available in the form $CSS->{'P EM'}->{color} "CSS::Tiny" ignores comments of the form "/* comment */" on read correctly, however these comments will not be written back out to the file. CSS FILE SYNTAX
Files are written in a relatively human-orientated form, as follows: H1 { color: blue; } .this { color: red; font-size: 10px; } P EM { color: yellow; } When reading and writing, all property descriptors, for example "color" and "font-size" in the example above, are converted to lower case. As an example, take the following CSS. P { Font-Family: Verdana; } To get the value 'Verdana' from the object $CSS, you should reference the key "$CSS->{P}->{font-family}". METHODS
new The constructor "new" creates and returns an empty "CSS::Tiny" object. read $filename The "read" constructor reads a CSS stylesheet, and returns a new "CSS::Tiny" object containing the properties in the file. Returns the object on success, or "undef" on error. read_string $string The "read_string" constructor reads a CSS stylesheet from a string. Returns the object on success, or "undef" on error. clone The "clone" method creates an identical copy of an existing "CSS::Tiny" object. write_string Generates the stylesheet for the object and returns it as a string. write The "write $filename" generates the stylesheet for the properties, and writes it to disk. Returns true on success. Returns "undef" on error. html The "html" method generates the CSS, but wrapped in a "style" HTML tag, so that it can be dropped directly onto a HTML page. xhtml The "html" method generates the CSS, but wrapped in a "style" XHTML tag, so that it can be dropped directly onto an XHTML page. errstr When an error occurs, you can retrieve the error message either from the $CSS::Tiny::errstr variable, or using the "errstr" method. CAVEATS
CSS Rule Order While the order of rules in CSS is important, this is one of the features that is sacrificed to keep things small and dependency-free. If you need to preserve order yourself, we recommend that you upgrade to the more powerful CSS module. If this is not possible in your case, alternatively it can be done with the help of another module such as Tie::IxHash: my $css = CSS::Tiny->new; tie %$css, 'Tie::IxHash'; $css->read('style.css'); Note: You will also need to remember to add the additional dependency to your code or module in this case. SUPPORT
Bugs should be reported via the CPAN bug tracker at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CSS-Tiny> For other issues, or commercial enhancement or support, contact the author. AUTHOR
Adam Kennedy <adamk@cpan.org> SEE ALSO
CSS, <http://www.w3.org/TR/REC-CSS1>, Config::Tiny, <http://ali.as/> COPYRIGHT
Copyright 2002 - 2010 Adam Kennedy. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.16.3 2010-09-03 CSS::Tiny(3)
All times are GMT -4. The time now is 06:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy