Skip to content

Commit d0a40da

Browse files
committed
Refactor styles
1 parent b8107e1 commit d0a40da

9 files changed

Lines changed: 50 additions & 65 deletions

File tree

apps/about/static/about/css/about-us.scss

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

apps/about/static/about/css/faq.scss

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
@import 'apps/commons/static/commons/css/base';
22

3-
@import './about-us';
43
@import './allies';
5-
@import './faq';

apps/about/templates/about/faq_list.html

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,20 @@
77
{% block body_class %}faq-index{% endblock %}
88

99
{% block content %}
10-
<h1 class="title">FAQ</h1>
11-
<div class="intro">
12-
<p>Bienvenido a nuestra sección de respuestas a preguntas frecuentes</p>
13-
</div>
1410

15-
{% for faq in faqs %}
16-
<article class="anchor" id="{{ faq.question|slugify }}">
17-
<div class="message-header dyn-anchor-heading">
18-
{{ faq.question }}
19-
<a class="dyn-anchor-link" href="#{{ faq.question|slugify }}"><i class="fas fa-link"></i></a>
20-
</div>
21-
<div class="faq-answer">
22-
<p>{{ faq.answer|as_markdown }}</p>
23-
</div>
24-
</article>
25-
{% endfor %}
11+
<div class="content box">
12+
<h1 class="title">FAQ</h1>
13+
{% for faq in faqs %}
14+
<article class="anchor" id="{{ faq.question|slugify }}">
15+
<div class="message-header dyn-anchor-heading">
16+
{{ faq.question }}
17+
<a class="dyn-anchor-link" href="#{{ faq.question|slugify }}"><i class="fas fa-link"></i></a>
18+
</div>
19+
<div class="message-body">
20+
{{ faq.answer|as_markdown }}
21+
</div>
22+
</article>
23+
{% endfor %}
24+
</div>
2625

2726
{% endblock content %}

apps/about/templates/about/index.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
<a href="{% url 'about:join' %}" class="link button is-link is-medium is-outlined">Forma parte de la asociación</a>
1515
</div>
1616

17-
<article class="message" id="intro">
18-
<a id="intro"></a>
17+
<article class="anchor" id="intro">
1918
<div class="message-header dyn-anchor-heading">
2019
Introducción
2120
<a class="dyn-anchor-link" href="#intro"><i class="fas fa-link"></i></a>
@@ -31,8 +30,7 @@
3130
</div>
3231
</article>
3332

34-
<article class="message" id="whypython">
35-
<a id="whypython"></a>
33+
<article class="anchor" id="whypython">
3634
<div class="message-header dyn-anchor-heading">
3735
¿Por qué Python?
3836
<a class="dyn-anchor-link" href="#whypython"><i class="fas fa-link"></i></a>
@@ -42,8 +40,7 @@
4240
</div>
4341
</article>
4442

45-
<article class="message" id="fiscal">
46-
<a id="fiscal"></a>
43+
<article class="anchor" id="fiscal">
4744
<div class="message-header dyn-anchor-heading">
4845
Datos fiscales
4946
<a class="dyn-anchor-link" href="#fiscal"><i class="fas fa-link"></i></a>
@@ -63,8 +60,7 @@
6360
</div>
6461
</article>
6562

66-
<article class="message" id="board">
67-
<a id="board"></a>
63+
<article class="anchor" id="board">
6864
<div class="message-header dyn-anchor-heading">
6965
Junta directiva
7066
<a class="dyn-anchor-link" href="#board"><i class="fas fa-link"></i></a>
@@ -82,8 +78,7 @@
8278
</div>
8379
</article>
8480

85-
<article class="message" id="docs">
86-
<a id="docs"></a>
81+
<article class="anchor" id="docs">
8782
<div class="message-header dyn-anchor-heading">
8883
Documentación
8984
<a class="dyn-anchor-link" href="#docs"><i class="fas fa-link"></i></a>

apps/commons/static/commons/css/base.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ body {
4040
}
4141
}
4242

43-
@include from($desktop){
43+
@include from($desktop) {
4444
padding: 2rem 0rem 5rem 0rem;
4545
}
4646

@@ -53,7 +53,6 @@ body {
5353
}
5454
}
5555

56-
5756
.footer-page {
5857
background-color: $footer-bg;
5958
position: relative;
@@ -71,14 +70,12 @@ body {
7170
.footer-column {
7271
color: #ebebeb;
7372
padding-top: 2rem;
74-
7573
}
7674

7775
h1,
7876
h2 {
7977
color: whitesmoke;
8078
}
81-
8279
}
8380

8481
/* Error class for Django Forms https://bit.ly/3vidyK2 */
@@ -96,7 +93,6 @@ body {
9693
width: 100%;
9794
z-index: 1;
9895

99-
10096
& .notification {
10197
width: $notification-width;
10298
margin-left: auto;
@@ -106,7 +102,7 @@ body {
106102
}
107103
}
108104
.message {
109-
scroll-margin-top: $header-height + 1rem;
105+
scroll-margin-top: $header-height + 1rem;
110106
}
111107

112108
.container {

apps/commons/static/commons/css/dyn-anchors.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
}
1414
}
1515
}
16+
1617
.anchor {
17-
scroll-margin-top: $header-height + 1rem;
18+
scroll-margin-top: $header-height + 1rem;
19+
}
20+
21+
.message-header {
22+
.dyn-anchor-link i:hover {
23+
color: tomato;
24+
}
1825
}

apps/commons/static/commons/css/override.scss

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ hr {
2020
}
2121
}
2222

23-
2423
.message.is-info .message-body {
2524
border-color: #c8dfec;
2625
}
@@ -29,31 +28,30 @@ hr {
2928
background-color: #f3f3f7;
3029
}
3130

32-
.collapsable--close{
31+
.collapsable--close {
3332
display: none;
3433
}
3534

36-
.nav-menu{
37-
display:flex;
35+
.nav-menu {
36+
display: flex;
3837
justify-content: center;
39-
align-items: center;
40-
}
38+
align-items: center;
39+
}
4140

42-
.navbar-dropdown{
41+
.navbar-dropdown {
4342
background-color: $header-bg;
4443
}
4544

46-
.navbar-burger{
45+
.navbar-burger {
4746
color: $header-fg;
4847
}
4948

5049
.navbar {
51-
5250
.navbar-brand {
5351
background: $header-bg;
5452
.navbar-item {
5553
padding: 0.35rem 1rem;
56-
54+
5755
.logo {
5856
margin-top: 2px; // offset logo
5957
max-height: $header-height;
@@ -113,3 +111,15 @@ hr {
113111
}
114112
}
115113

114+
.message-body {
115+
p {
116+
text-align: justify;
117+
}
118+
p:not(:last-child) {
119+
padding-bottom: 0.5rem;
120+
}
121+
}
122+
123+
article {
124+
margin-bottom: 1rem;
125+
}

apps/jobs/templates/jobs/list_jobs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1 class="title">Ofertas de empleo</h1>
1919
</div>
2020
</div>
2121
{% for job in jobs %}
22-
<div class="card" id="job{{ job.id }}">
22+
<div class="card anchor" id="job{{ job.id }}">
2323
<div class="card-header job-title">
2424
<a href="#job{{ job.id }}" class="subtitle card-header-title is-centered has-text-white">
2525
{{ job }} ({{ job.created|date:"d/m/Y" }})

0 commit comments

Comments
 (0)