Skip to content

Commit 3c8f8ec

Browse files
committed
fix homepage based on styling changes
1 parent f2df898 commit 3c8f8ec

2 files changed

Lines changed: 95 additions & 79 deletions

File tree

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h3>Build your IMS skills through courses, videos, and code repos.</h3>
124124
</div>
125125
<div class="pure-u-1 pure-u-md-2-3">
126126
<div class="pure-g pure-g-pad">
127-
<div class="pure-u-1 pure-u-sm-1-3">
127+
<div class="pure-u-1 pure-u-md-1-2 pure-u-lg-1-3">
128128
<img src="wp-content/Icon_Banner_IMS VideosPage.svg" alt="" class="icon icon-lg">
129129
<h3>Videos</h3>
130130
<p>
@@ -133,7 +133,7 @@ <h3>Videos</h3>
133133
</p>
134134
<a href="ims-videos.html" aria-label="Learn more about videos">Learn more</a>
135135
</div>
136-
<div class="pure-u-1 pure-u-sm-1-3">
136+
<div class="pure-u-1 pure-u-md-1-2 pure-u-lg-1-3">
137137
<img src="wp-content/Icon_Banner_IMS CoursesPage.svg" alt="" class="icon icon-lg">
138138
<h3>Courses</h3>
139139
<p>
@@ -142,7 +142,7 @@ <h3>Courses</h3>
142142
</p>
143143
<a href="ims-education.html" aria-label="Learn more about courses">Learn more</a>
144144
</div>
145-
<div class="pure-u-1 pure-u-sm-1-3">
145+
<div class="pure-u-1 pure-u-md-1 pure-u-lg-1-3">
146146
<img src="wp-content/icons/icon_github.svg" alt="" class="icon icon-lg">
147147
<h3>GitHub</h3>
148148
<p>
@@ -214,7 +214,7 @@ <h3>Stay engaged with the IMS team and other customers.</h3>
214214
</div>
215215
<div class="pure-u-1 pure-u-md-2-3">
216216
<div class="pure-g pure-g-pad">
217-
<div class="pure-u-1 pure-u-sm-1-3">
217+
<div class="pure-u-1 pure-u-md-1-2 pure-u-lg-1-3">
218218
<img src="wp-content/icons/icon_engage.svg" alt="" class="icon icon-lg icon-invert">
219219
<h3>IMS Gold</h3>
220220
<p>
@@ -223,15 +223,15 @@ <h3>IMS Gold</h3>
223223
</p>
224224
<a href="ims-gold.html" aria-label="Learn more about IMS Gold">Learn more</a>
225225
</div>
226-
<div class="pure-u-1 pure-u-sm-1-3">
226+
<div class="pure-u-1 pure-u-md-1-2 pure-u-lg-1-3">
227227
<img src="wp-content/Icon_02_IMS GoldPage.svg" alt="" class="icon icon-lg">
228228
<h3>Advocacy and ideas</h3>
229229
<p>
230230
Get an IMS advocate at no cost to you. Also, submit ideas to shape the future of IMS.
231231
</p>
232232
<a href="ims-advocacy.html" aria-label="Learn more about IMS advocacy">Learn more</a>
233233
</div>
234-
<div class="pure-u-1 pure-u-sm-1-3">
234+
<div class="pure-u-1 pure-u-md-1 pure-u-lg-1-3">
235235
<img src="wp-content/Icon_Blog_White.svg" alt="" class="icon icon-lg icon-invert">
236236
<h3>Blogs and forums</h3>
237237
<p>

wp-includes/css/page.css

Lines changed: 89 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
--white: #fff;
66
--black: #1c1c1c;
77
--blue: #0f62fe;
8-
/* Background Color */
9-
--bg-light-gray: #F9F9F9;
10-
--bg-gray: #f4f4f4;
11-
--bg-dark-gray-01: #1c1c1c;
12-
--bg-dark-gray-02: #2c2c2c;
13-
--bg-dark-blue: #003A6D;
14-
/* Button Color */
15-
--btn-prim: #0f62fe;
16-
--btn-prim-hover: #0050e6;
17-
--btn-secnd: #6f6f6f;
18-
--btn-scnd-hover: #5e5e5e;
19-
/* Font Color */
20-
--font-light-blue: #78A9FF;
21-
--font-dark-blue: #0141B7;
8+
/* Background Color */
9+
--bg-light-gray: #f9f9f9;
10+
--bg-gray: #f4f4f4;
11+
--bg-dark-gray-01: #1c1c1c;
12+
--bg-dark-gray-02: #2c2c2c;
13+
--bg-dark-blue: #003a6d;
14+
/* Button Color */
15+
--btn-prim: #0f62fe;
16+
--btn-prim-hover: #0050e6;
17+
--btn-secnd: #6f6f6f;
18+
--btn-scnd-hover: #5e5e5e;
19+
/* Font Color */
20+
--font-light-blue: #78a9ff;
21+
--font-dark-blue: #0141b7;
2222

2323
/* Weight */
2424
--bold: 900;
@@ -45,28 +45,37 @@
4545
/* p - 18px */
4646

4747
html {
48-
scroll-behavior: smooth;
48+
scroll-behavior: smooth;
4949
}
5050

51-
body, body .pure-g, body .pure-g [class*="pure-u"] {
52-
font-family: "ibm-plex-sans", "Helvetica Neue", Arial, sans-serif;
51+
body,
52+
body .pure-g,
53+
body .pure-g [class*="pure-u"] {
54+
font-family: "ibm-plex-sans", "Helvetica Neue", Arial, sans-serif;
5355
}
5456

5557
li {
5658
font-size: var(--plex-18);
5759
font-family: "ibm-plex-sans", "Helvetica Neue", Arial, sans-serif;
5860
}
5961

60-
li span, li a {
62+
li span,
63+
li a {
6164
font-size: var(--plex-16);
6265
}
6366

64-
ol>li::before {
67+
ol > li::before {
6568
font-family: "ibm-plex-sans", "Helvetica Neue", Arial, sans-serif;
6669
}
6770

68-
h1, h2, h3, h4, h5, h6, p {
69-
font-family: "ibm-plex-sans", "Helvetica Neue", Arial, sans-serif;
71+
h1,
72+
h2,
73+
h3,
74+
h4,
75+
h5,
76+
h6,
77+
p {
78+
font-family: "ibm-plex-sans", "Helvetica Neue", Arial, sans-serif;
7079
}
7180

7281
h2 {
@@ -114,7 +123,8 @@ a {
114123
color: black;
115124
}
116125

117-
.white-bg h3, .white-bg h4 {
126+
.white-bg h3,
127+
.white-bg h4 {
118128
color: var(--black);
119129
}
120130

@@ -128,31 +138,35 @@ a {
128138
color: var(--black);
129139
}
130140

131-
.gray-bg a, .light-gray-bg a {
132-
color: var(--blue);
133-
font-size: var(--plex-18);
134-
}
141+
.gray-bg a,
142+
.light-gray-bg a {
143+
color: var(--blue);
144+
font-size: var(--plex-18);
145+
}
135146

136-
.gray-bg h3, .gray-bg h4, .light-gray-bg h3, .light-gray-bg h4 {
137-
color: var(--black);
138-
}
147+
.gray-bg h3,
148+
.gray-bg h4,
149+
.light-gray-bg h3,
150+
.light-gray-bg h4 {
151+
color: var(--black);
152+
}
139153

140154
.dark-gray-bg {
141155
background-color: var(--bg-dark-gray-02);
142156
color: var(--white);
143157
}
144158

145-
.dark-gray-bg p {
146-
color: var(--white);
147-
}
159+
.dark-gray-bg p {
160+
color: var(--white);
161+
}
148162

149-
.dark-gray-bg a {
150-
color: var(--font-light-blue);
151-
}
163+
.dark-gray-bg a {
164+
color: var(--font-light-blue);
165+
}
152166

153-
.dark-gray-bg h4 {
154-
font-size: var(--plex-24) !important;
155-
}
167+
.dark-gray-bg h4 {
168+
font-size: var(--plex-24) !important;
169+
}
156170

157171
.black-bg {
158172
background-color: var(--black);
@@ -164,9 +178,10 @@ a {
164178
color: var(--white);
165179
}
166180

167-
.blue-bg a, .black-bg a {
168-
color: var(--font-light-blue);
169-
}
181+
.blue-bg a,
182+
.black-bg a {
183+
color: var(--font-light-blue);
184+
}
170185

171186
/* Homepage backgrounds */
172187
.learn-home-bg {
@@ -188,9 +203,10 @@ a {
188203
background-position: 35% 100%;
189204
}
190205

191-
.learn-home-bg a, .engage-home-bg a {
192-
color: var(--font-dark-blue);
193-
}
206+
.learn-home-bg a,
207+
.engage-home-bg a {
208+
color: var(--font-dark-blue);
209+
}
194210

195211
/* Blur background */
196212
.blur-bg {
@@ -304,7 +320,7 @@ a {
304320
/* Targets all sections after hero */
305321
.main-content section:not(:first-child):not(.cta-banner) {
306322
padding: 4em;
307-
}
323+
}
308324

309325
.section-header {
310326
padding-right: 2em;
@@ -367,7 +383,7 @@ a {
367383
}
368384

369385
.inline-g h2 {
370-
color:var(--blue);
386+
color: var(--blue);
371387
}
372388

373389
.inline-g p {
@@ -396,8 +412,8 @@ a {
396412

397413
/* Call to action for new courses */
398414
.cta {
399-
display: flex;
400-
flex-flow: row nowrap;
415+
display: flex;
416+
flex-flow: row nowrap;
401417
gap: 2em;
402418
}
403419

@@ -416,10 +432,10 @@ a {
416432
}
417433

418434
.quote q {
419-
font-family: Georgia, 'Times New Roman', Times, serif !important;
420-
float: left;
421-
line-height: 1.4em;
422-
font-size: var(--plex-28);
435+
font-family: Georgia, "Times New Roman", Times, serif !important;
436+
float: left;
437+
line-height: 1.4em;
438+
font-size: var(--plex-28);
423439
padding: 0.5em 0em;
424440
}
425441

@@ -479,24 +495,24 @@ a {
479495
/* GIF */
480496
/* -------------------------------------------------------- */
481497
.gif {
482-
position: relative;
498+
position: relative;
483499
}
484500

485501
.gif a {
486-
width: 100%;
502+
width: 100%;
487503
}
488504

489505
.gif img {
490-
width: 100%;
491-
max-width: 40em;
506+
width: 100%;
507+
max-width: 40em;
492508
}
493509

494510
.gif-cover {
495511
position: relative;
496512
opacity: 1;
497513
background-size: contain;
498514
background-repeat: no-repeat;
499-
transition: .4s ease all;
515+
transition: 0.4s ease all;
500516
}
501517

502518
.gif-cover:hover {
@@ -510,7 +526,7 @@ a {
510526
opacity: 0;
511527
background-size: contain;
512528
background-repeat: no-repeat;
513-
transition: .4s ease all;
529+
transition: 0.4s ease all;
514530
}
515531

516532
.gif-video:hover {
@@ -613,7 +629,7 @@ a {
613629
/* Media queries */
614630
/* -------------------------------------------------------- */
615631
/* 425px and below screen sizes */
616-
@media screen and (max-width: 27em) {
632+
@media screen and (max-width: 27em) {
617633
/* Call to action for new courses */
618634
.cta {
619635
flex-flow: row wrap;
@@ -622,10 +638,19 @@ a {
622638
.pure-g-pad-btm > div {
623639
padding: 0.4em;
624640
}
641+
642+
/* For individual pure grid units requiring paddings */
643+
.pure-pad {
644+
padding: 1.2em 0em;
645+
}
646+
647+
.pure-pad-r {
648+
padding: 1.2em 0em;
649+
}
625650
}
626651

627652
/* 768px and below screen sizes */
628-
@media screen and (max-width: 48em) {
653+
@media screen and (max-width: 48em) {
629654
/* Decrease header size for smaller screens */
630655
.main-content h2 {
631656
font-size: var(--plex-28);
@@ -634,7 +659,7 @@ a {
634659
/* Decrease section padding for smaller screens */
635660
.main-content section:not(:first-child):not(.cta-banner) {
636661
padding: 2em;
637-
}
662+
}
638663

639664
/* Decrease card section padding for smaller screens */
640665
.card-section {
@@ -689,15 +714,10 @@ a {
689714
padding: 2em;
690715
}
691716

692-
/* For individual pure grid units requiring paddings */
693-
.pure-pad-r {
694-
padding: 1.2em;
717+
.cta-banner {
718+
gap: 1.5em;
695719
}
696720

697-
.cta-banner {
698-
gap: 1.5em;
699-
}
700-
701721
.cta-gold-banner div {
702722
flex-flow: column nowrap;
703723
align-items: flex-start;
@@ -719,7 +739,7 @@ a {
719739
}
720740

721741
/* 1024px and above screen sizes */
722-
@media screen and (min-width: 64em) {
742+
@media screen and (min-width: 64em) {
723743
/* Resize quote block to full height for larger screens */
724744
.quote-blk {
725745
height: 100%;
@@ -740,7 +760,3 @@ a {
740760
}
741761
}
742762
/* -------------------------------------------------------- */
743-
744-
745-
746-

0 commit comments

Comments
 (0)