Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Removed doc/help references to "overriding" CSS rules, as that no longer applies in this branch. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | style-css-revamp |
| Files: | files | file ages | folders |
| SHA3-256: |
a21e26684f76a3685ea03511ee596e4b |
| User & Date: | stephan 2020-05-18 03:38:16.674 |
Context
|
2020-05-18
| ||
| 12:32 | Reverted [5abc0f6e7] because testing has shown the referrer to simply be too fragile and subject to browser-side whims (which also includes the option to send only the scheme and host, without the path, as the referrer, which breaks what that commit did). Now style.css supports both style.css/pagename and style.css?page=name, preferring the former, pending a decision on which one of those syntaxes the other devs prefer. check-in: 45341a2869 user: stephan tags: style-css-revamp | |
| 03:38 | Removed doc/help references to "overriding" CSS rules, as that no longer applies in this branch. check-in: a21e26684f user: stephan tags: style-css-revamp | |
| 02:59 | style.css now checks for a builtin file named after the first path component of the referer (sic), rather than PD("name"), however, we still have to emit style.css/PAGENAME in $stylesheet_url in order to pick up the the page-specific CSS, otherwise /style.css?id=... is the same for all pages and a page with its own style may pick up a cached copy without its own styles, or with the styles from another page. check-in: 5abc0f6e79 user: stephan tags: style-css-revamp | |
Changes
Changes to src/skins.c.
| ︙ | ︙ | |||
706 707 708 709 710 711 712 |
/*
** Emits the list of built-in default CSS selectors. Intended
** for use only from the /setup_skinedit page.
*/
static void skin_emit_css_defaults(){
struct strctCssDefaults const * pCss;
fossil_print("<h1>CSS Defaults</h1>");
| | < < | 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 |
/*
** Emits the list of built-in default CSS selectors. Intended
** for use only from the /setup_skinedit page.
*/
static void skin_emit_css_defaults(){
struct strctCssDefaults const * pCss;
fossil_print("<h1>CSS Defaults</h1>");
fossil_print("Fossil's list of its own CSS classes follows. ");
fossil_print("See <a href=\"https://fossil-scm.org/fossil/"
"doc/trunk/www/css-tricks.md\">this "
"document</a> for more details.");
/* To discuss: do we want to list only the default selectors or
** also their default values? The latter increases the size of the
** page considerably, but is arguably more useful. We could, of
** course, offer a URL param to toggle the view, but that currently
|
| ︙ | ︙ |
Changes to www/css-tricks.md.
| ︙ | ︙ | |||
8 9 10 11 12 13 14 | This is a "living document" - please feel free to suggest additions via [the Fossil forum](https://fossil-scm.org/forum/). This document is *not* an introduction to CSS - the web is full of tutorials on that topic. It covers only the specifics of customizing certain CSS-based behaviors in a Fossil UI. That said... | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | This is a "living document" - please feel free to suggest additions via [the Fossil forum](https://fossil-scm.org/forum/). This document is *not* an introduction to CSS - the web is full of tutorials on that topic. It covers only the specifics of customizing certain CSS-based behaviors in a Fossil UI. That said... ## Is it Really `!important`? By and large, CSS's `!important` qualifier is not needed when customzing Fossil's CSS. On occasion, however, particular styles may be set directly on DOM elements when Fossil generates its HTML, and such cases require the use of `!important` to override them. |
| ︙ | ︙ |