Skip to content

Commit ca73756

Browse files
committed
Reworked bootstrap css/theming
1 parent 370cdb0 commit ca73756

17 files changed

Lines changed: 10504 additions & 24458 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ elm-stuff/
1212
.coverage
1313
media
1414
docker/.env
15+
node_modules
16+
package-lock.json
17+
.sass-cache

src/assets/css/bornhack.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// bornhack bootstrap scss, sets the media-query
2+
// build new css:
3+
// $ apt install npm sass
4+
// $ npm install bootstrap
5+
// $ sass bornhack.scss:bootstrap-v5.3.3.bornhackcustom.css
6+
// also update SRI in settings.py:
7+
// $ openssl dgst -sha384 -binary bootstrap-v5.3.3.bornhackcustom.css | openssl base64 -A
8+
9+
$color-mode-type: media-query;
10+
11+
@import "node_modules/bootstrap/scss/bootstrap";

src/assets/css/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"dependencies": {
3+
"bootstrap": "^5.3.5"
4+
}
5+
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{% if camp.show_schedule %}
2-
<a href="{% url 'program:schedule_index' camp_slug=camp.slug %}" class="btn {% if url_name == "schedule_index" or urlyear %}btn-primary{% else %}btn-outline-secondary{% endif %}">Schedule</a>
2+
<a href="{% url 'program:schedule_index' camp_slug=camp.slug %}" class="btn {% if url_name == "schedule_index" or urlyear %}btn-primary{% else %}btn-outline-secondary btn-menu{% endif %}">Schedule</a>
33
{% endif %}
4-
<a href="{% url 'program:event_index' camp_slug=camp.slug %}" class="btn {% if url_name == "event_index" %}btn-primary{% else %}btn-outline-secondary{% endif %}">Events</a>
5-
<a href="{% url 'program:speaker_index' camp_slug=camp.slug %}" class="btn {% if url_name == "speaker_index" %}btn-primary{% else %}btn-outline-secondary{% endif %}">Speakers</a>
6-
<a href="{% url 'program:call_for_participation' camp_slug=camp.slug %}" class="btn {% if url_name == "call_for_participation" %}btn-primary{% else %}btn-outline-secondary{% endif %}">Call for Participation</a>
4+
<a href="{% url 'program:event_index' camp_slug=camp.slug %}" class="btn {% if url_name == "event_index" %}btn-primary{% else %}btn-outline-secondary btn-menu{% endif %}">Events</a>
5+
<a href="{% url 'program:speaker_index' camp_slug=camp.slug %}" class="btn {% if url_name == "speaker_index" %}btn-primary{% else %}btn-outline-secondary btn-menu{% endif %}">Speakers</a>
6+
<a href="{% url 'program:call_for_participation' camp_slug=camp.slug %}" class="btn {% if url_name == "call_for_participation" %}btn-primary{% else %}btn-outline-secondary btn-menu{% endif %}">Call for Participation</a>
77
{% if request.user.is_authenticated %}
88
{% if camp.call_for_participation_open %}
9-
<a href="{% url 'program:proposal_list' camp_slug=camp.slug %}" class="btn {% if url_name in proposal_urls %}btn-primary{% else %}btn-outline-secondary{% endif %}">Submit Proposal</a>
9+
<a href="{% url 'program:proposal_list' camp_slug=camp.slug %}" class="btn {% if url_name in proposal_urls %}btn-primary{% else %}btn-outline-secondary btn-menu{% endif %}">Submit Proposal</a>
1010
{% else %}
11-
<a href="{% url 'program:proposal_list' camp_slug=camp.slug %}" class="btn {% if url_name in proposal_urls %}btn-primary{% else %}btn-outline-secondary{% endif %}">View Proposals</a>
11+
<a href="{% url 'program:proposal_list' camp_slug=camp.slug %}" class="btn {% if url_name in proposal_urls %}btn-primary{% else %}btn-outline-secondary btn-menu{% endif %}">View Proposals</a>
1212
{% endif %}
1313
{% endif %}

src/static_src/css/bootstrap-light.css

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)