Skip to content

Commit 43318f7

Browse files
committed
icon size fix and comment code
1 parent 05a7e69 commit 43318f7

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

web-components/hero-section/hero-section.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ h6, p {
7979
padding: 0em;
8080
}
8181

82+
.large-icon {
83+
width: 4em;
84+
}
85+
8286
.section {
8387
grid-column: 2;
8488
grid-row: 1;

web-components/hero-section/hero-section.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,16 @@ function createComponent(html) {
6767
setContent('.name', this.name, shadow);
6868
setContent('.desc', this.desc, shadow);
6969

70+
// Enlarge icon for specified pages
71+
if (this.name == 'IMS videos' || this.name == 'IMS on GitHub') {
72+
const img = shadow.querySelector('.image');
73+
img.classList.add('large-icon');
74+
}
75+
7076
const heroSection = shadow.querySelector('.hero-section');
7177
const hero = shadow.querySelector('.hero');
7278

79+
// Check if primary button is used
7380
if (this.link != undefined) {
7481
setLink('.button-primary', this.link, shadow);
7582
setContent('.button-primary-text', this.linktext, shadow);

wp-includes/css/page.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@
177177
}
178178
/* -------------------------------------------------------- */
179179

180-
/* -------------------------------------------------------- */
181-
182180
/* Content containers */
183181
/* -------------------------------------------------------- */
184182
/* Targets all sections after hero */

0 commit comments

Comments
 (0)