diff --git a/content/eventos/2021-08-07-eu-open-source-policy-community-meeting-2021/cover.png b/content/eventos/2021-08-07-eu-open-source-policy-community-meeting-2021/cover.png new file mode 100644 index 0000000..2db0e7a Binary files /dev/null and b/content/eventos/2021-08-07-eu-open-source-policy-community-meeting-2021/cover.png differ diff --git a/content/eventos/2021-08-07-eu-open-source-policy-community-meeting-2021.md b/content/eventos/2021-08-07-eu-open-source-policy-community-meeting-2021/index.md similarity index 100% rename from content/eventos/2021-08-07-eu-open-source-policy-community-meeting-2021.md rename to content/eventos/2021-08-07-eu-open-source-policy-community-meeting-2021/index.md diff --git a/themes/academic/assets/scss/ansol.scss b/themes/academic/assets/scss/ansol.scss index 72b2b40..f99dfa9 100644 --- a/themes/academic/assets/scss/ansol.scss +++ b/themes/academic/assets/scss/ansol.scss @@ -178,11 +178,11 @@ nav.main .nav-search:hover { .events-list li { min-width: 300px; display: grid; - grid-template-areas: "img headline" "img subheader"; + grid-template-areas: "img text"; justify-content: left; background-color: white; - padding: 20px; width: calc(50% - 50px); + column-gap: 1rem; } .events-list.events-list-full-width li { @@ -190,19 +190,17 @@ nav.main .nav-search:hover { } .events-list .event-cover { - margin-top: -20px; - margin-left: -20px; - margin-bottom: -20px; - margin-right: 15px; width: 90px; height: 90px; object-fit: cover; + display: block; + background-color: white; } -.events-list .img { grid-area: img; margin-right: 10px; } -.events-list .headline { grid-area: headline; } -.events-list .date { grid-area: date; } -.events-list .subheader { grid-area: subheader; font-size: 0.8rem; margin-top: 10px; } +.events-list .img { grid-area: img; } +.events-list .text { grid-area: text; margin-top: 5px; } +.events-list .date { } +.events-list .subheader { font-size: 0.8rem; margin-top: 10px; } .events-list .title { font-size: 1.25rem; } @@ -275,11 +273,11 @@ p { margin: 0px; } .news-section { background-color: #f7f7f7; } .events-section { background-color: #f7f7f7; } -section h2 { +main section h2 { position: relative; } -section h2::before { +main section h2::before { content: ""; background-size: 40px 40px; width: 40px; @@ -293,11 +291,11 @@ section h2::before { .campaigns-section h2::before { background-image: var(--campaigns-icon); } .events-section h2::before { background-image: var(--events-icon); } -section { +main section { padding: 40px 0px; } -section.news-section { margin-top: 20px; } +main section.news-section { margin-top: 20px; } .about { margin-top: 40px; max-width: 660px; } @@ -328,7 +326,13 @@ article.article h1 { line-height: 2.5rem; } +/* Search */ + .searching .search-results { display: block; } +.searching nav.main { display: none; } +.searching main { display: none; } +.searching footer { display: none; } + .search-results { display: none; } .search-results { @@ -339,5 +343,27 @@ article.article h1 { right: 0; overflow: scroll; background-color: white; + padding: 20px; } +.search-results h1 { + font-size: 2.25rem; + font-weight: 300; + line-height: 2.5rem; +} + +.search-results h3 { + font-size: 1.5rem; + font-weight: 300; +} + +.search-results .search-hit { + padding: 20px 0px; +} + +.search-results .search-hit-description { + margin-top: 10px; +} + +.search-results .search-title { display: flex; align-items: center; justify-content: space-between; } +.search-results .search-close { font-size: 1.5rem; } diff --git a/themes/academic/layouts/eventos/list.html b/themes/academic/layouts/eventos/list.html index 5a29741..081d2cb 100644 --- a/themes/academic/layouts/eventos/list.html +++ b/themes/academic/layouts/eventos/list.html @@ -13,30 +13,32 @@ {{ end }} -

- {{ .Title }} -

-

- - {{ with .Params.metadata.event.date }} - {{ if eq (time.Format "2 January 2006" .start) (time.Format "2 January 2006" .finish) }} - {{ if eq (time.Format "15:04" .start) (time.Format "15:04" .finish) }} - {{ time.Format "2 de January de 2006" .start }} +

+

+ {{ .Title }} +

+

+ + {{ with .Params.metadata.event.date }} + {{ if eq (time.Format "2 January 2006" .start) (time.Format "2 January 2006" .finish) }} + {{ if eq (time.Format "15:04" .start) (time.Format "15:04" .finish) }} + {{ time.Format "2 de January de 2006" .start }} + {{ else }} + {{ time.Format "2 de January de 2006" .start }} das + {{ time.Format "15:04" .start }} às + {{ time.Format "15:04" .finish }} + {{ end }} + {{ else if eq (time.Format "January 2006" .start) (time.Format "January 2006" .finish) }} + De {{ time.Format "2" .start }} a {{ time.Format "2 de January de 2006" .finish }} {{ else }} - {{ time.Format "2 de January de 2006" .start }} das - {{ time.Format "15:04" .start }} às - {{ time.Format "15:04" .finish }} + De {{ time.Format "2 de January de 2006" .start }} a {{ time.Format "2 de January de 2006" .finish }} {{ end }} - {{ else if eq (time.Format "January 2006" .start) (time.Format "January 2006" .finish) }} - De {{ time.Format "2" .start }} a {{ time.Format "2 de January de 2006" .finish }} - {{ else }} - De {{ time.Format "2 de January de 2006" .start }} a {{ time.Format "2 de January de 2006" .finish }} {{ end }} - {{ end }} - - — - {{ .Params.metadata.event.location }} -

+ + — + {{ .Params.metadata.event.location }} +

+
{{ end }} diff --git a/themes/academic/layouts/index.html b/themes/academic/layouts/index.html index cd72dc3..d0df2ee 100644 --- a/themes/academic/layouts/index.html +++ b/themes/academic/layouts/index.html @@ -43,7 +43,7 @@ {{ end }}

- Ver mais notícias + Ver mais notícias

@@ -80,30 +80,32 @@ {{ end }} -

- {{ .Title }} -

-

- - {{ with .Params.metadata.event.date }} - {{ if eq (time.Format "2 January 2006" .start) (time.Format "2 January 2006" .finish) }} - {{ if eq (time.Format "15:04" .start) (time.Format "15:04" .finish) }} - {{ time.Format "2 de January de 2006" .start }} +

+

+ {{ .Title }} +

+

+ + {{ with .Params.metadata.event.date }} + {{ if eq (time.Format "2 January 2006" .start) (time.Format "2 January 2006" .finish) }} + {{ if eq (time.Format "15:04" .start) (time.Format "15:04" .finish) }} + {{ time.Format "2 de January de 2006" .start }} + {{ else }} + {{ time.Format "2 de January de 2006" .start }} das + {{ time.Format "15:04" .start }} às + {{ time.Format "15:04" .finish }} + {{ end }} + {{ else if eq (time.Format "January 2006" .start) (time.Format "January 2006" .finish) }} + De {{ time.Format "2" .start }} a {{ time.Format "2 de January de 2006" .finish }} {{ else }} - {{ time.Format "2 de January de 2006" .start }} das - {{ time.Format "15:04" .start }} às - {{ time.Format "15:04" .finish }} + De {{ time.Format "2 de January de 2006" .start }} a {{ time.Format "2 de January de 2006" .finish }} {{ end }} - {{ else if eq (time.Format "January 2006" .start) (time.Format "January 2006" .finish) }} - De {{ time.Format "2" .start }} a {{ time.Format "2 de January de 2006" .finish }} - {{ else }} - De {{ time.Format "2 de January de 2006" .start }} a {{ time.Format "2 de January de 2006" .finish }} {{ end }} - {{ end }} - - — - {{ .Params.metadata.event.location }} -

+ + — + {{ .Params.metadata.event.location }} +

+
{{ end }} diff --git a/themes/academic/layouts/partials/search.html b/themes/academic/layouts/partials/search.html index c2343f1..6015cdb 100644 --- a/themes/academic/layouts/partials/search.html +++ b/themes/academic/layouts/partials/search.html @@ -2,22 +2,20 @@
-
-
-

{{ i18n "search" }}

-
-
- Fechar -
+
+

{{ i18n "search" }}

+ Fechar