Skip to content

Commit 5a2463c

Browse files
committed
Docs style update
1 parent 0cc4e86 commit 5a2463c

File tree

4 files changed

+49
-11
lines changed

4 files changed

+49
-11
lines changed

docs/assets/style.css

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,32 @@
55
color: var(--md-code-hl-comment-color);
66
}
77

8-
label {
8+
h1 {
9+
color: var(--md-default-fg-color) !important;
10+
}
11+
.configurator input {
12+
vertical-align: text-top;
13+
}
14+
input + label {
915
cursor: pointer;
1016
}
17+
pre {
18+
line-height: 1.6 !important;
19+
}
20+
.configurator {
21+
line-height: 2;
22+
}
23+
.configurator hr {
24+
margin: 0.5em 0 !important;
25+
}
1126

1227
.configurator input:not(:checked) + label {
13-
opacity: 0.7;
28+
opacity: 0.85;
29+
}
30+
.configurator label {
31+
text-decoration: underline;
32+
text-decoration-color: var(--md-default-fg-color--light);
33+
}
34+
.configurator input:not(:checked) + label {
35+
text-decoration: none;
1436
}

docs/configurator.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
1+
# Quick start for [install-crystal](https://github.com/oprypin/install-crystal/) GitHub Action
2+
3+
Set up your Crystal project on GitHub for continuous testing.
14
<div class="configurator">
5+
<hr>
26
<strong>I am developing</strong>
37
<input type="radio" name="software-kind" id="software-kind-app"><label for="software-kind-app"><strong>an application</strong></label>
4-
<input type="radio" name="software-kind" id="software-kind-lib"><label for="software-kind-lib"><strong>a library</strong> (also track updates of deps)</label>.
5-
<br>
6-
I want to support Linux, <input type="checkbox" id="os-mac"><label for="os-mac">macOS</label>, <input type="checkbox" id="os-win"><label for="os-win">Windows</label>.
8+
<input type="radio" name="software-kind" id="software-kind-lib"><label for="software-kind-lib"><strong>a library</strong> (also track updates of deps).</label>
9+
<hr>
10+
<span>I want to support <label>Linux,</label></span>
11+
<input type="checkbox" id="os-mac"><label for="os-mac">macOS,</label>
12+
<input type="checkbox" id="os-win"><label for="os-win">Windows.</label>
713
<br>
8-
I want to support latest Crystal, <input type="checkbox" id="crystal-ver"><label for="crystal-ver">a particular older version</label> <input type="checkbox" id="crystal-nightly"><label for="crystal-nightly">and follow Crystal <abbr title="Unreleased builds from the latest commit on master">nightlies</abbr></label>.
14+
<span>I want to support <label>latest Crystal,</label></span>
15+
<input type="checkbox" id="crystal-ver"><label for="crystal-ver">a particular older version</label>
16+
<input type="checkbox" id="crystal-nightly"><label for="crystal-nightly">and follow Crystal <abbr title="Unreleased builds from the latest commit on master">nightlies</abbr>.</label>
917
<br>
10-
<input type="checkbox" id="tool-format"><label for="tool-format">I format code with <code>crystal tool format</code></label>.
18+
<input type="checkbox" id="tool-format"><label for="tool-format">I format code with <code>crystal tool format</code>.</label>
1119
<br>
12-
<input type="checkbox" id="cache-shards"><label for="cache-shards">Cache dependencies (worth only if there are many)</label>.
20+
<input type="checkbox" id="cache-shards"><label for="cache-shards">Cache dependencies (worth only if there are many).</label>
21+
<hr>
1322

1423
{% for is_app in false, true %}
1524
{% for os_win in false, true %}
@@ -134,10 +143,10 @@ jobs:
134143
</div>
135144

136145
<div class="configurator">
137-
<input type="checkbox" id="fixed-ref"><label for="fixed-ref">I don't <a href="https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions">trust</a> a third-party action</label>.
146+
<input type="checkbox" id="fixed-ref"><label for="fixed-ref">I don't <a target="_blank" href="https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions">trust</a> a third-party action</label>.
138147

139148
<div class="c1">
140-
Copy the commit hash of the latest <a href="https://github.com/oprypin/install-crystal/tags">release</a> instead of the "v1" part in <code>oprypin/install-crystal@<strong>v1</strong></code>.
149+
Copy the commit hash of the latest <a target="_blank" href="https://github.com/oprypin/install-crystal/tags">release</a> instead of the "v1" part in <code>oprypin/install-crystal@<strong>v1</strong></code>.
141150
</div>
142151
</div>
143152

docs/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
--8<-- "../README.md"
2+
3+
<style>
4+
#__code_2 {
5+
display: none;
6+
}
7+
</style>

docs/mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ theme:
1111
icon:
1212
repo: fontawesome/brands/github
1313
palette:
14-
primary: teal
14+
scheme: preference
15+
primary: black
1516
accent: purple
1617

1718
extra_css:

0 commit comments

Comments
 (0)