Skip to content

Commit d1025a0

Browse files
committed
Add dark mode support for logos (and remove some unused files)
1 parent d8b881e commit d1025a0

14 files changed

Lines changed: 50 additions & 645 deletions

_config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ description: >- # this means to ignore newlines until "baseurl:"
2626
baseurl: "" # the subpath of your site, e.g. /blog
2727
url: "https://comcom.dc.uba.ar" # the base hostname & protocol for your site, e.g. http://example.com
2828

29-
logo: "static/img/logo.svg"
30-
logo-horizontal: "static/img/logo-horizontal.svg"
31-
3229
instagram_username: comcom.exactas.uba
3330
github_username: comcomUBA
3431

_includes/headerDefault.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
{%- assign default_paths = site.pages | map: "path" -%}
33
{%- assign page_paths = site.header_pages | default: default_paths -%}
44

5-
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">
6-
<img src="/static/img/logo-horizontal.min.svg" height="50px" />
5+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">
6+
<div class="site-header-logo"></div>
77
</a>
88

99
{%- if page_paths -%}

_includes/headerTaller.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">
2-
<img src="/static/img/logo.min.svg" height="50px" />
3-
</a>
2+
<div class="taller-header-logo"></div>
3+
</a>
44
<a class="taller-title" rel="author" href="{{ "/talleres/" | relative_url | append: page.tallerid }}/index">
5-
<img src="/static/img/{{page.tallerid}}/full-logo.min.svg" height="50px" />
5+
<img src="/static/img/{{page.tallerid}}/full-logo.min.svg" height="50px" />
66
</a>
77

88
<nav class="site-nav taller-nav">
@@ -20,4 +20,4 @@
2020
<a class="page-link" href="{{ site.feedback_url }}">¡Danos tu opinión!</a>
2121
{% endif %}
2222
</div>
23-
</nav>
23+
</nav>

_talleres/linux/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
layout: default
33
title: Taller de Linux
44
permalink: /talleres/linux/index
5-
logo: taller-linux.min.svg
65
edicion: "2019-1c"
76
tallerid: linux
87
tags: index
98
---
109

11-
Esta página está en construcción
10+
Esta página está en construcción

css/main.css

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
11
:root{
2-
32
--shadow-color: var(--background-color2);
43
--border-color: var(--background-color2);
54
}
65

7-
8-
96
/* Colores en variables + dark mode */
107
html {
11-
--light-text-color: rgb(72, 72, 74);
12-
--link-color: rgb(0, 112, 201);
13-
--background-color: rgb(255, 255, 255);
14-
--main-text-color: rgb(51, 51, 51);
15-
--background-color2: rgb(255, 255, 255);
16-
--background-color3 : #fff;
17-
--logo: #231f20;
8+
--light-text-color: rgb(72, 72, 74);
9+
--link-color: rgb(0, 112, 201);
10+
--background-color: rgb(255, 255, 255);
11+
--main-text-color: rgb(51, 51, 51);
12+
--background-color2: rgb(255, 255, 255);
13+
--background-color3 : #fff;
14+
--logo: #231f20;
15+
--site-logo-url: url("/static/img/comcom/logo-horizontal.min.svg");
16+
--taller-logo-url: url("/static/img/comcom/logo.min.svg");
1817
}
1918

2019

2120

2221
@media (prefers-color-scheme: dark) {
23-
html {
24-
--light-text-color: rgb(199, 199, 204);
25-
--link-color: rgb(100, 210, 255);
26-
--background-color: rgb(28, 28, 30);
27-
--background-color2: rgb(15, 15, 20);
28-
--main-text-color: rgb(229, 229, 234);
29-
--background-color3: #b4b4b4;
30-
--logo: #b4b4b4;
31-
}
22+
html {
23+
--light-text-color: rgb(199, 199, 204);
24+
--link-color: rgb(100, 210, 255);
25+
--background-color: rgb(28, 28, 30);
26+
--background-color2: rgb(15, 15, 20);
27+
--main-text-color: rgb(229, 229, 234);
28+
--background-color3: #b4b4b4;
29+
--logo: #b4b4b4;
30+
--site-logo-url: url("/static/img/mocmoc/logo-horizontal.min.svg");
31+
--taller-logo-url: url("/static/img/mocmoc/logo.min.svg");
32+
}
3233
}
3334

3435
/** Reset some basic elements */
@@ -324,3 +325,23 @@ footer {
324325
.gallery a:hover {
325326
box-shadow: 2px 2px 2px 0 var(--shadow-color);
326327
}
328+
329+
.site-header-logo {
330+
background-image: var(--site-logo-url);
331+
background-repeat: no-repeat;
332+
background-size: contain;
333+
background-position: center;
334+
display: inline-block;
335+
width: 270px;
336+
height: 50px;
337+
}
338+
339+
.taller-header-logo {
340+
background-image: var(--taller-logo-url);
341+
background-repeat: no-repeat;
342+
background-size: contain;
343+
background-position: center;
344+
display: inline-block;
345+
width: 70px;
346+
height: 50px;
347+
}
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)