Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #78 from dof-dss/DEPT-371
Browse files Browse the repository at this point in the history
DEPT-371 Home page social links
  • Loading branch information
neilblair authored Feb 22, 2023
2 parents fac6127 + 8040c76 commit bd92ef7
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 4 deletions.
2 changes: 1 addition & 1 deletion css/5_theme/front.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions images/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions images/youtube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/images/icons/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/images/icons/youtube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 30 additions & 3 deletions src/scss/5_theme/front.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

h2 {
@include responsive-typo-map($sub-section-home-h2);
min-width: fit-content;
margin: 0 7px 0 0;
font-weight: bold;
color: #4d4d4d;
Expand All @@ -39,19 +40,34 @@
ul,
li {
display: flex;
flex-flow: row nowrap;
flex-flow: row wrap;
margin: 0;
padding: 0;
}

li {
margin: 2px;
}

a {
display: inline-block;
width: 2.5em;
height: 2.5em;
min-width: 44px;
min-height: 44px;
margin: 0 0 0 .25em;
background: #4d4d4d center center / 2em auto no-repeat;
margin: 0;
background: #4d4d4d center center / 1.75em auto no-repeat;
transition: background-color .2s ease-in-out, transform .2s ease-in-out;

&:focus,
&:hover {
background-color: var(--brand-primary-color-high-contrast-white);
}

&:focus {
@include high-vis-focus(white);
transform: scale(1.1);
}

&[href*='//twitter.com'] {
background-image: url('/themes/custom/nicsdru_dept_theme/images/twitter.svg');
Expand All @@ -60,10 +76,21 @@

&[href*='//www.facebook.com'] {
background-image: url('/themes/custom/nicsdru_dept_theme/images/facebook.svg');
background-size: 1.6667em auto;
}

&[href*='//www.flickr.com'] {
background-image: url('/themes/custom/nicsdru_dept_theme/images/flickr.svg');
background-size: 2em auto;
}

&[href*='//www.youtube.com'] {
background-image: url('/themes/custom/nicsdru_dept_theme/images/youtube.svg');
background-size: 2em auto;
}

&[href*='//linkedin.com'] {
background-image: url('/themes/custom/nicsdru_dept_theme/images/linkedin.svg');
}
}
}
Expand Down

0 comments on commit bd92ef7

Please sign in to comment.