Skip to content

Commit

Permalink
better FAQ-imdividual-pages CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed Oct 11, 2024
1 parent 0edb99b commit 52ac767
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
5 changes: 4 additions & 1 deletion fc-solve/site/wml/Tests/content-script-tag-hyperlinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ def test_individual_faq_pages(self):
)
filtered = []
for x in matches:
m = re.match('^((?:\\.\\./)*style.css)\\Z', x.get('href'))
m = re.match(
'^((?:\\.\\./)*faq-indiv-pages\\.css)\\Z',
x.get('href'),
)
if m:
filtered.append(m.group(1))

Expand Down
2 changes: 1 addition & 1 deletion fc-solve/site/wml/lib/make/sf-css.mak
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GEN_STYLE_CSS_FILES := \
jqui-override.css print.css solitairey-cards.css style.css web-fc-solve.css
faq-indiv-pages.css jqui-override.css print.css solitairey-cards.css style.css web-fc-solve.css

SRC_CSS_TARGETS := $(addprefix $(POST_DEST)/,$(GEN_STYLE_CSS_FILES))

Expand Down
47 changes: 47 additions & 0 deletions fc-solve/site/wml/lib/sass/faq-indiv-pages.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@import "charsheet-basics";
@import "mixins";
@import "common-style";

/* Copy pasta for the time being */
span.indiv_node {
float: right;
padding: 0.3em;
}

a.indiv_node {
@include faq_link;
}

@mixin next_link {
&:after {
content: " 🠪 ]";
}
&:before {
content: "[ ";
}
padding: 0.3em;
// float: right;
}

a.next {
@include next_link;
}

@mixin previous_link {
&:after {
content: " ]";
}
&:before {
content: "[ 🠨 ";
}
padding: 0.3em;
// float: right;
}

a.previous {
@include previous_link;
}

a:visited {
// color: purple;
}
2 changes: 1 addition & 1 deletion fc-solve/site/wml/lib/split-html/faq_splitter_prog.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _xpath(TOP_LEVEL_CLASS):
<meta charset="utf-8"/>
<meta name="description" content=
"Freecell Solver’s Frequently Asked Questions (FAQ) List - {title}"/>
<link rel="stylesheet" href="{base_path}style.css" media="screen" title=
<link rel="stylesheet" href="{base_path}faq-indiv-pages.css" media="screen" title=
"Normal"/>
<link rel="stylesheet" href="{base_path}print.css" media="print"/>
<link rel="shortcut icon" href="{base_path}favicon.ico" type=
Expand Down

0 comments on commit 52ac767

Please sign in to comment.