Skip to content

Commit d47472c

Browse files
committed
Switched homepage in use section to use the new .logogrid class. Killed .companies
1 parent 98fc380 commit d47472c

File tree

3 files changed

+17
-52
lines changed

3 files changed

+17
-52
lines changed

_sass/_nav.scss

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -338,53 +338,6 @@ body {
338338
margin-bottom: 16px;
339339
}
340340

341-
/* Companies section for only "Currently in use" (this section acts differently than customer logos in the "About" section of the site) */
342-
343-
/*Section-center is used to center the companies on the home page & get rid of padding on left associated with ul*/
344-
.section-center {
345-
text-align: center;
346-
}
347-
348-
.companies {
349-
display: flex;
350-
flex-direction: row;
351-
flex-wrap: wrap;
352-
justify-content: center;
353-
align-items: center;
354-
padding: 0;
355-
margin: 0;
356-
}
357-
358-
.companies li {
359-
-moz-box-sizing: border-box;
360-
-webkit-box-sizing: border-box;
361-
box-sizing: border-box;
362-
display: inline-block;
363-
padding: 3%;
364-
vertical-align: middle;
365-
width: 18%;
366-
}
367-
368-
.companies .col img {
369-
display: block;
370-
width: 100%;
371-
max-height: 60px;
372-
}
373-
374-
.greydout {
375-
-webkit-transition: all .05s ease;
376-
-moz-transition: all .05s ease;
377-
-ms-transition: all .05s ease;
378-
-o-transition: all .05s ease;
379-
transition: all .05s ease;
380-
}
381-
382-
.greydout:hover {
383-
-webkit-opacity: 0.65;
384-
-moz-opacity: 0.65;
385-
opacity: 0.65;
386-
}
387-
388341
/* JupyterHub section on front page */
389342
/* Feature-middle is for the JupyterHub features that are in the middle that need to be offset to sit on the track */
390343
.feature-middle {
@@ -603,9 +556,6 @@ body {
603556
font-size: 15pt;
604557
line-height: 25pt;
605558
}
606-
.companies li {
607-
width: 23%;
608-
}
609559
}
610560

611561
/* all elements in .containers that have a anchor

_sass/components/_logogrid.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ ul.logogrid {
1616
padding: 3%;
1717
vertical-align: middle;
1818
width: 23%;
19+
&.small {
20+
width: 18%;
21+
}
1922
@media (max-width: 768px) {
2023
width: 30%;
2124
padding: 4%;
@@ -27,4 +30,16 @@ ul.logogrid {
2730
margin: 0;
2831
}
2932
}
33+
.greydout {
34+
-webkit-transition: all .05s ease;
35+
-moz-transition: all .05s ease;
36+
-ms-transition: all .05s ease;
37+
-o-transition: all .05s ease;
38+
transition: all .05s ease;
39+
}
40+
.greydout:hover {
41+
-webkit-opacity: 0.65;
42+
-moz-opacity: 0.65;
43+
opacity: 0.65;
44+
}
3045
}

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ <h4 class="nb-desc">
401401
<div class="container">
402402
<div class="row">
403403
<h3 class="section-header">{{ page.in_use.headline }}</h3>
404-
<ul class="companies">
404+
<ul class="logogrid">
405405
{% for li in page.in_use.companies %}
406-
<li class="col">
406+
<li class="small">
407407
<a href="{{ li.href }}">
408408
<img src="{{ li.src }}" class="greydout" alt="{{ li.alt }}" loading="lazy">
409409
</a>

0 commit comments

Comments
 (0)