mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-07-25 11:28:56 +00:00
Compare commits
No commits in common. "e43950104ba0df4fd4a8c1a668704f24890bb96e" and "c237ebb276becb1f5bbac18711f27baf5307c67f" have entirely different histories.
e43950104b
...
c237ebb276
10 changed files with 11 additions and 68 deletions
|
@ -1,12 +1,3 @@
|
||||||
# v1.2.4
|
|
||||||
## 01/04/2024
|
|
||||||
|
|
||||||
1. [](#new)
|
|
||||||
* Added option to display image logo in header
|
|
||||||
2. [](#improved)
|
|
||||||
* Updated CSS styles
|
|
||||||
* Updated translations
|
|
||||||
|
|
||||||
# v1.2.3
|
# v1.2.3
|
||||||
## 11/26/2023
|
## 11/26/2023
|
||||||
|
|
||||||
|
|
|
@ -2818,11 +2818,6 @@ table.alt tfoot {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
#header .logo a .logo-img {
|
|
||||||
padding: 0.25em 0 !important;
|
|
||||||
vertical-align: middle;
|
|
||||||
height: 3em;
|
|
||||||
}
|
|
||||||
@media screen and (max-width: 736px) {
|
@media screen and (max-width: 736px) {
|
||||||
#header .logo {
|
#header .logo {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
|
|
2
assets/css/main.min.css
vendored
2
assets/css/main.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -14,14 +14,7 @@
|
||||||
letter-spacing: 0.25em;
|
letter-spacing: 0.25em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
|
|
||||||
.logo-img {
|
|
||||||
padding: 0.25em 0 !important;
|
|
||||||
vertical-align: middle;
|
|
||||||
height: 3em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@include breakpoint('<=small') {
|
@include breakpoint('<=small') {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
/// Breakpoints.
|
/// Breakpoints.
|
||||||
/// @var {list}
|
/// @var {list}
|
||||||
//$breakpoints: () !global;
|
$breakpoints: () !global;
|
||||||
|
|
||||||
// Mixins.
|
// Mixins.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: Future 2021
|
name: Future 2021
|
||||||
slug: future2021
|
slug: future2021
|
||||||
type: theme
|
type: theme
|
||||||
version: 1.2.4
|
version: 1.2.3
|
||||||
description: Grav Future Imperfect by HTML5 UP (Version 2021)
|
description: Grav Future Imperfect by HTML5 UP (Version 2021)
|
||||||
icon: microchip
|
icon: microchip
|
||||||
author:
|
author:
|
||||||
|
@ -94,16 +94,6 @@ form:
|
||||||
multiple: false
|
multiple: false
|
||||||
accept:
|
accept:
|
||||||
- image/*
|
- image/*
|
||||||
|
|
||||||
type_logo_header:
|
|
||||||
type: radio
|
|
||||||
label: FUTURE.ADMIN.THEME.TYPE_LOGO_HEADER
|
|
||||||
help: FUTURE.ADMIN.THEME.TYPE_LOGO_HEADER_HELP
|
|
||||||
default: text
|
|
||||||
options:
|
|
||||||
image: FUTURE.ADMIN.THEME.TYPE_LOGO_HEADER_IMAGE
|
|
||||||
text: FUTURE.ADMIN.THEME.TYPE_LOGO_HEADER_TEXT
|
|
||||||
both: FUTURE.ADMIN.THEME.TYPE_LOGO_HEADER_BOTH
|
|
||||||
|
|
||||||
slogan:
|
slogan:
|
||||||
type: text
|
type: text
|
||||||
|
|
|
@ -10,11 +10,6 @@ en:
|
||||||
CUSTOM_LOGO: Custom Logo
|
CUSTOM_LOGO: Custom Logo
|
||||||
CUSTOM_LOGO_DESCRIPTION: Will be used instead of default logo `theme://images/grav-logo.svg`
|
CUSTOM_LOGO_DESCRIPTION: Will be used instead of default logo `theme://images/grav-logo.svg`
|
||||||
CUSTOM_LOGO_MOBILE: Mobile Custom Logo
|
CUSTOM_LOGO_MOBILE: Mobile Custom Logo
|
||||||
TYPE_LOGO_HEADER: 'Show logo/text in header'
|
|
||||||
TYPE_LOGO_HEADER_HELP: Choose how to display the logo in the header
|
|
||||||
TYPE_LOGO_HEADER_IMAGE: Image
|
|
||||||
TYPE_LOGO_HEADER_TEXT: Text
|
|
||||||
TYPE_LOGO_HEADER_BOTH: Both
|
|
||||||
SLOGAN: Slogan
|
SLOGAN: Slogan
|
||||||
MENU:
|
MENU:
|
||||||
TITLE: Top Menu Configuration
|
TITLE: Top Menu Configuration
|
||||||
|
@ -286,11 +281,6 @@ de:
|
||||||
CUSTOM_LOGO: Benutzerdefiniertes Logo
|
CUSTOM_LOGO: Benutzerdefiniertes Logo
|
||||||
CUSTOM_LOGO_DESCRIPTION: Dieses Logo wird anstelle des Standardlogos `theme://images/grav-logo.svg` verwendet
|
CUSTOM_LOGO_DESCRIPTION: Dieses Logo wird anstelle des Standardlogos `theme://images/grav-logo.svg` verwendet
|
||||||
CUSTOM_LOGO_MOBILE: Benutzerdefiniertes Logo für Mobilgeräte
|
CUSTOM_LOGO_MOBILE: Benutzerdefiniertes Logo für Mobilgeräte
|
||||||
TYPE_LOGO_HEADER: 'Logo/Text in der Kopfzeile anzeigen'
|
|
||||||
TYPE_LOGO_HEADER_HELP: Wählen Sie aus, wie das Logo in der Kopfzeile angezeigt werden soll
|
|
||||||
TYPE_LOGO_HEADER_IMAGE: Bild
|
|
||||||
TYPE_LOGO_HEADER_TEXT: Text
|
|
||||||
TYPE_LOGO_HEADER_BOTH: Beide
|
|
||||||
SLOGAN: Motto
|
SLOGAN: Motto
|
||||||
MENU:
|
MENU:
|
||||||
TITLE: Menü-Konfiguration
|
TITLE: Menü-Konfiguration
|
||||||
|
@ -559,11 +549,6 @@ es:
|
||||||
CUSTOM_LOGO: Logo personalizado
|
CUSTOM_LOGO: Logo personalizado
|
||||||
CUSTOM_LOGO_DESCRIPTION: Este logo se usará en lugar del log por defecto `theme://images/grav-logo.svg`
|
CUSTOM_LOGO_DESCRIPTION: Este logo se usará en lugar del log por defecto `theme://images/grav-logo.svg`
|
||||||
CUSTOM_LOGO_MOBILE: Logo personalizado para dispositivos móviles
|
CUSTOM_LOGO_MOBILE: Logo personalizado para dispositivos móviles
|
||||||
TYPE_LOGO_HEADER: 'Mostrar logo/texto en el encabezado'
|
|
||||||
TYPE_LOGO_HEADER_HELP: Elige cómo quieres que aparezca el logo en el encabezado.
|
|
||||||
TYPE_LOGO_HEADER_IMAGE: Imagen
|
|
||||||
TYPE_LOGO_HEADER_TEXT: Texto
|
|
||||||
TYPE_LOGO_HEADER_BOTH: Ambos
|
|
||||||
SLOGAN: Slogan
|
SLOGAN: Slogan
|
||||||
MENU:
|
MENU:
|
||||||
TITLE: Configuración del Menú Superior
|
TITLE: Configuración del Menú Superior
|
||||||
|
|
|
@ -2,22 +2,11 @@
|
||||||
{% set icon_lang = theme_var('menu_langswitcher')|defined('false') %}
|
{% set icon_lang = theme_var('menu_langswitcher')|defined('false') %}
|
||||||
{% set icon_search = theme_var('menu_search')|defined('false') %}
|
{% set icon_search = theme_var('menu_search')|defined('false') %}
|
||||||
{% set icon_login = theme_var('menu_login')|defined('false') %}
|
{% set icon_login = theme_var('menu_login')|defined('false') %}
|
||||||
{% set logoImageHeader = theme_var('type_logo_header')|defined('text') %}
|
|
||||||
<header id="header">
|
<header id="header">
|
||||||
|
<div class="logo">
|
||||||
<div class="logo">
|
<a href="{{ home_url }}">{{ site.title }}</a>
|
||||||
|
</div>
|
||||||
<a href="{{ home_url }}" class="">
|
|
||||||
{% if logoImageHeader == 'image' %}
|
|
||||||
{% include 'partials/logo.html.twig' with {'logo_class': 'logo-img'} %}
|
|
||||||
{% elseif logoImageHeader == 'both' %}
|
|
||||||
{% include 'partials/logo.html.twig' with {'logo_class': 'logo-img'} %}{{ site.title }}
|
|
||||||
{% else %}
|
|
||||||
{{ site.title }}
|
|
||||||
{% endif %}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<nav class="dropdown">
|
<nav class="dropdown">
|
||||||
{% block header_navigation %}
|
{% block header_navigation %}
|
||||||
{% include 'partials/navigation.html.twig' %}
|
{% include 'partials/navigation.html.twig' %}
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
{% set logo = theme_var('custom_logo_mobile') ?: theme_var('custom_logo') %}
|
{% set logo = theme_var('custom_logo_mobile') ?: theme_var('custom_logo') %}
|
||||||
|
<a href="{{ home_url }}" class="logo" rel="nofollow" title="{{ site.title|raw }}">
|
||||||
{% if logo %}
|
{% if logo %}
|
||||||
{% set logo_file = (logo|first).name %}
|
{% set logo_file = (logo|first).name %}
|
||||||
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" alt="{{ site.title|raw }}" class="{{ logo_class }}"/>
|
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" alt="{{ site.title|raw }}"/>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% include('@images/grav-logo.svg') %}
|
{% include('@images/grav-logo.svg') %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</a>
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!-- Intro -->
|
<!-- Intro -->
|
||||||
<section id="intro">
|
<section id="intro">
|
||||||
<a href="{{ home_url }}" class="logo" rel="nofollow" title="{{ site.title|raw }}">
|
|
||||||
{% include 'partials/logo.html.twig' %}
|
{% include 'partials/logo.html.twig' %}
|
||||||
</a>
|
|
||||||
<header>
|
<header>
|
||||||
<h2>{{ site.title|e('html') }}</h2>
|
<h2>{{ site.title|e('html') }}</h2>
|
||||||
<p>{{theme_config.slogan|raw}}</p>
|
<p>{{theme_config.slogan|raw}}</p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue