Skip to content

Commit 307d49c

Browse files
committed
Merge pull request #126 from alcarney/final-themes
Final themes
2 parents 8e98ec1 + ee18944 commit 307d49c

15 files changed

+108
-118
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Site settings
22
title: Cardiff Math Code Club
33
url: "http://CardiffMathematicsCodeClub.github.io"
4-
version: 3.5.295
4+
version: 3.5.322
55

66
markdown: kramdown
77
kramdown:

_data/themes.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
version: 1.0
44
author: Everyone
55

6-
- name: Not Yet Implemented
7-
shortname: todo
6+
- name: Minimalist
7+
shortname: minimal
88
version: 0.1
99
author: Alex
1010

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
layout: post
3+
title: Introducing Themes and More!
4+
categories: news
5+
author: Alex
6+
comments: true
7+
---
8+
9+
As you may or may not have noticed, the code club website has had the basic
10+
facilities for adding your own custom theme to the website.
11+
12+
Well today I'm happy to announce theses themes are ready for general use! Go on
13+
try it out now, scroll to the bottom of the page you will see a dropdown menu
14+
under a header called `Change Theme:`. Click on it and you will see (at the time
15+
of this announcement) 2 themes to choose from. The original theme for the
16+
website `Code Club Classic` and a new one `Minimal`.
17+
18+
Choosing a different theme will cause the page to reload briefly as your browser
19+
downloads the new theme but very soon you will be looking at an entirely new
20+
code club website!
21+
22+
Of course it's not very exciting having only 2 themes to choose from, so I
23+
invite you to create your own theme and submit it to the website especially
24+
since there is now...
25+
26+
## A Competition!
27+
28+
As of now the code club is launching it's first competiton! We want you to
29+
create your own look and feel for the website and submit it to the repository.
30+
31+
We will close submissions at the start of the last hour of the last code club
32+
this semester. During the last hour of that same code club, all submissions will
33+
be judged and the winner will be picked as the default theme for all new
34+
visitors to the website!
35+
36+
## How to submit a theme
37+
38+
Now in this post I won't go through how to actually make your theme but that
39+
will be coming up in a future tutorial series, so be on the look out for that,
40+
but this post will tell you how to install and submit your theme once you've
41+
made it.
42+
43+
Your theme should be consist of a single `.scss` file in the `css` folder and
44+
any other sass files that make up your theme should be in their own folder in
45+
the `_sass` folder.
46+
47+
The only thing other than that which you need to do is "install" it. On the
48+
website we have a file called `_data/themes.yml` which we use to tell the
49+
website about the themes we have there for it to use
50+
51+
So to install a theme you need to make an entry similar to this one:
52+
53+
```yml
54+
- name: Minimalist
55+
shortname: minimal
56+
version: 0.1
57+
author: Alex
58+
59+
```
60+
Where `name` is the name that you want displayed on the website when your theme
61+
is displayed, `shortname` is the name of your `.scss` file in the `css` folder.
62+
`version` is just some number that represents how well developed you think your
63+
theme is and of course `author` should be your name so we know who made that
64+
awesome theme!
65+
66+
Don't worry if you need help installing your theme on the website, there will
67+
always be someone at code club who will be able to help you.

_sass/_layout.scss

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
$content-width: 800px;
2+
3+
$desktop: $content-width;
4+
$wide-desktop: 1260px;
5+
$mobile: 600px;
6+
7+
@import
8+
"_layouts/mixins",
9+
"_layouts/base",
10+
"_layouts/catmenu",
11+
"_layouts/post",
12+
"_layouts/postlists",
13+
"_layouts/sessions",
14+
"_layouts/media"

_sass/_layouts/_base.scss

+1-10
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ select {
6565

6666
.site-header {
6767
width: 100%;
68-
position:fixed;
6968
z-index: 999;
7069
}
7170

@@ -161,15 +160,7 @@ ul#menu{
161160

162161
/* Site footer */
163162

164-
@media screen and (min-width: $desktop) {
165-
.site-footer {
166-
padding: 30px 0;
167-
width: 100%;
168-
position: fixed;
169-
bottom: 0;
170-
}
171-
}
172-
163+
173164
.footer-heading {
174165
font-size: 18px;
175166
font-weight: 300;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

css/main.scss

+8-22
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,13 @@ $code-type: #445588;
3030
$code-background: #ffffff;
3131
$code-border-style: 1px solid #d5d5e9;
3232

33-
$content-width: 800px;
34-
35-
$desktop: $content-width;
36-
$wide-desktop: 1260px;
37-
$mobile: 600px;
38-
39-
40-
4133
@import
42-
"_layouts/mixins",
43-
"_layouts/base",
44-
"_layouts/catmenu",
45-
"_layouts/post",
46-
"_layouts/postlists",
47-
"_layouts/sessions",
48-
"_layouts/media",
49-
50-
"_elements/base",
51-
"_elements/catmenu",
52-
"_elements/codesnippets",
53-
"_elements/post",
54-
"_elements/postlists",
55-
"_elements/sessions"
34+
"_layout",
35+
36+
"_main/base",
37+
"_main/catmenu",
38+
"_main/codesnippets",
39+
"_main/post",
40+
"_main/postlists",
41+
"_main/sessions"
5642

css/minimal.scss

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
3+
---
4+
@charset "utf-8";
5+
6+
7+
8+
@import "_layout.scss"
9+

css/todo.scss

-76
This file was deleted.

css/yellow.scss

+6-7
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ $mobile: 600px;
4747
"_layouts/sessions",
4848
"_layouts/media",
4949

50-
"_elements/base",
51-
"_elements/catmenu",
52-
"_elements/codesnippets",
53-
"_elements/post",
54-
"_elements/postlists",
55-
"_elements/sessions"
56-
50+
"_main/base",
51+
"_main/catmenu",
52+
"_main/codesnippets",
53+
"_main/post",
54+
"_main/postlists",
55+
"_main/sessions"

0 commit comments

Comments
 (0)