Sponsored Content
The Lounge What is on Your Mind? New Responsive 404 Page for UNIX.com Post 303035043 by Neo on Sunday 12th of May 2019 08:44:32 AM
Old 05-12-2019
Thanks drl,

I'm not concerned that the "Ooops" text is a bit on the light side. It's the style of the page by the template designer; and I am lazy to spend any more time on the CSS for this in the near term. I did a lot of modifications and commented out some CSS which was not really great; but I could not quickly change the element <p> to make that text less opaque.

I even tried:

Code:
var element = document.querySelector('p');
element.style.color.white;
element.style.opacity = 1;

but I could not effect that text and did not find any special clues in the Chrome DevTools element inspector, so I just left it "as it".
This User Gave Thanks to Neo For This Post:
 

8 More Discussions You Might Find Interesting

1. Web Development

CGI not working with httpd server on busybox 1.15.0 on ltib Linux 2.6.34 (404 page not found)

I have some industrial ARM linux board with 2.6.34 Linux on it with Busybox v1.15.0. The https.conf is located in /etc/ and contains: H:/root/web In the www directory I also have 'cgi-bin' folder with chmod 777 and in that folder a file called 'testcgi'. Now I start the server with... (1 Reply)
Discussion started by: Roboserg
1 Replies

2. What is on Your Mind?

Prototyping New Responsive Mobile UNIX.COM

I'm working on updates to the mobile phone view, and it's going to look much better I think. Here are some current prototypes: Prototype Mobile Home Page: https://www.unix.com/members/1-albums214-picture690.jpg Prototype Mobile Search Page: ... (43 Replies)
Discussion started by: Neo
43 Replies

3. What is on Your Mind?

Prototyping New Responsive Mobile for UNIX.COM - Phase II

Have completed "Phase I" of our project "Prototyping New Responsive Mobile UNIX.COM", I am now moving to "Phase II" which will be changing many of the menus and buttons to use Javascript and CSS for the mobile site menus. For example, here is the new "main side menu" for the mobile site (below).... (63 Replies)
Discussion started by: Neo
63 Replies

4. What is on Your Mind?

Prototyping New Responsive Mobile for UNIX.COM - Phase III

From Prototyping New Responsive Mobile for UNIX.COM - Phase II, we move to Phase III. Basically, the core prototype for every day browsing the forums, replying, posting and editing on mobile is nearly finished with the exception of a few formatting issues with regard to rare system messages or... (4 Replies)
Discussion started by: Neo
4 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. What is on Your Mind?

JQuery and CSS Flex Code for Responsive Forum Home Page

So far, I have completed making the home page more responsive (except for the forum stats at the top and the WOL box at the bottom, they still use scroll bars). xevV3_iZ8-s For full screen use the link below and set your YT resolution to 1080p60 HD https://youtu.be/xevV3_iZ8-s Here is... (1 Reply)
Discussion started by: Neo
1 Replies

7. What is on Your Mind?

Search Results are Now Responsive (Live)

Hey, It took me nearly 10 hours of work, but the forum search results are now fully responsive using CSS Flex and jQuery. By search results, I mean forum searches (not man page searches). Searches we do every day like: "Todays Posts", "New Topics", it's done! I have tested it and it... (0 Replies)
Discussion started by: Neo
0 Replies

8. Web Development

New "Page Not Found" (404) Page

Made some changes to the forum, so when a page is not found and generates a 404 error, the site redirects to "Today's Posts" page and added a "Not Found" message: <?php header('HTTP/1.0 404 Not Found', true, 404); header("Location: https://www.unix.com/search.php?do=getdaily&redirect=404");... (0 Replies)
Discussion started by: Neo
0 Replies
ttk::style(n)							 Tk Themed Widget						     ttk::style(n)

__________________________________________________________________________________________________________________________________________________

NAME
ttk::style - Manipulate style database SYNOPSIS
ttk::style option ?args? _________________________________________________________________ NOTES
See also the Tcl'2004 conference presentation, available at http://tktable.sourceforge.net/tile/tile-tcl2004.pdf DEFINITIONS
Each widget is assigned a style, which specifies the set of elements making up the widget and how they are arranged, along with dynamic and default settings for element options. By default, the style name is the same as the widget's class; this may be overridden by the -style option. A theme is a collection of elements and styles which controls the overall look and feel of an application. DESCRIPTION
The ttk::style command takes the following arguments: ttk::style configure style ?-option ?value option value...? ? Sets the default value of the specified option(s) in style. ttk::style map style ?-option { statespec value... }? Sets dynamic values of the specified option(s) in style. Each statespec / value pair is examined in order; the value corresponding to the first matching statespec is used. ttk::style lookup style -option ?state ?default?? Returns the value specified for -option in style style in state state, using the standard lookup rules for element options. state is a list of state names; if omitted, it defaults to all bits off (the "normal" state). If the default argument is present, it is used as a fallback value in case no specification for -option is found. ttk::style layout style ?layoutSpec? Define the widget layout for style style. See LAYOUTS below for the format of layoutSpec. If layoutSpec is omitted, return the layout specification for style style. ttk::style element create elementName type ?args...? Creates a new element in the current theme of type type. The only cross-platform built-in element type is image (see ttk_image(n)) but themes may define other element types (see Ttk_RegisterElementFactory). On suitable versions of Windows an element factory is registered to create Windows theme elements (see ttk_vsapi(n)). ttk::style element names Returns the list of elements defined in the current theme. ttk::style element options element Returns the list of element's options. ttk::style theme create themeName ?-parent basedon? ?-settings script... ? Creates a new theme. It is an error if themeName already exists. If -parent is specified, the new theme will inherit styles, ele- ments, and layouts from the parent theme basedon. If -settings is present, script is evaluated in the context of the new theme as per ttk::style theme settings. ttk::style theme settings themeName script Temporarily sets the current theme to themeName, evaluate script, then restore the previous theme. Typically script simply defines styles and elements, though arbitrary Tcl code may appear. ttk::style theme names Returns a list of all known themes. ttk::style theme use themeName Sets the current theme to themeName, and refreshes all widgets. LAYOUTS
A layout specifies a list of elements, each followed by one or more options specifying how to arrange the element. The layout mechanism uses a simplified version of the pack geometry manager: given an initial cavity, each element is allocated a parcel. Valid options are: -side side Specifies which side of the cavity to place the element; one of left, right, top, or bottom. If omitted, the element occupies the entire cavity. -sticky [nswe] Specifies where the element is placed inside its allocated parcel. -children { sublayout... } Specifies a list of elements to place inside the element. For example: ttk::style layout Horizontal.TScrollbar { Scrollbar.trough -children { Scrollbar.leftarrow -side left Scrollbar.rightarrow -side right Horizontal.Scrollbar.thumb -side left -sticky ew } } SEE ALSO
ttk::intro(n), ttk::widget(n), photo(n), ttk_image(n) KEYWORDS
style, theme, appearance Tk 8.5 ttk::style(n)
All times are GMT -4. The time now is 11:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy