Skip to content

Commit 0e98a65

Browse files
committed
add styling
1 parent 763cd3a commit 0e98a65

File tree

7 files changed

+18
-5
lines changed

7 files changed

+18
-5
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ gh_edit_branch: "main" # the branch that your docs is served from
160160
gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately
161161

162162
# Color scheme currently only supports "dark", "light"/nil (default), or a custom scheme that you define
163-
color_scheme: nil
163+
color_scheme: dark
164164

165165
callouts_level: quiet # or loud
166166
callouts:

_includes/components/sidebar.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
{% if site.nav_footer_custom != "" %}
2525
{{ site.nav_footer_custom }}
2626
{% endif %} <br />
27-
{{site.title}} is a member of <a href="https://acm.illinois.edu"><img style="width: 50%;" src="/assets/images/acm-wordmark.png"/></a>.
27+
{% if site.color_scheme and site.color_scheme != "nil" %}
28+
{% assign color_scheme = site.color_scheme %}
29+
{% else %}
30+
{% assign color_scheme = "light" %}
31+
{% endif %}
32+
33+
{{site.title}} is a member of <a href="https://acm.illinois.edu"><img style="width: 50%;" src="/assets/images/acm-wordmark-{{ color_scheme }}.png"/></a>.
2834
</footer>
2935
</div>

_sass/color_schemes/dark.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$color-scheme: dark;
2-
$body-background-color: $grey-dk-300;
2+
$body-background-color: $acm-dark;
33
$body-heading-color: $grey-lt-000;
4-
$body-text-color: $grey-lt-300;
4+
$body-text-color: $acm-light;
55
$link-color: $blue-000;
66
$nav-child-link-color: $grey-dk-000;
77
$sidebar-color: $grey-dk-300;

_sass/color_schemes/light.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ $color-scheme: light !default;
22
$body-background-color: $white !default;
33
$body-heading-color: $grey-dk-300 !default;
44
$body-text-color: $grey-dk-100 !default;
5-
$link-color: $purple-000 !default;
5+
$link-color: $acm-blue !default;
66
$nav-child-link-color: $grey-dk-100 !default;
77
$sidebar-color: $grey-lt-000 !default;
88
$base-button-color: #f7f7f7 !default;

_sass/support/_variables.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ $red-100: #f96e65 !default;
5858
$red-200: #e94c4c !default;
5959
$red-300: #dd2e2e !default;
6060

61+
$acm-light: #F2FDFF !default;
62+
$acm-dark: #121616 !default;
63+
$acm-dark-secondary: #566161 !default;
64+
$acm-success: #4AA914 !default;
65+
$acm-danger: #D63626 !default;
66+
$acm-blue: #0053B3 !default;
67+
$acm-muted-blue: #5386E4 !default;
6168
// Spacing
6269

6370
$spacing-unit: 1rem; // 1rem == 16px
27.5 KB
Loading
File renamed without changes.

0 commit comments

Comments
 (0)