Skip to content

Commit 43aa7e2

Browse files
authored
Merge pull request #86 from BeAPI/feature/better-gut-ux
Feature/better gut ux
2 parents 0c55be7 + 97e07c6 commit 43aa7e2

File tree

21 files changed

+3126
-441
lines changed

21 files changed

+3126
-441
lines changed

inc/services/theme.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public function after_setup_theme() {
5252
*/
5353
private function add_theme_supports() {
5454
// Add the theme support basic elements
55+
add_theme_support( 'align-wide' );
56+
add_theme_support( 'responsive-embeds' );
57+
add_theme_support( 'editor-styles' );
58+
add_theme_support( 'wp-block-styles' );
5559
add_theme_support( 'post-thumbnails' );
5660
add_theme_support( 'html5', [ 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption', 'script', 'style' ] );
5761
add_theme_support( 'title-tag' );

index.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php get_header(); ?>
22
<div class="container">
3-
<?php while ( have_posts() ) {
4-
the_post();
5-
the_content();
6-
} ?>
3+
<div class="wysiwyg">
4+
<?php while ( have_posts() ) {
5+
the_post();
6+
the_content();
7+
} ?>
8+
</div>
79
</div>
810
<?php get_footer(); ?>

src/img/sample/placeholder.jpg

6.58 KB
Loading

src/js/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import 'lazysizes/plugins/native-loading/ls.native-loading'
1111

1212
import './src/menu'
1313
import './src/button-href'
14-
import './src/wrapper'
1514

1615
/**
1716
* LazySizes configuration

src/js/src/wrapper.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/scss/abstract/_colors.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $darkcolor: #000;
2828
/**
2929
* Grey colors
3030
*/
31-
$maingrey: #ddd;
31+
$maingrey: #888;
3232
$dark-gray: #333;
3333
$medium-gray: #999;
3434
$light-gray: #ddd;

src/scss/abstract/_mixins.scss

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,81 @@
248248
backface-visibility: hidden;
249249
}
250250
perspective: $perspective;
251+
}
252+
253+
//List mixins
254+
@mixin wysiwyg__list($type: ul) {
255+
padding-left: 0;
256+
margin: $base-spacing 0 $base-spacing $half-base-spacing;
257+
258+
#{$type} {
259+
margin-top: $half-base-spacing;
260+
margin-bottom: $half-base-spacing;
261+
}
262+
263+
li {
264+
margin: 0 0 $half-base-spacing;
265+
}
266+
267+
@if $type == ul {
268+
list-style: disc inside none;
269+
}
270+
271+
@if $type == ol {
272+
list-style: decimal inside none;
273+
}
274+
}
275+
276+
//Title mixins
277+
@mixin title($size: md) {
278+
font-weight: 700;
279+
line-height: $heading-line-height;
280+
font-family: $customfont-2;
281+
282+
.fonts-loading & {
283+
font-family: $font-sansserif;
284+
}
285+
286+
@if $size == XXL {
287+
font-size: 40px;
288+
289+
@include breakpoints(sm) {
290+
font-size: 40px*1.5;
291+
}
292+
}
293+
@if $size == XL {
294+
font-size: 36px;
295+
296+
@include breakpoints(sm) {
297+
font-size: 36px*1.5;
298+
}
299+
}
300+
@if $size == L {
301+
font-size: 32px;
302+
303+
@include breakpoints(sm) {
304+
font-size: 32px*1.5;
305+
}
306+
}
307+
@if $size == M {
308+
font-size: 28px;
309+
310+
@include breakpoints(sm) {
311+
font-size: 28px*1.5;
312+
}
313+
}
314+
@if $size == S {
315+
font-size: 24px;
316+
317+
@include breakpoints(sm) {
318+
font-size: 24px*1.5;
319+
}
320+
}
321+
@if $size == XS {
322+
font-size: 20px;
323+
324+
@include breakpoints(sm) {
325+
font-size: 20*1.5;
326+
}
327+
}
251328
}

src/scss/abstract/_positioning.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $zindex: 1;
66
/**
77
* Spacing
88
*/
9-
$base-spacing: 20px;
9+
$base-spacing: 32px;
1010
$half-base-spacing: $base-spacing / 2;
1111

1212
/**

src/scss/base/_layout.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,4 @@
1818
.container {
1919
padding: 0;
2020
}
21-
22-
.content {
23-
@include span(9);
24-
}
25-
26-
.sidebar {
27-
@include span(3 last);
28-
}
2921
}

src/scss/base/_text.scss

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,28 @@ a {
4848

4949
/* Headings
5050
----------------------------------------------------------------------------------------------------*/
51-
@for $i from 1 through 6 {
52-
h#{$i} {
53-
line-height: $heading-line-height;
54-
font-size: $heading-font-size - ($i - 1) * 2px;
55-
font-family: $customfont-2;
56-
57-
.fonts-loading & {
58-
font-family: $font-sansserif;
59-
}
60-
}
51+
h1 {
52+
@include title(XXL);
53+
}
54+
55+
h2 {
56+
@include title(XL);
57+
}
58+
59+
h3 {
60+
@include title(L);
61+
}
62+
63+
h4 {
64+
@include title(M);
65+
}
66+
67+
h5 {
68+
@include title(S);
69+
}
70+
71+
h6 {
72+
@include title(XS);
6173
}
6274

6375
/* Lists
@@ -97,20 +109,13 @@ figure {
97109
----------------------------------------------------------------------------------------------------*/
98110
hr {
99111
clear: both;
100-
border: 0;
101-
height: 1px;
102-
background: $maingrey;
103112
margin: $base-spacing 0;
104113
}
105114
blockquote {
106-
border-left: 5px solid $maingrey;
107115
padding: $base-spacing;
108116
margin: 0 0 $base-spacing 0;
109117
-ms-word-wrap: break-word;
110118
word-wrap: break-word;
111-
p:last-child {
112-
margin: 0;
113-
}
114119
}
115120
cite {
116121
font-style: italic;
@@ -121,23 +126,13 @@ small {
121126
table {
122127
margin: $base-spacing 0;
123128
width: 100%;
124-
border: $base-border;
129+
border: 0;
125130
border-collapse: collapse;
126-
border-left: 0;
127-
border-radius: $base-border-radius;
128-
129-
th {
130-
padding: $half-base-spacing;
131-
border-left: 1px solid $base-border-color;
132-
border-top: 0;
133-
vertical-align: top;
134-
text-align: left;
135-
}
136131

132+
th,
137133
td {
138134
padding: $half-base-spacing;
139-
border-top: 1px solid $base-border-color;
140-
border-left: 1px solid $base-border-color;
135+
border: 1px solid $base-border-color;
141136
vertical-align: top;
142137
text-align: left;
143138
}
@@ -166,7 +161,7 @@ big {
166161
code {
167162
display: inline-block;
168163
padding: 2px 5px;
169-
background-color: $maingrey;
164+
background-color: $light-gray;
170165
border: 1px solid $darkcolor;
171166
font-family: monospace;
172167
font-size: $base-fz;
@@ -202,7 +197,7 @@ pre {
202197
@include word-wrap(break-all);
203198

204199
white-space: pre-wrap;
205-
background-color: $maingrey;
200+
background-color: $light-gray;
206201
border: 1px solid $darkcolor;
207202
border-radius: $base-border-radius;
208203
}

0 commit comments

Comments
 (0)