Skip to content

Commit 45ae28f

Browse files
committed
Testimonial block and login logo
1 parent 252cc20 commit 45ae28f

11 files changed

Lines changed: 83 additions & 22 deletions

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.5.8
2+
3+
-
4+
15
## 1.5.7
26

37
- Change logo display to flex

assets/img/closing-quote.svg

Lines changed: 14 additions & 1 deletion
Loading

assets/img/opening-quote.svg

Lines changed: 14 additions & 1 deletion
Loading

assets/scss/parts/global/_testimonial-block.scss

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Testimonial Block (Global)
3-
*
4-
* @package F1 Mission Bit
3+
*
4+
* @package F1 Mission Bit
55
* @author Factor1 Studios
66
* @since 0.0.1
77
*/
@@ -19,30 +19,34 @@
1919

2020
&:before {
2121
content: '';
22-
background: url('../img/opening-quote.png') center/contain no-repeat;
22+
background: url('../img/opening-quote.svg') center/contain no-repeat;
2323
position: absolute;
2424
top: 5%;
2525
left: 0;
2626
width: rem(50);
27-
height: rem(80);
27+
height: rem(50);
2828
}
2929

3030
&:after {
3131
content: '';
32-
background: url('../img/closing-quote.png') center/contain no-repeat;
32+
background: url('../img/closing-quote.svg') center/contain no-repeat;
3333
position: absolute;
3434
bottom: calc(5% + 70px);
3535
right: 0;
3636
width: rem(50);
37-
height: rem(80);
37+
height: rem(50);
3838
}
3939
}
4040

4141
* {
42-
color: $white;
42+
color: var(--mb-white, $white);
4343
}
4444

45-
// Rounded corners
45+
div[style*="background-color: #{$teal}"] * {
46+
color: $black;
47+
}
48+
49+
// Rounded corners
4650
.row:not(.row--reverse) {
4751
.col-3 {
4852
border-top-left-radius: rem(20);
@@ -68,7 +72,7 @@
6872
}
6973
}
7074

71-
// Media Queries
75+
// Media Queries
7276
@media screen and (max-width: $small-breakpoint) {
7377
.testimonial-section {
7478
.container {
@@ -78,7 +82,7 @@
7882
.col-7 {
7983
padding: rem(28) rem(30);
8084
}
81-
85+
8286
&__block {
8387
padding: 20% 0 5%;
8488

@@ -110,4 +114,4 @@
110114
border-bottom-right-radius: rem(20) !important;
111115
}
112116
}
113-
}
117+
}

dist/closing-quote.88d72334.svg

Lines changed: 14 additions & 1 deletion
Loading

dist/opening-quote.99a27a21.svg

Lines changed: 14 additions & 1 deletion
Loading

dist/theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/theme.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inc/tweaks.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,12 @@ function custom_editor_styles() {
265265
// Customize Wordpress Admin
266266
// add login logo
267267
function custom_loginlogo() {
268-
$logo = wp_get_attachment_image_src(get_field('header_logo', 'option'), 'header_logo');
268+
// $logo = wp_get_attachment_image_src(get_field('header_logo', 'option'), 'header_logo');
269+
$logo = get_theme_file_uri('assets/img/logo-black.svg');
269270

270271
echo '<style type="text/css">
271272
.login {
272-
font-family: "Roboto", sans-serif;
273+
font-family: "Montserrat", sans-serif;
273274
}
274275
.login .message,
275276
.login #login_error {
@@ -326,7 +327,7 @@ function custom_loginlogo() {
326327
h1 a {
327328
height: 100% !important;
328329
width:100% !important;
329-
background-image: url(' . $logo[0] . ') !important;
330+
background-image: url(' . $logo . ') !important;
330331
background-postion-x: center !important;
331332
background-size:contain !important;
332333
margin-bottom:10px !important;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "f1-mission-bit",
3-
"version": "1.5.7",
3+
"version": "1.5.8",
44
"scripts": {
55
"build": "yarn test && yarn format && NODE_ENV=production gulp build && yarn build-js && yarn build-scss",
66
"build-js": "parcel build ./assets/js/theme.js --out-dir ./dist/ --no-content-hash --log-level 4 --public-url ./ --no-cache",

0 commit comments

Comments
 (0)