From 13a3c1e29473aa9f563e8db4ad94cb3eee9bdfe6 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 5 Jun 2018 16:07:35 +0100 Subject: Move from CSS to SCSS (#86) * Rewrite existing style.css with sass * Add "uses-rst" class for pages that use rendered RST This replaces the previous method of just listing every page in the sass * Remove old debug print * Mixins and error pages * Newly built CSS * Add SASS cache to .gitignore * New error SASS * Slight changes to error template * Add UIKit SCSS to repo This includes the LICENSE and our customizations, which makes life way easier for contributors * Reorganize sass folder; your watchers can avoid uikit now * Sass folder should be called scss * Change variable names * [SCSS] Linting * Fix scss_lint gem name [ci skip] * [SCSS] Now you can compile with just Python! * Temporary hack to make the wiki editor taller * [SCSS] @jchristgit * [SCSS.py] Require specification of include dir to simplify the SCSS imports * [SCSS] All inline styles have been removed * [SCSS] Update UIKit theme to import from our variables * [SCSS] Remove extra newlines in errors/_common.scss --- templates/main/about/privacy.html | 18 +++++++++--------- templates/main/base.html | 10 ++++++---- templates/main/index.html | 2 +- templates/main/info/resources.html | 11 ++++++----- templates/main/jams/index.html | 5 +++-- templates/main/jams/join.html | 23 ++++++++++++----------- templates/main/jams/profile.html | 2 +- templates/main/navigation.html | 4 ++-- 8 files changed, 40 insertions(+), 35 deletions(-) (limited to 'templates/main') diff --git a/templates/main/about/privacy.html b/templates/main/about/privacy.html index ce6e20f8..ebf3eebd 100644 --- a/templates/main/about/privacy.html +++ b/templates/main/about/privacy.html @@ -31,12 +31,12 @@

Data collection

- +
- + @@ -44,25 +44,25 @@ - + - + - + - - + - + - + diff --git a/templates/main/base.html b/templates/main/base.html index 8893be01..2a3f295c 100644 --- a/templates/main/base.html +++ b/templates/main/base.html @@ -15,9 +15,9 @@ - - - + + + @@ -29,7 +29,9 @@ {% endblock %} - + {% if current_page == "main.index" %}
{% else %} diff --git a/templates/main/index.html b/templates/main/index.html index 06d29aba..c2d81a43 100644 --- a/templates/main/index.html +++ b/templates/main/index.html @@ -18,7 +18,7 @@ on a complex project, we've got someone who can help you if you get stuck.

diff --git a/templates/main/info/resources.html b/templates/main/info/resources.html index ae416d33..f3f4d0c0 100644 --- a/templates/main/info/resources.html +++ b/templates/main/info/resources.html @@ -75,16 +75,17 @@ {% endif %} {% if data["payment_description"] %} - + {% else %} - + {% endif %} -
+ +
{{ item }}
-
+
{% for url in data.urls %} {% endfor %}
diff --git a/templates/main/jams/index.html b/templates/main/jams/index.html index 5c2df182..e72e7e84 100644 --- a/templates/main/jams/index.html +++ b/templates/main/jams/index.html @@ -1,6 +1,7 @@ {% extends "main/base.html" %} {% block title %}Code Jams | Home{% endblock %} {% block og_title %}Code Jams | Home{% endblock %} +{% block page_classes %}uses-rst{% endblock %} {% block content %}
@@ -39,7 +40,7 @@

- +
@@ -85,7 +86,7 @@ {{ format_datetime(jam.date_start) }} UTC - + diff --git a/templates/main/jams/join.html b/templates/main/jams/join.html index 4bd4f2b0..4ff645b8 100644 --- a/templates/main/jams/join.html +++ b/templates/main/jams/join.html @@ -1,18 +1,19 @@ {% extends "main/base.html" %} {% block title %}Code Jams | Join{% endblock %} {% block og_title %}Code Jams | Join{% endblock %} +{% block page_classes %}uses-rst{% endblock %} {% macro show_question(question) %}
{% if question.optional %} -
What we collect WhenWhat it's used forWhat it's used for Who can access it
Discord user ID self.accept() run on DiscordStatistics, data association (infractions, code jam applications, etc)Statistics, data association (infractions, code jam applications, etc) Administrative staff
Discord username and discriminator self.accept() run on DiscordDisplay purposes (alongside ID in staff areas, public profiles)Display purposes (alongside ID in staff areas, public profiles) Public, for code jam team listings and winner info
Assigned roles on Discord self.accept() run on DiscordAccess control for the siteAccess control for the site Administrative staff
Messages sent on Discord self.accept() run on Discord + Stored in memory by the bot for processing temporarily, no message content reaches the database unless you're using a bot command that interfaces with the site - May be temporarily written to a log file for debugging purposes @@ -73,20 +73,20 @@
OAuth access and refresh token Discord login on siteUsed to find your Discord user ID when you log inUsed to find your Discord user ID when you log in Administrative staff
GitHub username Code jam profileUsed to identify you on GitHub as part of a code jam teamUsed to identify you on GitHub as part of a code jam team Public, for code jam team listings
Timezone Code jam profileA factor in code jam team match-upsA factor in code jam team match-ups Administrative staff