Skip to content

Commit 315542c

Browse files
committed
Some improvements to the front page components
1 parent 6282446 commit 315542c

File tree

4 files changed

+53
-15
lines changed

4 files changed

+53
-15
lines changed

pycltheme/static/css/cl.css

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
:root {
2+
--cl-blue: #0057a8;
3+
--cl-red: #e22914;
4+
}
5+
16
* {
27
font-family: 'Open Sans', sans-serif;
38
}
@@ -15,6 +20,15 @@
1520
font-weight: bold;
1621
}
1722

23+
a {
24+
color: var(--cl-blue);
25+
text-decoration: underline;
26+
}
27+
28+
a:hover {
29+
color: var(--cl-red);
30+
}
31+
1832

1933
.cabecera-index {
2034
color: white;
@@ -96,7 +110,7 @@
96110

97111
.plataformas {
98112
/*background: #343a40;*/
99-
background: #0057a8;
113+
background: var(--cl-blue);
100114
padding-top: 10px;
101115
padding-bottom: 10px;
102116
}
@@ -108,7 +122,7 @@
108122
}
109123

110124
.fondo-azul {
111-
background: #0057a8;
125+
background: var(--cl-blue);
112126
padding-top: 10px;
113127
padding-bottom: 10px;
114128
}
@@ -177,7 +191,7 @@
177191

178192
/* Footer */
179193
.footer {
180-
background: #0057a8;
194+
background: var(--cl-blue);
181195
color:white;
182196
}
183197

@@ -257,7 +271,7 @@ blockquote {
257271
}
258272

259273
.blue {
260-
color: #0057a7;
274+
color: var(--cl-blue);
261275
font-style: normal;
262276
}
263277

@@ -439,3 +453,20 @@ ul.navbar-nav {
439453
color: #343a40;
440454
font-weight: 800;
441455
}
456+
457+
.w-30 {
458+
width: 30% ! important;
459+
}
460+
461+
.w-40 {
462+
width: 40% ! important;
463+
}
464+
465+
.w-60 {
466+
width: 60% ! important;
467+
}
468+
469+
.btn-primary {
470+
background-color: var(--cl-blue);
471+
text-decoration: none;
472+
}

pycltheme/templates/card.html

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,25 @@ <h6 class="card-subtitle text-muted text-right">por
1313
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
1414
{% endfor %}
1515
</h6>
16-
<h6 class="card-subtitle text-muted text-right mt-1">
17-
<time class="published" datetime="{{ article.date.isoformat() }}">
18-
{{ article.locale_date }}
19-
</time>
20-
</h6>
2116
<div class="mt-auto">
22-
<a href="{{ SITEURL }}/{{ article.url }}" class="btn btn-primary float-right">Ver publicación</a>
17+
<a href="{{ SITEURL }}/{{ article.url }}" class="btn btn-primary w-100">Ver publicación</a>
2318
</div>
2419
</div>
2520
<div class="card-footer">
26-
<h6 style="font-size: 90%;" class="text-muted text-right">
27-
<a class="url fn" href="{{ SITEURL }}/{{ article.category.url }}">#{{ article.category }}</a>
21+
<div class="row">
22+
<div class="w-30 ml-3">
23+
<h6 style="font-size: 90%;" class="text-muted text-left">
24+
<time class="published" datetime="{{ article.date.isoformat() }}">
25+
{{ article.locale_date }}
26+
</time>
27+
</h6>
28+
</div>
29+
<div class="w-60 mr-3">
30+
<h6 style="font-size: 90%;" class="text-muted text-right">
31+
<a class="url fn" href="{{ SITEURL }}/{{ article.category.url }}">#{{ article.category }}</a>
32+
</h6>
33+
</div>
34+
</div>
2835
</div>
2936
</div>
3037
</div>

pycltheme/templates/communities.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
<section id="content" >
3-
<div class="pt-5 pb-5 blog-entries">
3+
<div class="pt-1 pb-1 blog-entries">
44
<div class="container">
55
{% block content_title %}
66
{% endblock %}

pycltheme/templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h3 class="text-center pb-5 mb-3 titulo-bold">PRÓXIMO EVENTO</h3>
1919
</div>
2020

2121
<!-- Entradas Blog -->
22-
<div class="pt-5 pb-5 blog-entries">
22+
<div class="pt-1 pb-1 blog-entries">
2323
<div class="container">
2424
{% block content_title %}
2525
{% endblock %}
@@ -40,7 +40,7 @@ <h3 class="text-center pb-5 mb-3 titulo-bold">ÚLTIMAS ENTRADAS</h3>
4040

4141
{% include 'communities.html'%}
4242
<!-- Patrocinios -->
43-
<section class="fondo-gris pt-5 pb-3">
43+
<section class="fondo-gris pt-3 pb-1">
4444
<div class="container">
4545
<div class="text-white pb-3 text-center">
4646
<h2>Nuestros Patrocinantes</h2>

0 commit comments

Comments
 (0)