From 5a234f87e108640aa3b97ae35ceb936ebe6f4282 Mon Sep 17 00:00:00 2001 From: infeeeee Date: Wed, 7 Aug 2019 22:54:34 +0200 Subject: [PATCH] work on wingle articles --- .vscode/globalsnippets.code-snippets | 31 ++-- _teendők.md | 8 - css/base.css | 210 ++++++++++++++++++++------- functions.php | 39 +---- js/scripts.js | 10 +- loop-inner.php | 86 +++++++++++ loop.php | 86 +---------- sass/_font-mixins.scss | 14 +- sass/base.scss | 192 +++++++++++++++--------- singular.php | 68 +++------ 10 files changed, 438 insertions(+), 306 deletions(-) create mode 100644 loop-inner.php diff --git a/.vscode/globalsnippets.code-snippets b/.vscode/globalsnippets.code-snippets index 091f065..8a85b6e 100644 --- a/.vscode/globalsnippets.code-snippets +++ b/.vscode/globalsnippets.code-snippets @@ -15,7 +15,6 @@ // ], // "description": "Log output to console" // } - "smalldesktop": { "scope": "scss,sass", "prefix": "smalldesktop", @@ -36,9 +35,8 @@ ], "description": "SCSS: Bigdesktop media query" }, - "div": { - "scope":"html,php", + "scope": "html,php", "prefix": "div", "body": [ "
", @@ -47,10 +45,8 @@ ], "description": "HTML: div start and end" }, - - "php": { - "scope":"html,php", + "scope": "html,php", "prefix": "php", "body": [ " h3, .page .toHome, @@ -2213,7 +2306,7 @@ body.category.category-esemeny main { padding-bottom: 4rem; margin: 0 auto; text-align: center; - font: bold 1rem "Westeinde Caption"; } + font: bold 1.4rem "Westeinde Caption"; } @media (min-width: 769px) { .single .toHome, .single #related_posts > h3, @@ -2226,7 +2319,7 @@ body.category.category-esemeny main { .single #related_posts > h3 a, .page .toHome a, .page #related_posts > h3 a { - font: bold 1rem "Westeinde Caption"; } + font: bold 1.4rem "Westeinde Caption"; } @media (min-width: 769px) { .single .toHome a, .single #related_posts > h3 a, @@ -2247,7 +2340,10 @@ body.category.category-esemeny main { position: relative; padding-top: 4rem; top: -5rem; - padding-right: 10rem; } + margin: 0; + padding-right: 20rem; + padding-left: 0; + max-width: calc(1024px + 20rem); } .single .toHome a, .page .toHome a { margin-bottom: 4rem; @@ -2286,7 +2382,9 @@ body.category.category-esemeny main { margin: 0; } .single #related_posts ul li h2 a, .page #related_posts ul li h2 a { - font: 500 2rem "Westeinde Caption"; } + display: block; + font: 500 2rem "Westeinde Caption"; + line-height: 1.3; } .single #related_posts ul li .metadata, .page #related_posts ul li .metadata { bottom: 50%; @@ -2311,10 +2409,12 @@ body.category.category-esemeny main { @media (min-width: 769px) { .single #related_posts, .page #related_posts { - padding-right: 10rem; top: -5rem; position: relative; - padding-top: 2rem; } + padding-top: 4rem; + padding-right: 20rem; + padding-left: 0; + max-width: calc(1024px + 20rem); } .single #related_posts > h3, .page #related_posts > h3 { display: block; } @@ -2325,9 +2425,9 @@ body.category.category-esemeny main { flex-wrap: nowrap; } .single #related_posts ul li, .page #related_posts ul li { - flex: 1 1 33%; flex: 0 0 calc(100% / 3); height: calc((100vw - 16rem) / 3); + max-height: calc(1024px / 3); position: relative; } .single #related_posts ul li .related_thumbnailwrapper, .page #related_posts ul li .related_thumbnailwrapper { @@ -2691,6 +2791,9 @@ body.category.category-esemeny main { -moz-box-shadow: 10px 0 #fdff00, -5px 0 #fdff00 !important; -webkit-box-shadow: 10px 0 #fdff00, -5px 0 #fdff00 !important; box-shadow: 10px 0 #fdff00, -5px 0 #fdff00 !important; } + .single .tag-be .single-content blockquote p a, + .single .tag-be .single-content h3 a { + color: #7e7f00; } .single .tag-be .single-content a { color: #fdff00; } @@ -2718,6 +2821,9 @@ body.category.category-esemeny main { -moz-box-shadow: 10px 0 #3c00ff, -5px 0 #3c00ff !important; -webkit-box-shadow: 10px 0 #3c00ff, -5px 0 #3c00ff !important; box-shadow: 10px 0 #3c00ff, -5px 0 #3c00ff !important; } + .single .tag-do .single-content blockquote p a, + .single .tag-do .single-content h3 a { + color: #1e007f; } .single .tag-do .single-content a { color: #3c00ff; } @@ -2745,6 +2851,9 @@ body.category.category-esemeny main { -moz-box-shadow: 10px 0 #00ffb8, -5px 0 #00ffb8 !important; -webkit-box-shadow: 10px 0 #00ffb8, -5px 0 #00ffb8 !important; box-shadow: 10px 0 #00ffb8, -5px 0 #00ffb8 !important; } + .single .tag-think .single-content blockquote p a, + .single .tag-think .single-content h3 a { + color: #007f5c; } .single .tag-think .single-content a { color: #00ffb8; } @@ -2772,6 +2881,9 @@ body.category.category-esemeny main { -moz-box-shadow: 10px 0 #ff5f5f, -5px 0 #ff5f5f !important; -webkit-box-shadow: 10px 0 #ff5f5f, -5px 0 #ff5f5f !important; box-shadow: 10px 0 #ff5f5f, -5px 0 #ff5f5f !important; } + .single .tag-love .single-content blockquote p a, + .single .tag-love .single-content h3 a { + color: #7f2f2f; } .single .tag-love .single-content a { color: #ff5f5f; } diff --git a/functions.php b/functions.php index 384ed81..0c9b8f3 100644 --- a/functions.php +++ b/functions.php @@ -98,39 +98,6 @@ function dis2019_nav() ); } -//walker for tag menu: bedo circle hover -// class Menu_With_Description extends Walker_Nav_Menu -// { -// public function start_el(&$output, $item, $depth, $args) -// { -// global $wp_query; -// $indent = ($depth) ? str_repeat("\t", $depth) : ''; - -// $class_names = $value = ''; - -// $classes = empty($item->classes) ? array() : (array) $item->classes; - -// $class_names = join(' ', apply_filters('nav_menu_css_class', array_filter($classes), $item)); -// $class_names = ' class="' . esc_attr($class_names) . ' tag-' . $item->title . '"'; - -// $output .= $indent . '