Alves: First commit

This commit is contained in:
Danny Dudzic 2019-08-20 12:45:07 +02:00
parent 8b71757869
commit 0066ccdaab
18 changed files with 15212 additions and 0 deletions

BIN
alves/.DS_Store vendored Normal file

Binary file not shown.

62
alves/footer.php Normal file
View file

@ -0,0 +1,62 @@
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package WordPress
* @subpackage Alves
* @since 1.0.0
*/
?>
</div><!-- #content -->
<footer id="colophon" class="site-footer">
<?php get_template_part( 'template-parts/footer/footer', 'widgets' ); ?>
<div id="footer-info-wrapper">
<?php
if ( function_exists( 'the_privacy_policy_link' ) ) {
the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
}
?>
<?php if ( has_nav_menu( 'menu-2' ) ) : ?>
<nav class="footer-navigation" aria-label="<?php esc_attr_e( 'Footer Menu', 'alves' ); ?>">
<?php
wp_nav_menu(
array(
'theme_location' => 'menu-2',
'menu_class' => 'footer-menu',
'depth' => 1,
)
);
?>
</nav><!-- .footer-navigation -->
<?php endif; ?>
<div class="site-info">
<?php $blog_info = get_bloginfo( 'name' ); ?>
<?php if ( ! empty( $blog_info ) ) : ?>
<a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a><span class="comma">,</span>
<?php endif; ?>
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'alves' ) ); ?>" class="imprint">
<?php
/* translators: %s: WordPress. */
printf( __( 'proudly powered by %s.', 'alves' ), 'WordPress' );
?>
</a>
</div><!-- .site-info -->
</div>
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>

205
alves/functions.php Executable file
View file

@ -0,0 +1,205 @@
<?php
/**
* Child Theme Functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package WordPress
* @subpackage Alves
* @since 1.0.0
*/
if ( ! function_exists( 'alves_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/
function alves_setup() {
// Add child theme editor styles, compiled from `style-child-theme-editor.scss`.
add_editor_style( 'style-editor.css' );
// Add child theme editor font sizes to match Sass-map variables in `_config-child-theme-deep.scss`.
add_theme_support(
'editor-font-sizes',
array(
array(
'name' => __( 'Small', 'alves' ),
'shortName' => __( 'S', 'alves' ),
'size' => 19.5,
'slug' => 'small',
),
array(
'name' => __( 'Normal', 'alves' ),
'shortName' => __( 'M', 'alves' ),
'size' => 22,
'slug' => 'normal',
),
array(
'name' => __( 'Large', 'alves' ),
'shortName' => __( 'L', 'alves' ),
'size' => 36.5,
'slug' => 'large',
),
array(
'name' => __( 'Huge', 'alves' ),
'shortName' => __( 'XL', 'alves' ),
'size' => 49.5,
'slug' => 'huge',
),
)
);
// Add child theme editor color pallete to match Sass-map variables in `_config-child-theme-deep.scss`.
add_theme_support(
'editor-color-palette',
array(
array(
'name' => __( 'Primary', 'alves' ),
'slug' => 'primary',
'color' => '#3E7D98',
),
array(
'name' => __( 'Secondary', 'alves' ),
'slug' => 'secondary',
'color' => '#fcfbf9',
),
array(
'name' => __( 'Dark Orange', 'alves' ),
'slug' => 'primary-hover',
'color' => '#9B6A36',
),
array(
'name' => __( 'Gray', 'alves' ),
'slug' => 'foreground-default',
'color' => '#394d55',
),
array(
'name' => __( 'Light Gray', 'alves' ),
'slug' => 'secondary-hover',
'color' => '#ffcf96',
),
)
);
}
endif;
add_action( 'after_setup_theme', 'alves_setup', 12 );
/**
* Register second and third footer widget area.
*
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*/
function alves_widgets_init() {
register_sidebar(
array(
'name' => __( 'Footer 2', 'alves' ),
'id' => 'sidebar-2',
'description' => __( 'Add widgets here to appear in your footer.', 'alves' ),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
)
);
register_sidebar(
array(
'name' => __( 'Footer 3', 'alves' ),
'id' => 'sidebar-3',
'description' => __( 'Add widgets here to appear in your footer.', 'alves' ),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
)
);
}
add_action( 'widgets_init', 'alves_widgets_init', 12 );
/**
* Filter the content_width in pixels, based on the child-theme's design and stylesheet.
*/
function alves_content_width() {
return 700;
}
add_filter( 'varia_content_width', 'alves_content_width' );
/**
* Add Google webfonts, if necessary
*
* - See: http://themeshaper.com/2014/08/13/how-to-add-google-fonts-to-wordpress-themes/
*/
function alves_fonts_url() {
$fonts_url = '';
/* Translators: If there are characters in your language that are not
* supported by Lora, translate this to 'off'. Do not translate
* into your own language.
*/
$lora = esc_html_x( 'on', 'Lora font: on or off', 'alves' );
/* Translators: If there are characters in your language that are not
* supported by Karla, translate this to 'off'. Do not translate
* into your own language.
*/
$karla = esc_html_x( 'on', 'Karla font: on or off', 'alves' );
if ( 'off' !== $lora || 'off' !== $karla ) {
$font_families = array();
if ( 'off' !== $lora ) {
$font_families[] = 'Lora:400,700,400italic,700italic';
}
if ( 'off' !== $karla ) {
$font_families[] = 'Karla:400,700,400italic,700italic';
}
$query_args = array(
'family' => urlencode( implode( '|', $font_families ) ),
'subset' => urlencode( 'latin,latin-ext' ),
);
$fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
}
return esc_url_raw( $fonts_url );
}
/**
* Enqueue scripts and styles.
*/
function alves_scripts() {
// enqueue Google fonts, if necessary
// wp_enqueue_style( 'alves-fonts', alves_fonts_url(), array(), null );
// dequeue parent styles
wp_dequeue_style( 'varia-style' );
// enqueue child styles
wp_enqueue_style('alves-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ));
// enqueue child RTL styles
wp_style_add_data( 'alves-style', 'rtl', 'replace' );
}
add_action( 'wp_enqueue_scripts', 'alves_scripts', 99 );
/**
* Enqueue theme styles for the block editor.
*/
function alves_editor_styles() {
// Enqueue Google fonts in the editor, if necessary
wp_enqueue_style( 'alves-editor-fonts', alves_fonts_url(), array(), null );
}
add_action( 'enqueue_block_editor_assets', 'alves_editor_styles' );

5115
alves/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

44
alves/package.json Executable file
View file

@ -0,0 +1,44 @@
{
"name": "alves",
"version": "1.0.0",
"description": "Alves",
"bugs": {
"url": "https://github.com/Automattic/themes/issues"
},
"homepage": "https://github.com/Automattic/themes/varia#readme",
"devDependencies": {
"@wordpress/browserslist-config": "^2.2.2",
"autoprefixer": "^9.5.1",
"chokidar-cli": "^1.2.2",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.5",
"postcss-cli": "^6.1.2",
"postcss-focus-within": "^3.0.0",
"rtlcss": "^2.4.0"
},
"rtlcssConfig": {
"options": {
"autoRename": false,
"autoRenameStrict": false,
"blacklist": {},
"clean": true,
"greedy": false,
"processUrls": false,
"stringMap": []
},
"plugins": [],
"map": false
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"scripts": {
"start": "chokidar \"**/*.scss\" -c \"npm run build\" --initial",
"build:style": "node-sass sass/style-child-theme.scss style.css --output-style expanded --indent-type tab --indent-width 1 && postcss -r style.css",
"build:style-editor": "node-sass sass/style-child-theme-editor.scss style-editor.css --output-style expanded --indent-type tab --indent-width 1 && postcss -r style-editor.css",
"build:rtl": "rtlcss style.css style-rtl.css",
"build:print": "node-sass sass/print.scss print.css --output-style expanded --indent-type tab --indent-width 1 && postcss -r print.css",
"build": "run-p \"build:*\"",
"watch": "chokidar \"**/*.scss\" -c \"npm run build\" --initial"
}
}

13
alves/postcss.config.js Executable file
View file

@ -0,0 +1,13 @@
var postcssFocusWithin = require('postcss-focus-within');
module.exports = {
plugins: {
autoprefixer: {}
}
};
module.exports = {
plugins: [
postcssFocusWithin(/* pluginOptions */)
]
};

162
alves/print.css Normal file
View file

@ -0,0 +1,162 @@
/*
Theme Name: Alves
Adding print support. The print styles are based on the the great work of
Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272/.
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Margins
# Typography
# Page breaks
# Links
# Visibility
--------------------------------------------------------------*/
@media print {
/* Margins */
@page {
margin: 2cm;
}
.entry {
margin-top: 1em;
}
.entry .entry-header, .site-footer .site-info {
margin: 0;
}
/* Fonts */
body {
font: 13pt Georgia, "Times New Roman", Times, serif;
line-height: 1.3;
background: #fff !important;
color: #000;
}
h1 {
font-size: 24pt;
}
h2,
h3,
h4,
.has-regular-font-size,
.has-large-font-size,
h2.author-title,
p.author-bio,
.comments-title, h3 {
font-size: 14pt;
margin-top: 25px;
}
/* Page breaks */
a {
page-break-inside: avoid;
}
blockquote {
page-break-inside: avoid;
}
h1,
h2,
h3,
h4,
h5,
h6 {
page-break-after: avoid;
page-break-inside: avoid;
}
img {
page-break-inside: avoid;
page-break-after: avoid;
}
table, pre {
page-break-inside: avoid;
}
ul, ol, dl {
page-break-before: avoid;
}
/* Links */
a:link, a:visited, a {
background: transparent;
font-weight: bold;
text-decoration: underline;
text-align: left;
}
a {
page-break-inside: avoid;
}
a[href^=http]:after {
content: " < " attr(href) "> ";
}
a:after > img {
content: "";
}
article a[href^="#"]:after {
content: "";
}
a:not(:local-link):after {
content: " < " attr(href) "> ";
}
/* Visibility */
.main-navigation,
.site-title + .main-navigation,
.social-navigation,
.site-branding-container:before,
.entry .entry-title:before,
.entry-footer,
.author-description:before,
.post-navigation,
.widget-area,
.comment-form-flex,
.comment-reply,
.comment .comment-metadata .edit-link {
display: none;
}
.entry .entry-content .wp-block-button .wp-block-button__link,
.entry .entry-content .button {
color: #000;
background: none;
}
/* Site Header (With Featured Image) */
.site-header.featured-image {
min-height: 0;
}
.site-header.featured-image .main-navigation a,
.site-header.featured-image .main-navigation a + svg,
.site-header.featured-image .social-navigation a,
.site-header.featured-image .site-title a,
.site-header.featured-image .site-featured-image a,
.site-header.featured-image .site-branding .site-title,
.site-header.featured-image .site-branding .site-description,
.site-header.featured-image .main-navigation a:after,
.site-header.featured-image .main-navigation .main-menu > li.menu-item-has-children:after,
.site-header.featured-image .main-navigation li,
.site-header.featured-image .social-navigation li,
.site-header.featured-image .entry-meta,
.site-header.featured-image .entry-title,
.site-header.featured-image#masthead .site-title a {
color: #000;
text-shadow: none;
}
.site-header.featured-image .site-featured-image .entry-header,
.site-header.featured-image .site-branding-container {
margin-top: 0;
margin-bottom: 0;
}
.site-header.featured-image .site-featured-image .post-thumbnail img {
position: relative;
height: initial;
width: initial;
object-fit: none;
min-width: 0;
min-height: 0;
max-width: 100%;
margin-top: 1rem;
}
/* Remove image filters from featured image */
.image-filters-enabled *:after {
display: none !important;
}
.image-filters-enabled .site-header.featured-image .site-featured-image:before {
display: none;
}
.image-filters-enabled .site-header.featured-image .site-featured-image .post-thumbnail img {
filter: none;
}
}

View file

@ -0,0 +1,355 @@
/**
* Redefine Sass map values for child theme output.
* - See: style-child-theme.scss
*/
/**
* Global
*/
// Vertical Rhythm Multiplier
$baseline-unit: 8px;
$typescale-root: 16px; // Set 16px/1em default on html
$typescale-base: 1.25rem; // Set 1em default on body == $typescale-root;
$typescale-ratio: 1.2; // Run ratio math on 1em == $typescale-base * $typescale-root;
$config-global: (
/* Fonts */
"font": (
/* Font Family */
"family": (
"primary": "\"Lora\"\, Georgia\, sans-serif",
"secondary": "\"Karla\"\, Arial\, sans-serif",
"code": "Monaco\, Consolas\, \"Andale Mono\"\, \"DejaVu Sans Mono\"\, monospace",
"ui": "-apple-system\, BlinkMacSystemFont\, \"Segoe UI\"\, \"Roboto\"\, \"Oxygen\"\, \"Ubuntu\"\, \"Cantarell\"\, \"Fira Sans\"\, \"Droid Sans\"\, \"Helvetica Neue\"\, sans-serif",
),
/* Font Size */
"size": (
"root": $typescale-root,
"ratio": $typescale-ratio,
"xs": ($typescale-base / $typescale-ratio / $typescale-ratio),
"sm": ($typescale-base / $typescale-ratio),
"base": $typescale-base,
"md": ($typescale-base * $typescale-ratio),
"lg": ($typescale-base * $typescale-ratio * $typescale-ratio),
"xl": ($typescale-base * $typescale-ratio * $typescale-ratio * $typescale-ratio),
"xxl": ($typescale-base * $typescale-ratio * $typescale-ratio * $typescale-ratio * $typescale-ratio),
"xxxl": ($typescale-base * $typescale-ratio * $typescale-ratio * $typescale-ratio * $typescale-ratio * $typescale-ratio),
"xxxxl": ($typescale-base * $typescale-ratio * $typescale-ratio * $typescale-ratio * $typescale-ratio * $typescale-ratio * $typescale-ratio),
),
/* Letter Spacing */
"letter-spacing": (
"base": normal,
"xs": normal,
"sm": normal,
"md": normal,
"lg": normal,
"xl": normal,
"xxl": normal,
"xxxl": normal,
),
/* Line Height */
"line-height": (
"base": strip-unit($typescale-base),
"body": 1.6,
"heading": 1.125,
),
),
/* Colors */
"color": (
"primary": (
"default": #3E7D98,
"hover": #9B6A36,
),
"secondary": (
"default": #fcfbf9,
"hover": #ffcf96,
),
"foreground": (
"default": #394d55,
"light": #394d55, // must be accessible against background (#fcfbf9,)
"dark": darkgray, // must be accessible against background
),
"background": (
"default": white,
"light": #fafafa, // must be accessible against foreground-default
"dark": #2d2a26, // must be accessible against foreground-default
),
"border": (
"default": #3E7D98,
"light": #fcfbf9,
"dark": #9B6A36,
),
"text-selection": lightblue,
"black": black,
"white": white,
),
/* Spacing */
"spacing": (
"unit": (2 * $baseline-unit), // 16px
"measure": inherit, // Use ch units here. ie: 60ch = 60 character max-width
"horizontal": (2 * $baseline-unit), // 16px
"vertical": (4 * $baseline-unit), // 32px matches default spacing in the editor.
),
/* Breakpoints */
"breakpoint": (
"sm": 560px,
"md": 640px,
"lg": 732px,
"xl": 1024px,
"xxl": 1280px,
),
/* Elevation */
"elevation": (
"none": 0px 0px 0px 0px rgba( 0, 0, 0, 0 ),
"2dp": 0px 0px 4px 2px rgba( 0, 0, 0, 0.2 ),
"4dp": 0px 0px 8px 2px rgba( 0, 0, 0, 0.2 ),
"6dp": 2px 2px 4px 2px rgba( 0, 0, 0, 0.2 ),
"8dp": 2px 2px 8px 0px rgba( 0, 0, 0, 0.2 ),
"10dp": 4px 4px 8px 0px rgba( 0, 0, 0, 0.2 ),
),
/* Border radius */
"border-radius": (
"sm": (0.5 * $typescale-root),
"md": (0.75 * $typescale-root),
"lg": $typescale-root,
"pill": (10 * $typescale-root),
),
);
/**
* Elements
*/
$config-elements: (
"form": (
// Colors
"color": (
"text": map-deep-get($config-global, "color", "foreground", "default"),
"border": map-deep-get($config-global, "color", "border", "default"),
"border-focus": map-deep-get($config-global, "color", "primary", "hover"),
),
// Fonts
"font": (
"family": map-deep-get($config-global, "font", "family", "secondary"),
"line-height": map-deep-get($config-global, "font", "line-height", "md"),
"size": map-deep-get($config-global, "font", "size", "md"),
"weight": bold,
),
// Borders
"border": (
"width": 1px,
"radius": 3px,
),
"padding": #{map-deep-get($config-global, "spacing", "unit")},
),
);
/**
* Button
*/
$config-button: (
// Colors
"color": (
"text": map-deep-get($config-global, "color", "secondary", "default"),
"text-hover": map-deep-get($config-global, "color", "secondary", "default"),
"background": map-deep-get($config-global, "color", "primary", "default"),
"background-hover": map-deep-get($config-global, "color", "primary", "hover"),
),
// Fonts
"font": (
"family": map-deep-get($config-global, "font", "family", "secondary"),
"size": map-deep-get($config-global, "font", "size", "sm"),
"weight": bold,
"line-height": 1,
),
// Borders
"border-radius": map-deep-get($config-global, "border-radius", "pill"),
"border-width": 2px,
// Padding
"padding": (
"vertical": (2 * $baseline-unit),
"horizontal": (6 * $baseline-unit),
),
);
/**
* Cover
*/
$config-cover: (
"height": calc( 17 * #{map-deep-get($config-global, "spacing", "vertical")} ),
);
/**
* Heading
*/
$config-heading: (
// Fonts & Typography
"font": (
// Family
"family": map-deep-get($config-global, "font", "family", "primary"),
// Size
"size": (
"h6": map-deep-get($config-global, "font", "size", "base"),
"h5": map-deep-get($config-global, "font", "size", "md"),
"h4": map-deep-get($config-global, "font", "size", "lg"),
"h3": map-deep-get($config-global, "font", "size", "xl"),
"h2": map-deep-get($config-global, "font", "size", "xl"),
"h1": map-deep-get($config-global, "font", "size", "xxxl"),
),
// Letter spacing
"line-height": (
"h6": map-deep-get($config-global, "font", "line-height", "heading"),
"h5": map-deep-get($config-global, "font", "line-height", "heading"),
"h4": map-deep-get($config-global, "font", "line-height", "heading"),
"h3": map-deep-get($config-global, "font", "line-height", "heading"),
"h2": map-deep-get($config-global, "font", "line-height", "heading"),
"h1": map-deep-get($config-global, "font", "line-height", "heading"),
),
// Letter spacing
"letter-spacing": (
"h6": map-deep-get($config-global, "font", "letter-spacing", "sm"),
"h5": map-deep-get($config-global, "font", "letter-spacing", "md"),
"h4": map-deep-get($config-global, "font", "letter-spacing", "lg"),
"h3": map-deep-get($config-global, "font", "letter-spacing", "xl"),
"h2": map-deep-get($config-global, "font", "letter-spacing", "xxl"),
"h1": map-deep-get($config-global, "font", "letter-spacing", "xxxl"),
),
// Font Weight
"weight": normal,
),
);
/**
* List
*/
$config-list: (
// Fonts
"font": (
"family": map-deep-get($config-global, "font", "family", "secondary"),
),
);
/**
* Pullquote
*/
$config-pullquote: (
// Font
"font": (
"family": #{map-deep-get($config-heading, "font", "family")},
),
// Border
"color": (
"border": #{map-deep-get($config-global, "color", "border", "default")},
"background": #{map-deep-get($config-global, "color", "primary", "default")},
),
// Border
"border": (
"width": #{0.5 * $baseline-unit},
),
);
/**
* Quote
*/
$config-quote: (
// Font
"font": (
"family": #{map-deep-get($config-heading, "font", "family")},
),
);
/**
* Separator
*/
$config-separator: (
"height": #{0.25 * $baseline-unit},
);
/**
* Header
*/
$config-header: (
"branding": (
// Colors
"color": (
"text": map-deep-get($config-global, "color", "foreground", "light"),
"link": map-deep-get($config-global, "color", "foreground", "default"),
"link-hover": map-deep-get($config-global, "color", "primary", "hover"),
),
// Fonts & Typography
"title": (
// Fonts
"font": (
"family": map-deep-get($config-global, "font", "family", "primary"),
"size": map-deep-get($config-global, "font", "size", "xl"),
"weight": bold,
"line-height": 1,
),
),
// Fonts & Typography
"description": (
// Fonts
"font": (
"family": map-deep-get($config-global, "font", "family", "secondary"),
"size": map-deep-get($config-global, "font", "size", "sm"),
),
),
),
"main-nav": (
// Colors
"color": (
"text": map-deep-get($config-global, "color", "foreground", "default"),
"link": map-deep-get($config-global, "color", "foreground", "default"),
"link-hover": map-deep-get($config-global, "color", "primary", "hover"),
),
// Fonts
"font": (
"family": map-deep-get($config-global, "font", "family", "secondary"),
"size": map-deep-get($config-global, "font", "size", "base"),
"weight": bold,
"line-height": 1,
),
"link-padding": map-deep-get($config-global, "spacing", "unit"),
),
"social-nav": (
// Colors
"color": (
"link": map-deep-get($config-global, "color", "foreground", "default"),
"link-hover": map-deep-get($config-global, "color", "primary", "hover"),
),
"link-padding": calc( 0.5 * calc(0.66 * #{map-deep-get($config-global, "spacing", "unit")} ) ),
),
);
/**
* Footer
*/
$config-footer: (
// Colors
"color": (
"text": map-deep-get($config-global, "color", "foreground", "light"),
"link": map-deep-get($config-global, "color", "primary", "default"),
"link-hover": map-deep-get($config-global, "color", "primary", "hover"),
),
// Fonts
"font": (
"family": map-deep-get($config-global, "font", "family", "primary"),
"size": map-deep-get($config-global, "font", "size", "sm"),
"line-height": map-deep-get($config-global, "font", "line-height", "sm"),
),
);

View file

@ -0,0 +1,26 @@
/**
* Filter Sass map values for child theme output.
* - See: style-child-theme.scss
*/
// @import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,400i|Roboto:400,400i,700&display=swap');
$config-global: map-deep-set($config-global, "font" "size" "root", "20px");
$config-global: map-deep-set($config-global, "font" "family" "primary", "\'Playfair Display\', serif");
$config-global: map-deep-set($config-global, "font" "family" "secondary", "\'Roboto\', sans-serif");
$config-global: map-deep-set($config-global, "color" "primary" "default", pink);
$config-global: map-deep-set($config-global, "font" "size" "root", "20px");
// Button
$config-button: map-deep-set($config-button, "color" "background", orange);
// Headings
$config-heading: map-deep-set($config-heading, "font" "family", "\'Playfair Display\', serif");
$config-heading: map-deep-set($config-heading, "font" "weight", 200);
// Header
$config-header: map-deep-set($config-header, "branding" "title" "font" "family", "\'Playfair Display\', serif");
$config-header: map-deep-set($config-header, "branding" "title" "font" "weight", 200);
$config-header: map-deep-set($config-header, "branding" "description" "font" "family", "\'Roboto\', sans-serif");
$config-header: map-deep-set($config-header, "branding" "color" "link", orange);
$config-header: map-deep-set($config-header, "main-nav" "color" "link", orange);

View file

@ -0,0 +1,425 @@
/**
* Extra Child Theme Styles
*
* 0. Mixins & Variables
* 1. General Helper Styles
* 2. Header
* 3. Main Wrapper and Content
* 4. Navigation Menu
* 6. Block Specific Styles
* 7. Widgets
*/
/**
* 0. Mixins and Variables
*/
@mixin alves-media( $res ) {
@if laptop-only == $res {
@media only screen and (max-width: #{map-deep-get($config-global, "breakpoint", "lg") - 1}) {
@content;
}
}
}
$color_background: #{map-deep-get($config-global, "color", "background", "default")};
$color_background_light: #{map-deep-get($config-global, "color", "background", "light")};
$color_foreground: #{map-deep-get($config-global, "color", "foreground", "default")};
$color_primary: #{map-deep-get($config-global, "color", "primary", "default")};
$color_secondary: #{map-deep-get($config-global, "color", "secondary", "default")};
$color_primary_hover: #{map-deep-get($config-global, "color", "primary", "hover")};
$color_secondary_hover: #{map-deep-get($config-global, "color", "secondary", "hover")};
$spacing_horizontal: #{map-deep-get($config-global, "spacing", "horizontal")};
$spacing_vertical: #{map-deep-get($config-global, "spacing", "vertical")};
$font_size_xs: #{map-deep-get($config-global, "font", "size", "xs")};
$font_size_sm: #{map-deep-get($config-global, "font", "size", "sm")};
$font_size_md: #{map-deep-get($config-global, "font", "size", "md")};
$font_size_base: #{map-deep-get($config-global, "font", "size", "base")};
$font_size_lg: #{map-deep-get($config-global, "font", "size", "lg")};
$font_size_xl: #{map-deep-get($config-global, "font", "size", "xl")};
$font_family_primary: #{map-deep-get($config-global, "font", "family", "primary")};
$font_family_secondary: #{map-deep-get($config-global, "font", "family", "secondary")};
$font_family_code: #{map-deep-get($config-global, "font", "family", "code")};
$font_line_height_body: #{map-deep-get($config-global, "font", "line-height", "body")};
$button_line_height: #{map-deep-get($config-button, "font", "line-height")};
$button_font_weight: #{map-deep-get($config-button, "font", "weight")};
$button_font_family: #{map-deep-get($config-button, "font", "family")};
$button_font_size: #{map-deep-get($config-button, "font", "size")};
$button_spacing_vertical: #{map-deep-get($config-button, "padding", "vertical")};
$button_spacing_horizontal: #{map-deep-get($config-button, "padding", "horizontal")};
$button_background_hover: #{map-deep-get($config-button, "color", "background-hover")};
$font_size_widget_title: #{map-deep-get($config-heading, "font", "size", "h4")};
$footer_widget_area_spacing_horizontal: 2 * map-deep-get($config-global, "spacing", "horizontal");
$site_main_spacing_vertical: 2 * map-deep-get($config-global, "spacing", "vertical");
/**
* 1. General Styles
*/
h1,
h2,
h3,
h4,
h5,
h6 {
color: $color_foreground;
}
a {
text-decoration: underline;
&:hover,
&:focus {
text-decoration: none;
}
.wp-block-group &,
.wp-block-cover &,
.wp-block-cover-image &,
.wp-block-media-text &,
p:not(.site-title) & {
text-decoration: underline;
&.wp-block-button__link,
&:hover {
text-decoration: none;
}
}
}
.has-background {
a {
color: currentColor;
}
}
a {
text-decoration: none;
}
.site-branding,
.site-info,
.main-navigation,
.entry-header,
.entry-footer,
.page-title,
.author-title,
.comments-title,
.comment-reply-title {
text-align: center;
}
button,
.archive .read-more a,
.blog .read-more a,
.search-results .read-more a,
.button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button a {
transition: background-color 0.125s ease-in;
}
h3,
blockquote cite,
.site-branding .site-title,
.widget-title {
font-family: $font_family_secondary;
}
.comment-reply-title {
display: inherit;
}
.comment .comment-reply-title {
display: flex;
}
.entry-meta,
.entry-footer {
color: $color_foreground;
}
/**
* 2. Header
*/
.site-header {
@extend %responsive-alignwide;
margin: 0 auto;
@include media(desktop) {
padding-top: $site_main_spacing_vertical;
}
}
/**
* 3. Main Wrapper and Content
*/
.site-content {
padding-top: $spacing_vertical;
}
.home.page.hide-homepage-title {
.site-content {
.site-main {
padding-top: 0;
}
@include media(mobile-only) {
padding-top: $spacing_vertical;
}
}
}
.entry-content {
font-family: $font_family_primary;
}
#post-5 .entry-title {
display: none;
}
.site-content {
.site-main {
padding-top: 0;
padding-bottom: $site_main_spacing_vertical;
}
@include media(mobile-only) {
padding-top: $site_main_spacing_vertical;
}
}
/**
* 4. Navigation
*/
.main-navigation > div {
text-align: left;
}
.main-navigation > div > ul,
.social-navigation > div > ul,
.pagination .nav-links {
justify-content: center;
}
/**
* 5. General Block Styles
*/
.has-secondary-hover-color[class] {
color: $color_secondary_hover !important;
}
.has-primary-hover-color[class] {
color: $color_primary_hover !important;
}
.has-foreground-default-color[class] {
color: $color_foreground !important;
}
.has-text-color {
&.has-secondary-hover-color[class] {
color: $color_secondary_hover !important;
&:hover {
color: $color_secondary_hover !important;
}
}
&.has-primary-hover-color[class] {
color: $color_primary_hover !important;
&:hover {
color: $color_primary_hover !important;
}
}
&.has-foreground-default-color[class] {
color: $color_foreground !important;
&:hover {
color: $color_foreground !important;
}
}
}
.has-background {
&.has-secondary-hover-background-color[class] {
background: $color_secondary_hover !important;
&:hover {
background: $color_secondary_hover !important;
}
}
&.has-primary-hover-background-color[class] {
background: $color_primary_hover !important;
&:hover {
background: $color_primary_hover !important;
}
}
&.has-foreground-default-background-color[class] {
background: $color_foreground !important;
&:hover {
background: $color_foreground !important;
}
}
}
/**
* Footer & Footer Widgets
*/
.site-footer {
@extend %responsive-alignfull;
background: $color_primary;
margin: 0 auto;
display: block;
color: $color_secondary;
button,
.button,
input[type="button"],
input[type="reset"],
input[type="submit"], {
background:: #{map-deep-get($config-global, "color", "secondary", "default")};
color: #{map-deep-get($config-global, "color", "primary", "default")};
&:hover {
}
}
#footer-widgets {
border-bottom: 1px solid #{map-deep-get($config-global, "color", "border", "light")};
@extend %responsive-alignwide;
display: flex;
flex-wrap: nowrap;
flex: 1 0 100%;
margin: 0 auto;
@include alves-media(laptop-only) {
display: block;
}
.widget-area {
flex: 1;
font-size: $font_size_sm;
@include media(laptop) {
padding-right: $footer_widget_area_spacing_horizontal;
&:last-of-type {
padding-right: 0;
}
}
}
}
#footer-info-wrapper {
@extend %responsive-alignwide;
display: flex;
margin: 0 auto;
padding-top: ($baseline-unit * .75);
max-width: 100%;
a {
font-family: $font_family_primary;
color: $color_secondary;
padding: 0;
text-decoration: none;
&:hover,
&:focus {
color: #{map-deep-get($config-global, "color", "secondary", "hover")};
}
}
.footer-navigation {
order: 1;
font-style: italic;
flex-wrap: nowrap;
flex: 1;
text-align: left;
padding-right: $spacing_horizontal;
.footer-menu {
display: block;
justify-content: left;
margin: 0;
color: $color_secondary;
li:after {
content: ' · ';
display: inline;
padding-right: 5px;
vertical-align: middle;
}
li:last-of-type:after {
content: '';
}
}
}
.site-info {
color: $color_secondary;
text-align: right;
order: 2;
font-style: italic;
flex-wrap: nowrap;
flex: 1;
}
}
}
/**
* Widgets
*/
.widget {
.widget-title {
font-weight: 700;
color: $color_secondary;
margin-bottom: $spacing_vertical;
}
ul {
list-style: none;
margin: 0;
&.children > li {
margin-bottom: 0;
margin-top: 0;
border: 0;
a {
padding-left: $spacing_horizontal;
}
}
li {
a {
color: $color_secondary;
border-top: 1px solid #{map-deep-get($config-global, "color", "border", "light")};
display: inline-block;
padding: ($baseline-unit * .75) 0;
&:hover {
color: #{map-deep-get($config-global, "color", "secondary", "hover")};
}
}
&.recentcomments a {
padding: ($baseline-unit * .75) 0 !important;
display: inline-block !important;
}
}
}
}

198
alves/sass/print.scss Executable file
View file

@ -0,0 +1,198 @@
/*
Theme Name: Alves
Adding print support. The print styles are based on the the great work of
Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272/.
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Margins
# Typography
# Page breaks
# Links
# Visibility
--------------------------------------------------------------*/
@media print {
/* Margins */
@page {
margin: 2cm;
}
.entry {
margin-top: 1em;
}
.entry .entry-header, .site-footer .site-info {
margin: 0;
}
/* Fonts */
body {
font: 13pt Georgia, "Times New Roman", Times, serif;
line-height: 1.3;
background: #fff !important;
color: #000;
}
h1 {
font-size: 24pt;
}
h2,
h3,
h4,
.has-regular-font-size,
.has-large-font-size,
h2.author-title,
p.author-bio,
.comments-title, h3 {
font-size: 14pt;
margin-top: 25px;
}
/* Page breaks */
a {
page-break-inside: avoid
}
blockquote {
page-break-inside: avoid;
}
h1,
h2,
h3,
h4,
h5,
h6 {
page-break-after: avoid;
page-break-inside: avoid
}
img {
page-break-inside: avoid;
page-break-after: avoid;
}
table, pre {
page-break-inside: avoid;
}
ul, ol, dl {
page-break-before: avoid;
}
/* Links */
a:link, a:visited, a {
background: transparent;
font-weight: bold;
text-decoration: underline;
text-align: left;
}
a {
page-break-inside: avoid;
}
a[href^=http]:after {
content: " < " attr(href) "> ";
}
a:after > img {
content: "";
}
article a[href^="#"]:after {
content: "";
}
a:not(:local-link):after {
content: " < " attr(href) "> ";
}
/* Visibility */
.main-navigation,
.site-title + .main-navigation,
.social-navigation,
.site-branding-container:before,
.entry .entry-title:before,
.entry-footer,
.author-description:before,
.post-navigation,
.widget-area,
.comment-form-flex,
.comment-reply,
.comment .comment-metadata .edit-link {
display: none;
}
.entry .entry-content .wp-block-button .wp-block-button__link,
.entry .entry-content .button {
color: #000;
background: none;
}
/* Site Header (With Featured Image) */
.site-header.featured-image {
min-height: 0;
.main-navigation a,
.main-navigation a + svg,
.social-navigation a,
.site-title a,
.site-featured-image a,
.site-branding .site-title,
.site-branding .site-description,
.main-navigation a:after,
.main-navigation .main-menu > li.menu-item-has-children:after,
.main-navigation li,
.social-navigation li,
.entry-meta,
.entry-title,
&#masthead .site-title a {
color: #000;
text-shadow: none;
}
.site-featured-image .entry-header,
.site-branding-container {
margin-top: 0;
margin-bottom: 0;
}
.site-featured-image .post-thumbnail img {
position: relative;
height: initial;
width: initial;
object-fit: none;
min-width: 0;
min-height: 0;
max-width: 100%;
margin-top: 1rem;
}
}
/* Remove image filters from featured image */
.image-filters-enabled {
*:after {
display: none !important;
}
.site-header.featured-image .site-featured-image:before {
display: none;
}
.site-header.featured-image .site-featured-image .post-thumbnail img {
filter: none;
}
}
}

View file

@ -0,0 +1,94 @@
/**
* These styles should be loaded by the Block Editor only
*/
/**
* Abstracts
* - Mixins, variables and functions
*/
@import "../../varia/sass/abstracts/imports";
/**
* Child Theme Name
*/
@import "config-child-theme-deep";
/**
* Base
* - Reset the browser
*/
@import "../../varia/sass/base/editor";
/**
* Elements
* - Styles for basic HTML elemants
*/
@import "../../varia/sass/elements/editor";
/**
* Blocks
* - These styles replace key Gutenberg Block styles for fonts, colors, and
* spacing with CSS-variables overrides
*/
@import "../../varia/sass/blocks/editor";
/**
* Extras
*/
$color_background: #{map-deep-get($config-global, "color", "background", "default")};
$color_background_light: #{map-deep-get($config-global, "color", "background", "light")};
$color_foreground: #{map-deep-get($config-global, "color", "foreground", "default")};
$color_primary: #{map-deep-get($config-global, "color", "primary", "default")};
$color_secondary: #{map-deep-get($config-global, "color", "secondary", "default")};
$color_primary_hover: #{map-deep-get($config-global, "color", "primary", "hover")};
$color_secondary_hover: #{map-deep-get($config-global, "color", "secondary", "hover")};
$spacing_horizontal: #{map-deep-get($config-global, "spacing", "horizontal")};
$spacing_vertical: #{map-deep-get($config-global, "spacing", "vertical")};
$font_size_xs: #{map-deep-get($config-global, "font", "size", "xs")};
$font_size_sm: #{map-deep-get($config-global, "font", "size", "sm")};
$font_size_md: #{map-deep-get($config-global, "font", "size", "md")};
$font_size_base: #{map-deep-get($config-global, "font", "size", "base")};
$font_size_lg: #{map-deep-get($config-global, "font", "size", "lg")};
$font_size_xl: #{map-deep-get($config-global, "font", "size", "xl")};
$font_family_primary: #{map-deep-get($config-global, "font", "family", "primary")};
$font_family_secondary: #{map-deep-get($config-global, "font", "family", "secondary")};
$font_family_code: #{map-deep-get($config-global, "font", "family", "code")};
$font_line_height_body: #{map-deep-get($config-global, "font", "line-height", "body")};
$button_line_height: #{map-deep-get($config-button, "font", "line-height")};
$button_font_weight: #{map-deep-get($config-button, "font", "weight")};
$button_font_family: #{map-deep-get($config-button, "font", "family")};
$button_font_size: #{map-deep-get($config-button, "font", "size")};
$button_spacing_vertical: #{map-deep-get($config-button, "padding", "vertical")};
$button_spacing_horizontal: #{map-deep-get($config-button, "padding", "horizontal")};
$button_background_hover: #{map-deep-get($config-button, "color", "background-hover")};
$font_size_widget_title: #{map-deep-get($config-heading, "font", "size", "h4")};
.editor-post-title__input {
text-align: center;
}
/**
* 1. General Styles
*/
a {
text-decoration: none;
.wp-block-group &,
.wp-block-cover &,
.wp-block-cover-image &,
.wp-block-media-text &,
p:not(.site-title) & {
text-decoration: underline;
&.wp-block-button__link,
&:hover {
text-decoration: none;
}
}
}
.has-background {
a {
color: currentColor;
}
}

View file

@ -0,0 +1,90 @@
/*
Theme Name: Alves
Theme URI: https://github.com/Automattic/themes/varia
Author: Automattic
Author URI: https://automattic.com/
Description: A design system for WordPress sites built with Gutenberg.
Requires at least: WordPress 4.9.6
Version: 1.0
License: GNU General Public License v2 or later
License URI: LICENSE
Template: varia
Text Domain: alves
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
Varia is based on Underscores https://underscores.me/, (C) 2012-2019 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/
/**
* Abstracts
* - Mixins, variables and functions
*/
@import "../../varia/sass/abstracts/imports";
/**
* Child Theme Deep
*/
@import "config-child-theme-deep";
/**
* Base
* - Reset the browser
*/
@import "../../varia/sass/base/imports";
/**
* Layout
* - Structral and responsive styles
*/
@import "../../varia/sass/layout/imports";
/**
* Elements
* - Styles for basic HTML elemants
*/
@import "../../varia/sass/elements/imports";
/**
* Blocks
* - These styles replace key Gutenberg Block styles for fonts, colors, and
* spacing with CSS-variables overrides
* - In the future the Block styles may get compiled to individual .css
* files and conditionally loaded
*/
@import "../../varia/sass/blocks/imports";
/**
* Components
* - Similar to Blocks but exist outside of the "current" editor context
*/
@import "../../varia/sass/components/imports";
/**
* Site Pages
* - Page specific styles
*/
@import "../../varia/sass/pages/imports";
/**
* Responsive Logic
* - Loading this last to respect cascaing rules
*/
@import "../../varia/sass/abstracts/responsive-logic";
/**
* Vendors
* - Styles for 3rd party plugins and WP extensions
*/
@import "../../varia/sass/vendors/imports";
/**
* Child Theme Extra Styles
*/
@import "extra-child-theme";

BIN
alves/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

893
alves/style-editor.css Normal file
View file

@ -0,0 +1,893 @@
/**
* These styles should be loaded by the Block Editor only
*/
/**
* Abstracts
* - Mixins, variables and functions
*/
/**
* Abstracts
* - Mixins, variables and functions
*/
/* Sass Functions go here */
/**
* Map deep get
* @author Hugo Giraudel
* @access public
* @param {Map} $map - Map
* @param {Arglist} $keys - Key chain
* @return {*} - Desired value
*
* Example:
* $m-breakpoint: map-deep-get($__prefix-default-config, "layouts", "M");
*/
/**
* Deep set function to set a value in nested maps
* @author Hugo Giraudel
* @access public
* @param {Map} $map - Map
* @param {List} $keys - Key chaine
* @param {*} $value - Value to assign
* @return {Map}
*
* Example:
* $__prefix-default-config: map-deep-set($__prefix-default-config, "layouts" "M", 650px);
*/
/**
* jQuery-style extend function
* - Child themes can use this function to `reset` the values in
* config maps without editing the `master` Sass files.
* - src: https://www.sitepoint.com/extra-map-functions-sass/
* - About `map-merge()`:
* - - only takes 2 arguments
* - - is not recursive
* @param {Map} $map - first map
* @param {ArgList} $maps - other maps
* @param {Bool} $deep - recursive mode
* @return {Map}
*
* Examples:
$grid-configuration-default: (
'columns': 12,
'layouts': (
'small': 800px,
'medium': 1000px,
'large': 1200px,
),
);
$grid-configuration-custom: (
'layouts': (
'large': 1300px,
'huge': 1500px
),
);
$grid-configuration-user: (
'direction': 'ltr',
'columns': 16,
'layouts': (
'large': 1300px,
'huge': 1500px
),
);
// $deep: false
$grid-configuration: map-extend($grid-configuration-default, $grid-configuration-custom, $grid-configuration-user);
// --> ("columns": 16, "layouts": (("large": 1300px, "huge": 1500px)), "direction": "ltr")
// $deep: true
$grid-configuration: map-extend($grid-configuration-default, $grid-configuration-custom, $grid-configuration-user, true);
// --> ("columns": 16, "layouts": (("small": 800px, "medium": 1000px, "large": 1300px, "huge": 1500px)), "direction": "ltr")
*/
/**
* Button
*/
/**
* Cover
*/
/**
* Heading
*/
/**
* List
*/
/**
* Pullquote
*/
/**
* Quote
*/
/**
* Separator
*/
/**
* Responsive breakpoints
* - breakpoints values are defined in _config-global.scss
*/
/**
* Align wide widths
* - Sets .alignwide widths
*/
/**
* Crop Text Boundry
* - Sets a fixed-width on content within alignwide and alignfull blocks
*/
/**
* Child Theme Name
*/
/**
* Redefine Sass map values for child theme output.
* - See: style-child-theme.scss
*/
/**
* Global
*/
/**
* Elements
*/
/**
* Button
*/
/**
* Cover
*/
/**
* Heading
*/
/**
* List
*/
/**
* Pullquote
*/
/**
* Quote
*/
/**
* Separator
*/
/**
* Header
*/
/**
* Footer
*/
/**
* Base
* - Reset the browser
*/
body {
color: #394d55;
background-color: white;
font-family: "Karla", Arial, sans-serif;
font-size: 16px;
font-weight: normal;
line-height: 1.6;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}
.editor-post-title__block {
font-size: 16px;
}
p {
font-size: 1.25em;
line-height: 1.6;
}
a {
color: #3E7D98;
}
a:hover {
color: #9B6A36;
}
button,
a {
cursor: pointer;
}
/**
* Elements
* - Styles for basic HTML elemants
*/
/**
* Elements
* - Styles for basic HTML elemants
*/
blockquote {
padding-left: 16px;
}
blockquote p {
font-size: 1.8rem;
letter-spacing: normal;
line-height: 1.125;
}
blockquote cite,
blockquote footer {
font-size: 1.04167rem;
letter-spacing: normal;
}
blockquote > * {
margin-top: 16px;
margin-bottom: 16px;
}
blockquote > *:first-child {
margin-top: 0;
}
blockquote > *:last-child {
margin-bottom: 0;
}
blockquote.alignleft, blockquote.alignright {
padding-left: inherit;
}
blockquote.alignleft p, blockquote.alignright p {
font-size: 1.5rem;
max-width: inherit;
width: inherit;
}
blockquote.alignleft cite,
blockquote.alignleft footer, blockquote.alignright cite,
blockquote.alignright footer {
font-size: 0.86806rem;
letter-spacing: normal;
}
figcaption {
color: #394d55;
font-size: 0.86806rem;
margin-top: calc(0.5 * 16px);
margin-bottom: 16px;
text-align: center;
}
.alignleft figcaption,
.alignright figcaption {
margin-bottom: 0;
}
/* WP Smiley */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
border: none;
margin-bottom: 0;
margin-top: 0;
padding: 0;
}
/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
max-width: 100%;
}
/**
* Blocks
* - These styles replace key Gutenberg Block styles for fonts, colors, and
* spacing with CSS-variables overrides
*/
/**
* Block Styles for the Editor
*
* - These styles replace key Gutenberg Block styles for fonts, colors, and
* spacing with CSS-variables overrides in the Block Editor
* - In the future the Block styles may get compiled to individual .css
* files and conditionally loaded
*/
.wp-block-button {
/* Default Style */
/* Outline Style */
/* Squared Style */
}
.wp-block-button .wp-block-button__link {
color: #fcfbf9;
font-weight: bold;
font-family: "Karla", Arial, sans-serif;
font-size: 1.04167em;
line-height: 1;
background-color: #3E7D98;
border-radius: 160px;
padding: 16px 48px;
}
.wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:focus, .wp-block-button .wp-block-button__link.has-focus {
color: #fcfbf9;
background-color: #9B6A36;
}
.wp-block-button.is-style-outline .wp-block-button__link {
color: #3E7D98;
background: transparent;
border: 2px solid currentcolor;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover, .wp-block-button.is-style-outline .wp-block-button__link:focus, .wp-block-button.is-style-outline .wp-block-button__link.has-focus {
color: #9B6A36;
}
.wp-block-button.is-style-squared .wp-block-button__link {
border-radius: 0;
}
.wp-block-cover,
.wp-block-cover-image {
background-color: #394d55;
min-height: calc( 17 * 32px);
/* Treating H2 separately to account for legacy /core styles */
}
.wp-block-cover .wp-block-cover__inner-container,
.wp-block-cover .wp-block-cover-image-text,
.wp-block-cover .wp-block-cover-text,
.wp-block-cover-image .wp-block-cover__inner-container,
.wp-block-cover-image .wp-block-cover-image-text,
.wp-block-cover-image .wp-block-cover-text {
color: white;
}
.wp-block-cover .wp-block-cover__inner-container a,
.wp-block-cover .wp-block-cover-image-text a,
.wp-block-cover .wp-block-cover-text a,
.wp-block-cover-image .wp-block-cover__inner-container a,
.wp-block-cover-image .wp-block-cover-image-text a,
.wp-block-cover-image .wp-block-cover-text a {
color: currentColor;
}
.wp-block-cover h2,
.wp-block-cover-image h2 {
font-size: 2.16em;
letter-spacing: normal;
line-height: 1.125;
padding: 0;
max-width: inherit;
text-align: inherit;
}
.wp-block-cover h2.has-text-align-left,
.wp-block-cover-image h2.has-text-align-left {
text-align: left;
}
.wp-block-cover h2.has-text-align-center,
.wp-block-cover-image h2.has-text-align-center {
text-align: center;
}
.wp-block-cover h2.has-text-align-right,
.wp-block-cover-image h2.has-text-align-right {
text-align: right;
}
.wp-block-heading h1, h1, .h1,
.wp-block-heading h2, h2, .h2,
.wp-block-heading h3, h3, .h3,
.wp-block-heading h4, h4, .h4,
.wp-block-heading h5, h5, .h5,
.wp-block-heading h6, h6, .h6 {
font-family: "Lora", Georgia, sans-serif;
font-weight: normal;
clear: both;
}
.wp-block-heading h1, h1, .h1 {
font-size: 3.1104em;
letter-spacing: normal;
line-height: 1.125;
}
.wp-block-heading h2, h2, .h2 {
font-size: 2.16em;
letter-spacing: normal;
line-height: 1.125;
}
.wp-block-heading h3, h3, .h3 {
font-size: 2.16em;
letter-spacing: normal;
line-height: 1.125;
}
.wp-block-heading h4, h4, .h4 {
font-size: 1.8em;
letter-spacing: normal;
line-height: 1.125;
}
.wp-block-heading h5, h5, .h5 {
font-size: 1.5em;
letter-spacing: normal;
line-height: 1.125;
}
.wp-block-heading h6, h6, .h6 {
font-size: 1.25em;
letter-spacing: normal;
line-height: 1.125;
}
.wp-block-gallery figcaption {
margin-bottom: 0;
}
.wp-block-latest-posts {
padding-left: 0;
}
.wp-block-media-text .block-editor-inner-blocks {
padding-right: 16px;
padding-left: 16px;
}
@media only screen and (min-width: 640px) {
.wp-block-media-text .block-editor-inner-blocks {
padding-right: 32px;
padding-left: 32px;
}
}
.wp-block-media-text .block-editor-inner-blocks[style*="background-color"]:not(.has-background-background-color) a {
color: currentColor;
}
.a8c-posts-list {
padding-left: 0;
}
p.has-background {
padding: 16px 16px;
}
p.has-background:not(.has-background-background-color) a {
color: currentColor;
}
.wp-block-pullquote {
padding: calc( 3 * 16px) 0;
margin-left: 0;
margin-right: 0;
text-align: center;
border-top-color: #3E7D98;
border-top-width: 4px;
border-bottom-color: #3E7D98;
border-bottom-width: 4px;
color: #394d55;
/**
* Block Options
*/
}
.wp-block-pullquote blockquote {
padding-left: 0;
}
.wp-block-pullquote p {
font-family: "Lora", Georgia, sans-serif;
font-size: 1.8em;
letter-spacing: normal;
line-height: 1.125;
}
.wp-block-pullquote a {
color: currentColor;
}
.wp-block-pullquote .wp-block-pullquote__citation,
.wp-block-pullquote cite,
.wp-block-pullquote footer {
color: #394d55;
font-size: 1.04167em;
letter-spacing: normal;
}
.wp-block-pullquote:not(.is-style-solid-color) {
background: none;
}
.wp-block-pullquote.is-style-solid-color {
background-color: #3E7D98;
color: white;
}
.wp-block-pullquote.is-style-solid-color.alignleft blockquote,
.wp-block-pullquote.is-style-solid-color.alignright blockquote {
padding-left: 16px;
padding-right: 16px;
max-width: inherit;
}
.wp-block-pullquote.is-style-solid-color blockquote {
padding-left: 0;
}
.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation,
.wp-block-pullquote.is-style-solid-color cite,
.wp-block-pullquote.is-style-solid-color footer {
color: currentColor;
}
.wp-block-pullquote.alignwide > p,
.wp-block-pullquote.alignfull > p,
.wp-block-pullquote.alignwide blockquote,
.wp-block-pullquote.alignfull blockquote {
margin-left: auto;
margin-right: auto;
}
.wp-block-quote {
border-left-color: #3E7D98;
margin: 32px 0;
padding-left: 16px;
}
.wp-block-quote p {
font-family: "Lora", Georgia, sans-serif;
font-size: 1.8em;
letter-spacing: normal;
}
.wp-block-quote.is-large, .wp-block-quote.is-style-large {
border: none;
padding: 0 16px;
}
.wp-block-quote.is-large p, .wp-block-quote.is-style-large p {
font-family: "Lora", Georgia, sans-serif;
font-size: 2.16em;
letter-spacing: normal;
line-height: 1.125;
}
.wp-block-separator,
hr {
border-bottom: 2px solid #3E7D98;
clear: both;
}
.wp-block-separator[style*="text-align:right"], .wp-block-separator[style*="text-align: right"],
hr[style*="text-align:right"],
hr[style*="text-align: right"] {
border-right-color: #3E7D98;
}
.wp-block-separator.is-style-wide,
hr.is-style-wide {
border-bottom-width: 2px;
}
.wp-block-separator.is-style-dots,
hr.is-style-dots {
border-bottom: none;
}
.wp-block-separator.is-style-dots:before,
hr.is-style-dots:before {
color: #3E7D98;
}
table th,
.wp-block-table th {
font-family: "Lora", Georgia, sans-serif;
}
table td,
table th,
.wp-block-table td,
.wp-block-table th {
padding: calc( 0.5 * 16px);
}
/**
* Editor Post Title
* - Needs a special styles
*/
.editor-post-title__block .editor-post-title__input {
color: #394d55;
font-family: "Lora", Georgia, sans-serif;
font-weight: normal;
font-size: 2.16em;
letter-spacing: normal;
line-height: 1.125;
}
.has-primary-color[class] {
color: #3E7D98 !important;
}
.has-secondary-color[class] {
color: #fcfbf9 !important;
}
.has-foreground-color[class] {
color: #394d55 !important;
}
.has-foreground-light-color[class] {
color: #394d55 !important;
}
.has-foreground-dark-color[class] {
color: darkgray !important;
}
.has-background-light-color[class] {
color: #fafafa !important;
}
.has-background-dark-color[class] {
color: #2d2a26 !important;
}
.has-background-color[class] {
color: white !important;
}
.has-primary-background-color[class] {
background-color: #3E7D98 !important;
color: white;
}
.has-primary-background-color[class] p, .has-primary-background-color[class] h1, .has-primary-background-color[class] h2, .has-primary-background-color[class] h3, .has-primary-background-color[class] h4, .has-primary-background-color[class] h5, .has-primary-background-color[class] h6,
.has-primary-background-color[class] .wp-block-quote__citation {
color: currentColor;
}
.has-secondary-background-color[class] {
background-color: #fcfbf9 !important;
color: white;
}
.has-secondary-background-color[class] p, .has-secondary-background-color[class] h1, .has-secondary-background-color[class] h2, .has-secondary-background-color[class] h3, .has-secondary-background-color[class] h4, .has-secondary-background-color[class] h5, .has-secondary-background-color[class] h6,
.has-secondary-background-color[class] .wp-block-quote__citation {
color: currentColor;
}
.has-foreground-background-color[class] {
background-color: #394d55 !important;
color: white;
}
.has-foreground-background-color[class] p, .has-foreground-background-color[class] h1, .has-foreground-background-color[class] h2, .has-foreground-background-color[class] h3, .has-foreground-background-color[class] h4, .has-foreground-background-color[class] h5, .has-foreground-background-color[class] h6,
.has-foreground-background-color[class] .wp-block-quote__citation {
color: currentColor;
}
.has-foreground-light-background-color[class] {
background-color: #394d55 !important;
color: white;
}
.has-foreground-light-background-color[class] p, .has-foreground-light-background-color[class] h1, .has-foreground-light-background-color[class] h2, .has-foreground-light-background-color[class] h3, .has-foreground-light-background-color[class] h4, .has-foreground-light-background-color[class] h5, .has-foreground-light-background-color[class] h6,
.has-foreground-light-background-color[class] .wp-block-quote__citation {
color: currentColor;
}
.has-foreground-dark-background-color[class] {
background-color: darkgray !important;
color: white;
}
.has-foreground-dark-background-color[class] p, .has-foreground-dark-background-color[class] h1, .has-foreground-dark-background-color[class] h2, .has-foreground-dark-background-color[class] h3, .has-foreground-dark-background-color[class] h4, .has-foreground-dark-background-color[class] h5, .has-foreground-dark-background-color[class] h6,
.has-foreground-dark-background-color[class] .wp-block-quote__citation {
color: currentColor;
}
.has-background-light-background-color[class] {
background-color: #fafafa !important;
color: #394d55;
}
.has-background-light-background-color[class] p, .has-background-light-background-color[class] h1, .has-background-light-background-color[class] h2, .has-background-light-background-color[class] h3, .has-background-light-background-color[class] h4, .has-background-light-background-color[class] h5, .has-background-light-background-color[class] h6,
.has-background-light-background-color[class] .wp-block-quote__citation {
color: currentColor;
}
.has-background-dark-background-color[class] {
background-color: #2d2a26 !important;
color: #394d55;
}
.has-background-dark-background-color[class] p, .has-background-dark-background-color[class] h1, .has-background-dark-background-color[class] h2, .has-background-dark-background-color[class] h3, .has-background-dark-background-color[class] h4, .has-background-dark-background-color[class] h5, .has-background-dark-background-color[class] h6,
.has-background-dark-background-color[class] .wp-block-quote__citation {
color: currentColor;
}
.has-background-background-color[class] {
background-color: white !important;
color: #394d55;
}
.has-background-background-color[class] p, .has-background-background-color[class] h1, .has-background-background-color[class] h2, .has-background-background-color[class] h3, .has-background-background-color[class] h4, .has-background-background-color[class] h5, .has-background-background-color[class] h6,
.has-background-background-color[class] .wp-block-quote__citation {
color: currentColor;
}
.is-small-text,
.has-small-font-size {
font-size: 1.04167em;
}
.is-regular-text,
.has-regular-font-size,
.has-normal-font-size,
.has-medium-font-size {
font-size: 1.5em;
}
.is-large-text,
.has-large-font-size {
font-size: 1.8em;
line-height: 1.125;
}
.is-larger-text,
.has-larger-font-size,
.has-huge-font-size {
font-size: 2.16em;
line-height: 1.125;
}
.has-drop-cap:not(:focus)::first-letter {
font-family: "Lora", Georgia, sans-serif;
font-size: calc(2 * 3.1104em);
font-weight: normal;
}
/**
* Spacing Overrides
*/
/*
* Margins
*/
.margin-top-none {
margin-top: 0 !important;
}
.margin-top-half {
margin-top: 16px !important;
}
.margin-top-default {
margin-top: 32px !important;
}
.margin-right-none {
margin-top: 0 !important;
}
.margin-right-half {
margin-top: 16px !important;
}
.margin-right-default {
margin-top: 32px !important;
}
.margin-bottom-none {
margin-bottom: 0 !important;
}
.margin-bottom-half {
margin-bottom: 16px !important;
}
.margin-bottom-default {
margin-bottom: 32px !important;
}
.margin-left-none {
margin-top: 0 !important;
}
.margin-left-half {
margin-top: 16px !important;
}
.margin-left-default {
margin-top: 32px !important;
}
/*
* Padding
*/
.padding-top-none {
padding-top: 0 !important;
}
.padding-top-half {
padding-top: 16px !important;
}
.padding-top-default {
padding-top: 32px !important;
}
.padding-right-none {
padding-top: 0 !important;
}
.padding-right-half {
padding-top: 16px !important;
}
.padding-right-default {
padding-top: 32px !important;
}
.padding-bottom-none {
padding-bottom: 0 !important;
}
.padding-bottom-half {
padding-bottom: 16px !important;
}
.padding-bottom-default {
padding-bottom: 32px !important;
}
.padding-left-none {
padding-top: 0 !important;
}
.padding-left-half {
padding-top: 16px !important;
}
.padding-left-default {
padding-top: 32px !important;
}
/**
* Extras
*/
.editor-post-title__input {
text-align: center;
}
/**
* 1. General Styles
*/
a {
text-decoration: none;
}
.wp-block-group a,
.wp-block-cover a,
.wp-block-cover-image a,
.wp-block-media-text a,
p:not(.site-title) a {
text-decoration: underline;
}
.wp-block-group a.wp-block-button__link, .wp-block-group a:hover,
.wp-block-cover a.wp-block-button__link,
.wp-block-cover a:hover,
.wp-block-cover-image a.wp-block-button__link,
.wp-block-cover-image a:hover,
.wp-block-media-text a.wp-block-button__link,
.wp-block-media-text a:hover,
p:not(.site-title) a.wp-block-button__link,
p:not(.site-title) a:hover {
text-decoration: none;
}
.has-background a {
color: currentColor;
}

3730
alves/style-rtl.css Normal file

File diff suppressed because it is too large Load diff

3746
alves/style.css Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,54 @@
<?php
/**
* Displays the footer widget area
*
* @package WordPress
* @subpackage Varia
* @since 1.0.0
*/
if ( is_active_sidebar( 'sidebar-1' ) || is_active_sidebar( 'sidebar-2') || is_active_sidebar( 'sidebar-3' ) ) : ?>
<div id="footer-widgets">
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<aside class="widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Footer 1', 'alves' ); ?>">
<?php
if ( is_active_sidebar( 'sidebar-1' ) ) {
dynamic_sidebar( 'sidebar-1' );
}
?>
</aside><!-- .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
<aside class="widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Footer 2', 'alves' ); ?>">
<?php
if ( is_active_sidebar( 'sidebar-2' ) ) {
dynamic_sidebar( 'sidebar-2' );
}
?>
</aside><!-- .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
<aside class="widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Footer 3', 'alves' ); ?>">
<?php
if ( is_active_sidebar( 'sidebar-3' ) ) {
dynamic_sidebar( 'sidebar-3' );
}
?>
</aside><!-- .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-1' ) || is_active_sidebar( 'sidebar-2') || is_active_sidebar( 'sidebar-3' ) ) : ?>
</div>
<?php endif; ?>